refactor(dispatch): return crew routing to agent judgment with advisory capacity - #76
Merged
Merged
Conversation
added 3 commits
August 2, 2026 14:06
…ry capacity Dispatch had accumulated a mechanical control plane in front of the routing decision: a required quota-axi with a version floor, a 113-line selection procedure, and a pre-selection vendor credential probe. Together they gated the start path before any judgment happened, and a capacity or credential reading could refuse a dispatch outright. Section 4 now states the routing decision as agent judgment over task fit and reasoning class. Capacity is advisory: quota-axi is read when installed and may separate otherwise comparable candidates, but headroom, runway, pace, an unmeasurable window, or a missing reading never refuses a dispatch or downgrades the captain's strongest-reasoning class. Selection is followed by exactly one preflight - fm-spawn.sh validating the concrete selected profile at launch - and work stops only when the selected capability actually fails or every remaining fallback would cross an identity boundary. Retires the quota-array-dispatch skill, the pre-selection vendor auth probe, the quota-axi compatibility floor, and their verification record. quota-axi leaves the required universal toolchain, so an absent or older capacity tool no longer emits a start-path blocker; bootstrap tests pin that guarantee directly. Preserved unchanged: fm-spawn.sh's fail-closed launch validation and worktree isolation assertion, secondmate home identity, malformed dispatch config as an actionable error, and the explicit-harness consultation backstop.
quinnbot-ai
added a commit
that referenced
this pull request
Aug 10, 2026
…ry capacity (#76) * refactor(dispatch): return crew routing to agent judgment with advisory capacity Dispatch had accumulated a mechanical control plane in front of the routing decision: a required quota-axi with a version floor, a 113-line selection procedure, and a pre-selection vendor credential probe. Together they gated the start path before any judgment happened, and a capacity or credential reading could refuse a dispatch outright. Section 4 now states the routing decision as agent judgment over task fit and reasoning class. Capacity is advisory: quota-axi is read when installed and may separate otherwise comparable candidates, but headroom, runway, pace, an unmeasurable window, or a missing reading never refuses a dispatch or downgrades the captain's strongest-reasoning class. Selection is followed by exactly one preflight - fm-spawn.sh validating the concrete selected profile at launch - and work stops only when the selected capability actually fails or every remaining fallback would cross an identity boundary. Retires the quota-array-dispatch skill, the pre-selection vendor auth probe, the quota-axi compatibility floor, and their verification record. quota-axi leaves the required universal toolchain, so an absent or older capacity tool no longer emits a start-path blocker; bootstrap tests pin that guarantee directly. Preserved unchanged: fm-spawn.sh's fail-closed launch validation and worktree isolation assertion, secondmate home identity, malformed dispatch config as an actionable error, and the explicit-harness consultation backstop. * no-mistakes(review): Remove residual preselection dispatch gates * no-mistakes(document): Correct stale session-start quota documentation --------- Co-authored-by: QuinnBot <quinnbot@proton.me>
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.
Convergence step 1 of the pure-upstream reconciliation: remove the start-path blockers so crew dispatch is an agent-owned natural-language routing decision again, with exactly one launch-and-identity preflight after selection.
What was blocking the start path
quota-axiwas a required bootstrap tool with a 0.1.16 version floor, so a missing or old capacity tool emittedMISSING:- andAGENTS.mdsection 3 forbids dispatching until required tools are presentbin/fm-quota-axi-lib.shretiredquota-axi --jsonsnapshot plus full per-candidate evidence accounting before any routing decisionquota-array-dispatch- 113 lines of mechanical selection order with hard stops on tight quota and on genuine tiesbin/fm-vendor-auth-probe.sh- a pre-selection credential preflight in front of the launch preflightharness-adaptersstill required credential discovery throughquota-axi auth --jsonand let a model listing "block that candidate"fm-spawn.shaloneThe new contract
Capacity may separate otherwise comparable candidates, but headroom, runway, pace, an unmeasurable window, or a missing reading never refuses a dispatch or downgrades the captain's strongest-reasoning class. Work stops only when the selected capability actually fails, or when every remaining fallback would cross an identity boundary - another account, credential surface, or home.
Preserved deliberately
bin/fm-spawn.shis untouched, so its fail-closed launch validation, the worktree-isolation assertion, and secondmate home identity all stand. Malformed dispatch configuration still surfaces as an actionableCREW_DISPATCHerror. Identity is still never inferred from a harness, model, or source name, and theharness=pi/model=xai/grok-*adapter split survives. Herdr lifecycle behavior is untouched - a separate task owns it.The
select: "quota-balanced"key stays in the config schema for backward compatibility with existing local files, now documented as marking an array capacity-informed rather than as authority to refuse a dispatch.Verification
bin/fm-lint.shclean,bin/fm-doc-audience-check.shok (61 surfaces, 184 local links), and all 21tests/fm-bootstrap.test.shassertions pass. The bootstrap tests that asserted the old blocking contract were inverted rather than deleted:test_quota_axi_is_never_a_start_path_blockernow pins the new guarantee through the executable interface, covering absent, old, and unparseable capacity tools.Net -1,137 lines.