Repository navigation
Deliver identified attempts through the sole fleet admission route - #710
Conversation
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.
|
Review these changes at https://app.gitnotebooks.com/hyperpolymath/gitbot-fleet/pull/710 |
|
Warning Review limit reachedYou'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. View limit details
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. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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. |
There was a problem hiding this comment.
💡 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".
## 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>
|
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.
|
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. |
There was a problem hiding this comment.
💡 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".
…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.
|
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. |
|



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
attempt_contract: fleet-attempt/1and the normalized actualrepo_relative_path, retaining fix(dispatch): preserve producer event identity for E0-12 #709's canonical event generation and six-field pre-execution start.dispatch/fleet-outcomes/, outside the canonical learning ledger.mix hypatia.record_outcomecalls for identified attempts. The separate policy-refusal callback retains its legacy behavior.Validation
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.