Host-neutral contract core: containment lint + per-host budget + «fn» relocation (j8s4)#546
Merged
Merged
Conversation
…-host budget + relocation Three deliverables (j8s4): 1. Containment lint (AC-1): internal/contractlint/host_neutral_core_test.go asserts the five shared/host-neutral contract files carry no host name (claude|codex|pi|opus|sonnet|haiku|fable, word-bounded) and no host tool token (Claude vocabulary + the existing Codex/Pi vocabularies), with a discriminator control. Bare `acceptance` excluded with grounds (core workflow vocabulary; the Pi field token stays adapter-contained). 2. Per-host budget (AC-5): the sum-of-13 foPromptMetrics ratchet is replaced by per-host load sets (shared cores + host adapters + host-reachable trigger skills) with per-host baseline constants, so a one-host regression reds its own ratchet; the checkpoint logs all three loads and the mutable-address lint keeps the 13-file union (sync-checked). 3. Relocation + reconciliation (AC-2/AC-3): the six per-host arrow lines in fo-dispatch-core.md become kind-only runtime-binding pointers (runtimeBoundCapabilities +6); non-redundant residue moves to the adapters (Pi: interrupt-steering, cwd-on-every-call, advisory detail, model-space ownership; Claude: async binding, completion-signal tag, staleness caveat, ensign background-task surface + failure channel). The Fan-out checkpoint gains the host-neutral authoring rule binding a fan-out's shape to this host's «async-dispatch»/«addressable-worker» bindings. Two core/binding conflicts (wait_agent foreground-vs-idle, roster-reconcile ABSENT-vs-list_agents) dissolve by adapter ownership; the g6 idempotency conflict stays owned by g6. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Journey cost delta
|
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.
Makes the shared/host-neutral FO contract files genuinely host-neutral, enforces it with a lint, and fixes the budgeting metric to measure real per-host load. Post-sprint 0260 coherence cleanup; captain-directed into 0.26.0.
What ships
internal/contractlint/host_neutral_core_test.go) — the five shared core files (first-officer-shared-core, fo-dispatch-core, fo-write-core, fo-merge-core, ensign-shared-core) carry no host name or host tool token; host-specifics live only in the adapters. A containment/existence check (not a prose-grep), with a discriminator control. Reds 30/30 planted host words/tokens.«fn»relocation — the six→ Claude:/Codex:/Pi:coverage arrows become kind-only→ **runtime-binding**pointers; the host residue moved into the adapters. Every host's real FO session load drops (host-neutral shared core, host-specifics per-adapter).Validation
go test ./...green.g6's standing-teammate conflict left untouched (owned by g6); AC-4 deferred.
🤖 Generated with Claude Code