Skip to content

fix: flag unrunnable validation checks as environment faults - #3989

Open
AgardnerAU wants to merge 7 commits into
kunchenguid:mainfrom
AgardnerAU:fm/fm-pipeline-worktree-missing-deps
Open

AgardnerAU wants to merge 7 commits into
kunchenguid:mainfrom
AgardnerAU:fm/fm-pipeline-worktree-missing-deps

Conversation

@AgardnerAU

@AgardnerAU AgardnerAU commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Intent

On 2026-09-30, after a review of every comment on the fleet's open kunchenguid/firstmate pull requests, the captain approved one upstream refresh pass: bring each conflicting PR up to date with upstream main, post one short note on each PR, and post no reminder comments.

This task covers #3989 ("fix: flag unrunnable validation checks as environment faults"), on branch fm/fm-pipeline-worktree-missing-deps from the fork AgardnerAU/firstmate into kunchenguid:main, current head a97b4f4da1ad486713748b7f362da0de45d9dc62. Reuse that branch and that PR; never replace them.

Context: upstream closes a PR after 14 days of author silence, and only an author push or comment resets that clock; a stale close is irreversible. Every earlier maintainer request on this PR has been addressed, and the no-mistakes attestation in its body matches its current head. The maintainer triages on author activity, and test runs on fork PRs wait for maintainer approval.
This PR was last touched on 2026-09-08. Its checks passed then and the maintainer named it a candidate to merge on their own next pass, but it now conflicts with main. Two automated review comments from 2026-09-08 (tooling-like words in a finding's id or file field, and broad nouns such as command, install, format or test, classifying a product finding as an environment fault) predate the last commit, which narrowed those matches.

What Changed

  • Added fm_nm_finding_descriptions and fm_nm_unrunnable_check_finding to bin/fm-nm-run-lib.sh. The first function reads only the description column of the gate findings table, so finding IDs and file paths are not used for classification. The second function matches descriptions that report a configured check, linter, formatter or test runner could not run, including "command not found".
  • bin/fm-crew-state.sh now marks a parked gate with such a finding as an environment fault: "a configured check did not run - validation is incomplete; not approvable". It no longer shows this finding only as a decision to approve.
  • The ask-user-authority skill now states the policy. Firstmate never accepts, waives or escalates a finding that a check could not run. The only answer is Fix: install dependencies from the frozen lockfile in the gate's own worktree and run the real checks. New cases in tests/fm-crew-state.test.sh cover recorded missing-dependency findings, mixed findings and product failures that must not be classified as environment faults.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: The merge (parents a97b4f4 PR head and eb77f02 upstream main) resolves cleanly with no conflict markers, the branch's net diff against main is limited to the already-reviewed, narrowed detector plus its behavioural tests and skill text, and the detector correctly selects only the description column (header-ordered, quote-aware) and requires a tooling token together with an execution-failure phrase, so the recorded incidents are detected and product findings like 'Administrators cannot run exports' are not.

Testing

I ran the targeted fm-crew-state test file, which drives the real fm-crew-state.sh CLI against fake axi status fixtures, and all tests passed. The parked state line for both verbatim incident findings reads "environment fault: a configured check did not run - validation is incomplete; not approvable". A direct detector transcript shows that both incidents are detected and that product findings, including ones with tooling words in the id or file field, are not. The merge commit has no conflict markers and contains upstream main. No Herdr or tmux lab was needed: the change affects only shell classification of axi status output.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
Crew state for a gate parked on the 'dependencies are absent' incident finding shows a non-approvable environment fault, with incomplete-validation wording ✅ pass live fm-crew-state-test.log: '# run_parked_unrunnable_checks_absent_deps -> state: parked ... (environment fault: a configured check did not run - validation is incomplete; not approvable)'
Crew state for a gate parked on the 'Command not found' incident finding shows the environment fault ✅ pass live fm-crew-state-test.log: run_parked_unrunnable_checks_command_not_found line
Adversarial: product findings such as 'Administrators cannot run exports' or 'Search is unavailable' are not called environment faults and remain ask-user decisions ✅ pass live test 'an ordinary ask-user finding is not flagged as an environment fault' plus detector-transcript.txt
Adversarial: tooling words in the finding id or file field, or broad nouns (install, format, test), do not classify a product finding as an environment fault ✅ pass live test 'finding metadata does not supply tool context' plus detector-transcript.txt row with id=test and file=src/lint/x.go
An unrunnable check beside a real finding is still named, and the real decision and finding count are kept ✅ pass live fm-crew-state-test.log: 'ok - an unrunnable check beside a real finding is still named'
The merge with upstream main is clean: no conflict markers, upstream eb77f02 is an ancestor, and existing crew-state behaviour still passes ✅ pass live git grep for conflict markers found none; merge-base --is-ancestor succeeded; the full crew-state test file returned rc=0
Evidence: fm-crew-state test log with state lines for the incident fixtures

Source: fm-crew-state test log with state lines for the incident fixtures

ok - captured AXI replacement status replays through crew-state
ok - captured AXI parked status replays through crew-state
ok - captured AXI failed status replays through crew-state
ok - captured capped inventory replays selection, ambiguity, and unavailable lookup
ok - captured status formats reject a synthetic authority transition
ok - captured completed status yields to synthetic subsequent development
ok - captured cancelled run leaves fleet inventory unverified without a failure contradiction
ok - failed-outcome/github/open: terminal delivery uses current disposition
ok - failed-outcome/github/merged: terminal delivery uses current disposition
ok - failed-outcome/github/closed: terminal delivery uses current disposition
ok - failed-outcome/github/unreadable: terminal delivery uses current disposition
ok - failed-outcome/github/skipped: terminal delivery uses current disposition
ok - failed-outcome/github/no-identity: terminal delivery uses current disposition
ok - failed-outcome/gitlab/open: terminal delivery uses current disposition
ok - failed-outcome/gitlab/merged: terminal delivery uses current disposition
ok - failed-outcome/gitlab/closed: terminal delivery uses current disposition
ok - failed-outcome/gitlab/unreadable: terminal delivery uses current disposition
ok - failed-outcome/gitlab/skipped: terminal delivery uses current disposition
ok - failed-outcome/gitlab/no-identity: terminal delivery uses current disposition
ok - failed-outcome/gerrit/open: terminal delivery uses current disposition
ok - failed-outcome/gerrit/merged: terminal delivery uses current disposition
ok - failed-outcome/gerrit/closed: terminal delivery uses current disposition
ok - failed-outcome/gerrit/unreadable: terminal delivery uses current disposition
ok - failed-outcome/gerrit/skipped: terminal delivery uses current disposition
ok - failed-outcome/gerrit/no-identity: terminal delivery uses current disposition
ok - failed-status/github/open: terminal delivery uses current disposition
ok - failed-status/github/merged: terminal delivery uses current disposition
ok - failed-status/github/closed: terminal delivery uses current disposition
ok - failed-status/github/unreadable: terminal delivery uses current disposition
ok - failed-status/github/skipped: terminal delivery uses current disposition
ok - failed-status/github/no-identity: terminal delivery uses current disposition
ok - failed-status/gitlab/open: terminal delivery uses current disposition
ok - failed-status/gitlab/merged: terminal delivery uses current disposition
ok - failed-status/gitlab/closed: terminal delivery uses current disposition
ok - failed-status/gitlab/unreadable: terminal delivery uses current disposition
ok - failed-status/gitlab/skipped: terminal delivery uses current disposition
ok - failed-status/gitlab/no-identity: terminal delivery uses current disposition
ok - failed-status/gerrit/open: terminal delivery uses current disposition
ok - failed-status/gerrit/merged: terminal delivery uses current disposition
ok - failed-status/gerrit/closed: terminal delivery uses current disposition
ok - failed-status/gerrit/unreadable: terminal delivery uses current disposition
ok - failed-status/gerrit/skipped: terminal delivery uses current disposition
ok - failed-status/gerrit/no-identity: terminal delivery uses current disposition
ok - cancelled-outcome/github/open: terminal delivery uses current disposition
ok - cancelled-outcome/github/merged: terminal delivery uses current disposition
ok - cancelled-outcome/github/closed: terminal delivery uses current disposition
ok - cancelled-outcome/github/unreadable: terminal delivery uses current disposition
ok - cancelled-outcome/github/skipped: terminal delivery uses current disposition
ok - cancelled-outcome/github/no-identity: terminal delivery uses current disposition
ok - cancelled-outcome/gitlab/open: terminal delivery uses current disposition
ok - cancelled-outcome/gitlab/merged: terminal delivery uses current disposition
ok - cancelled-outcome/gitlab/closed: terminal delivery uses current disposition
ok - cancelled-outcome/gitlab/unreadable: terminal delivery uses current disposition
ok - cancelled-outcome/gitlab/skipped: terminal delivery uses current disposition
ok - cancelled-outcome/gitlab/no-identity: terminal delivery uses current disposition
ok - cancelled-outcome/gerrit/open: terminal delivery uses current disposition
ok - cancelled-outcome/gerrit/merged: terminal delivery uses current disposition
ok - cancelled-outcome/gerrit/closed: terminal delivery uses current disposition
ok - cancelled-outcome/gerrit/unreadable: terminal delivery uses current disposition
ok - cancelled-outcome/gerrit/skipped: terminal delivery uses current disposition
ok - cancelled-outcome/gerrit/no-identity: terminal delivery uses current disposition
ok - cancelled-status/github/open: terminal delivery uses current disposition
ok - cancelled-status/github/merged: terminal delivery uses current disposition
ok - cancelled-status/github/closed: terminal delivery uses current disposition
ok - cancelled-status/github/unreadable: terminal delivery uses current disposition
ok - cancelled-status/github/skipped: terminal delivery uses current disposition
ok - cancelled-status/github/no-identity: terminal delivery uses current disposition
ok - cancelled-status/gitlab/open: terminal delivery uses current disposition
ok - cancelled-status/gitlab/merged: terminal delivery uses current disposition
ok - cancelled-status/gitlab/closed: terminal delivery uses current disposition
ok - cancelled-status/gitlab/unreadable: terminal delivery uses current disposition
ok - cancelled-status/gitlab/skipped: terminal delivery uses current disposition
ok - cancelled-status/gitlab/no-identity: terminal delivery uses current disposition
ok - cancelled-status/gerrit/open: terminal delivery uses current disposition
ok - cancelled-status/gerrit/merged: terminal delivery uses current disposition
ok - cancelled-status/gerrit/closed: terminal delivery uses current disposition
ok - cancelled-status/gerrit/unreadable: terminal delivery uses current disposition
ok - cancelled-status/gerrit/skipped: terminal delivery uses current disposition
ok - cancelled-status/gerrit/no-identity: terminal delivery uses current disposition
ok - outcome: cancellation without delivery carries no verdict
ok - status: cancellation without delivery carries no verdict
ok - selected: cancellation without delivery carries no verdict
ok - coarse: cancellation without delivery carries no verdict
ok - no-ci-log: cancellation without delivery carries no verdict
ok - red-ci: cancellation without delivery carries no verdict
ok - cancelled-test: cancellation without delivery carries no verdict
ok - skipped-test: cancellation without delivery carries no verdict
ok - synthetic cancelled run leaves fleet inventory unverified without a failure contradiction
ok - cancelled-outcome: terminal delivery reports only observed evidence
ok - cancelled-status: terminal delivery reports only observed evidence
ok - skipped-rebase: terminal delivery reports only observed evidence
ok - cancelled-skipped-rebase: terminal delivery reports only observed evidence
ok - passed: terminal delivery reports only observed evidence
ok - active run-step is authoritative
ok - stale needs-decision over active run is superseded
ok - stale blocked over active run is superseded
ok - daemon/timeout blocked claim over a live fixing run reads as run alive
ok - socket refusal or missing socket over a stale fixing run reports blocked
ok - socket refusal over a terminal attributed run reports blocked
ok - socket-down evidence outranks a live run only while it is the log's latest event
ok - broken-pipe blocker over a live run keeps the plain superseded reading
ok - genuine daemon-down blocked line still reports blocked
ok - a busy secondmate keeps its open blocker until that exact key closes
ok - the most recently opened decision supplies the reported state and detail
ok - ship and scout terminal declarations supersede stale decisions
ok - latest status retains legacy completion events and shared captain matching
ok - latest status subprocess work stays bounded an

... [4457 bytes truncated] ...

s unknown/unreachable, never gone
ok - closed pane still reports a terminal run-step
ok - closed pane still reports an active run-step
ok - no timeout command uses perl bound
ok - scout skips the run lookup
ok - torn-down worktree is handled gracefully
ok - fm-crew-state remote: alive endpoint falls through to the routed status log
ok - fm-crew-state remote: an idle alive endpoint reads alive, never gone or dead
ok - fm-crew-state remote: an unreachable host reads unknown-remote, never gone or dead
ok - fm-crew-state remote: the remote host's own dead verdict is reported truthfully
ok - missing meta is handled gracefully
ok - crew_is_provably_working absorbs a validating crew found only via the runs-list fallback
ok - crew_is_provably_working still surfaces a genuinely stopped crew (safety property preserved)
ok - usage error exits 2
ok - historical same-branch rewritten head is not attributed as current
ok - active run with valid descendant fix head remains current
ok - local work advanced past run head invalidates attribution
ok - pipeline-owned active run binds without head equality and beats the failed row
ok - a genuinely failed run with no later run is not hidden
ok - coarse scan anchors the unresolvable active row instead of falling to an older one
ok - coarse scan with a mismatched anchor stays unknown and lets the pane answer
ok - coarse terminal row at a foreign head is not attributed
ok - an executing run binds regardless of branch_sync state
ok - a parked run keeps the strict head rule without pipeline_owned
ok - run_parked_scalar_gate_running keeps the strict head rule despite its live status word
ok - run_parked_in_gate_block keeps the strict head rule despite its live status word
ok - the exemption never applies to a terminal run
ok - missing run head falls back instead of matching by branch
ok - active fix round with an unfetched pipeline head reads working
ok - unanchored unverifiable active row is attributed because it is live
ok - unresolvable terminal row never reads as current
ok - runs-list continuation attribution works when axi answers another branch
ok - herdr stale registration over a shell-only pane reads agent gone, not alive
ok - herdr stale working record never reports a shell-only pane busy
ok - capped overview retains both competing same-branch run ids
ok - same-branch identity survives both runs falling outside the overview
ok - a capped overview with zero same-branch rows reports absent, not unreadable
ok - no run for this branch beside a live run elsewhere reads absent, not unreadable
ok - the capped inventory reader is bounded by the crew read budget
ok - a repo spelling the inventory does not record reads unreadable
ok - a linked worktree green PR in merge monitoring reads held for merge
ok - complete inventory preserves the replacement gate without writes
ok - missing complete-inventory failure reports unknown
ok - corrupt complete-inventory failure reports unknown
ok - schema complete-inventory failure reports unknown
ok - repo complete-inventory failure reports unknown
ok - count complete-inventory failure reports unknown
ok - norepo complete-inventory failure reports unknown
ok - R6 complete selection ignores unrelated branch semantics
ok - R6 requested branches use exact identity without a whitelist
ok - R6 capped inventory ignores unrelated semantics and names both ids
ok - R6 complete identity lookup precedes partial-row semantic rejection
ok - R6 capped inventory preserves quoted requested-branch identity
ok - R6 structural completeness and requested-run validation remain enforced
ok - R5 complete inventory without Python keeps the replacement gate
ok - R5 complete ambiguity without Python names both ids
ok - R5 capped lookup without Python preserves available ids
ok - R5 capped lookup without SQLite support preserves available ids
ok - R1 both directions of inventory liveness disagreement read unknown
ok - R2 uninitialized busy workers retain pane reporting
ok - R2 uninitialized idle workers retain status reporting
ok - R3 historical inventory yields to the current busy pane
ok - R3 historical inventory yields to current worker status
ok - superseded cancelled run preserves the replacement review gate
ok - a live rebased run beats an older failed run at the local head
ok - pending run with a rebased head reads working
ok - running run with a rebased head reads working
ok - legacy live rebased run is authoritative over an older failed row
ok - legacy surface binds a fixing run at a rebased head
ok - legacy surface binds a ci run at a rebased head
ok - an unproven record at a diverged head does not answer for the crew
ok - an unproven record with a dead daemon never overrides a busy pane
ok - an ordinary blocked tip over a coarse live row keeps the superseded reading
ok - a socket-refused blocker survives the dead-daemon verdict
ok - an ordinary blocked tip survives the dead-daemon verdict
ok - a parked gate survives a dead daemon with its findings intact
ok - an unproven record at a diverged head does not answer on the selected route
ok - a live record at a diverged head binds while the daemon answers
ok - the anchored continuation binds while the daemon answers
ok - a head-tied coarse record keeps its working reading and its original note
ok - a coarse failed record with a dead daemon reads unknown
ok - the selected-run anchored continuation reports the dead daemon, not an identity failure
ok - the selected-run anchored continuation binds while the daemon answers
ok - the selected route keeps an anchored parked run's gate with a dead daemon
ok - an open decision survives the dead-daemon verdict on the selected route
ok - a coarse pending ledger word reads unknown
ok - an unanswered probe never turns a failed coarse record into a gate
ok - the selected-route dead-daemon verdict names the run once
ok - a head-tied row reads working when axi names the self run
ok - a head-tied row reads working when axi names the other run
ok - a head-tied coarse row is exempt even when the record head diverged
ok - an unrecognised ledger word keeps the ordinary supersede note
ok - an unanswered daemon probe leaves a live rebased run bound
ok - a head-tied coarse live row is exempt from the dead-daemon verdict
ok - a coarse live row over an open decision keeps the original supersede note
ok - a coarse live row at a rebased head is not attributed
ok - a terminal run at a diverged head keeps the strict head rule
ok - competing live runs report unknown with both run ids
ok - newer failed run remains failed beside an older live run
ok - missing run selection reports unknown with candidate ids
ok - wrong-id run selection reports unknown with candidate ids
ok - wrong-branch run selection reports unknown with candidate ids
ok - wrong-head run selection reports unknown with candidate ids
ok - missing-status run selection reports unknown with candidate ids
ok - malformed-table run selection reports unknown with candidate ids
ok - inventory-error run selection reports unknown with candidate ids
ok - selected-error run selection reports unknown with candidate ids
ok - legacy conflicting run records report unknown
ok - finding metadata does not supply tool context
ok - finding descriptions retain tool context with quoted fields and reordered columns
# run_parked_unrunnable_checks_absent_deps -> state: parked · source: run-step · parked at document: 1 finding(s) · ask-user: authority decision (environment fault: a configured check did not run - validation is incomplete; not approvable)
ok - run_parked_unrunnable_checks_absent_deps: an unrunnable check reads as an environment fault, not a decision
# run_parked_unrunnable_checks_command_not_found -> state: parked · source: run-step · parked at document: 1 finding(s) · ask-user: authority decision (environment fault: a configured check did not run - validation is incomplete; not approvable)
ok - run_parked_unrunnable_checks_command_not_found: an unrunnable check reads as an environment fault, not a decision
ok - an unrunnable check beside a real finding is still named
ok - an ordinary ask-user finding is not flagged as an environment fault
all fm-crew-state tests passed
Evidence: Detector transcript for incident and adversarial product findings

Source: Detector transcript for incident and adversarial product findings

Incident 1 (ESLint and Prettier could not run, dependencies absent) -> ENVIRONMENT FAULT Incident 2 (... Command not found) -> ENVIRONMENT FAULT Administrators cannot run exports -> not an environment fault id=test, file=src/lint/x.go, Administrators cannot run exports -> not an environment fault Users cannot run the optional plugin install -> not an environment fault The export format cannot be run by administrators -> not an environment fault Search is unavailable to administrators -> not an environment fault

ROW: L1,warning,,,ask-user,"ESLint and Prettier checks could not run because worktree dependencies are absent. Install the project dependencies and rerun changed-file checks. Whitespace and generated agent-configuration drift checks passed."
  -> ENVIRONMENT FAULT: ESLint and Prettier checks could not run because worktree dependencies are absent. Install the project dependencies and rerun changed-file checks. Whitespace and generated agent-configuration drift checks passed.
ROW: lint-tools-unavailable,warning,,,ask-user,"ESLint and Prettier checks could not run because worktree dependencies are absent; both commands returned Command not found. Restore dependencies and rerun these checks. Syntax, whitespace and configured secret checks passed."
  -> ENVIRONMENT FAULT: ESLint and Prettier checks could not run because worktree dependencies are absent; both commands returned Command not found. Restore dependencies and rerun these checks. Syntax, whitespace and configured secret checks passed.
ROW: r1,warning,b.go,,ask-user,Administrators cannot run exports
  -> not an environment fault
ROW: test,warning,src/lint/x.go,,ask-user,Administrators cannot run exports
  -> not an environment fault
ROW: r1,warning,b.go,,ask-user,Users cannot run the optional plugin install
  -> not an environment fault
ROW: r1,warning,b.go,,ask-user,The export format cannot be run by administrators
  -> not an environment fault
ROW: r1,warning,b.go,,ask-user,Search is unavailable to administrators
  -> not an environment fault

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 6 of 6 scenarios driven live against the product
Scenario Result Live Evidence
Crew state for a gate parked on the 'dependencies are absent' incident finding shows a non-approvable environment fault, with incomplete-validation wording ✅ pass live fm-crew-state-test.log: '# run_parked_unrunnable_checks_absent_deps -> state: parked ... (environment fault: a configured check did not run - validation is incomplete; not approvable)'
Crew state for a gate parked on the 'Command not found' incident finding shows the environment fault ✅ pass live fm-crew-state-test.log: run_parked_unrunnable_checks_command_not_found line
Adversarial: product findings such as 'Administrators cannot run exports' or 'Search is unavailable' are not called environment faults and remain ask-user decisions ✅ pass live test 'an ordinary ask-user finding is not flagged as an environment fault' plus detector-transcript.txt
Adversarial: tooling words in the finding id or file field, or broad nouns (install, format, test), do not classify a product finding as an environment fault ✅ pass live test 'finding metadata does not supply tool context' plus detector-transcript.txt row with id=test and file=src/lint/x.go
An unrunnable check beside a real finding is still named, and the real decision and finding count are kept ✅ pass live fm-crew-state-test.log: 'ok - an unrunnable check beside a real finding is still named'
The merge with upstream main is clean: no conflict markers, upstream eb77f02 is an ancestor, and existing crew-state behaviour still passes ✅ pass live git grep for conflict markers found none; merge-base --is-ancestor succeeded; the full crew-state test file returned rc=0
  • FM_TEST_EVIDENCE=1 bash tests/fm-crew-state.test.sh (full crew-state test file; it drives bin/fm-crew-state.sh end-to-end with fake axi status output, rc=0)
  • Direct transcript: source bin/fm-nm-run-lib.sh and call fm_nm_unrunnable_check_finding on axi status TOON built from both incident descriptions and from adversarial product findings (Administrators cannot run exports, a tooling word in the id/file field, Users cannot run the optional plugin install, The export format cannot be run by administrators, Search is unavailable to administrators)
  • git grep FM_NM_UNRUNNABLE_CHECK_RE bin/ (confirms that the environment override is removed)
  • git grep for conflict markers and git merge-base --is-ancestor eb77f02b HEAD (confirms that the merge with upstream is clean)
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…fault

A no-mistakes gate finding reporting that a configured check COULD NOT RUN
is not a code finding: it is an environment fault, and it means nothing was
checked. Firstmate's own current-state line rendered it identically to a real
product decision - "1 finding(s) (ask-user: authority decision)" - so the only
thing standing between an unrun check and an approval was a tired reader
noticing the difference in the finding prose.

Add fm_nm_unrunnable_check_finding to the shared run-record library as the one
detector for that case, and name it in fm-crew-state's parked-gate detail as
"environment fault: a configured check could not run - NOTHING WAS CHECKED;
not approvable". Pair it with the decision rule in ask-user-authority, which
now owns the policy that such a finding is never answered by approval and is
repaired in the copy the gate is actually validating.

Regression cases drive the real helper over both 2026-09-08 recurrences with
their verbatim recorded descriptions, over an unrunnable check hiding behind a
genuine finding, and over an ordinary product decision that must stay unflagged.
@greptile-apps

greptile-apps Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds validation logic to flag incomplete checks as environment faults.

The PR appears safe to merge.

Reviews (4) · Last reviewed commit: "Merge upstream main into fm/fm-pipeline-..."

Comment thread bin/fm-nm-run-lib.sh Resolved
…assifying only finding descriptions. The regression failed before the fix and passed afterwards. Crew-state tests, repository lint, and git diff --check passed. CI and Require no-mistakes reported action_required with zero jobs; neither exposed a code failure
Comment thread bin/fm-nm-run-lib.sh Resolved
…belled product failures as environment faults. Regression reproduced before the fix; crew-state tests, targeted ShellCheck, documentation checks and diff checks now pass. CI and Require no-mistakes ended with action_required and zero jobs, not code failures. No pipeline controls were invoked
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

Reviewed tip a97b4f4da1ad486713748b7f362da0de45d9dc62 on main b84e0e362face25f3dd8945297a3df1320d7668c. Diff names parked gates whose configured checks could not run as an environment fault / incomplete validation / not approvable (bin/fm-nm-run-lib.sh, bin/fm-crew-state.sh, ask-user-authority skill, tests). No workflows. Tip commits already narrow false positives (metadata / broad classifier).

VISION.md (each rule)

  • One captain, one interface: aligns — honest under load: incomplete validation must not look like an ordinary authority decision.
  • Authority is explicit: aligns — environment faults are not answerable by approval; real ask-user findings still escalate.
  • Scripts own the mechanics: aligns — classification in nm-run/crew-state scripts.
  • A restart is a non-event: aligns — status presentation from durable run state.
  • Delegation with a spine: aligns — strengthens refusal / incomplete-validation path.
  • The fleet outlives any vendor: aligns — axi status projection, harness-agnostic.
  • Scope: aligns — command-layer gate presentation; validation workshop stays no-mistakes.

Contract-class: restore (promised: incomplete/unrunnable checks are not benign approvals). Attestation: MATCH. Fork CI+NM approved this tip (runs 34213510113 / 34213510131 / 34213511941). Waiting on green CI/NM. Security: clean. Auto-merge candidate next pass if CI+NM green and review still safe.

Keep the unrunnable-check environment-fault naming alongside upstream's
positional ask-user decision component. The metadata regression now asserts
the decision component only where the action column is provable, matching
upstream's deliberate withholding when a quoted field precedes it.
@AgardnerAU

Copy link
Copy Markdown
Contributor Author

Merged current main into this branch (head b6f6651); conflicts are resolved and it is up to date with main and ready for CI.

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.

2 participants