Skip to content

Commit d670af1

Browse files
Deliver identified attempts through the sole fleet admission route (#710)
## Why The old runner's monthly outcome copies did not reach Hypatia's fleet import feed. Independently recording an attempt and then importing it could create two qualified contributions. Jonathan approved sole fleet admission with correlated rescan evidence on 23 November 2026. This implements the producer half, stacked on #709. The matching consumer is [Hypatia PR #1227](hyperpolymath/hypatia#1227), commit [4b4ba79](hyperpolymath/hypatia@4b4ba79); deploy and configure that consumer before any producer activation. ## Change - Emit `attempt_contract: fleet-attempt/1` and the normalized actual `repo_relative_path`, retaining #709's canonical event generation and six-field pre-execution start. - Append the actual configured fleet feed first, then identical raw transport mirrors under `dispatch/fleet-outcomes/`, outside the canonical learning ledger. - Make **zero** independent `mix hypatia.record_outcome` calls for identified attempts. The separate policy-refusal callback retains its legacy behavior. - Coalesce physical destination aliases; reject start/outcome collisions and known outcome/receipt-ledger pollution, including hardlinks. - Propagate feed/mirror and parallel infrastructure failures. A mirror failure retains the committed feed row without rerunning the fix or minting a new ID. - Preserve the production quarantine and licence gate. Mark #709's earlier behavior/evidence as historical and record the approved contract and pairing requirements. ## Validation - Outcome controls **63 / 0**; actual-runner harness **189 / 0**. - The same 189 assertions pass using the real canonical Mix event-ID generator. - Quarantine controls pass; refusal smoke **5 / 0**; Bash syntax and whitespace checks pass. - Independent producer source review found no blocker. - New actual-delivery witness **1 / 0** on both the matching consumer and its separately validated NS-01/NS-03 combination. The runner creates the import feed itself, with no delivery-copy setup. Four source/start/outcome/receipt IDs match; two failures qualify and two unbound success assertions stay audit-only; replay does not rescan or recount; all four receipts pass Nickel 1.11.0. - Failing controls demonstrate the old producer's absent feed and the old consumer's unjustified success credit. The integration fixture uses a controlled fixer and scanner subprocess. It tests the actual delivery and interpretation boundaries, not production scanner effectiveness. ## Integration limits Older E0-11 consumers ignore the new marker. Matching code versions and physical fleet/repository/store roots are prerequisites; a producer cannot verify an independently configured consumer's undisclosed roots. Existing fleet CI jobs run shell contracts, not the paired consumer witness. #709's inherited source-closure, RRA Clippy and GSBot dependency issues are already owned by #707; this change does not duplicate or suppress that lane. ShellCheck was unavailable locally. This is a draft integration step. It does not activate dispatch, remove quarantine, bind mutable post-fix state, implement revisions or establish full E0/Kautz qualification. Detailed evidence and commands: [NS-02-single-admission.adoc](https://github.com/hyperpolymath/gitbot-fleet/blob/37ea58c5b577485de9dc1e2af46af1d09e7056e6/docs/operations/NS-02-single-admission.adoc). --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 95b53a9 commit d670af1

9 files changed

Lines changed: 1079 additions & 225 deletions

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ htmlcov/
122122

123123
# Machine-readable locks
124124
.machine_readable/.locks/
125+
# Serialises feed and mirror appends in dispatch-runner.sh.
126+
shared-context/learning/*.jsonl.lock
125127

126128

127129
# Temp

‎docs/design/e0-12-outcome-route-decision.adoc‎

Lines changed: 61 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,45 @@
33
:toc:
44
:date: 2026-11-23
55

6-
Status: PROPOSED; no owner ruling is recorded here. The bounded NS-02 producer
7-
identity patch can be reviewed, but full E0-12 closure and automatic delivery
8-
remain unqualified. Production dispatch remains quarantined.
6+
Status: owner direction APPROVED on 2026-11-23. Jonathan approved the
7+
recommended single fleet admission and correlated-rescan direction. The
8+
original bounded producer patch and counterexample below remain historical
9+
evidence. The follow-on defines actual versioned delivery; complete E0-12,
10+
post-fix state attribution and production operation still require their
11+
acceptance evidence. Production dispatch remains quarantined.
912

10-
== Decision requested
13+
== Approved direction
1114

1215
Adopt the existing trusted fleet importer as the sole admission path for a
1316
producer-identified attempt. Retain Hypatia's rescan as evidence about that
1417
attempt, with explicit correlation and at most one effective contribution to
1518
learning per attempt. The current direct callback must cease creating an
1619
additional independent qualified attempt for the same dispatch.
1720

18-
This is the recommended contract direction, not an implemented route change
19-
or a claim that the observation/revision schema already exists. It needs the
20-
owner's ruling because the existing May contract requires the direct recording
21-
call, while the E0 design introduces a distinct identity-preserving importer.
21+
The owner approved this contract direction after reviewing the counterexample
22+
and the conflict with the May mandatory recording call. The follow-on amends
23+
that contract explicitly. Approval is not a claim that route implementation,
24+
observation state binding or qualification revision machinery is complete.
25+
26+
The bounded v1 uses `attempt_contract = "fleet-attempt/1"`, delivers directly
27+
to the configured fleet feed, and suppresses independent direct recording for
28+
identified attempts. The consumer stores its own versioned admission and
29+
correlated observation. Mutable post-fix state is not yet bound: a later clean
30+
or adverse scan is retained only as unbound audit evidence. Failed/incomplete
31+
attempts retain their existing qualification criteria. This limitation is
32+
required to avoid attributing a later repair's effects to an earlier attempt.
33+
34+
The matching consumer must be deployed and configured before any producer
35+
activation. An older E0-11 reader ignores the new marker and can still credit
36+
a producer `verified` row under its historical interpretation. The version
37+
field alone cannot make that older reader refuse it. Quarantine remains the
38+
activation boundary.
39+
40+
Pair the actual configured roots, not only the code versions: Hypatia's fleet
41+
root must resolve to the producer's `FLEET_ROOT`, and its `HYPATIA_REPOS_DIR`
42+
must identify the same repository root as `REPOS_BASE`. The real learning store
43+
must be named by `HYPATIA_VERISIM_DATA_PATH` where configured. A runner cannot
44+
prove the roots of another process whose configuration was not supplied.
2245

2346
== Authorities and measured sources
2447

@@ -41,11 +64,11 @@ The Hypatia sources below are pinned at
4164
default rescan behavior. Its later verdict table makes failed/incomplete
4265
calls qualified failures without a rescan.
4366

44-
== S-01: Producer-to-learning admission
67+
== S-01: Historical producer-to-learning admission counterexample
4568

4669
[cols="2,3,3",options="header"]
4770
|===
48-
|Path |Current behavior |Identity and qualification
71+
|Path |Behavior at the pinned baseline |Identity and qualification
4972
|Producer start
5073
|The NS-02 patch writes `shared-context/learning/fix-attempts.jsonl`.
5174
|One producer ID, before execution; no outcome or evidence credit.
@@ -114,11 +137,14 @@ an expected-bad passing test. A future exclusive-ingress design needs an
114137
acceptance test through its actual chosen flow; this artificial dual-call
115138
diagnostic is not a universal acceptance condition for every possible design.
116139

117-
Reproduce both witnesses from a configured test Hypatia checkout:
140+
Reproduce both historical witnesses from the exact isolated revisions below.
141+
These commands do not test the approved v1 implementation:
118142

119143
[source,shell]
120144
----
121-
# Set these to the two isolated checkouts; do not use a live fleet store.
145+
# Fleet revision: 565f075cf204f25f5b648547b8d8ae46fe1977ff (#709).
146+
# Hypatia revision: d158aed87f76b93e4f291e995bef9f26559c7fb2.
147+
# Set these to those isolated checkouts; do not use a live fleet store.
122148
export FLEET_CHECKOUT=/absolute/gitbot-fleet
123149
export HYPATIA_CHECKOUT=/absolute/hypatia
124150
export DISPATCH_TEST_HYPATIA_HOME="$HYPATIA_CHECKOUT"
@@ -129,10 +155,31 @@ bash "$FLEET_CHECKOUT/scripts/tests/dispatch-paths.sh"
129155
cd "$HYPATIA_CHECKOUT"
130156
mix run --no-start "$FLEET_CHECKOUT/tests/hypatia-event-import-test.exs"
131157
mix run --no-start "$FLEET_CHECKOUT/tests/hypatia-route-counterexample.exs"
132-
# The final command currently exits 1 and reports the duplicate contribution.
158+
# The final command at those revisions exits 1 and reports the duplicate contribution.
133159
----
134160

135-
== Recommended ruling: one attempt admission, correlated rescan evidence
161+
The approved v1 pair has a separate actual-delivery witness. From the matching
162+
Hypatia consumer checkout, with Elixir 1.19.4 / OTP 27.3.4.19 and Nickel 1.11.0:
163+
164+
[source,shell]
165+
----
166+
export MIX_ENV=test
167+
export NICKEL=/absolute/nickel
168+
mix run --no-start /absolute/gitbot-fleet/tests/hypatia-single-admission-test.exs
169+
----
170+
171+
It uses the actual runner in a disposable fixture, the canonical Mix event-ID
172+
generator, a controlled fixer and scanner subprocess, and the configured feed.
173+
No copying step delivers an original source event. Its only injected duplicate
174+
is an explicit replay control after the original events have been admitted.
175+
This tests delivery, identity, evidence gating and receipt binding; it does not
176+
test the production scanner's effectiveness on real repairs.
177+
178+
The existing fleet workflow jobs run shell contracts; they do not invoke this
179+
cross-repository witness or certify a deployed consumer pair. Their green
180+
status alone is insufficient evidence for activation.
181+
182+
== Approved ruling: one attempt admission, correlated rescan evidence
136183

137184
. Use the trusted E0-11 fleet import as the canonical admission path for
138185
producer-identified dispatch attempts. The source is append-only; primary

‎docs/operations/NS-02-producer-identity.adoc‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
:toc:
44
:date: 2026-11-23
55

6-
Status: implemented and independently reviewed for the bounded producer
7-
contract. Full E0-12 closure remains blocked on the route and observation
8-
decision in `docs/design/e0-12-outcome-route-decision.adoc`. No production
9-
dispatch or quarantine removal occurred.
6+
Status: historical bounded producer evidence at PR #709,
7+
`565f075cf204f25f5b648547b8d8ae46fe1977ff`. The behavior and results below
8+
describe that exact revision, including its former transport destinations and
9+
direct callback. The owner subsequently approved the route direction in
10+
`docs/design/e0-12-outcome-route-decision.adoc`; the versioned follow-on is
11+
documented in `docs/operations/NS-02-single-admission.adoc`. Full E0-12 closure,
12+
post-fix state attribution and production activation are not established by
13+
this historical record. No quarantine removal occurred.
1014

1115
Fleet base: `f1b14e2a352491ff7972f0dfd592bfbb28d2f32c`.
1216
Hypatia generator/importer base: `d158aed87f76b93e4f291e995bef9f26559c7fb2`.

0 commit comments

Comments
 (0)