Skip to content

Deliver identified attempts through the sole fleet admission route - #710

Merged
hyperpolymath merged 8 commits into
mainfrom
feat/e0-12-single-admission-20261123
Nov 27, 2026
Merged

hyperpolymath merged 8 commits into
mainfrom
feat/e0-12-single-admission-20261123

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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, commit 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 fix(dispatch): preserve producer event identity for E0-12 #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 fix(dispatch): preserve producer event identity for E0-12 #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.

Mint the canonical Hypatia event ID before execution, persist the ruled
start record, and retain that identity across outcome mirrors. Fail closed
on identity or write errors, including parallel dispatch children.

Add producer contract controls, actual-row importer witnesses, and an
explicit decision packet for the still-unresolved dual-route credit case.
Keep production quarantine and outcome qualification unchanged.
@gitnotebooks

gitnotebooks Bot commented Nov 23, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 95b53a9 and bc4598b.

Files selected for processing: 9

  • .gitignore
  • docs/design/e0-12-outcome-route-decision.adoc
  • docs/operations/NS-02-producer-identity.adoc
  • docs/operations/NS-02-single-admission.adoc
  • scripts/dispatch-runner.sh
  • scripts/tests/dispatch-paths.sh
  • tests/hypatia-record-outcome-smoke.sh
  • tests/hypatia-single-admission-test.exs
  • tests/outcome-verdict-test.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T23:50:38.814690Z bc4598b New commits
🔒 Security Review ❌ Failed 2026-11-26T23:46:04.958104Z
We couldn’t complete this review. Comment @codex security review to try again.
bc4598b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dcfbb7b4bc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/dispatch-runner.sh Resolved
Comment thread scripts/dispatch-runner.sh Resolved
Comment thread scripts/dispatch-runner.sh Resolved
hyperpolymath added a commit that referenced this pull request Nov 26, 2026
## Why

E0-12 requires one stable producer identity for each actual dispatch
attempt. The current runner executes a fix without the ruled start
record, then writes outcomes without an event ID. This prevents reliable
distinction between separate identical attempts and copies/replays of
one attempt.

## What changes

- Call the existing canonical `mix hypatia.event_id` once before either
executable fix path; validate its documented final output line and
reject nonzero generator exits.
- Append the exact six-field canonical start to
`shared-context/learning/fix-attempts.jsonl` before execution.
- Preserve the producer ID and identical serialized outcome bytes across
the existing primary/central destinations.
- Refuse identity, encoding and required write failures; propagate these
failures from parallel children to the parent.
- Expand the disposable runner harness and add two cross-repository
witnesses using actual producer emissions.
- Record the bounded evidence and a **PROPOSED** route/observation
decision packet.

Production exit 78, the licence refusal branch, outcome qualification
and current destinations/callbacks are unchanged. Policy refusals do not
become fix attempts.

## Evidence

Fleet base: `f1b14e2a352491ff7972f0dfd592bfbb28d2f32c`.
Hypatia generator/importer: `d158aed87f76b93e4f291e995bef9f26559c7fb2`.
Canonical runtime: Elixir 1.19.4 / OTP 27.3.4.19.

- Failing-before controls reproduced missing producer identity,
execution without a start, and a parallel infrastructure failure
incorrectly returning zero.
- Outcome suite: **63 checks pass**, also invoking **112 whole-runner
checks**.
- Canonical Mix generator: **112 whole-runner checks pass**.
- Quarantine: seven blocked entrypoints and the
no-publication/state-mutation assertion pass.
- Direct-call smoke: **5 checks pass**.
- Bash parsing and whitespace checks pass; ShellCheck was unavailable
locally.
- Actual emitted-row importer witness: **3 checks pass**, including
distinct attempt IDs, exact mirrors, start exclusion, persisted replay
deduplication and no implicit qualification of raw monthly rows.
- Existing Hypatia importer/event-ID regression suite: **56 tests, 0
failures**.
- Independent source/document review found and resolved the parallel
failure propagation issue and confirmed the final bounded patch.

Exact commands, limitations and witness reproduction are in
`docs/operations/NS-02-producer-identity.adoc` and the companion
decision packet.

## Unresolved integration boundary — deliberately visible

**The route counterexample exits 1.** One actual emitted failed attempt
becomes **two qualified failures with two receipts** if its current
direct Mix recording is followed by explicit fleet import. The
`bot=hypatia` echo alone is skipped; the duplicate comes from admitting
the independent direct record and the producer record.

This falsifies naïvely forwarding the current monthly outcome into E0-11
while retaining independent direct recording. It does **not**
demonstrate automatic delivery, and the artificial dual-call diagnostic
is not a universal acceptance test for a future exclusive-ingress
design.

E0-12's stop condition requires a design for multiple outcome rows from
one attempt. The May dispatch contract simultaneously requires `mix
hypatia.record_outcome`. The proposed resolution is the existing trusted
importer as the sole attempt admission path, with rescans as explicitly
correlated evidence and at most one effective qualified contribution per
attempt. Existing success, failure and qualified-false-positive
accounting must be preserved. At this historical producer revision, the
route had not yet been changed. The owner has since approved sole fleet
admission; the implementation is in the follow-on drafts linked below.

## Scope

This draft supports review of the producer identity contract. It does
not close E0-12/E0, remove quarantine, change public admission, deploy
anything, prove power-loss durability or exactly-once neural updates, or
qualify a higher Kautz type. The owner direction is now approved. Full
route closure remains subject to the follow-on integration and post-fix
attribution gates described below.

## Hosted CI checkpoint — 23 November 2026

[Dispatch path and outcome
contracts](https://github.com/hyperpolymath/gitbot-fleet/actions/runs/45150891982/job/137611681951)
passed. Wider CI remains blocked and incomplete.

[Pinned source
closure](https://github.com/hyperpolymath/gitbot-fleet/actions/runs/45150891940/job/137611681178)
failed with `SOURCE-ACTIVE-MISSING`: `scanner-credential` calls
Hypatia's reusable workflow at `f2c06048…`, but the active source
catalog and closure receipt still bind it to `29a9e4a8…`. The source
auditor's 55 fixture controls passed; actual source authentication did
not.

The dependent [E2E
job](https://github.com/hyperpolymath/gitbot-fleet/actions/runs/45150891940/job/137611995270)
stopped at its prerequisite guard before checkout or behavioral tests.
This is one source-closure blocker plus its propagation, not evidence of
a second behavioral regression.

Independent comparison confirmed that the workflow tree, auditor,
catalog and receipt are unchanged from this PR's base. The actual
patches in [existing maintenance PR
#707](https://github.com/hyperpolymath/gitbot-fleet/pull/707/files)
repair the two stale bindings. That lane owns the fix; it has not been
duplicated here. Its patch does not yet establish that subsequently
skipped checks will pass, and this PR remains draft. No gate was
weakened or rerun.


## Approved single-admission follow-on — 23 November 2026

Jonathan approved the existing trusted fleet importer as the sole
admission path, with rescans as correlated evidence. The reviewed
implementation is in [fleet
#710](#710), paired
with [Hypatia
#1227](hyperpolymath/hypatia#1227). This #709
head remains the bounded historical identity patch and counterexample;
its code, CI history and quarantine have not been rewritten.

The new paired witness exercises actual feed delivery without a copying
step, preserves four start/source/outcome/receipt identities and checks
all four receipts with Nickel. Current mutable-target scans remain
unbound and confer no positive credit or false-positive blame. The
matching consumer must precede producer activation. Both follow-ons
remain drafts; no activation or E0/Kautz sign-off is implied.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Operational Changes**
* Dispatch attempts now require a valid attempt identifier before
execution. Failures to create or record attempt details are reported as
dispatch errors.
* Outcome records can include the attempt identifier. A failed
central-store mirror is reported even when the primary record was saved.
* **Documentation**
* Added guidance on producer identity and a proposed outcome-routing
decision. The proposed route change is not implemented, and production
dispatch remains quarantined.
* **Tests**
* Expanded coverage for dispatch, event identity, outcome recording, and
import behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Claude <noreply@anthropic.com>
Base automatically changed from fix/e0-12-producer-event-id-20261123 to main November 26, 2026 22:36
Main holds the squash of #709, whose tree equals the 1e00313 head already merged; conflicts were resolved by keeping this branch's side.
@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

…, serialise appends

Refuse a configured Hypatia repository root that differs from REPOS_BASE,
refuse an unhydrated Git LFS pointer as the canonical feed, and hold one lock
across the feed and both mirror appends so parallel attempts keep one order.
Tests cover each case.
@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23e5995aeb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/dispatch-runner.sh Resolved
Comment thread scripts/dispatch-runner.sh Resolved
Comment thread scripts/dispatch-runner.sh Resolved
…ire flock for every run

Define append_outcome_rows and record_outcome_followup before record_outcome
so the verdict test's extraction includes them, and check for flock before any
attempt, not only for --parallel.
@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit d670af1 into main Nov 27, 2026
127 of 129 checks passed
@hyperpolymath
hyperpolymath deleted the feat/e0-12-single-admission-20261123 branch November 27, 2026 00:07
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.

3 participants