Skip to content

fleet i162: idle fingerprint for the fleet mission (D-FLEET-49) - #2580

Merged
sunholo-voight-kampff merged 12 commits into
devfrom
fleet/i162-fleet-idle-fp
Dec 2, 2026
Merged

sunholo-voight-kampff merged 12 commits into
devfrom
fleet/i162-fleet-idle-fp

Conversation

@sunholo-voight-kampff

Copy link
Copy Markdown
Collaborator

Fleet iteration 162 builds D-FLEET-49 = A (Mark, attended 2026-12-01): an idle fingerprint for the fleet mission. A fire whose inputs match the last judged-NONE fire now exits before any probe or controller.

Stacked on #2578 (fleet/i161-mktemp-guard), because the two share make/test.mk, test_mission_idle_fingerprint.sh and the new temp-path guard. This PR contains #2578's commits, so merging it lands both. Both are blocked on dev's inherited required checks red, which is make check-planned-status on an attended finetune doc and is not from this PR.

What changed

  • tools/launchd/lib/idle-fingerprint.sh gains a MISSION_NAME=fleet arm. It hashes:

    • the open-ticket set (signature, slots_lost, last_seen);
    • ledger statuses from the charter on origin/dev;
    • allowlisted directives on the current and previous bookkeeping issue;
    • the unread mission-fleet inbox;
    • dev's required-check verdicts: the newest completed verdict per classic-protection context, over at most 8 first-parent tips, so a pending tip does not flip the hash.

    It has no head input and no nightly-rig input. Any failed read prints no fingerprint and fails open. The product arm's rows and output are unchanged.

  • tools/launchd/mission-control.sh: the fleet now runs the shared MISSION IDLE PRE-CHECK and SNAPSHOT blocks, after its ticket count, so zero tickets still exits first. The triage, dry-run and work-item exclusions are kept, as is the 24 h expiry.

  • Gate 5 IDLE RECORD (both skill copies, byte-identical): the fleet records only a NONE pick sustained by the independent judge, with no fleet PR left open. The one exception is a PR blocked only on dev's required red.

  • Tests are in test_mission_fleet_idle.sh (12 arms; helper and driver), all temp paths go through the fleet i161: launchd suites fail loudly when mktemp fails (D-FLEET-50) #2578 guard, and there is a changelog fragment.

Verification

  • make test-launchd-drivers: 65/65 on the base and on the candidate. Per-file bash -n and shellcheck -S error are clean. check-context-docs, check-skills, check-changelog, check-file-sizes and shellcheck-autopush return rc 0.
  • Live read-only smoke on the rig: tickets=21 ledger=50 open=2 directives=0 inbox=62 required=5 red=1, stable across reads, 3 s, no state written.
  • Mutation drills: 6 planned drills plus 15 of the judge's own. Every non-equivalent mutant is now red.
  • Independent judge (sonnet; generator was codex plus an opus controller): PASS 82 → 86.

Evidence for the plan, directives, gates, drills and judge is in design_docs/fleet-mission-evidence/iteration162/, which arrives with the iteration record.

🤖 Generated with Claude Code

sunholo-voight-kampff added a commit that referenced this pull request Dec 2, 2026
…-credits-exhausted resolved; PRs still blocked on dev's inherited checks red [ADMIN]

Iteration 163 resolved one ticket in the D-FLEET-46 = A class as bookkeeping. With codex headroom
back at 4.9pp, the live 1-seat quorums seated both OpenAI seats on the codex subscription at $0
(gpt-6.2-sol, and gpt-6.2-astra after the judge objected). Fix 41c628b is on origin/dev. The
independent sonnet judge voted RESOLVE 88%.

The resolve's --sha was hand-typed and invalid. A correction naming the full SHA went to both
filing inboxes. Nothing in the code changed.

The record adds the log entry, a STATUS stamp (160 rotated to the archive), the dashboard, an
index row and evidence under design_docs/fleet-mission-evidence/iteration163/. PR #2580, which
carries #2578, still waits on dev's required checks; D-FLEET-52 is unanswered and its default is B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sunholo-voight-kampff and others added 12 commits December 2, 2026 20:59
…50 = A)

A shared guard, tools/launchd/lib/test-tmp.sh (mc_test_mktemp_d/_f), refuses a failed,
empty, missing or caller-CWD mktemp result with a FATAL line. test_mission_base.sh and the
three suites that wrote T=$(cd "$(mktemp -d)" && pwd -P) now stop before any git, cd or
EXIT-trap rm -rf can reach the caller's checkout. install_coordinator.sh checks its plist
temp file. New suite test_mktemp_guard.sh runs the guard and two real suites under a
failing mktemp shim inside a sentinel directory and compares the real checkout's HEAD,
local email and origin/dev before and after.

Co-Authored-By: codex gpt-6.2-sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e guard; lint enforces it

All in-scope suites in LAUNCHD_SUITES, the standalone tools/launchd tests, and the
sprint-skill test scripts (with their .agents mirrors) now take temp paths from
mc_test_mktemp_d/_f with a checked assignment, and register EXIT traps only after a
validated allocation. test_mktemp_guard.sh gains a line-based lint (LINT-BAD/GOOD/LIST/
LIVE) that refuses a raw mktemp outside the guarded assignment form, an unchecked helper
call and a local-masked assignment, across 69 files. Out-of-scope suites (tools/ci,
tools/eval, tools/attended, scripts/test_worktree_sweep.sh) are unchanged and reported.
Changelog fragment added.

Co-Authored-By: codex gpt-6.2-sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fter the guard helper

The independent judge (sonnet, PASS 88) found that the lint accepted any `||` after
$(mc_test_mktemp_d …), so `|| true` or `|| exit 0` would disarm the exit-before-trap
protection unnoticed in test_mission_worktree.sh and test_mission_slots.sh, which have no
end-to-end injection arm. The helper form now needs the same terminal `|| exit N` /
`|| return N` (1-255) as the raw form, or a `|| { …; exit|return N; }` block. Four new
LINT-BAD fixtures and one LINT-GOOD fixture. Mutation-checked: reverting the rule reds
LINT-BAD; planting `|| true` in test_mission_slots.sh reds LINT-LIVE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…check-autopush (SC1091)

The required lint job runs `make shellcheck-autopush`, which lints scripts/hooks/test_pre_push.sh
alone at every severity. It could not follow the new helper source and reported SC1091 (info),
failing the job. `# shellcheck source=/dev/null` on that line. Local: shellcheck-autopush rc 0,
test-shellcheck-autopush rc 0, test_pre_push 37 passed (same as base), guard suite 11/0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n dev's inherited checks red [HARNESS]

Log entry 161, charter STATUS stamp (158's stamp moved to the status archive), dashboard,
regenerated log and status indexes, and evidence under
design_docs/fleet-mission-evidence/iteration161/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lib/idle-fingerprint.sh now accepts MISSION_NAME=fleet. The fleet arm hashes
the open-ticket set (signature, slots_lost, last_seen), the charter's ledger
statuses on origin/dev, allowlisted directives on the current and previous
bookkeeping issue, the unread mission-fleet inbox, and dev's required-check
verdicts (newest completed verdict per classic-protection context across at
most 8 first-parent tips, so a pending tip does not flip the hash). No head
and no nightly-rig rows. Any failed or malformed read prints no fingerprint.
The product arm's rows and output are unchanged. The driver still excludes
fleet until M2.

Co-Authored-By: codex gpt-6.2-sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (D-FLEET-49 M2)

The driver's MISSION IDLE PRE-CHECK and MISSION IDLE SNAPSHOT blocks no longer
exclude fleet. The fleet ticket count still runs first, so zero tickets exits
before any fingerprint read. Gate 5's IDLE RECORD now covers fleet: record only
a NONE pick the independent judge sustained, with no fleet PR landing owed.
The .agents mirror of gate-5-retro.md is kept byte-identical. Driver tests
cover match, change, failed read, expiry, zero-count precedence, triage,
work-item and dry-run exclusions, and the fleet snapshot.

The executor's run hit its 30-minute cap before the drills. The controller
fixed one test stub (the ticket-count call has 6 arguments, not 5), mirrored
the skill file, and ran drills (e) and (f): each reds its named arm.

Co-Authored-By: codex gpt-6.2-sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hen a fleet PR bars the idle record

The independent judge (sonnet, PASS 82) found two surviving mutants in the
required-check lookback: with the older verdict already red, a pending run
mis-read as resolved also reads red, so the busy-tip arm could not tell. A new
case starts from an all-green tip and adds a busy tip on top; both mutants
(any-completed, and dropping the completed requirement) now red it.

Its strongest objection: Gate 5 did not say whether a fleet record PR left open
bars recording. A matching next fire exits before it could merge it, so the
record PR would strand until the 24 h expiry. The rule now says: merging an
earlier record PR does not count as a landing; record only if this fire leaves
no fleet PR open, except one blocked only on dev's required red (dev turning
green changes the fingerprint). The .agents mirror stays byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…FLEET-46 ticket resolved; PR blocked on dev's inherited checks red [HARNESS]

Iteration 162 built the fleet idle fingerprint (D-FLEET-49 = A) on top of
PR #2578 and recorded it: log entry, STATUS stamp (159 rotated to the
archive), dashboard, regenerated index and evidence under
design_docs/fleet-mission-evidence/iteration162/. Under D-FLEET-46 = A it
resolved pi:openrouter:uncapped-max-tokens-402 after a re-check at HEAD and
left quorum:gpt6-1-sol-openai-api-credits-exhausted open (live seat still
ABSENT on codex quota).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e checks red that blocks its PRs)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-credits-exhausted resolved; PRs still blocked on dev's inherited checks red [ADMIN]

Iteration 163 resolved one ticket in the D-FLEET-46 = A class as bookkeeping. With codex headroom
back at 4.9pp, the live 1-seat quorums seated both OpenAI seats on the codex subscription at $0
(gpt-6.2-sol, and gpt-6.2-astra after the judge objected). Fix 41c628b is on origin/dev. The
independent sonnet judge voted RESOLVE 88%.

The resolve's --sha was hand-typed and invalid. A correction naming the full SHA went to both
filing inboxes. Nothing in the code changed.

The record adds the log entry, a STATUS stamp (160 rotated to the archive), the dashboard, an
index row and evidence under design_docs/fleet-mission-evidence/iteration163/. PR #2580, which
carries #2578, still waits on dev's required checks; D-FLEET-52 is unanswered and its default is B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sunholo-voight-kampff
sunholo-voight-kampff merged commit 6b460bd into dev Dec 2, 2026
24 checks passed
@sunholo-voight-kampff
sunholo-voight-kampff deleted the fleet/i162-fleet-idle-fp branch December 2, 2026 20:25
sunholo-voight-kampff added a commit that referenced this pull request Dec 3, 2026
…n prod (#2630)

* fleet i164 record: LANDED #2580 (carrying #2578) as 6b460bd [HARNESS]

D-FLEET-50 = A (launchd temp-path guard) and D-FLEET-49 = A (fleet idle
fingerprint) are on dev after dev's required checks went green again
(a66b854). The PR was rebased because the scope guard refuses a dev
merge; its patch-id is identical to the judged diff. Independent
evaluator (sonnet): LAND-WITH-CONDITIONS 82%. STATUS 161 rotated to the
archive; D-FLEET-52 annotated as overtaken (stays OPEN for Mark).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fleet i165 record: codex-lane fix 509146d inert in prod; no trio ticket resolvable [HARNESS]

D-FLEET-46 = A re-check of the 509146d trio. The cloud completion path
(CompareAndSetTaskStatus, both stores) never writes completed_at, and
credentialLaneHolder skips a failed task without it, so the 11-16 lane
fix has never held in prod. T1's repro recurred on 2026-11-28 under
v0.64.1 (task-a2ab3af9 -> task-0a62d908). Independent sonnet judge
AGREE 90%, root cause reproduced by mutation. Routed to mission-v1
under D-FLEET-39 A; no ticket resolved.

Log entry 165, STATUS 165 (162 rotated to the archive), queue rows
54/55 annotated, dashboard, evidence under iteration165/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant