Skip to content

upstreaming: bind complete dossiers to worker tasks - #5011

Merged
luhenry merged 1 commit into
mainfrom
upstreaming-pipeline
Nov 20, 2026
Merged

luhenry merged 1 commit into
mainfrom
upstreaming-pipeline

Conversation

@luhenry

@luhenry luhenry commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Fix recurring dispatcher queue failures without discarding the complete investigation dossier.

Recent dispatcher failures were caused by embedding the complete refreshed dossier in the Work payload. The spookyhash payload was 24,691 bytes, above gh-aw's 16,384-byte queue payload limit.

This change keeps the complete dossier committed as durable evidence under:

upstreaming-state/evidence/<dossier-evidence-id>.json

The queue receives a bounded projection plus an immutable reference containing:

  • riseproject-dev/python-wheels as the repository;
  • the exact 40-character control commit;
  • the exact evidence path;
  • the complete file's SHA-256;
  • an immutable raw.githubusercontent.com URL.

Before the model starts, trusted worker setup uses the read-only job token to fetch that exact-ref file, restricts it to the expected repository and evidence path, verifies its SHA-256 and evidence identity, and writes the complete dossier to:

/tmp/gh-aw/agent/dossier.json

The worker prompt requires reading the complete local dossier whenever present. The bounded queue projection still preserves evidence IDs, review response IDs, exact paths, proposal/path coverage, architecture precedent, build and dependency findings, and risks. Full source-by-source research remains available in the verified local file and immutable URL.

Trusted dispatcher preparation also rejects any payload above a 15,500-byte safety budget before queue staging. The current spookyhash payload is reduced from 24,691 bytes to 7,903 bytes.

Validation

  • 228 upstreaming tests pass.
  • gh-aw v1.2.2 checks pass.
  • Worker lock regenerated with gh-aw v1.2.2.
  • Regression coverage verifies immutable reference construction, complete-file digest binding, trusted worker fetch and identity verification, bounded dossier projection, and preservation of review IDs and exact paths.
  • git diff --check passes.

@luhenry
luhenry marked this pull request as ready for review November 20, 2026 21:33
@luhenry
luhenry force-pushed the upstreaming-pipeline branch from 3f69599 to 9f30b88 Compare November 20, 2026 21:34
@luhenry
luhenry merged commit 0dcaa40 into main Nov 20, 2026
4 checks passed
@luhenry
luhenry deleted the upstreaming-pipeline branch November 20, 2026 21:35
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