Skip to content

feat(review): hand off exact published producer evidence - #29

Merged
Adam Poulemanos (bashandbone) merged 1 commit into
mainfrom
work/reviewer-publication-handoff-20261017
Oct 17, 2026
Merged

Adam Poulemanos (bashandbone) merged 1 commit into
mainfrom
work/reviewer-publication-handoff-20261017

Conversation

@bashandbone

Copy link
Copy Markdown
Contributor

Summary

Capture the producer's envelope digest at publication and pass it to an optional trusted-host callback. This removes the need for the host to reconstruct a handoff by rereading a supplied bundle. Existing callers and the returned envelope remain unchanged.

runProducer(platform attempt context)
  publish completed envelope bytes without replacement
  await onPublished(frozen attempt, SHA256 of those exact bytes)
  return existing envelope

later, after the source run terminates successfully:
  protected host handoff + bundle + authenticated API → composer

Callback errors are sanitized; the published bundle remains and no automatic retry occurs. The callback supplies a handoff seam only: no protected hosted channel, workflow activation, dispatch, or provider execution is added. Provenance remains unverified and round completion unknown.

Evidence

  • Before: the prior producer fails the new handoff tests; composition fixtures manufactured the handoff by hashing the bundle afterward.
    After: real producer → callback → composer fixtures pass. Focused suite: 59 passed, zero skipped; independent root rerun: 59 passed. Full reviewer suites: 150 passed, one existing pinned-SDK normalization test skipped, zero failures.
  • Seven targeted mutants fail for failed-envelope admission, omitted publication, wrong digest, mutable handoff, missing await, callback-error leakage, and missing context guard. Independent audit, Node syntax checks, and git diff --check pass.
  • Existing sibling-attempt, digest-substitution, incomplete-acquisition, and stale-candidate cases now use the actual callback. The completed-source-run gate remains unchanged: composition cannot qualify a still-running source workflow.

Merge Danger

Door: two-way

Dormant optional library API; no workflow or provider changes. Publication and handoff are nontransactional: a callback failure or crash can leave a published bundle without confirmed handoff. No exactly-once claim or automatic replay.

Blast Radius: reviewer

Three files: producer, producer/composer tests, and handoff documentation. Hosted provenance and production completion remain unqualified.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T17:31:27.234888Z ed7380a PR opened
🔒 Security Review ✅ Completed 2026-10-17T17:32:21.044833Z ed7380a PR opened
ℹ️ About Codex in GitHub

Your 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.

@bashandbone
Adam Poulemanos (bashandbone) merged commit 69f2c7f into main Oct 17, 2026
3 checks passed
@bashandbone
Adam Poulemanos (bashandbone) deleted the work/reviewer-publication-handoff-20261017 branch October 17, 2026 17:34
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.

1 participant