forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Problem
Current implementation makes subagents inherit parent permissions, but they should use their OWN config.
Current Behavior (WRONG)
- PM spawns Developer → Developer inherits PM's permissions
- Developer can spawn ops/explore (bypassing quality gates)
Required Behavior
- Each agent uses its OWN permission.task config
- Parent permissions don't affect child's delegation rights
- Developer can only spawn adversarial-developer (per its own config)
Implementation Notes
- Update .fork-features/manifest.json permission-bubbling feature
- Change from inheritance model to authoritative config model
- Each agent's permission.task config is authoritative for its delegation
Acceptance Criteria
- Subagent's permission.task from JSON config is evaluated when THAT subagent tries to spawn another subagent
- Parent's task permissions do not affect child's delegation rights
- Each agent can only spawn agents explicitly allowed in its OWN config
- Deny rules in child config are enforced even if parent has broader permissions
- .fork-features/manifest.json updated with implementation details
Priority: HIGH - Blocking quality gate enforcement
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels