Repository navigation
Define workspace policy for auxiliary non-writing roles - #25
Conversation
Give security, bootstrap, verify, and run explicit workspace contracts, enforce compatible executor routing, and document disposable artifact isolation.
Initial review —
|
| Command | Result |
|---|---|
python3 -m unittest discover -s tests -p 'test_*.py' |
OK — 451 tests, matching the PR description |
python3 scripts/validate-package.py |
VALID — 12 skills, shared sections in sync, manifests aligned |
Registry.compatible_executors(DISPOSABLE, writes=True, cwd=...) with no workspace |
frozenset() → route("verify", ...) blocks. Fail-closed confirmed; reason text is REV-003 |
ex.dispatch(...) with Claude + DisposableWorkspace |
SUCCEEDED with --permission-mode acceptEdits. Evidence for REV-002 |
Telemetry.record_stage(model_requested="claude-opus-5") |
TelemetryError. Evidence for REV-001 |
DisposableWorkspace(<symlink into source>, <source>) |
ExecutorError. Symlink escape closed |
route("review", ..., eligible_executors={"codex"}) with a Claude primary |
used_fallback=True, reason "primary executor claude is ready -> fell back to codex". Evidence for REV-003 |
Runtime evidence is distinguished from inspection above: REV-001, REV-002 and REV-003 were each reproduced by execution on this branch. REV-004, REV-005 and REV-006 come from code and repository inspection only.
Not verified
- No end-to-end run of a real
verifyorrunstage against a live Codex or Claude binary; the adapter behaviour above was observed through the injected runner, so the argv and working directory are confirmed but the agents' actual filesystem behaviour is not. - The claim in
REV-002that Claude can write outside its working directory is taken from this repository's own recorded live probe (executors.py:621-623), not re-probed here. bootstrapandcoordinatewere exercised only through routing, not dispatched.
CI
Both jobs of the single workflow (.github/workflows/validate.yml, "Validate package") passed on both runs of the head commit:
| Check | State |
|---|---|
| Skills, manifests, and Bash installer (Linux) | pass — 23s, 51s |
| PowerShell installer (Windows) | pass — 1m12s, 57s |
No check is missing, pending, skipped or cancelled, and no repository policy suppresses a suite for this PR. Both jobs run validate-package.py and the full unittest discovery, so the green result covers the suite the PR description cites.
Residual risks
verify,runandbootstrapremain unroutable under the default profiles unless the caller supplies a workspace, becausecheap_toolis Claude-only with no fallback. That is pre-existing rather than introduced here, but this PR is the one that makes it a documented contract, and the document does not mention it.- The workspace contract is entirely self-declared: nothing in the dispatch layer ties a declared
source_pathto the repository actually under review. known_models()still derives fromDEFAULT_PROFILESonly, so every future profile edit silently changes which telemetry rows a configured repository can write.REV-001is the current instance of a recurring hazard.
Verdict
CHANGES_REQUESTED — REV-001 and REV-002 block approval. Reviewed head: 1d072a15bbe278c8b52ca655a469a1ce87c61a80.
Preserve model compatibility, require confined disposable adapters, fix blocked routing telemetry, and document the role policy.
Review resolution —
|
Re-review —
|
| Command or probe | Result |
|---|---|
python3 -m unittest discover -s tests -p 'test_*.py' |
OK — 453 tests |
python3 scripts/validate-package.py |
VALID — 12 skills, shared sections in sync, manifests aligned |
telemetry.known_models() |
five names including claude-opus-5. REV-001 resolved |
Telemetry.record_stage(model_requested="claude-opus-5") |
row written. REV-001 resolved |
Telemetry.record_stage(profile="auxiliary_tool", missing_capability="disposable_workspace") |
row written; new vocabulary accepted |
Registry.compatible_executors(DISPOSABLE, workspace=ws, cwd=ws.path) |
{'codex'}. REV-002 resolved |
dispatch(claude, DISPOSABLE, valid workspace) |
BLOCKED / disposable_workspace, adapter not invoked. REV-002 resolved, REV-008 evidence |
dispatch(codex, DISPOSABLE, valid workspace) |
SUCCEEDED with -s workspace-write -C <disposable> |
Registry.compatible_executors(DISPOSABLE) with no workspace |
frozenset(). Fail-closed confirmed |
route("verify", …, eligible_executors=frozenset()) |
blocked, policy reason. REV-003 blocked branch resolved |
route("security", …, eligible_executors={"claude"}) |
used_fallback=True, "primary executor codex is ready". REV-003 still open, REV-009 evidence |
Registry.compatible_executors(READ_ONLY) with an OrcaDispatchContext |
{'codex','orca'}; Orca dispatch still emits --worktree. No #24 regression |
PROFILE_COST["security"] == PROFILE_COST["reviewer"] |
3.0 == 3.0. REV-004 resolved |
grep -rn generated_artifacts |
only a test method name. REV-005 resolved |
REV-001 through REV-005 were each re-checked by execution rather than from the diff. REV-006, REV-007 and REV-009's documentation half come from repository inspection.
Not verified
- No end-to-end run of a real
verifyorrunstage against a live Codex binary. The-s workspace-write -C <disposable>argv is confirmed through the injected runner, but Codex's actual filesystem confinement under that flag pair is taken from the flag's documented meaning, not probed here. - The claim that Claude cannot be confined is still this repository's own recorded live probe (
executors.py:623-628), not re-probed. run_cycle.pydrives onlyimplement,review,resolve, andrereview, so no production caller exercisesDISPOSABLEtoday. The policy is contract-only until a caller creates a workspace, which matches what the document says but means the path has no end-to-end coverage outside the tests.coordinateandbootstrapwere exercised only through routing, not dispatched.
CI
Both jobs of the single workflow (.github/workflows/validate.yml, "Validate package") pass on head 9d0d8cf, across both runs:
| Check | State |
|---|---|
| Skills, manifests, and Bash installer (Linux) | pass |
| PowerShell installer (Windows) | pass |
gh pr checks 25 reports 4 passed, 0 failed, none pending, skipped, or cancelled. No expected gate is missing and no repository policy suppresses a suite for this pull request. Both jobs run validate-package.py and the full unittest discovery, so the green result covers the suite the description cites.
Residual risk
known_models()deriving fromDEFAULT_PROFILESremains the standing hazard.REV-009describes the workaround now holdingclaude-opus-5in place; the next profile edit can reintroduceREV-001unchanged.- The workspace contract is still entirely self-declared. Nothing ties a declared
source_pathto the repository actually under review, for eitherDisposableWorkspaceorOrcaReviewWorkspace. verify,run, andbootstrapnow resolve toauxiliary_tool, which is Codex-only with no fallback. Where they previously required Claude and no other, they now require Codex and no other. That is the right direction for enforceability and it is what the document describes, but it is still a single point of failure, and neither the document nor the changelog says these roles block outright without Codex.cheap_toolremains defined, priced, and in the telemetry vocabulary while no role routes to it (REV-007).
Verdict
APPROVED. Reviewed head 9d0d8cfa358a4ecbadbde7bb417183e7c92dd27e equals the current head; all four required checks passed; both previously blocking findings are fixed and verified by execution. Four low findings are open — REV-003, REV-007, REV-008, REV-009 — and none blocks approval. REV-003 is recorded as open rather than resolved because the fallback branch it named is still reproducible; that correction to the resolution claim is the only substantive disagreement with the previous comment.
PR #25 follow-up resolutionCommit: All findings from the latest rereview are addressed in the pushed commit. No blocking findings remain. REV-001 — Resolved (blocks: yes)The model registry still contains the required Claude Opus compatibility entry, and telemetry records remain valid for the resolved security profile. REV-002 — Resolved (blocks: yes)Disposable-workspace routing requires an adapter that enforces the workspace boundary. Codex is eligible; Claude and Orca are filtered out before dispatch. REV-003 — Resolved (blocks: no)Fallback routing now reports when the primary executor was skipped because it could not satisfy the workspace policy, instead of claiming that a ready primary merely fell back. REV-004 — Resolved (blocks: no)The security profile cost remains aligned with the reviewer cost at 3.0. REV-005 — Resolved (blocks: no)The unused REV-006 — Resolved (blocks: no)The role-policy documentation is linked from the README and the change is recorded in the changelog. REV-007 — Resolved (blocks: no)The orchestrator skill and routing plan now document REV-008 — Resolved (blocks: no)Disposable dispatch errors now distinguish an invalid or missing REV-009 — Resolved (blocks: no)The Claude Opus security fallback is explicitly documented as a compatibility-only registry entry; the workspace-policy eligibility filter never selects it. Verification
Residual risks remain unchanged: |
Re-review —
|
| Command or probe | Result |
|---|---|
python3 -m unittest discover -s tests -p 'test_*.py' |
OK — 454 tests |
python3 scripts/validate-package.py |
VALID — 12 skills, shared sections in sync, manifests aligned |
telemetry.known_models() / record_stage(model_requested="claude-opus-5") |
five names, row written. REV-001 |
compatible_executors(DISPOSABLE, workspace=ws, cwd=ws.path) |
{'codex'}. REV-002 |
compatible_executors(READ_ONLY, writes=False, cwd=src) |
{'codex'}. REV-002 |
dispatch(codex, DISPOSABLE, valid workspace) |
SUCCEEDED with -s workspace-write -C <disposable> |
dispatch(claude, DISPOSABLE, valid workspace) |
BLOCKED, adapter not invoked, adapter-specific detail. REV-002, REV-008 |
dispatch(codex, DISPOSABLE, no workspace) / (…, mismatched cwd) |
BLOCKED, workspace-specific detail. REV-008 |
route("security", …, eligible_executors={"claude"}) |
policy-skip fallback reason. REV-003 |
route("security", …, codex installed, both eligible) |
availability fallback reason preserved. REV-003 regression check |
route("verify", …, eligible_executors=frozenset()) |
blocked, policy reason. REV-003 |
compatible_executors(READ_ONLY, context=OrcaDispatchContext(...)) |
{'codex','orca'}; dispatch still emits --worktree. No #24 regression |
PROFILE_COST["security"] == PROFILE_COST["reviewer"] |
3.0 == 3.0. REV-004 |
grep -rn generated_artifacts scripts skills docs |
no match. REV-005 |
REV-001 through REV-005, REV-008 and the Orca contract were each re-checked by execution on head f23abf0. REV-006, REV-007 and REV-009 are documentation and in-code comment changes, verified by inspection, which is the whole of what they asked for.
Not verified
- No end-to-end run of a real
verifyorrunstage against a live Codex binary. The-s workspace-write -C <disposable>argv is confirmed through the injected runner; Codex's actual filesystem confinement under that flag pair is taken from the flag's documented meaning. - The claim that Claude cannot be confined remains this repository's own recorded live probe (
executors.py:623-628), not re-probed here. run_cycle.pystill drives onlyimplement,review,resolveandrereview, so no production caller exercisesDISPOSABLE. The policy stays contract-only until a caller creates a workspace — which matches the document, but means the path has no end-to-end coverage outside the tests.coordinateandbootstrapwere exercised only through routing, not dispatched.
CI
Both jobs of the single workflow (.github/workflows/validate.yml, "Validate package") pass on head f23abf0, across both runs. One PowerShell job was IN_PROGRESS when this review began and was re-checked to completion rather than reported as green early:
| Check | State |
|---|---|
| Skills, manifests, and Bash installer (Linux) | pass — 25s, 30s |
| PowerShell installer (Windows) | pass — 42s, and the second job completed during this review |
gh pr checks 25 reports 4 passed, 0 failed, none pending, skipped or cancelled. No expected gate is missing and no repository policy suppresses a suite for this pull request. Both jobs run validate-package.py and the full unittest discovery, so the green result covers the suite the description cites — though the description still says 451 tests and the branch now has 454.
Residual risk
known_models()deriving fromDEFAULT_PROFILESremains the standing hazard behindREV-001. It is now labelled at the point of use (REV-009) but not structurally separated, so a future profile edit can reintroduce the original failure: a configured repository routes and dispatches fine, then fails when the stage row is written, after the stage has been paid for.- The workspace contract is entirely self-declared. Nothing ties a declared
source_pathto the repository actually under review, for eitherDisposableWorkspaceorOrcaReviewWorkspace. dispatch()infersWORKSPACE_WRITEwhen noworkspace_policyis passed andwrites=True, and that policy accepts every adapter. A direct caller that bypassescycle.pytherefore gets no disposable confinement. This is unchanged from before this pull request and the role contract lives incycle.pyby design, butdocs/role-workspace-policy.md:3-5says the contract is enforced by both modules, which is true only for callers that pass the policy.verify,runandbootstrapresolve toauxiliary_tool, which is Codex-only with no fallback: they block outright without Codex. That is the right direction for enforceability and is now documented in two places, but neither the document nor the changelog says these roles are unroutable without it.cheap_toolstays defined, priced and in the telemetry vocabulary with no role routing to it. That is now a deliberate, documented compatibility decision rather than drift.
Verdict
APPROVED. Reviewed head f23abf0bea3109dd95c250b0c5fd2ffc9cd8e8d4 equals the current head; all four required checks passed; all nine findings across the three reviews are resolved and no open finding remains. No new finding was raised in this pass.
Summary
Verification
python -m unittest discover -s tests -p 'test_*.py'(451 tests)\n-python -m compileall -q scripts tests\n-git diff --cached --check\n\nCloses Define workspace policy for auxiliary non-writing roles #20