fix(docs): fail closed on unscoped workflows

This commit is contained in:
2026-07-22 01:55:54 +02:00
parent be52b716ca
commit 94c000f351
4 changed files with 65 additions and 2 deletions

View File

@@ -34,6 +34,14 @@ opens the user projection: each contributed workflow still needs its own
module, capability, permission, and runtime-policy conditions so baseline Help
Center access does not imply authority to perform every documented task.
This permission binding is a strict source contract. Every user workflow topic
must declare at least one `DocumentationCondition`, and every alternative in
its `conditions` tuple must include `required_scopes` or `any_scopes`. Module,
capability, or configuration conditions alone are not sufficient because topic
conditions are alternatives: one unscoped alternative would bypass all scoped
ones. Manifest validation blocks a release containing such a topic, and Docs
omits a non-compliant runtime-provider topic from the user projection.
## Conditions
Documentation topics can declare: