Plan: Explicit ACP delegation override (2.6.3) - #109
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Reviewer's GuideAdds a new, detailed ExecPlan markdown document for roadmap step 2.6.3 that specifies how to implement an explicit ACP delegation override, including configuration, engine wiring, validation, auditing, testing, and documentation work, without changing any production code yet. Sequence diagram for ACP delegation override validation and session auditsequenceDiagram
actor Operator
participant CLI as CLI_HostArgs
participant ConfigLoader
participant AppConfig
participant Validator as validate_agent_config
participant Tracing as tracing_warn
participant Engine as ProtocolSession
Operator->>CLI: pass --acp-delegation allow_fs
CLI->>ConfigLoader: build ConfigLoadOptions
ConfigLoader->>AppConfig: deserialize to AppConfig(acp.delegation)
AppConfig->>Validator: validate_agent_config()
alt delegation != Disabled and agent.mode == Acp
Validator->>Tracing: warn target=podbot::acp::policy
Tracing-->>Validator: recorded
Validator-->>AppConfig: Ok
else delegation != Disabled and agent.mode != Acp
Validator-->>AppConfig: ConfigError::InvalidValue
end
Opt session_start
AppConfig->>Engine: build ProtocolSessionOptions
Engine->>Engine: emit_trust_boundary_audit_event()
Engine->>Tracing: warn target=podbot::acp::policy
Tracing-->>Engine: recorded
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Draft ExecPlan for roadmap entry 2.6.3 covering the operator-facing `acp.delegation` configuration knob, the wiring that promotes `CapabilityPolicy::MaskAndDeny` to production for `agent.mode = "acp"`, the per-family parametrization of the initialize masker and runtime denylist, the configuration-validation warning for non-default overrides, the per-session trust-boundary audit event, and the reservation of JSON-RPC application error code `-32002`. The plan signposts ADR 006 and ADR 008, podbot-design §Execution flow, the Corbusier-conformance security section, and the rstest/rstest-bdd testing guides. It enumerates nine staged milestones (A through I), each with its own validation gate, and records the design decisions made during planning (per-family override granularity, four-array denylist parametrization, dual audit-event emission, host-only CLI flag surface, reserved-but-unused `-32002` code, proptest over the narrowing invariant). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Import the latest AGENTS.md from the memoryd repository (1-1-1-record-evidence-store-engine-and-migration-policy branch) to keep the contributor instructions aligned across df12 Productions projects. This supersedes the prior in-tree copy. No code or runtime behaviour is affected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
d47bfb6 to
b1ffa42
Compare
Summary
docs/execplans/2-6-3-explicit-acp-delegation-override.md, covering the operator-facingacp.delegationconfiguration knob, the wiring that promotesCapabilityPolicy::MaskAndDenyto production foragent.mode = "acp", the per-family parametrization of the initialize masker and runtime denylist, configuration-validation diagnostics, the per-session trust-boundary audit event, and the reservation of JSON-RPC application error code-32002.docs/podbot-design.md§Execution flow, and the Corbusier conformance §ACP delegation section.Decision logrecording the choices made during planning (per-family override granularity, four-arrayMethodDenylistparametrization, dual audit-event emission, host-only CLI flag surface, reserved-but-unused-32002code,proptestover the narrowing invariant).The plan itself is draft-status; implementation begins only after this plan is approved.
make markdownlintandmake nixieboth pass on the new document. The plan does not modify any code; it adds a single new document.Test plan
make check-fmt,make lint,make testsucceed after each milestone.coderabbit review --agentreports zero unresolved concerns at the final milestone.docs/podbot-roadmap.mdStep 2.6.3 checkbox is marked done at the end.References
docs/podbot-roadmap.md§2.6.3 (Add the explicit ACP delegation override).docs/execplans/2-6-3-explicit-acp-delegation-override.md.docs/execplans/2-6-1-intercept-acp-initialization.md,docs/execplans/2-6-2-runtime-denylist.md.🤖 Generated with Claude Code
Summary by Sourcery
Documentation: