Repository navigation
CI mirror: feat(bin): add fleet admission control stages 0 and 1 - #8
Merged
Merged
Conversation
sbracewell64
force-pushed
the
fm/admission-control-stage01
branch
3 times, most recently
from
July 31, 2026 02:47
0ac5a71 to
9c61437
Compare
Adds the third layer above routing and scheduling: whether the fleet should accept another task at all right now. It ships inert - a home with no `_scheduling.admission_control` policy sees no behavior change and pays one cheap config read. The defining constraint is task independence. Admission reads only the fleet snapshot, never the incoming task, so the same snapshot returns the same band for every task; `bin/fm-admission.sh` enforces that structurally by refusing a task argument. Anything that varies per task stays in routing or scheduling. - `bin/fm-admission-lib.sh` is the single owner of the executable schema check, shared by bootstrap's startup diagnostic and the evaluator so the two cannot drift on the same config bytes. Unknown fields are refused rather than ignored, so a typo cannot silently disable a safety condition, and every rule from the accepted design refuses with an actionable reason. - `bin/fm-admission.sh` composes the existing read-only fleet snapshot into named signals, each with its own validity, and combines them into a preferred/soft/hard/unknown band. Every rule names the observed value, its source and freshness, the exact JSON config path, the configured value, and the resulting band. Exit status is the band, so a caller that ignores the output still stops safely. - Backlog consistency is a signal separate from worker-census integrity. A backlog row that contradicts task metadata is a bookkeeping fault to repair, not evidence of physical saturation; one aggregate health bit would close the fleet for the wrong reason. - The existing per-home session lock is the single-primary admission authority. No new process, daemon, reservation store, or second queue: deferred and refused requests stay in the owning backlog under a `load` hold, and capacity is re-examined at the two existing seams, successful cleanup and session start. - Nothing numeric enforces. Only the deterministic safety conditions - authority, census integrity, snapshot freshness - can set a band, and the schema refuses a configuration that tries to enable a threshold whose predictive value is unmeasured. Active workers, load-hold depth, and worker breakdown are recorded as observations with no cap. - Signals with no collector are recorded as unmeasured rather than assumed to be zero, and admission wait age stays explicitly uncollected because backlog age is task age. - The decision record is the named extension seam for the wake-outcome ledger, which does not expose one yet; nothing is persisted and no competing evidence store is opened. Dormant distributed machinery (reservations, remote nodes, a second intake authority) is settled as a validated schema contract rather than running code, so activating it later cannot change admission's semantics. `tests/fm-gotmp.test.sh` gains the new teardown dependency in its fake root, matching how its other sourced libs are already linked.
…n band and trigger validation
…verbose-fact claim
test_teardown_conformance_old_vs_new pins BASE_REF=HEAD when building the old-bin fixture, so its "old" fm-teardown.sh is HEAD's teardown, which now sources fm-admission-lib.sh. The lib was missing from OLD_BIN_UNCHANGED_SIBLINGS, so the old teardown aborted at source time. Mirror teardown's real dependency set, exactly like its other sourced libs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
sbracewell64
force-pushed
the
fm/admission-control-stage01
branch
from
July 31, 2026 16:51
9c61437 to
70c9a52
Compare
sbracewell64
added a commit
that referenced
this pull request
Aug 9, 2026
Squash-reconcile of the fork trunk (48 commits through ed376cf, fork PRs #8-#48 plus CI mirrors) rebased onto upstream main at 74230fc, resolving 72 conflicted files. The fork trunk carries: the fm-launch-lib.sh one-owner launch refactor, the slot-base/contribution-target task base contract (fm-task-base-lib.sh), the zero-budget model registry, fleet admission control stages 0/1, the wake-outcome ledger, the LoopSpec canonical representation, the research-approved-work corpus scanner, the 70% compaction doctrine, from-firstmate steer markers, the fleet launcher menu and Windows-to-WSL bridge, forge-verified merge gates, and the fleet-view per-argument cap fix. Conflict-resolution decisions a reviewer cannot see from the diff alone: - Where the fork carried an older in-flight import of upstream work (delivery contracts kunchenguid#1563, remote secondmate homes kunchenguid#1576, trace context kunchenguid#995, and every add/add remote-secondmate file), upstream's landed and further-evolved version wins outright; nothing fork-specific lived in those copies (verified blob-by-blob against upstream history). - Upstream's --relaunch lifecycle control plane and the fork's task base contract both survive: base derivation and the brief base-contract guard are gated to fresh spawns (RELAUNCH=0) because a relaunch reuses the recorded worktree and bases, and the trunk may have moved since. - Launch commands stay one-owner in bin/fm-launch-lib.sh: upstream's Muse Code adapter is ported into the library (template arm, model flag, effort mapping with max->ultra) instead of resurrecting the inline fm-spawn template, and fm-spawn's post-template FM_PI_HARNESS prefix is dropped because the library's pi templates carry the marker themselves. - Herdr presentation spaces keep upstream's 0.8.0-floor semantics (config off/on/empty, two-argument fm_backend_herdr_presentation_enabled) across spawn, config inheritance, docs, and tests. - fm-pr-check derives its per-task lock from state/<id>.meta explicitly so upstream's kunchenguid#1568 meta locking coexists with the fork's #34 landing records (fm_meta_lock_path rejects a .landing path). - tests/lib.sh keeps both the fork's identity-verified background-process reaper and upstream's fm_fake_version_tool fixture. - Merged prose follows upstream's X-mode -> Relay rename. Pre-existing on both parents, not introduced here: tests/fm-calm-pi-extension.test.sh fails under system Node 22 (ERR_UNKNOWN_FILE_EXTENSION), verified identical on the base commit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
sbracewell64
added a commit
that referenced
this pull request
Aug 9, 2026
* feat: add fleet admission control stages 0 and 1 Adds the third layer above routing and scheduling: whether the fleet should accept another task at all right now. It ships inert - a home with no `_scheduling.admission_control` policy sees no behavior change and pays one cheap config read. The defining constraint is task independence. Admission reads only the fleet snapshot, never the incoming task, so the same snapshot returns the same band for every task; `bin/fm-admission.sh` enforces that structurally by refusing a task argument. Anything that varies per task stays in routing or scheduling. - `bin/fm-admission-lib.sh` is the single owner of the executable schema check, shared by bootstrap's startup diagnostic and the evaluator so the two cannot drift on the same config bytes. Unknown fields are refused rather than ignored, so a typo cannot silently disable a safety condition, and every rule from the accepted design refuses with an actionable reason. - `bin/fm-admission.sh` composes the existing read-only fleet snapshot into named signals, each with its own validity, and combines them into a preferred/soft/hard/unknown band. Every rule names the observed value, its source and freshness, the exact JSON config path, the configured value, and the resulting band. Exit status is the band, so a caller that ignores the output still stops safely. - Backlog consistency is a signal separate from worker-census integrity. A backlog row that contradicts task metadata is a bookkeeping fault to repair, not evidence of physical saturation; one aggregate health bit would close the fleet for the wrong reason. - The existing per-home session lock is the single-primary admission authority. No new process, daemon, reservation store, or second queue: deferred and refused requests stay in the owning backlog under a `load` hold, and capacity is re-examined at the two existing seams, successful cleanup and session start. - Nothing numeric enforces. Only the deterministic safety conditions - authority, census integrity, snapshot freshness - can set a band, and the schema refuses a configuration that tries to enable a threshold whose predictive value is unmeasured. Active workers, load-hold depth, and worker breakdown are recorded as observations with no cap. - Signals with no collector are recorded as unmeasured rather than assumed to be zero, and admission wait age stays explicitly uncollected because backlog age is task age. - The decision record is the named extension seam for the wake-outcome ledger, which does not expose one yet; nothing is persisted and no competing evidence store is opened. Dormant distributed machinery (reservations, remote nodes, a second intake authority) is settled as a validated schema contract rather than running code, so activating it later cannot change admission's semantics. `tests/fm-gotmp.test.sh` gains the new teardown dependency in its fake root, matching how its other sourced libs are already linked. * no-mistakes(review): fail closed on unmeasurable snapshot age; tighten band and trigger validation * no-mistakes(document): classify fleet-admission skill; fix bootstrap verbose-fact claim * test(fm-backend): copy fm-admission-lib.sh into the synthetic old bin test_teardown_conformance_old_vs_new pins BASE_REF=HEAD when building the old-bin fixture, so its "old" fm-teardown.sh is HEAD's teardown, which now sources fm-admission-lib.sh. The lib was missing from OLD_BIN_UNCHANGED_SIBLINGS, so the old teardown aborted at source time. Mirror teardown's real dependency set, exactly like its other sourced libs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
sbracewell64
added a commit
that referenced
this pull request
Aug 10, 2026
* feat: add fleet admission control stages 0 and 1 Adds the third layer above routing and scheduling: whether the fleet should accept another task at all right now. It ships inert - a home with no `_scheduling.admission_control` policy sees no behavior change and pays one cheap config read. The defining constraint is task independence. Admission reads only the fleet snapshot, never the incoming task, so the same snapshot returns the same band for every task; `bin/fm-admission.sh` enforces that structurally by refusing a task argument. Anything that varies per task stays in routing or scheduling. - `bin/fm-admission-lib.sh` is the single owner of the executable schema check, shared by bootstrap's startup diagnostic and the evaluator so the two cannot drift on the same config bytes. Unknown fields are refused rather than ignored, so a typo cannot silently disable a safety condition, and every rule from the accepted design refuses with an actionable reason. - `bin/fm-admission.sh` composes the existing read-only fleet snapshot into named signals, each with its own validity, and combines them into a preferred/soft/hard/unknown band. Every rule names the observed value, its source and freshness, the exact JSON config path, the configured value, and the resulting band. Exit status is the band, so a caller that ignores the output still stops safely. - Backlog consistency is a signal separate from worker-census integrity. A backlog row that contradicts task metadata is a bookkeeping fault to repair, not evidence of physical saturation; one aggregate health bit would close the fleet for the wrong reason. - The existing per-home session lock is the single-primary admission authority. No new process, daemon, reservation store, or second queue: deferred and refused requests stay in the owning backlog under a `load` hold, and capacity is re-examined at the two existing seams, successful cleanup and session start. - Nothing numeric enforces. Only the deterministic safety conditions - authority, census integrity, snapshot freshness - can set a band, and the schema refuses a configuration that tries to enable a threshold whose predictive value is unmeasured. Active workers, load-hold depth, and worker breakdown are recorded as observations with no cap. - Signals with no collector are recorded as unmeasured rather than assumed to be zero, and admission wait age stays explicitly uncollected because backlog age is task age. - The decision record is the named extension seam for the wake-outcome ledger, which does not expose one yet; nothing is persisted and no competing evidence store is opened. Dormant distributed machinery (reservations, remote nodes, a second intake authority) is settled as a validated schema contract rather than running code, so activating it later cannot change admission's semantics. `tests/fm-gotmp.test.sh` gains the new teardown dependency in its fake root, matching how its other sourced libs are already linked. * no-mistakes(review): fail closed on unmeasurable snapshot age; tighten band and trigger validation * no-mistakes(document): classify fleet-admission skill; fix bootstrap verbose-fact claim * test(fm-backend): copy fm-admission-lib.sh into the synthetic old bin test_teardown_conformance_old_vs_new pins BASE_REF=HEAD when building the old-bin fixture, so its "old" fm-teardown.sh is HEAD's teardown, which now sources fm-admission-lib.sh. The lib was missing from OLD_BIN_UNCHANGED_SIBLINGS, so the old teardown aborted at source time. Mirror teardown's real dependency set, exactly like its other sourced libs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
sbracewell64
added a commit
that referenced
this pull request
Aug 11, 2026
* feat: add fleet admission control stages 0 and 1 Adds the third layer above routing and scheduling: whether the fleet should accept another task at all right now. It ships inert - a home with no `_scheduling.admission_control` policy sees no behavior change and pays one cheap config read. The defining constraint is task independence. Admission reads only the fleet snapshot, never the incoming task, so the same snapshot returns the same band for every task; `bin/fm-admission.sh` enforces that structurally by refusing a task argument. Anything that varies per task stays in routing or scheduling. - `bin/fm-admission-lib.sh` is the single owner of the executable schema check, shared by bootstrap's startup diagnostic and the evaluator so the two cannot drift on the same config bytes. Unknown fields are refused rather than ignored, so a typo cannot silently disable a safety condition, and every rule from the accepted design refuses with an actionable reason. - `bin/fm-admission.sh` composes the existing read-only fleet snapshot into named signals, each with its own validity, and combines them into a preferred/soft/hard/unknown band. Every rule names the observed value, its source and freshness, the exact JSON config path, the configured value, and the resulting band. Exit status is the band, so a caller that ignores the output still stops safely. - Backlog consistency is a signal separate from worker-census integrity. A backlog row that contradicts task metadata is a bookkeeping fault to repair, not evidence of physical saturation; one aggregate health bit would close the fleet for the wrong reason. - The existing per-home session lock is the single-primary admission authority. No new process, daemon, reservation store, or second queue: deferred and refused requests stay in the owning backlog under a `load` hold, and capacity is re-examined at the two existing seams, successful cleanup and session start. - Nothing numeric enforces. Only the deterministic safety conditions - authority, census integrity, snapshot freshness - can set a band, and the schema refuses a configuration that tries to enable a threshold whose predictive value is unmeasured. Active workers, load-hold depth, and worker breakdown are recorded as observations with no cap. - Signals with no collector are recorded as unmeasured rather than assumed to be zero, and admission wait age stays explicitly uncollected because backlog age is task age. - The decision record is the named extension seam for the wake-outcome ledger, which does not expose one yet; nothing is persisted and no competing evidence store is opened. Dormant distributed machinery (reservations, remote nodes, a second intake authority) is settled as a validated schema contract rather than running code, so activating it later cannot change admission's semantics. `tests/fm-gotmp.test.sh` gains the new teardown dependency in its fake root, matching how its other sourced libs are already linked. * no-mistakes(review): fail closed on unmeasurable snapshot age; tighten band and trigger validation * no-mistakes(document): classify fleet-admission skill; fix bootstrap verbose-fact claim * test(fm-backend): copy fm-admission-lib.sh into the synthetic old bin test_teardown_conformance_old_vs_new pins BASE_REF=HEAD when building the old-bin fixture, so its "old" fm-teardown.sh is HEAD's teardown, which now sources fm-admission-lib.sh. The lib was missing from OLD_BIN_UNCHANGED_SIBLINGS, so the old teardown aborted at source time. Mirror teardown's real dependency set, exactly like its other sourced libs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
sbracewell64
added a commit
that referenced
this pull request
Aug 11, 2026
* feat: add fleet admission control stages 0 and 1 Adds the third layer above routing and scheduling: whether the fleet should accept another task at all right now. It ships inert - a home with no `_scheduling.admission_control` policy sees no behavior change and pays one cheap config read. The defining constraint is task independence. Admission reads only the fleet snapshot, never the incoming task, so the same snapshot returns the same band for every task; `bin/fm-admission.sh` enforces that structurally by refusing a task argument. Anything that varies per task stays in routing or scheduling. - `bin/fm-admission-lib.sh` is the single owner of the executable schema check, shared by bootstrap's startup diagnostic and the evaluator so the two cannot drift on the same config bytes. Unknown fields are refused rather than ignored, so a typo cannot silently disable a safety condition, and every rule from the accepted design refuses with an actionable reason. - `bin/fm-admission.sh` composes the existing read-only fleet snapshot into named signals, each with its own validity, and combines them into a preferred/soft/hard/unknown band. Every rule names the observed value, its source and freshness, the exact JSON config path, the configured value, and the resulting band. Exit status is the band, so a caller that ignores the output still stops safely. - Backlog consistency is a signal separate from worker-census integrity. A backlog row that contradicts task metadata is a bookkeeping fault to repair, not evidence of physical saturation; one aggregate health bit would close the fleet for the wrong reason. - The existing per-home session lock is the single-primary admission authority. No new process, daemon, reservation store, or second queue: deferred and refused requests stay in the owning backlog under a `load` hold, and capacity is re-examined at the two existing seams, successful cleanup and session start. - Nothing numeric enforces. Only the deterministic safety conditions - authority, census integrity, snapshot freshness - can set a band, and the schema refuses a configuration that tries to enable a threshold whose predictive value is unmeasured. Active workers, load-hold depth, and worker breakdown are recorded as observations with no cap. - Signals with no collector are recorded as unmeasured rather than assumed to be zero, and admission wait age stays explicitly uncollected because backlog age is task age. - The decision record is the named extension seam for the wake-outcome ledger, which does not expose one yet; nothing is persisted and no competing evidence store is opened. Dormant distributed machinery (reservations, remote nodes, a second intake authority) is settled as a validated schema contract rather than running code, so activating it later cannot change admission's semantics. `tests/fm-gotmp.test.sh` gains the new teardown dependency in its fake root, matching how its other sourced libs are already linked. * no-mistakes(review): fail closed on unmeasurable snapshot age; tighten band and trigger validation * no-mistakes(document): classify fleet-admission skill; fix bootstrap verbose-fact claim * test(fm-backend): copy fm-admission-lib.sh into the synthetic old bin test_teardown_conformance_old_vs_new pins BASE_REF=HEAD when building the old-bin fixture, so its "old" fm-teardown.sh is HEAD's teardown, which now sources fm-admission-lib.sh. The lib was missing from OLD_BIN_UNCHANGED_SIBLINGS, so the old teardown aborted at source time. Mirror teardown's real dependency set, exactly like its other sourced libs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Implement fleet admission control Stages 0 and 1 exactly as designed by an accepted, captain-authorized scout study. The design was reviewed and approved before this work started; the task was explicitly to implement it as written, not to redesign it, so departures from the study are out of scope rather than improvements.
Admission control is a third layer above routing (who is capable) and scheduling (when accepted work runs): it decides whether the fleet should accept another task at all right now. Its defining constraint, and the reason the layer exists separately at all, is task independence - it reads ONLY fleet-snapshot properties and never the incoming task, so the same snapshot returns the same band for every task. bin/fm-admission.sh therefore refuses a task argument on purpose; that refusal is the invariant made structural, not missing argument handling.
DELIBERATE NON-ENFORCEMENT, the single most likely thing to look like an omission. The study found no measured evidence that any numeric signal predicts fleet coordination failure: eleven active workers ran on a lightly loaded host, and coordinator attention cost is not collectable until a wake-outcome ledger lands. Shipping a cap would manufacture policy from one point sample, and the repo already has a standing contract that isolated work dispatches immediately with NO concurrency cap. So every numeric threshold ships null with enforce:false, and enforcement_mode accepts exactly one value ('safety-only') which forbids enforce:true on any signal. Numeric enforcement is structurally unreachable until Stage 2 adds a mode value and the comparison path together as one reviewed change. Only deterministic safety conditions - admission authority, census integrity, snapshot freshness - can set a band. Threshold-comparison code being absent is the requirement, not an unfinished feature.
INERT BY DEFAULT. A home with no _scheduling.admission_control policy, or one carrying only underscore-prefixed operator notes, sees zero behavior change and pays one cheap config read. All three consuming seams (bootstrap, teardown, session start) are gated on an active policy. The live captain config today holds only a note, so this lands as a no-op for the fleet.
SIGNAL-SPECIFIC VALIDITY. The study observed a real production case where the broad snapshot validity bit was false (a historical backlog row had no child metadata) while task metadata gave a perfectly coherent eleven-worker census. Collapsing those into one aggregate health bit would close the fleet for an unrelated bookkeeping error. So backlog_consistency is its own signal, separate from census_integrity, reported and repairable but never contributing a capacity band. It is a seventh signal not present in the study's section 4 schema block, added because the study's own section 1.3 and 9.3 findings mandate the separation; the brief listed it as in scope.
NO NEW MACHINERY. The existing per-home session lock is the single-primary admission authority - no new process, daemon, reservation store, or second queue. Deferred and refused requests stay in the owning backlog under a 'load' hold, and capacity is re-examined at exactly two seams that already exist: successful cleanup and session start. The known already-empty-fleet gap (a fleet that empties while a request is held waits until session start) is deliberately left named and instrumented rather than cured with a timer; that restraint is the study's explicit recommendation.
DORMANT, NOT MISSING. Reservations, a distributed registry, remote nodes, host-resource metrics, and an admission daemon are all deliberately unimplemented. The schema validates their config placeholders and REFUSES to let them be enabled, so the distributed contract is settled in advance as validated policy rather than running code, and activating it later cannot change admission semantics. A task-weighted admission score, provider quota inside the admission band, and an admission daemon are permanently rejected designs.
LEDGER SEAM ONLY. The wake-outcome ledger is being built in parallel and exposes no extension seam yet (verified: nothing in tracked material). The decision record from --json is the named unit of admission telemetry, but nothing is persisted and no competing evidence store is opened - integration is explicitly the ledger's Phase 2, not this task's.
OTHER DELIBERATE CHOICES a reviewer may question: exit status encodes the band (0 preferred, 3 soft, 4 hard, 2 malformed policy) so a caller that ignores stdout still stops safely. Unknown config fields are REFUSED rather than ignored, because the study's central complaint was that bootstrap silently ignored unknown scheduling keys; a typo must not silently disable a safety condition. unknown_band accepts only soft or hard because the study's invariant says missing evidence must never resolve to 'probably fine'. Signals with no collector are recorded as unmeasured rather than assumed zero, and admission wait age stays explicitly uncollected because backlog age is task age, not load-wait age.
This repo is firstmate's own shared tracked material, so knowledge was routed by its documented placement rules: AGENTS.md got only a three-line intake stub plus a skill trigger (its token cost is paid by every session of every fleet member), the per-band procedure went to a new agent-only skill, the schema to docs/configuration.md as its single owner, and rationale to docs/architecture.md. Captain-private config values were deliberately kept out of tracked material - only the schema, its validation, and an all-null example ship.
tests/fm-gotmp.test.sh gains two lines because teardown now sources a new lib and that suite's fake root must mirror teardown's real dependency set, exactly as its other sourced libs are already linked. That is a required fixture completeness fix, not unrelated scope.
Verified before submitting: shellcheck lint clean, doc-audience check clean, 14 new behavior cases green, and the pr-forge, session-bootstrap, pure-contract-unit and backend-dispatch families run. Three failures remain that this change did not cause - fm-session-start, fm-calm-pi-extension (node ESM), and fm-backend-tmux-smoke - each confirmed to fail identically on a stashed baseline and environmental to this machine.
What Changed
bin/fm-admission.shandbin/fm-admission-lib.sh: a task-independent admission layer that reads only fleet-snapshot properties and resolves apreferred/soft/hardband (exit codes 0/3/4, with 2 for malformed policy). All numeric thresholds ship null under asafety-onlyenforcement mode that structurally refusesenforce:true; only deterministic safety conditions (admission authority, census integrity, snapshot freshness) can set a band, unknown config keys are refused rather than ignored, and a--jsondecision record serves as the telemetry unit. Per review feedback, an unmeasurable snapshot age now fails closed to the configuredunknown_bandinstead of resolvingpreferred, and band/trigger validation was tightened (bands.preferredrefuseshold_kind/auto_reconsider;queue.release_triggersis pinned to exactly its two seams).bin/fm-bootstrap.sh,bin/fm-teardown.sh, andbin/fm-session-start.sh— all gated on an active_scheduling.admission_controlpolicy, so a home with no policy (or only underscore-prefixed operator notes) sees zero behavior change.docs/configuration.md, rationale todocs/architecture.md, a per-bandfleet-admissionagent skill plus a three-line AGENTS.md intake stub, an all-null example indocs/examples/crew-dispatch.json, andtests/fm-admission.test.shwith 15 behavior cases (all green in the pipeline, alongside the bootstrap and gotmp regression suites).Risk Assessment
✅ Low: The feature remains additive and inert-by-default, all four review fixes were applied exactly as instructed and verified empirically against the shipped example and live script, and the fix diff introduces no new behavior beyond tightening validation and failing closed on unmeasurable freshness evidence.
Testing
Ran the new fm-admission behavior suite plus the gotmp and bootstrap suites that cover the consuming seams (all pass), then manually drove bin/fm-admission.sh through 11 end-user scenarios in a fixture home covering every intent constraint — inertness, task independence, band exit codes, authority, staleness fail-closed, signal separation, and safety-only schema refusals — captured as a CLI transcript; no visual evidence applies since the surface is a CLI.
Evidence: fm-admission.sh end-to-end CLI transcript (11 scenarios)
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-admission.sh:262- Unmeasurable snapshot age bypasses a configured freshness limit.$stale(bin/fm-admission.sh:198) requires$snapshot_age != null, so a readable snapshot whosegeneratedfield is missing or unparseable (reachable via the public--snapshotflag, or on a host where bothdate -j -fanddate -dparsing fail) yields age null and thecensus_integrity.snapshot_agerule resolvespreferredeven whenmax_snapshot_age_secondsis configured (verified empirically: rule records valid:false, configured_value:10, result:"preferred"). Snapshot freshness is one of the three deterministic safety conditions the intent says may set a band, and the intent states "missing evidence must never resolve to 'probably fine'"; a null age with a configured non-null limit should arguably map to the census unknown_band instead of preferred. No shipped default is affected (the limit ships null), but once an operator configures a limit, this silently disables the freshness safety condition on exactly the inputs where it matters.bin/fm-admission-lib.sh:108- Validation accepts an arbitraryhold_kind(andauto_reconsider) on thepreferredband: thehold_kind must be "load"check is skipped for preferred whilehold_kindremains an allowed key, sobands.preferred.hold_kind: "captain"validates (verified against the shipped example). Runtime impact is nil since preferred admits, but the change's own rationale is that misleading configuration must be refused rather than accepted; tightening band_error to refuse hold_kind/auto_reconsider on preferred (or require hold_kind absent there) closes the gap.bin/fm-admission-lib.sh:217-queue.release_triggersis validated as a configurable non-empty subset of ["teardown","session-start"] but no consuming seam reads it: bin/fm-teardown.sh's admission_release_reminder and bin/fm-session-start.sh's Fleet admission subsection both fire unconditionally for any active policy, and the value is only echoed into the decision record. An operator who configures ["session-start"] only still gets the teardown reminder. Either pin validation to exactly the two triggers (matching docs/configuration.md's "pins ... the two release triggers" wording) or honor the configured subset at the seams.docs/architecture.md:160- docs/architecture.md describes combining signals "into apreferred,soft,hard, orunknownband", but nounknownband exists anywhere in the implementation: severity_order is exactly ["preferred","soft","hard"], unknown evidence maps to soft/hard viaunknown_band, and the exit-code contract has no fourth band. The doc sentence contradicts the schema it points to.bin/fm-admission-lib.sh:310- Missing-jq semantics are asymmetric: fm_admission_state reportsabsentwhen jq is missing (bin/fm-admission-lib.sh:310-313), so an ACTIVE policy's session-start and teardown seams silently skip, while fm-admission.sh fails closed with exit 2 and the message "admission policy invalid ... jq is required" even for a dispatch-only crew-dispatch.json that carries no admission block at all. Both directions are defensible - a policy's presence cannot be determined without a JSON parser, and bootstrap's existingMISSING: jqdiagnostic surfaces the root cause - so this is a noted tradeoff, not a requested change.🔧 Fix: fail closed on unmeasurable snapshot age; tighten band and trigger validation
1 info still open:
bin/fm-admission.sh:263- All four accepted round-1 findings are correctly fixed in fad40be and verified empirically: the freshness rule fails closed to the configured unknown_band when max_snapshot_age_seconds is set and the snapshot age is unmeasurable (valid:false preserved, controlling rule named, both directions plus the configured-band variant pinned by the new test); queue.release_triggers is validated as exactly ["teardown","session-start"] with the seams left unconditional and the doc updated; bands.preferred refuses hold_kind and auto_reconsider while still allowing underscore operator notes, with the shipped example still validating; and docs/architecture.md now describes the three-band set with unknown evidence mapping through unknown_band. No new defects introduced by the fix diff.✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh tests/fm-admission.test.sh tests/fm-gotmp.test.sh— 15 admission behavior cases + 4 gotmp cases, all greenbin/fm-test-run.sh tests/fm-bootstrap.test.sh— bootstrap seam regression, greenManual end-to-end CLI walkthrough ofbin/fm-admission.shin a fixture home: absent policy (exit 0, unchanged), note-only policy (inert), active policy with held lock and fresh census (human explanation, preferred/exit 0),--jsondecision record (task_id null, safety-only mode, backlog contradiction observed but band preferred, ledger seam integrated:false),--briefone-liner, lock not held (hard/exit 4), stale snapshot with unknown_band=soft (soft/exit 3), task argument refused (exit 2),validaterefusing enforce:true, a typo'd config key, and unknown_band=preferred (each exit 2 with actionable reason)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.