Repository navigation
Add local-only cycle execution policy - #23
Conversation
Initial review —
|
| Command | Result |
|---|---|
python3 -m unittest discover -s tests |
435 tests, OK |
python3 scripts/validate-package.py |
VALID: 12 skills (6 cycle, 6 supporting), shared sections in sync, cross-agent manifests aligned |
git diff --check |
clean |
run_cycle.py --local-only without --cwd |
exit 2, usage error, telemetry database created — as quoted in REV-002 |
grep of the publication requirements in the four cycle skills |
as quoted in REV-001 |
Runtime: Python 3.10.12. The working tree is already checked out at c9b6bcd,
which matches the change-request head; nothing was modified.
Unverified
- No local-only cycle was run against real executors, so REV-001's outcome is
argued from the skills' own text and the driver's stage order, not from an
observed blocked run. The existing test cannot settle it, for the reason given
in that finding. - Windows behaviour was not executed locally; CI covers it and passes.
- The
except CycleDriverErrorpath aroundrun_cyclewas not exercised for a
mid-cycle error, because no reachable mid-cycle raise exists to trigger it. - Telemetry rows were inspected through the test suite's store rather than by
querying a database produced by a real run.
CI
Both jobs the repository defines ran on c9b6bcd and passed on both platforms.
| Check | State |
|---|---|
| Skills, manifests, and Bash installer (ubuntu-latest) | pass |
| PowerShell installer (windows-latest) | pass |
gh pr checks 23 reports 4 passed, 0 failed. Both jobs run
scripts/validate-package.py and unittest discover -s tests, so the new tests
are gated. No defined check is missing, pending, skipped, or cancelled.
Residual risks
--local-only will be read as a guarantee by someone, and it is not one. The
documentation says so clearly, which is the best a prompt-level policy can do,
but the gap between the name and the mechanism is permanent and worth a sentence
wherever the flag is offered to an operator.
The telemetry field records the intent of the run, not whether the boundary
held. A row with local_only=true is evidence of what the coordinator asked for,
not evidence that nothing was published — which is the right thing to record, as
long as nobody reads it as the latter.
Verdict
CHANGES_REQUESTED. The driver-side work is sound, well-placed, and honest about
its own limits. REV-001 blocks approval: the flag tells four skills to do
something their own instructions forbid, no skill was updated, and the one
end-to-end test passes because its fake executors ignore the prompt entirely.
REV-002 through REV-004 are small and non-blocking.
Resolution update —
|
| Command | Result |
|---|---|
python3 -m unittest discover -s tests -v |
437 tests, OK |
python3 scripts/validate-package.py |
VALID |
git diff --check |
clean |
| post-change code review | no P0/P1/P2/P3 findings |
| post-change security review | no confirmed vulnerabilities |
The local-only policy remains an orchestration boundary rather than an OS-level network sandbox; the documentation retains that residual risk and recommends isolated credentials and remote access controls for a hard no-publish guarantee.
All four GitHub checks for f95911a have now passed.
Re-review —
|
| Command | Result |
|---|---|
python3 -m unittest discover -s tests |
437 tests, OK |
python3 scripts/validate-package.py |
VALID: 12 skills (6 cycle, 6 supporting), shared sections in sync, cross-agent manifests aligned |
git diff --check |
clean |
| direct observation of a local-only cycle in a linked worktree | stops at HUMAN_INTERVENTION, review never dispatched — as quoted in REV-001 |
| reproduction of the REV-002 CLI invocation | exit 2, no database, no directory |
LocalOnlyPolicyTests, MainLocalOnlyTests, PromptContractTests |
5 tests, OK |
| reproduction of REV-005 and REV-006 | both reproduced, as quoted above |
As a cross-check, this change request's own comment history was folded with
scripts/review_contract.py and trusted_authors={"datacas"}: four findings,
all resolved, no recovery notes, next free ID REV-005. The resolution comment
published four-token headers without the disposition token, which the contract
tolerates and reads as -; the dispositions below are therefore - rather than
lost.
Runtime: Python 3.10.12. The working tree is checked out at f95911a, which
matches the change-request head; nothing was modified.
Unverified
- No local-only cycle was run against real executors, so REV-001's evidence is a
driver-level observation with scripted adapters, not an observed agent run. It
is now sufficient, because the stop is a driver decision rather than something
an agent has to comply with. - Windows behaviour was not executed locally; CI covers it and passes.
- The
except CycleDriverErrorthat wraps the whole ofrun_cycleinmain()
is unchanged and still has no reachable mid-cycle raise to exercise it; see
residual risk. - Telemetry rows were read through the test suite's store rather than from a
database written by a real run.
CI
Both jobs the repository defines ran on f95911a and passed on both platforms.
| Check | State |
|---|---|
| Skills, manifests, and Bash installer (ubuntu-latest) | pass |
| PowerShell installer (windows-latest) | pass |
gh pr checks 23 reports 4 passed, 0 failed. Both jobs run
scripts/validate-package.py and unittest discover -s tests, so the new tests
are gated. No defined check is missing, pending, skipped, or cancelled.
Residual risk
A local-only run that does exactly what was asked ends at HUMAN_INTERVENTION,
and scripts/run_cycle.py:646 maps every status but READY_FOR_MANUAL_MERGE to
exit 1. That is consistent with the rest of the driver and arguably correct — the
run really does need a human — but anyone wiring --local-only into a scheduled
rehearsal will read the exit code as failure. One sentence in the README would
close it.
main() still wraps the whole of run_cycle in except CycleDriverError → parser.error, so a mid-cycle driver error would be reported as a usage error at
exit 2 and would suppress report.explain() and the recorded in … line. The
reason this was not raised again is unchanged: no reachable mid-cycle raise
exists today, since roles come from a fixed table.
The feature is now narrower than its name suggests. --local-only is an
implementation-in-a-worktree mode, not a rehearsal of the cycle, and both
documents now say so — but the flag name does not.
Verdict
APPROVED. The reviewed head f95911a matches the change-request head, all four
defined checks pass, and every previous finding is classified as corrected, each
verified by re-running its original reproduction. REV-001 was answered by
narrowing the feature and fixing the test that had hidden the problem, which is
the right order. REV-005 and REV-006 are low, sit on the edges of the tightened
worktree check, and do not block approval.
Summary
Verification
The PR is ready for review and is not merged.