Agent operation dependencies, phase 6: push audit¶
Prompt¶
Plan the next phase of PLAN-agent-operation-dependencies.md, which
is phase 6, the push audit. Phase 5 merged on 2026-11-28 as
#5109 and this
phase closes it out. The master plan's phase 6 row asks for
PUSH-AUDIT.md over "the accumulated diff of every phase in this plan
against develop"; the survey below finds that diff cannot be taken
and replaces it with an explicit merge list, in the manner of the
deadlines plan's phase 8.
This phase produces findings, not features. It is the last phase of
the plan, so it closes itself out in its own pull request and records
no Merged cell of its own.
Planning effort¶
High, with the survey run before the plan was written rather than assigned to a step. The master plan specifies no review effort for this phase; the audit's own wave 2 effort levels are in the step table.
Scope¶
In scope. PUSH-AUDIT.md run once per merge in the baseline of
decision 1, with findings pooled and recorded in this file; a written
disposition for every finding; the close-out of phase 5; and the
master plan corrections the survey found, applied at source.
In scope, and the decision the master plan left open. Whether #5099's diff is audited. Phase 5's row (h) says "phase 6 must decide"; decision 2 decides it is.
Out of scope.
- Fixing what the audit finds, beyond what a reviewer would fix in passing. Findings are graded and dispositioned here; anything substantial becomes an issue, in the manner of every previous audit in this family.
- Adopting
require_success. It is unreachable from the published client (client-python#462), Michael's decision of 2026-11-28 was to record rather than build it, and the master plan's Future work carries it unassigned. Auditing the server half (decision 2) is not adopting it. - Editing anything in
client-pythonorclient-python-k3s. Decision 3 reads both and files issues; it changes neither. - Retuning the dependency wait budget, the settle ceiling, or the per-link budget question in Future work. The audit grades what shipped.
- Phase 5's live proof. Decision 7 records why it cannot be met by this phase and must not be read as met.
What the survey found¶
Six findings. Four change what this phase does; two exist so the audit does not spend an agent re-deriving them.
F1. Phase 5 was complete in substance but its Merged cell is empty, which makes the plan unauditable¶
Both halves are merged: client-python-k3s as
#177
(merge b233e21) and shakenfist as #5109 (merge 09becc1186,
confirmed by git log --merges --first-parent against develop).
The master plan and docs/plans/index.md agree with each other -- both
read In progress, 5 of 7 -- so no earlier close-out half-finished.
This is not merely bookkeeping to tidy before the real work.
PUSH-AUDIT.md's range section says: "If a plan's Merged column is
missing or a cell is blank, stop and say so -- that is an unauditable
plan". Phase 5's cell is blank. So closing phase 5 out is a
precondition of the audit rather than a courtesy, and it is why
that close-out is this planning run's own first commit -- the
next-phase skill puts it there -- rather than a step of the audit it
unblocks.
Spot-checked against the trees rather than trusting the ticks:
pyproject.toml:61 floors shakenfist_client >= 0.8.5;
cluster.py:138 still reads
AGENT_OP_FAILED_STATES = ('error', 'expired', 'abort'), unchanged as
its done-criterion requires; and step 5d's own greppable criterion,
tr '\n' ' ' < docs/developer_guide/agent_operations.md | grep -c
'does not declare *dependency edges', now reports 0 where it
reported 1 before #5109. Deferred work is recorded and its states
are consistent: #4824 and #4825 open and in Future work, #4826 closed
and recorded as fixed, #5091 closed by #5099 and recorded in row (h).
F2. The phase 6 row describes a diff that cannot be taken¶
The row asks for "the accumulated diff of every phase in this plan
against develop, not the last phase's diff alone". Every phase is
merged, so git diff develop...HEAD -- which is what every command in
PUSH-AUDIT.md is written against -- is empty, and each check would
report success against nothing read.
The row is not merely loose, it is older than the rule it conflicts
with. It was written on 2026-08-24 by fcffffb020, "Add a push audit
phase to incomplete master plans", a bulk commit which gave the same
sentence to several plans. PUSH-AUDIT.md learned the per-merge rule
three weeks later, on 2026-09-13, in f445a9d31e, "Teach the audit
runbook to read the Merged column", and that rule explicitly forbids
what the row asks for: "Run the whole audit once per range and pool
the findings; a plan with four merges gets four passes, not one pass
over a union that git cannot express."
The deadlines plan's phase 8 hit this same finding as its own F2. Decision 1 replaces the row with an explicit merge list. Corrected at source.
F3. The footprint is six merges here, and no phase landed an extra pull request in this repository¶
| Phase | PR | Merge | *.py |
*.md |
|---|---|---|---|---|
| 0 | #4827 | 4c14523a7b |
none | 3 files, +1340 -76 |
| 1 | #4885 | e6c0ba95a5 |
28 files, +2429 -292 | 7 files, +842 -12 |
| 2 | #4909 | e5354766a4 |
21 files, +3315 -295 | 8 files, +1259 -26 |
| 3 | #4982 | 6dde443468 |
4 files, +586 -47 | 2 files, +3 -3 |
| 4 | #5009 | fa6c8e1515 |
none | 9 files, +992 -44 |
| 5 | #5109 | 09becc1186 |
none | 3 files, +70 -15 |
All six are two-parent merges and all six are ancestors of develop,
checked with git rev-list --parents -n1 and
git merge-base --is-ancestor.
This differs from the deadlines plan, whose equivalent finding was that its footprint was nine merges for seven phases, because phase 6 needed a capability-token pull request and a CI-adoption pull request nobody had counted. Nothing of that shape happened here: this plan's capability token landed inside phase 1, and phase 3's CI-suite fix landed inside phase 3's own shakenfist half. Verified rather than assumed -- see F4's method, which would have caught such a merge.
Three of the six ranges carry no Python at all (phases 0, 4, 5). That is load-bearing for the step table: wave 1's style greps, 2a code quality, 2b test review and 2d security have no candidate in those three, and decision 5 says so rather than sending four agents to discover it.
F4. #5099 is the only merge outside the phase branches in this plan's subject matter¶
Method, because the answer depends on it. Every merge on
develop's first-parent line from 4c14523a7b to develop was
diffed against its first parent and grepped for
depends_on|runs_after|require_success|dependency_failure|agentoperation-dependenc
in *.py and *.md. Thirteen non-phase merges matched. Ten are
cluster operation dependency changes: depends_on and
runs_after are shared vocabulary between cluster operations and the
agent operations this plan gave them to, so the grep cannot
distinguish them and the file list decides. None of the ten touches an
agent-operation file.
Two matched on an agent-operation file and are still not in the footprint, which is worth recording because a reviewer repeating the sweep will land on both:
2b551a5986(#4956) changedAgentOperation.fail()inshakenfist/operations/agentoperation.pyto route throughenter_error_state()rather than_state_update(). The method sits immediately abovecascade_abort_for_dependency(), which is why it matched, butfail()was introduced by the deadlines plan (9272ee8c63, 2026-08-25, "Add the expired agent operation state"), and the cascade does not route through it: it assignsself.state = BaseOperation.STATE_ABORTdirectly.a57e5b06b6(#4900) reflowed comments in the sidechannel monitor's reply-gap handling. It matched on the wordabortin a comment about abort files, which is the deadlines plan's mechanism, not an edge.
So the outside footprint is exactly one merge: 1e4cad5665
(#5099), 15
*.py files +617 -27 and 5 *.md files +70 -13. Decision 2 puts
it in the baseline.
F5. There is nothing to cite for either cross-repository half, because client-python has no audit template¶
PUSH-AUDIT.md says "A phase whose cell names another repository is
audited there, as part of the pull request that lands it, and this
audit cites that one rather than re-running it." For this plan that
rule has nothing to point at:
client-pythonhas noPUSH-AUDIT.md. Phase 3's client half (a2c9d0d1f4, #453) was never push-audited and could not have been.client-python-k3sdoes have the template, but phase 5 never ran it. The phase plan's single mention of a push audit is execution note 10 saying a result is "reported in the phase's close-out rather than left for the parent plan's push audit to rediscover" -- which is the opposite of having run one.
Citing an audit that does not exist would make this phase's report false in exactly the way the range rule exists to prevent. Decision 3 adopts the deadlines plan's answer instead: read both diffs against this repository's published contract, change nothing in either repository, and file findings as issues there.
F6. Phase 5's execution note 10 is wrong about when the k3s cluster tier runs, and the live proof is still unmet¶
Phase 5's live-proof item needs a cluster-deploy run that passes on a
client-python-k3s develop containing b233e21. Execution note 10
says that "costs nothing to wait for: the tier runs on every merge
into this repository". It does not. The tier is path-gated by the
Check paths job, and #179 -- the merge which brought phase 5's own
execution notes -- was documentation only, so merge-queue run
46123979721 on b93a7be9 reported overall success with
Cluster deployment: skipped and sanity_checks: skipped. The
post-merge push runs on that repository's develop are CodeQL, Supply
chain, Dependency Graph and the configuration export; none deploys a
cluster.
So the proof arrives only when the next pull request that touches
code in that repository goes through its merge queue, and no
amount of waiting produces it. Two consequences, both in decision 7:
the audit must not read #179's green run as the proof, and phase 5's
Merged cell is written by this phase's close-out commit with a
known-unmet done-criterion, stated rather than glossed.
What is not a finding¶
Stated so wave 1 confirms rather than re-derives, and so a reviewer who repeats the greps knows the hits are accounted for:
- All four
PUSH-AUDIT.mdstyle greps come back clean across all seven ranges, once two hits are attributed. Over-120-character added lines: one in phase 1's range and one in phase 2's, both theDESCRIPTORline of the generatedshakenfist/protos/database_pb2.py, which wave 1 checks for freshness rather than reads. Addedprint(: five in phase 1 and one in phase 2, all intools/mutate-agent-dependencies.py, a mutation-testing helper whose interface is stdout. Newetcdreferences: none anywhere. Untaggedmariadb.get_all_*: none anywhere, so the blocking pushdown rule has no candidate in this plan at all. - No new
# noqa,# type: ignoreorpragma: no cover, and no newTODO/FIXME/HACK/XXX, in any of the seven ranges. - No open defect caused by this plan is missing from it. The deadlines audit's F5 found two such issues; this plan has none. Open issues matching dependency vocabulary are #4824 and #4825, both in Future work by design; #4748, #4150, #3661, #5107 and #2114 are unrelated. #4910, the cluster-side walk, is closed and is recorded in Future work -- the audit must not re-derive it.
Decisions¶
-
The audit baseline is this plan's merge list, not
develop...HEAD. For each mergeMthe diff isgit diff M^1..M. The list is F3's table plus decision 2's merge:4c14523a7b,e6c0ba95a5,e5354766a4,6dde443468,fa6c8e1515,09becc1186,1e4cad5665. Seven ranges, run once each, findings pooled. No file-level restriction is needed: every range is wholly this plan's work or, for1e4cad5665, wholly its subject matter. -
#5099 is in the baseline. This is the question phase 5's row (h) left to this phase. It is in, for three reasons. The audit asks whether the dependency mechanism on
developis correct, and the mechanism ondevelopincludesrequire_success. No other phase or plan owns it -- its own commit message says so -- so excluding it means no audit ever reads it. And this plan's own documentation now describes it: #5099 wrote the "finishing is not the same as succeeding" paragraph intodocs/developer_guide/agent_operations.mdand phase 5's step 5d wrote the rest of that page around it, so the plan already owns the claims whether or not it owns the code.
This is the decision most likely to be argued with, and the counter-argument is real: #5099 is somebody else's pull request, produced by the automated issue-fix workflow, and a plan's audit that reaches into changes the plan did not write has no natural boundary. Three answers. The boundary is not authorship but the mechanism: #5099 changed the evaluator phase 2 built, in the files phase 2 wrote, to implement the opt-in phase 5 specified and filed. The deadlines plan's decision 2 set this precedent for three out-of-branch defect fixes on exactly this argument. And the asymmetry matters -- a false clean audit is worse than a wasted one, and #5099 is the single highest-risk range in the baseline, being 617 lines of evaluator change that no plan has reviewed.
- Both cross-repository halves are read, not changed, and not
cited. F5 established there is no audit to cite. Step 6f reads
git diff a2c9d0d1f4^1..a2c9d0d1f4inclient-pythonandgit diff b233e21^1..b233e21inclient-python-k3sagainst this repository's published contract. Nothing in either repository is edited from this phase; findings become issues there.
The questions are the contract ones, which no single-repository
reviewer sits on both sides of: does the client send only edge keys
the server accepts, and does the server's 400 vocabulary match what
the client raises on; does the client treat every terminal state
the server can now produce, abort included, as terminal; does the
plugin's degrade-without-the-capability path send genuinely no
depends_on, rather than an empty list the server may read
differently; and is require_success refused by the client in a way
a caller can act on, which is client-python#462 and is expected to
be confirmed rather than discovered.
-
Wave 2's judgment work runs as four parallel sub-agents, as
PUSH-AUDIT.mdspecifies and as the deadlines plan's decision 4 did.CLAUDE.md's Following plan files section authorises a plan step to fan work out. The Python footprint across the baseline is roughly 6,900 non-generated insertions, which is more than one session reads serially without losing resolution. -
The three documentation-only ranges get the documentation wave only. Phases 0, 4 and 5 contain no
*.py(F3). Sending 2a, 2b and 2d over them produces four confident reports that nothing is wrong with code that is not there, which is indistinguishable in a report from having looked. The code waves reade6c0ba95a5,e5354766a4,6dde443468and1e4cad5665; 2c reads all seven. -
Wave 1's exit condition is relaxed exactly as the deadlines plan's decision 5 relaxed it.
pre-commitandtoxrun against the working tree, which isdevelopplus this plan file, so a failure is pre-existing ondeveloprather than something this plan introduced. Record it, check it against the baseline's file list before dismissing it, and continue to wave 2. -
Phase 5's live proof is recorded as unmet and is not this phase's to meet. Per F6, it needs a code-bearing pull request through the k3s merge queue, which this phase cannot manufacture and should not fake with a
workflow_dispatchrun invented for the purpose -- that would prove the tier passes ondevelop, which is a weaker claim than the done-criterion makes, and phase 5 already declined to tick it on a weaker claim. The close-out commit writes theMergedcell with the item stated as unmet, and step 6g's disposition says what would settle it. -
This pull request carries the record; a follow-up pull request carries the fixes and completes the plan. An earlier draft of this decision said the plan reaches
Completehere, because a push-audit phase has no later phase to record its merge. Theimplement-phaseskill's push-audit section is more specific, and it is right: findings are fixed in a follow-up pull request, and that pull request records this phase's merge commit and marks the planComplete. With three blocking findings open, completing the plan in the same breath as reporting them would be false. So step 6g writes dispositions and leaves the planIn progress, and nothing outsidedocs/plans/is edited by this pull request. -
A clean heading is a result. If a wave 2 heading finds nothing, it says so in one sentence alongside what it actually examined. An audit which reports nothing under every heading is recorded as such rather than padded -- and given F4's one unreviewed range, a wholly clean result would itself be worth a second look.
Step plan¶
Steps 6b to 6e are independent and are launched together. Every step writes its results into this plan file under its own heading.
| Step | Effort | Model | Isolation | Brief for sub-agent |
|---|---|---|---|---|
| 6a | medium | sonnet | none | Wave 1, mechanical. Run pre-commit run --all-files and tox, recording output rather than asserting a result; per decision 6 a failure is presumed pre-existing on develop and does not stop the phase, but must be checked against decision 1's file list before it is dismissed. shakenfist/protos/database_pb2.py is in phases 1 and 2's ranges, so also run tox -e genprotos and git diff --exit-code shakenfist/protos. The baseline touches markdown in all seven ranges, so run tools/mermaid-lint.sh and check its exit status directly -- piping it through tail or grep reports the filter's status and turns every failure green. Then run PUSH-AUDIT.md's four style greps against each of decision 1's seven ranges. The survey predicts every grep is clean once two hits are attributed -- the generated database_pb2.py DESCRIPTOR line, and five plus one print( in tools/mutate-agent-dependencies.py -- so confirm that attribution rather than re-reporting the hits as findings. Write results under a Wave 1 heading. Commit subject: "Run the dependency plan wave 1 audit." |
| 6b | high | opus | none | Wave 2a, code quality. Read PUSH-AUDIT.md's 2a brief and apply it to the four code-bearing ranges only, per decision 5: e6c0ba95a5 (phase 1, schema, API parameters, capability token), e5354766a4 (phase 2, the dispatcher evaluator, cascade, settle, wait budget), 6dde443468 (phase 3, the CI suite's AGENT_OPERATION_FAILED_STATES and the functional test) and 1e4cad5665 (#5099, require_success). Spend your attention unevenly and deliberately: 1e4cad5665 is 617 lines of evaluator change that no phase of any plan has reviewed, which decision 2 argues is the highest-risk range in the baseline. Specific questions the survey raises for it: does require_success read a return code off every result that reports one, including results written after the dependency reached complete; is a dependency with no return-code-bearing result treated as success or failure, and is that the documented answer; does the nonzero-exit sentinel reach external_view() the way missing and unreadable do; and is the runs_after 400 refusal enforced at the same layer as phase 1's other edge validation rather than beside it. For phase 2, the known-adjacent defect class is #4910's -- a failed read conflated with a missing dependency, and failing open on an unknown state -- which was fixed on the agent side in phase 2's own review round; confirm it has not regressed and do not re-derive the cluster-side half, which is closed and in Future work. Findings go under 2a. Code quality with severity and file:line. Commit subject: "Audit the dependency code quality." |
| 6c | high | opus | none | Wave 2b, test review. Read PUSH-AUDIT.md's 2b brief, same four ranges as 6b. The plan ships a mutation-testing helper of its own, tools/mutate-agent-dependencies.py, added in phase 1 and extended in phase 2 -- read it first, then say whether the assertions it mutates are the ones that matter and whether anything phase 2 added is outside its reach. The specific question for #5099: require_success arrived through the automated issue-fix workflow, so ask whether its tests prove the behaviour or merely exercise it, and whether a mutant that inverts its zero-exit predicate would be caught. For phase 3, the functional tests live in shakenfist/deploy/shakenfist_ci/smoke_ci_tests/ and phase 3's plan records that an ordering test needs two instances or it asserts nothing, because one executor per instance serialises the queue regardless of edges -- confirm the landed test has two. Findings under 2b. Test review. Commit subject: "Audit the dependency test coverage." |
| 6d | high | opus | none | Wave 2c, documentation review. Read PUSH-AUDIT.md's 2c brief and apply it to all seven ranges, per decision 5; three of them are documentation only. The design question phase 4 set itself was which page owns each fact, across docs/developer_guide/agent_operations.md, docs/developer_guide/api_reference/instances.md, api_reference/agentoperations.md, docs/operator_guide/agent_operations.md and docs/operator_guide/database.md. Grade that: is any fact about settle_seconds, the wait budget, the cascade, the dependency_failure sentinels or require_success stated differently on two pages. Two known hazards from the survey. #5099 added its paragraph to the model page and left phase 4's fleet worked example asserting the opposite, which phase 5's step 5d repaired -- check nothing else in the page or the API reference still asserts the pre-#5099 reading. And the published client cannot send require_success (client-python#462), so any page instructing a reader to set it must say so; phase 5's step 5d added that caveat in one place, and the API reference is the place to check next. Findings under 2c. Documentation review. Commit subject: "Audit the dependency documentation." |
| 6e | high | opus | none | Wave 2d, security review. Read PUSH-AUDIT.md's 2d brief, same four code-bearing ranges as 6b. The surface this plan added is an edge naming another operation by UUID, which is an authorisation question: can a caller declare an edge on an operation in a namespace it cannot see, and does the refusal leak the difference between "does not exist" and "exists but is not yours". Phase 1 introduced namespace_owns() for exactly this and converted two of eleven open-coded sites; the other nine are #4887 and are out of scope -- confirm the two converted sites are the ones on the edge path rather than re-auditing the nine. Also: VALID_DEPENDENCY_OPERATIONS and the capability tokens, including #5099's, are a published-shape surface, so check a 400 is returned rather than a 500 for every malformed edge shape, and that the cascade to abort cannot be triggered across a namespace boundary by naming a foreign operation. Findings under 2d. Security review. Commit subject: "Audit the dependency security surface." |
| 6f | high | opus | none | The cross-repository contract. Per decision 3, and change nothing in either repository. Read git diff a2c9d0d1f4^1..a2c9d0d1f4 in /srv/kasm_profiles/mikal/vscode/src/shakenfist/client-python (PR #453) and git diff b233e21^1..b233e21 in /srv/kasm_profiles/mikal/vscode/src/shakenfist/client-python-k3s (PR #177) against this repository's published contract. Note F5: neither was push-audited and client-python has no PUSH-AUDIT.md, so there is no prior audit to defer to. The questions are in decision 3. Two specifics worth stating: AGENT_DEPENDENCY_KEYS in client-python's apiclient.py:246 is op_uuid and settle_seconds, and the normaliser raises on any other key around :361-366, which is client-python#462 -- confirm the shape of that refusal rather than rediscovering the gap; and the plugin's degrade path when a cluster does not advertise agentoperation-dependencies must send no depends_on at all, not an empty list, because the server's validation may read the two differently. File findings as issues in the repository they belong to and list them here under Cross-repository contract. Commit subject: "Audit the dependency client contract." |
| 6g | high | opus | none | Disposition, and close the plan. Management-session step, not a sub-agent delegation: pool every finding from 6a to 6f, grade each as blocking, advisory or not-a-finding, and write a disposition for each under a Disposition heading -- resolved here, filed as an issue, or declined with a reason. Per decision 9 a clean heading is a result and is recorded as one sentence naming what was examined. Then: record phase 5's live proof as unmet with what would settle it (decision 7); set phase 6 Complete in the master plan Execution table with no Merged cell and the plan's own status Complete; set docs/plans/index.md to Complete and 7 of 7; and run python3 tools/check-plan-status.py. If the audit found nothing anywhere, say so in one sentence and say that F4's unreviewed range is the reason that result deserves a second look. Commit subject: "Disposition the dependency plan audit." |
Risks and mitigations¶
- The audit reports clean because it read nothing. This is the
failure the range rule exists to prevent and it has a specific
trigger here: phase 5's blank
Mergedcell. Mitigation: the close-out commit lands first, and step 6a's first act is to confirm each of decision 1's seven ranges produces a non-emptygit diff --shortstatbefore any check runs. The management session checks that before launching 6b to 6e. - #5099's range is audited as though a phase had specified it.
Nobody wrote a plan for
require_success; it was produced from an issue body. Mitigation: 6b and 6c are told explicitly that it is unreviewed and that the usual assumption -- that a reviewer has already read it once -- does not hold. The management session treats a blocking finding there as expected rather than surprising. - A sub-agent edits another repository. Decision 3 forbids it and
step 6f repeats the prohibition, but the agent will have both trees
on disk and a natural fix in hand. Mitigation: the management
session runs
git -C ../client-python status --shortandgit -C ../client-python-k3s status --shortafter 6f and before committing, and expects both empty. - An issue filed from this phase is stolen by the automated
issue-fix workflow before it is read. The established failure mode
in this repository, and this plan has already been bitten by it
once: #5091 was filed by phase 5 and implemented by the autofixer
within hours, which is why decision 2 exists at all. Mitigation:
every issue this phase files carries
automated-fix-attemptedat filing time where the finding wants a design decision rather than a patch, and 6g records which issues were labelled and why. - Wave 1 fails for a reason unrelated to this plan and the phase stops. Mitigation: decision 6, with the file-list check before dismissal so a genuine regression is not waved through as pre-existing.
Definition of done¶
Each item is checkable, and the command is given where there is one. An item which cannot be checked is reported as such, not ticked.
- Phase 5 reads
Completein the master plan with aMergedcell naming both repositories. Check:grep -c '| 5 |.*Complete.*b233e21.*09becc1186'againstdocs/plans/PLAN-agent-operation-dependencies.mdreports1. - The phase 6 row no longer asks for an accumulated diff. Check:
grep -c 'over the accumulated diff' docs/plans/PLAN-agent-operation-dependencies.mdreports0. The looser grep onaccumulated diff of every phasereports1and always will, because the corrected row quotes the demand it replaced. - Phase 5's row no longer claims the k3s cluster tier runs on every
merge. Check: the row names run
46123979721and the wordskipped. - Every one of decision 1's seven ranges has a non-empty diff. Check:
for s in 4c14523a7b e6c0ba95a5 e5354766a4 6dde443468 fa6c8e1515 09becc1186 1e4cad5665; do git diff --shortstat $s^1..$s; doneprints seven non-empty lines. - Wave 1's four style greps are recorded for all seven ranges, with
the generated-file and
tools/attributions stated rather than reported as findings. tools/mermaid-lint.shwas run and its exit status recorded, not a filtered tail of its output.- Each of 2a, 2b, 2c, 2d and the cross-repository contract has a heading in this file which either lists findings or states in one sentence that it found nothing and what it examined.
- Every finding has a disposition: resolved, filed with an issue number, or declined with a reason. Check: no finding row has an empty disposition cell.
- Neither other repository was modified. Check:
git -C ../client-python status --shortandgit -C ../client-python-k3s status --shortare both empty. - Phase 5's live proof is recorded as unmet with what would settle it, and nothing in this file claims #179's merge run proved it.
- The master plan and
docs/plans/index.mdagree with each other and still readIn progress, per the corrected decision 8;Completeand7 of 7belong to the follow-up pull request. Check:python3 tools/check-plan-status.pyreports statuses, index arithmetic and phase links agree. pre-commit run --all-filespasses, andtox -e docsends incongratulationswith no warning naming a file this phase changed.
Findings¶
Wave 1 and the five wave 2 readers ran on 2026-11-29 (AEDT). Every verdict below was reproduced by the management session against the tree before it was written down; where a reader's claim did not survive that check, the entry says so.
Wave 1¶
Mechanical, over all seven ranges of decision 1. Clean.
- All seven ranges produce a non-empty
git diff --shortstat, checked first, because an audit that reports clean having read nothing is this phase's first risk. The seven lines are 3, 37, 31, 6, 11, 3 and 20 files changed. pre-commit run --all-files: exit 0, every hook.tox: exit 0 in 337 s.py3,flake8andcoverall OK; 9,023 tests, 8,761 passed, 262 skipped, 0 failed.tox -e genprotosthengit diff --exit-code shakenfist/protos: exit 0. The checked-in stubs are current.tools/mermaid-lint.sh: exit 0, status read directly rather than through a pipe. Two files linted, both ok.- The four style greps are clean across all seven ranges once two
hits are attributed: one over-120-character added line in each of
the phase 1 and phase 2 ranges, both the generated
DESCRIPTORline ofshakenfist/protos/database_pb2.py; and six addedprint(calls, five in phase 1 and one in phase 2, all intools/mutate-agent-dependencies.py, where stdout is the interface. No addedetcdreference and no untaggedmariadb.get_all_*anywhere, so the blocking pushdown rule has no candidate in this plan at all. - No added
TODO,FIXME,HACK,XXX,# noqa,# type: ignoreorpragma: no coverin any range.
The 262 skips are the live-MariaDB tier and a promtool check. Step
6c established that this is not a coverage hole: that tier does run in
CI, in the schema-enum-widening job of functional-tests.yml, whose
path filter includes shakenfist/mariadb.py, shakenfist/schema/**
and shakenfist/tests/test_mariadb_*_live.py, all of which phases 1
and 2 touched.
2a. Code quality¶
BLOCKING -- _dependency_succeeded() conflates a failed read with
an absent row. shakenfist/daemons/sidechannel/main.py:2218, in
5099's range. The method's contract is its return shape,¶
(readable, succeeded), and it cannot honour it:
mariadb.get_agent_operation_attributes() returns None both for a
row that is absent and for a call that failed --
_grpc_get_agent_operation_attributes catches grpc.RpcError and
returns None, and the direct path returns None when
fetchone() finds nothing. _dependency_succeeded() maps both to
return False, None, which is the sentinel for unreadable.
This is the defect class phase 2 introduced get_state_checked()
(shakenfist/mariadb.py:5702, with its _direct_ and _grpc_
halves at :4998 and :5285) specifically to avoid, re-introduced
on the same fate-sharing path one phase later. There is no
get_agent_operation_attributes_checked, so the established pattern
was available and unused.
Failure scenario: operation A completes and the dispatcher caches
complete for it while evaluating some other operation's edge; the
caller deletes A, and AgentOperation.delete() drops the attribute
row before the state becomes deleted; operation B, which declared
depends_on A with require_success, reaches its queue head, is
handed the cached complete, finds no attribute row, and is held for
the whole 300-second dependency wait before aborting with
dependency_failure.state of unreadable -- a sentinel documented
as telling a client to look at its node's database connectivity. A
correct read would have cascaded immediately on deleted, which is
in DEPENDENCY_FAILED_STATES.
Reachability, which belongs with the severity: no published client
can send require_success, so this cannot be reached on a real
cluster today. It is blocking in the code and latent in practice,
and that is exactly the state in which it is cheapest to fix.
BLOCKING -- two production comments say nothing evaluates the edge
lists, three phases after the evaluator shipped.
shakenfist/schema/agentoperation_data.py:88 reads "Nothing
evaluates either list yet. An operation created with edges today is
dispatched exactly as one created without them", and
shakenfist/operations/agentoperation.py:253 says the same in
prose. Phase 2 is the evaluator and touched neither file. Both are in
production code rather than documentation, so the next reader of the
mechanism is told the opposite of the truth at the point of
definition.
Worth recording why this was available to find: phase 2's own step 2f brief named five such claims and said to "grep for the shape rather than trusting this list". The grep was not done, and repeating it now returns exactly these two.
ADVISORY -- the dependency success cache is written
unconditionally. main.py:2226. Its twin _dependency_state()
caches only if value in AgentOperation.TERMINAL_STATES
(:2183). The docstring's safety argument is an invariant held by
the caller and never checked at the write. The key is op_uuid
alone, without the mixed-type-ambiguity note the twin carries at
:2168. A later caller -- #4824's mixed-type edges, or a
require_success variant on runs_after -- would permanently cache
a premature verdict for the dispatcher generation.
ADVISORY -- the nonzero-exit cascade audits the wrong event.
main.py:2426 calls self._cascade_abort(agentop, dep,
DEPENDENCY_NONZERO_EXIT) with no event, so it takes the default
CASCADE_EVENT_FAILED, 'operation aborted by failed dependency'
(shakenfist/operations/agentoperation.py:32). The dependency did
not fail; it completed with a non-zero exit, which is the entire
point of the new sentinel. The branch immediately above it does pass
an explicit event, so the omission is local rather than systemic.
Phase 2's own docstring for that parameter says an event claiming
otherwise "is what an operator's alerting would key on". A third
constant is the fix.
ADVISORY -- cascade_abort_for_dependency() can leave
dependency_failure written after a failed transition.
shakenfist/operations/agentoperation.py:609-633 writes the field
before attempting self.state = STATE_ABORT and, when that raises
InvalidStateException, audits the no-op and leaves the field
behind. agentoperation_attributes.py:95 says the field is NULL
unless the cascade happened. Scenario: the node-local reaper expires
the operation between the terminal guard and the write, and the
operation finishes expired while carrying a dependency_failure
claiming a dependency aborted it. Clearing the field in the except
arm is a one-line fix.
ADVISORY -- shakenfist/daemons/sidechannel/main.py is now 2,892
lines, from 2,266 before phase 2. The evaluator is a drawn seam
already: its constants, three caches and six methods have one entry
point and no coupling to the monitor or executor classes beyond three
dictionaries. Neither phase 1's nor phase 2's plan records a reason
to keep the file whole.
Clean, with what was examined. The three-layer database pattern:
phase 2's get_state_checked has the full trio and reuses the
existing GetObjectState RPC, so no new counter or proto message was
owed. The cached-FK-list rule: depends_on and runs_after are
caller-declared edge dictionaries with no child table and no
mutators, and are validated on read as well as write. The repeated
five-line block at the three creating endpoints copies the
pre-existing agent_operation_timing() shape at the same three sites
and is house style. Python floor, typing, comment proportion and
plan-citation conventions: all clean across the four ranges. And
4910's defect class has not regressed on the agent side: a¶
failed read holds, absence is distinguished and cascades missing,
and an unrecognised state is named rather than fallen through;
5099's new branch preserves that shape, which is what makes the¶
blocking finding above a narrow slip rather than a pattern.
2b. Test review¶
The headline is a negative result, and it is the right one to lead
with: require_success's tests prove its core predicate rather
than merely exercising it. A mutant inverting the zero-exit test is
caught by test_a_zero_exit_dispatches_on_a_require_success_edge,
and all to any is caught by its neighbour; both directions are
pinned, along with settle ordering, runs_after being ignored, and
the unreadable-blocks and unreadable-past-budget branches. For a
range no human reviewed, that is a better result than this phase
expected.
Of ten mutants, seven were killed. All three survivors are in
5099's code, and all three are branches it added without a test:¶
- ADVISORY the
dependency_success_cachecap atmain.py:2226has no eviction test; replacing_remember_capped(...)with a plain assignment survives. The identical cap onruns_after_warningsand onterminal_dependency_cacheboth have one. This is the unbounded-growth class a previous fix in this repository was written to close. - ADVISORY the
isinstance(result, dict)filter at:2222has no test; dropping it survives, because no test supplies a non-dict result.add_result()always writes dictionaries, so the filter is defensive -- but if a legacy or hand-written row exists, dropping it raisesAttributeErrorinside_dependencies_met(), called from the dispatch loop, whose blast radius is every instance's dispatch on that node. - ADVISORY the cache's
Falsepath at:2214is untested;if cached is not None:toif cached:survives. Read amplification only, not a wrong answer, but it is the branch that matters for the shape #5099 exists for.
ADVISORY -- the plan's own mutation helper counts a timed-out
mutant as LIVE. tools/mutate-agent-dependencies.py:468-474
computes killed = result.returncode != 0 and then reports
'KILL' if killed and named else 'LIVE'; on a timeout kill the
expected phrase is absent, so a mutant that hung -- which is what a
removed loop guard does by design -- is recorded as surviving. That
inverts this project's convention. Two further hazards in the same
tool: its stdout is block-buffered, so a long run shows nothing until
it finishes, and it edits the shared checkout in place. The second is
documented in its own header, which warns against running it
alongside anything else "and that includes pre-commit, whose stash is
repository wide" -- see the execution notes, where it cost this phase
a run.
ADVISORY -- the CI suite's copy of the terminal-state list is
pinned by nothing. shakenfist/deploy/shakenfist_ci/base.py:1678
holds AGENT_OPERATION_FAILED_STATES, one of three hand-maintained
copies of the server's AgentOperation.TERMINAL_STATES, and the
comment above it says nothing enforces any of them. The copy itself
is justified, because that module imports no server code. But this
repository already has the precedent for pinning such a copy without
importing it: test_cluster_operation_state_lists.py AST-parses for
the assignment. Scenario: a terminal state is added, the server,
client and plugin copies are updated, the suite's is missed, and
every dependency test that reaches it burns its full wait window and
reports a timeout -- the exact failure the comment says adding
abort fixed. This is the cheapest high-value fix the audit found.
ADVISORY -- require_success has no functional coverage and cannot
have any, because it is unreachable from the published client. This
is structural rather than a defect, and it is the honest answer to
"which functional test proves this field works": none, and none can
until client-python#462 closes.
ADVISORY -- test_ci_agentop_waiters.py covers two of the four
suites that call a waiter, so a leaf-class shadow in the smoke or
guest test_agentops.py would be missed. The original bug it was
written for is caught; the name over-reaches.
ADVISORY -- the sentinel wire literals are pinned asymmetrically.
'missing' is pinned as a literal; 'unreadable' and
'nonzero-exit' are referenced only through their constants, so
renaming one of those values to a novel string breaks the documented
contract with no test failing. Changing one to collide with another
is caught, by the distinctness assertion.
Clean. Phase 3's ordering test does use two instances, with a comment recording the one-executor-per-instance reasoning, and its sibling deliberately uses one for the inverse case. The new-test counts per range are 44, 79, 5 and 18, verified. No behaviour of this plan is covered only by a test that skips in CI.
2c. Documentation review¶
BLOCKING -- the release note contradicts itself on this plan's
central fact. docs/release_notes/v07-v08.md:2263 says
"depends_on is fate sharing. The new operation runs only if the
operation it names succeeded." Sixty-eight lines later, at
:2331, the same file says "A depends_on edge is satisfied by a
dependency which finished, not by one which succeeded". The second
paragraph was added by #5099, which also corrected the model page's
wording from "succeeded" to "finished" -- and left the release note's
own summary bullet asserting the thing it came to correct. "Finished"
is what the code does. A release note is the most-read artifact a
feature has, and this one states the misconception the whole of phase
5 was spent correcting.
ADVISORY -- the model page's command-list claim is wrong for a
non-zero exit. docs/developer_guide/agent_operations.md:77 says
"An operation carries a list of commands, and that list does abort at
the first failure." _abort_commands_if_terminal() drops the
remaining commands only for STATE_ERROR and STATE_EXPIRED; a
command that runs and exits non-zero causes neither, so the list runs
on. The paragraph defining a non-zero exit as a result rather than a
failure sits twenty lines below, so a reader arriving in order is
misled and a reader who finishes the section is not.
ADVISORY -- the canonical worked example makes the same claim.
agent_operations.md:256 says the edges buy "that the script is not
executed when the upload failed, and that nothing tries to fetch a
report which was never written". The second clause is wrong: the
chain is instance_put_blob, then
instance_execute('/tmp/collect.sh > /tmp/report.txt'), then
instance_get('/tmp/report.txt'), and a collect.sh which runs and
exits non-zero completes its operation, so the fetch does run and
does ask for a report that may never have been written. This is the
identical defect phase 5's step 5d repaired in the fleet example
eighty lines below; the repair was not carried back to the example
the page opens with. The first clause depends on whether a failed
put-file errors its operation, which this phase did not establish and
does not assert.
ADVISORY -- the require_success-unreachable caveat exists in
exactly one place. It is at agent_operations.md:339, on the fleet
example. It is absent from the field's own contract at
api_reference/instances.md:1134-1150, which tells a reader to "Omit
it, or send false"; from the model page's own require_success
paragraph at :103, which says only "a client which knows the key"
and leaves a reader to assume one exists; and from the release note.
ADVISORY -- ARCHITECTURE.md's "Where the detail lives" table
gained no row for the new model page. mkdocs.yml carries it, and
the table's own escape clause makes this declinable.
Clean, and this is the result phase 4 was graded on: no fact is
stated two different ways. settle_seconds and its ceiling, the
wait budget and its asymmetric exhaustion, the cascade, the three
dependency_failure sentinels and require_success were compared
across all five pages that carry dependency facts and then confirmed
against the code behind each. The only divergence found anywhere is
the release note above. state_machine.md matches
AgentOperation.state_targets exactly -- 27 transitions on each
side, counted rather than read, which is where the deadlines plan's
audit found a miscount. No added line in any range cites a plan,
phase, decision or step. AGENTS.md, ARCHITECTURE.md and
README.md are untouched by all seven ranges, and nothing in them
was owed. Migration guidance for the attributes version 6 bump is
present and correct. Every internal anchor in the seven affected
pages resolves.
One restatement cluster is worth naming without being a defect: the
budget-anchoring fact appears on five pages plus config.py, and the
settle ceiling on four. All agree. That is the largest maintenance
hazard phase 4's ownership design left behind.
2d. Security review¶
No blocking findings. The authorisation question -- which is the one this surface raises, since an edge names another operation by UUID -- is answered correctly and is explicitly tested.
All three creating endpoints make the identical
api_base.agent_operation_dependencies(depends_on, runs_after,
request_namespace()) call, each behind the ownership and active
decorators and each before anything is created. request_namespace()
is the token's namespace, not the request body's, so the body cannot
launder a caller namespace. The refusal is one message for all three
reasons from one branch, with the lookup's failure audit suppressed
so neither branch writes an event, and a test asserts the three
bodies are byte-identical to each other. The cascade aborts the
dependent, never the dependency, and a dependent is only ever
created by the caller who named the edge, so one namespace cannot
abort or observe another's operation through it.
ADVISORY -- a system-created edge can disclose a foreign
namespace's operation to an ordinary tenant. A system caller may
name an operation in any namespace, while the new operation's
namespace is the instance's. So an operation in namespace X can
carry an edge to one in Y, and X's own callers then read Y's
operation UUID from depends_on and its coarse outcome from
dependency_failure.state. By design, and it requires a system
caller to create such an edge deliberately -- but the recipient of
the disclosure is an ordinary tenant, which the docstring does not
say out loud.
ADVISORY -- the published description over-promises the
runs_after refusal. The parameter description, and
api_reference/instances.md:1146, say a runs_after edge "which
carries this is refused with a 400". The guard at
shakenfist/external_api/base.py:919 is
if name == 'runs_after' and dependency.require_success, a
truthiness test, so an explicit require_success: false on a
runs_after edge is accepted and stored. Benign in effect, since
false is the default; the published contract is simply not what the
code does.
ADVISORY -- the edge lists fail open across an sf-api/sf-database
version skew. A new sf-api against an older sf-database answers 200
and stores empty edge lists while still advertising the capability,
which this repository documents. The failure direction is permissive:
an operation the caller gated runs ungated. It is observable, because
the echoed depends_on comes back empty, and the remedy is the
documented deploy order, so this is an operator-guide hazard rather
than a defect. require_success itself is not exposed to it, since
5099 added no proto field and rides inside the existing JSON.¶
Malformed input: 400, never 500. Twenty-nine edge shapes and four
list-level shapes were exercised against the real model -- non-list
lists, over-length lists, non-mapping edges, empty dictionaries,
unknown and non-identifier keys, self/cls keys, every wrong type
for op_uuid, bool/NaN/Inf/negative/string/dict settles, a settle
over the ceiling, wrong types for require_success, that key on a
runs_after edge, and a foreign op_type. None produced a 500. Two
lax coercions are deliberate and swept by #5099's own boolean tests.
A self-referencing edge is unconstructible because the dependency
must already exist and the new UUID is server-minted; a duplicated
edge is idempotent in both walks; cycles remain impossible because no
path adds an edge to an existing operation.
Denial of service: bounded. The hold on an instance's queue head is anchor plus budget plus settle, and the anchor is one per operation rather than per edge, so a long chain cannot stack settles. A settle at the published ceiling gives exactly twice the budget, which is what the ceiling was chosen for. A dependency that never reaches a terminal state hits the pending arm and then the budget. An unknown future state has its own named arm. The anchor is cleared only by a retry, which requires a prior dispatch, so a blocked operation never resets it; the worst case is three attempts at twice the budget, further capped by the caller's deadline. A blocked operation holds no thread, no executor and no lock. Nothing is keyed by caller-supplied data without a bound: the three caches are capped and reset per dispatcher generation, and the edge columns hold at most 64 validated entries each. No SQL interpolation, no subprocess, no path construction and no credential in any new event.
Cross-repository contract¶
Read-only, per decision 3. Neither client repository was modified;
both were confirmed clean before and after. There was nothing to
cite, as F5 predicted: client-python has no PUSH-AUDIT.md and
phase 5 never ran the one client-python-k3s has.
abort as a terminal state: clean. The client's
TERMINAL_AGENT_OPERATION_STATES is byte-for-byte the server's
AgentOperation.TERMINAL_STATES, and the await path raises
AgentOperationFailed on any terminal state that is not complete.
The failure mode phase 3's plan described -- poll to the deadline,
return the aborted operation, then report a timeout about an
operation whose timeout was never the problem -- is closed, with a
test.
The plugin's degrade path: clean, and the hazard this phase
suspected does not exist. client-python-k3s builds an empty
keyword dictionary and expands it, so the keyword is genuinely
absent rather than an empty list. The server reads the two
identically in any case, and the client returns early on either, so
an empty list would never reach the wire.
The capability negotiation: clean. client-python raises and the
plugin degrades, each as its own documentation says. The
200-with-dropped-edges hole, which no capability token can detect, is
genuinely closed: the client compares the edge UUIDs it sent against
those echoed by the creating call, on all three creating helpers,
before awaiting, and deletes the created operation on a mismatch.
Both sides render canonical lower-case, so the comparison cannot
false-positive on case, and a test pins that. Nineteen tests cover
it.
Four findings, all in the client repositories, all to be filed there -- see the disposition.
Disposition¶
Every finding has one. Per the implement-phase skill's push-audit
section, findings are fixed in a follow-up pull request after
this audit merges; that pull request records this phase's merge
commit and is where the plan reaches Complete. Nothing in this
pull request changes code or documentation outside docs/plans/.
The follow-up has landed, and the Outcome column is its record.
Three blocking and eleven advisory findings were fixed, four were
declined in writing -- three of them with an entry in the master
plan's Future work, and finding 19 in this table alone, per the
escape clause in the table it was raised against -- and the four
client-repository issues stay filed there. Two dispositions were
reversed on the evidence, which is the part of this table worth
reading twice: finding 6 was fixed in the published wording rather
than in the guard, and finding 9's third item turned out to be
resolvable structurally rather than by a test. Both are argued in the
rows themselves.
| # | Severity | Where | Disposition | Outcome |
|---|---|---|---|---|
| 1 | Blocking | sidechannel/main.py:2218, read conflation in _dependency_succeeded() |
Follow-up pull request. Needs a get_agent_operation_attributes_checked direct/gRPC/public trio, matching get_state_checked. Latent today, because no published client can send require_success |
Fixed. The trio exists, _dependency_succeeded() became _dependency_outcome() returning one of four OUTCOME_ verdicts, and an absent row now cascades missing at once instead of being held for the budget and blamed on database connectivity. Two tests fail on the old conflation, confirmed by mutation |
| 2 | Blocking | release_notes/v07-v08.md:2263 contradicts :2331 |
Follow-up pull request. One word, and the most-read artifact the feature has | Fixed. "succeeded" to "finished" at :2263 |
| 3 | Blocking | agentoperation_data.py:88, agentoperation.py:253 |
Follow-up pull request. Both comments are false and sit at the point of definition | Fixed. Both now say where the evaluation happens |
| 4 | Advisory | main.py:2226, success cache written unconditionally and its cap untested |
Follow-up pull request, with finding 9's test | Fixed. The write is guarded by the dependency being in the terminal cache, which checks the invariant the docstring asserts of its caller, and the key carries the mixed-type note its twin has |
| 5 | Advisory | main.py:2426, nonzero-exit cascade audits CASCADE_EVENT_FAILED |
Follow-up pull request. A third constant | Fixed. CASCADE_EVENT_NONZERO_EXIT, with a test pinning that neither other text is emitted |
| 6 | Advisory | base.py:919, require_success: false accepted on a runs_after edge |
Follow-up pull request. Fix the published wording or the guard, not both | Fixed in the wording, and the disposition reversed. The guard is right: test_an_explicit_false_require_success_is_accepted_anywhere pins the lax behaviour on purpose, because an explicit false is what an omitted field already means, so an ordering edge sending one is not asking about an outcome. The published description and the API reference said any runs_after edge "which carries this" was refused; both now say one which asks for success is |
| 7 | Advisory | agentoperation.py:609, dependency_failure left written after a failed transition |
Follow-up pull request. One line in the except arm | Fixed. The except arm clears the field before auditing. An UPDATE ... WHERE uuid matches nothing once delete() has removed the row, so it cannot resurrect one |
| 8 | Advisory | main.py is 2,892 lines; the evaluator is a drawn seam |
Declined for this plan. Recorded in Future work; this repository has no ratchet and splitting a daemon is not an audit's work | Declined, and now actually in the master plan's Future work, which the audit said without doing |
| 9 | Advisory | Three untested branches in #5099: the cache cap, the isinstance filter, the cache's False path |
Follow-up pull request. Three tests | Two fixed, one resolved structurally. The cache cap and the isinstance filter have tests, both confirmed by mutation. The cache's False path cannot be tested any more and does not need to be: the verdicts are four non-empty strings, so the falsy-cache hazard is unwritable, and a mutant of if cached is not None: was confirmed to survive for that reason rather than for want of a test |
| 10 | Advisory | tools/mutate-agent-dependencies.py:468, a timed-out mutant reported LIVE |
Follow-up pull request. It inverts the project's convention, and this phase was bitten by the tool's other two hazards | Fixed. A timeout exit of 124 counts as killed and says so, the verdict prints are flushed, and the mutant set went from 42 to 47 for the guards this follow-up added. Its moved anchor was updated, which is the hazard the tool's SKIP verdict exists for |
| 11 | Advisory | shakenfist_ci/base.py:1678, the terminal-state copy is pinned by nothing |
Follow-up pull request. The AST-parse precedent already exists in this repository | Fixed. test_agent_operation_state_lists.py, which AST-parses the suite's copy and compares it with the server's terminal set, and spells that set out so a state added to the server fails here too |
| 12 | Advisory | agent_operations.md:77 and :256, the command-list claim and the canonical example |
Follow-up pull request. The example's first clause is not asserted | Fixed. The command-list paragraph now says the drop happens on error or expiry, and the worked example says what the edges buy and what they do not. The first clause is still not asserted |
| 13 | Advisory | The require_success-unreachable caveat is in one place of four |
Follow-up pull request | Fixed. The caveat is on the model page's own paragraph, the API reference's field contract and the release note, as well as the fleet example it was already on |
| 14 | Advisory | A system-created edge discloses a foreign namespace's operation to a tenant | Follow-up pull request, as one sentence of documentation. By design, but unsaid | Fixed. Said out loud in the helper's own comment, where the system branch is |
| 15 | Advisory | Version-skew fail-open on the edge lists | Declined as a defect, recorded as an operator-guide hazard in Future work. Observable, and the remedy is the documented deploy order | Declined, and in the master plan's Future work with the reason and where it belongs |
| 16 | Advisory | test_ci_agentop_waiters.py covers two of four waiting suites |
Follow-up pull request | Fixed. The waiter list is four suites rather than two, and a new test derives the set from the suite tree so it cannot fall behind again |
| 17 | Advisory | Sentinel wire literals pinned asymmetrically | Follow-up pull request | Fixed. All three sentinels pinned as literals |
| 18 | Advisory | require_success has no functional coverage and can have none |
Declined. Structural, and it resolves when client-python#462 does. Recorded in Future work | Declined, and in the master plan's Future work |
| 19 | Advisory | ARCHITECTURE.md has no row for the model page |
Declined, per that table's own escape clause | Declined, unchanged |
| C1 | Blocking, this plan's own | Four merge hashes in decision 1, F3 and the Definition of done did not resolve | Fixed at source in this phase. Found independently by steps 6b, 6c and 6d | Unchanged. Fixed at source in the audit itself |
| C2 | Correction | The master plan's Future work says nine ownership sites remain open as #4887 | Fixed at source in this phase. They were swept by 99f78d1ab8, and #4887 is closed |
Unchanged. Fixed at source in the audit itself |
| C3 | Correction | Decision 8 said the plan reaches Complete in this pull request |
Fixed at source in this phase. The follow-up pull request completes it, which is also the only honest order while findings are open | Unchanged. Fixed at source in the audit itself |
| I1 | Advisory | client-python: a non-finite settle_seconds is accepted, and a TypeError escapes for a non-list |
Filed as client-python#465. Same-day patch, no decision needed | Unchanged. Stays open in that repository |
| I2 | Advisory | client-python: the chain walk knows two of three dependency_failure sentinels |
Filed as client-python#466. Coupled to adopting require_success, so the issue says it wants a decision rather than a same-day fix |
Unchanged. Stays open in that repository |
| I3 | Advisory | client-python: AGENTS.md calls the 64-edge limit deployment configuration; it is a published constant |
Filed as client-python#467. Documentation patch | Unchanged. Stays open in that repository |
| I4 | Advisory | client-python-k3s: execute_and_await() can refuse after all, on a half-upgraded cluster |
Filed as client-python-k3s#183. A deliberate inversion of client-python's choice, so the issue hands the call to whoever owns that method |
Unchanged. Stays open in that repository |
The audit's overall result¶
Not clean, and the single most consequential finding is in the range this phase was contested for including. Decision 2 put #5099's 617 lines in the baseline over the objection that they are somebody else's pull request; finding 1 is in them, and no phase of any plan owns that code, so excluding it would have left a read-conflation defect on the fate-sharing path unreviewed for as long as the field stayed unreachable. That is the decision's justification, and it is worth recording that the argument was tested rather than merely asserted.
Three blocking findings, sixteen advisory, four issues for the client
repositories, and three corrections to this plan's own text. The
documentation grade phase 4 set itself -- no fact stated two
different ways -- is met everywhere except the release note.
require_success's own tests prove its core predicate in both
directions, which for an unreviewed range produced by an automated
workflow is a better result than this phase expected.
Execution notes¶
-
2026-11-29 (AEDT). Step 6a ran first and alone, because
PUSH-AUDIT.mdgates the judgment spend on wave 1 passing and because it is the only step that writes to the worktree. Steps 6b to 6f then ran in parallel as five read-only readers. None of them wrote to the repository: the management session wrote the record above, which is this phase's deliverable, and reproduced every verdict against the tree before recording it. -
Four merge hashes in this plan did not resolve, and three separate steps caught it. Decision 1, F3's table and the Definition of done gave
e6b0ba95a5,6cde443468,fa6b8e1515anda57e5b06a6; the real merges aree6c0ba95a5,6dde443468,fa6c8e1515anda57e5b06b6. Fourteen occurrences, corrected at source. The Definition of done's seven-range loop would have printedfatal: unknown revisionon four of seven, and the audit's baseline -- the thing this phase exists to get right, having found the old row's baseline untakeable -- was itself unusable as written. Wave 1 was unaffected because its brief carried the correct hashes rather than reading them from this file, which is luck rather than design. The loop now prints seven shortstat lines. -
A mutation was live in the shared worktree while three readers were reading it. Step 6c ran mutation tests in place, against its brief. Two different live mutations were seen from outside --
alltoanyin therequire_successpredicate, and the edge-list bound replaced withif False:-- and the step was stopped and told to restore. It did. Both files are byte-identical toHEAD,git status --shortshows only this plan file, and no.pycexisted for either module, so no result is bytecode-confounded.
The more useful half of the story is that the second mutation was
not hand-rolled: it was tools/mutate-agent-dependencies.py, this
plan's own shipped helper, which edits the tree in place by design
and says so in its header -- including a warning not to run it
while anything else is working in the same worktree, "and that
includes pre-commit, whose stash is repository wide". Finding 10
records its two other hazards. Step 6c's own ten-mutant run
completed before the helper started and was re-derived by reading,
which agreed with the measurement in all ten cases; the helper's
run produced no output at all, because its stdout is
block-buffered, so this phase makes no claim about whether the
shipped mutant set -- 48 entries when this was written, and growing
with each guard a review round adds -- still passes after #5099.
-
One premise this phase put in a brief was stale. Step 6e was told that the nine open-coded ownership sites were out of scope as issue #4887. They were swept by
99f78d1ab8, "Call namespace_owns() at every ownership site", five commits after phase 1, and #4887 is closed. The master plan's Future work still described them as open and is corrected at source. The brief's instruction was harmless -- the step confirmed the two sites on the edge path, which is what was wanted -- but a brief's premises are the management session's to check, and this one was not. -
Decision 8 was wrong about where the plan reaches
Complete. It said this phase's own pull request, citingPUSH-AUDIT.mdand thenext-phaseskill. Theimplement-phaseskill's push-audit section is more specific: findings are fixed in a follow-up pull request, and that pull request records the audit phase's merge commit and marks the planComplete. That is also the only honest order while three blocking findings are open. Corrected at source, and the Definition of done no longer asks for7 of 7here. -
Wave 1's skip caveat was refined by step 6c. Wave 1 reported 262 skipped tests, the live-MariaDB tier and a
promtoolcheck, and flagged them as coverage that did not run. That tier does run in CI, in the schema-enum-widening job, whose path filter includes three paths phases 1 and 2 touched. The one real reach gap is that phase 2'sdependency_wait_startedwire round-trip is covered only by that tier and has no mutant in the shipped set. -
The reservation label was not needed, and was not created. Step 6f proposed labelling the two decision-wanting issues
automated-fix-attempted, which is this repository's way of stopping the automated issue-fix workflow taking an issue that wants a human. That label exists in neither client repository, and neither runs the issue-fix workflow, so there is no autofixer to reserve against and nothing to label. No label was created in either repository; the two issues say in their own text that they want a decision rather than a same-day fix. -
Phase 5's live proof is still unmet, and this phase cannot meet it. Decision 7 said so in advance and nothing changed it: the
client-python-k3scluster tier is path-gated, so the only candidate run sinceb233e21landed -- the merge-queue run for that repository's #179, which was documentation only -- reported overall success withCluster deploymentskipped. The first pull request which touches code in that repository and goes through its merge queue settles it.
Back brief¶
Gates, in the order they arise.
- Decision 2 is the gate worth agreeing before any agent runs.
Including #5099 is the judgement call this phase exists to make and
it is the one that costs: it is the largest unreviewed range in the
baseline, and a blocking finding in it lands on a plan that is
otherwise finished, in code the plan did not write. If Michael
would rather the audit stop at the plan's own phases and
require_successbe audited by whatever eventually adopts it, say so before step 6a -- the baseline shrinks to six ranges, decision 5 leaves only three code-bearing ones, and 6b, 6c and 6e get materially cheaper. - Decision 3's scope, before step 6f. Reading two other repositories and filing issues in them is a bigger reach than "audit this repository" implies, and F5 means it cannot be discharged by citation. The deadlines plan did exactly this at its step 8g, so the precedent is established rather than novel -- but it is still the second-most arguable decision here.
- The report from 6g, before the plan is set Complete. A plan
reaching
Completeis the point after which nobody reads it again, so the disposition of every finding should be agreed rather than assumed.