Skip to content

Fix work queue asset delivery and projection request deadlines - #78095

Closed
pelikhan wants to merge 7 commits into
mainfrom
pelikhan/fuzzy-succotash
Closed

pelikhan wants to merge 7 commits into
mainfrom
pelikhan/fuzzy-succotash

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Publish multiple assets as separate content-addressed files in their original Claim namespaces on the existing work-queue branch. No asset or Claim branches are created.
  • Recover only definitive shared-ref conflicts with bounded non-forced publication attempts, preserving concurrent assets, ledger files, and uncertain-write fencing.
  • Verify original immutable asset receipts and exact current-head file paths without recursively listing unrelated files.
  • Keep JavaScript and Go queue history complete while filtering unrelated asset blobs. Fetch required ledger blobs by exact identity with scoped credentials; reject unsupported filtering instead of silently downloading all assets.
  • Start projection lock deadlines after mutation pacing and preserve pre-dispatch rate-limit errors even when no abort signal exists.
  • Report temporary Git-store cleanup failures through sanitized diagnostics without masking the original operation error.
  • Restrict the disposable Git test daemon to its exact repository and cover rejection of neighboring fixtures.
  • Update reference documentation and the patch changeset.

The asset failure boundary was observed in Daily Issues Report run 43714538289. Projection requests exceeded their configured legacy timeout during maintenance run 43725588096.

Validation

  • make fmt and npm run typecheck --prefix actions/setup/js --silent passed.
  • go test ./pkg/workqueue -run '^(TestQueueGit|TestLedgerSession)' -count=1 passed, including filtered cold fetches, authenticated exact-object reads, nested checkpoints, unsupported filtering, and sanitized cleanup failures.
  • Eight focused Vitest suites passed 145 tests, covering transport/object streaming, post-pacing deadlines, fixture isolation, the previously failing shard fixture, and asset receipt/restart compatibility.
  • BASE_REF=637abd353253111ad5814b6c91b98f52b74490b0 make agent-report-progress passed: build, Go lint, change-scoped custom lint, schema freshness, impacted tests (99 JavaScript tests), and recompilation/drift checks for 368 workflows. Unrelated diagnostics in unchanged files were handled by the repository's standard change-scoped gate.
  • The same read-only security reviewer approved the exact final candidate, including strict fixture export boundaries, local promisor-remote normalization, and sanitized cleanup diagnostics.
  • Earlier hosted JS checks passed all eight shards at 4fa718f; hosted CI on the new follow-up commit is not yet verified. No CI was triggered by this session.

Operational boundaries

No workflows were dispatched, production effects replayed, credentials changed, queue state reset, or retained projection locks deleted. Cursor/Grafana credential repairs, the masked conformance admission exception, existing retained locks, and release-reader compatibility remain separate operational follow-ups. This patch does not claim to prevent GitHub server-side 502s or repair historical failed deliveries.

Co-authored-by: Copilot <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot do not pollutr branches, use separate files instead if needed

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

@copilot do not pollutr branches, use separate files instead if needed

Updated in ad6468b: uploads now reuse one Claim-scoped branch and publish to separate content-addressed paths. Verification checks the original receipt and confirms its file remains at the current branch head.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilo why a separate branch than the worktree, can we simplify?

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot review the need for a separate branch than the worktree. reuse work queue branch

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

@copilot review the need for a separate branch than the worktree. reuse work queue branch

Implemented in bda1ccd: work-queue asset uploads now use the existing work-queue branch; no separate asset or Claim branches are created.

@copilo why a separate branch than the worktree, can we simplify?

The Claim-scoped branch was originally meant to isolate receipts from later uploads. I simplified this in bda1ccd: assets now append under content-addressed paths on the existing work-queue branch, with non-forced ref updates and current-head verification.

@pelikhan
pelikhan marked this pull request as ready for review November 15, 2026 21:03
Copilot AI adaptive review requested due to automatic review settings November 15, 2026 21:03
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78095 · copilot · gpt56 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #78095 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-15T21:06:08Z
review_event: REQUEST_CHANGES
top_themes:
  - shared work-queue branch concurrent update race
files_reviewed:
  - actions/setup/js/work_queue_upload_assets.cjs
  - actions/setup/js/work_queue_issue_coordination.cjs
  - actions/setup/js/work_queue_specialized_delivery.test.cjs
  - actions/setup/js/work_queue_issue_coordination.test.cjs
comment_count: 1
History

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Found one correctness issue: the new shared work-queue branch update is vulnerable to concurrent upload races, causing valid admitted uploads to fail nondeterministically. The specialist pass was unavailable because its file-read tool calls were rejected, so this review is based on the independent second pass.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-c8338fce-3e6e-4696-a404-78fe43d8aa03","parents":[],"payload":{"id":"ldg-ab4dbfec-8c1a-4676-983c-9842cc263268","operation":"append","value":{"finding_count":1,"head_sha":"bda1ccd4893a2cad99cd45e7ed2cec8bdda457bf","outcome":"findings"}},"sha":"sha256:416763b3773905cf8f7bef889ae28e30306f5d4873566462fd3824dfff130a8c","timestamp":"2026-11-15T21:10:17.555Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-8e2e0367-304f-4875-a9ff-61bd97de02db","parents":[],"payload":{"id":"ldg-f43dc290-b7f3-4770-bb00-8715833f3577","operation":"append","value":{"finding_count":0,"head_sha":"bda1ccd4893a2cad99cd45e7ed2cec8bdda457bf","outcome":"aligned"}},"sha":"sha256:d7078f9a9b8e361fb5582b3898991e7accfda6cd602221403fe300808ff064e3","timestamp":"2026-11-15T21:11:42.474Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /diagnosing-bugs, /tdd, and /codebase-design. Requesting changes because the description and the code disagree on where asset uploads go.

📋 Key Themes & Highlights

Key Themes

  • Description vs. code mismatch: the PR body and changeset say per-Claim branches, but the code hardcodes the shared work-queue branch.
  • Shared-branch contention: asset updateRef and ledger CAS write the same ref, with no retry or conflict handling.
  • Behavior change without a test: a missing branch now throws, and config.branch is silently ignored.
  • Test gaps: the REST projection-lock deadline path has no test.

Positive Highlights

  • ✅ The fail-closed handling for uncertain lock acquire and release is a sound fencing choice.
  • ✅ The multi-upload regression test is a useful addition.

Uncertainty

  • Octokit request.signal support was not verified locally because node_modules is not installed.
  • I did not run the test suite.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~6 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Asset publication can leave successful uploads without verifiable delivery coverage, while timeouts started before pacing can abort lock operations and leave surviving locks held indefinitely.

5 open issues
What changed in this PR

This PR updates gh-aw’s work-queue asset delivery and projection locking to support repeated uploads and bound API request duration.

Changes:

  • Publish content-addressed Claim assets on the existing work-queue branch, checking original Git objects and current-head file presence.
  • Replace legacy timeout options with abort deadlines: 15 seconds for REST and 30 seconds for GraphQL.
  • Add regression tests, reference documentation, and a patch changeset.
File Description
docs/​src/​content/​docs/​reference/​work-queue.md Documents projection deadlines and uncertain-write handling.
docs/​src/​content/​docs/​reference/​safe-outputs.md Describes queue-branch asset publication and verification.
actions/​setup/​js/​work_queue_upload_assets.cjs Changes asset storage and verifies files after the branch advances.
actions/​setup/​js/​work_queue_specialized_delivery.test.cjs Adds repeated-upload and durable-receipt regressions.
actions/​setup/​js/​work_queue_issue_coordination.test.cjs Tests acquisition and release deadlines without retries.
actions/​setup/​js/​work_queue_issue_coordination.cjs Applies abort signals to projection lock requests.
.changeset/​patch-work-queue-assets-and-projection-deadlines.md Adds a patch release note for asset delivery and deadlines.

Review effort: Max (dynamic)

Co-authored-by: Copilot <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@pelikhan pelikhan closed this Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6898558077:

Confirmed: uploads use separate content-addressed files in their original Claim namespaces on the existing work-queue branch. No asset or Claim branches are created.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6898678829:

The content-addressed files remain appropriate, but the earlier Claim-scoped branch was superseded by the later request. Current publication reuses work-queue without adding branches.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6900391503:

Confirmed: assets reuse the existing work-queue branch, with separate content-addressed files rather than another branch. No further storage-layout change is needed.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6900920321:

Confirmed: the existing work-queue branch remains the publication branch, with no additional asset or Claim branch. The reader-side fixes preserve that requirement.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901144104:

Confirmed against the current source: uploads reuse work-queue and publish content-addressed files with non-forced updates. The superseded Claim-scoped branch design is not restored.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901328022:

No separate code change for this completion notice because it contains no concrete finding. Current verification uses executed tests, not reported_no_action as proof.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901328224:

No separate code change for this completion notice. Concrete findings are handled in their review threads, and reported_action does not replace validation.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901328532:

The actionable shared-branch race is handled in its inline thread with checked conflict recovery. This completion notice requires no additional change and is not proof of correctness.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901328555:

No code or ADR change for this notice because it contains no design finding or draft. The existing-work-queue-branch requirement remains intact.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901328937:

No code change for this completion notice because it contains no actionable finding. It remains historical run evidence, not validation of later revisions.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901340259:

No separate code change for this completion notice. The concrete skills-review findings are evaluated in their individual threads.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901401905:

The managed comment memory and saved REQUEST_CHANGES result remain unchanged. Corrective work is verified through the actionable review thread rather than rewriting historical findings.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901411523:

The managed review-history ledger remains unchanged. Its finding_count=1 entry records the original review and is not rewritten to describe the current fixes.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901430236:

The managed specification-review history remains unchanged. Its aligned result applies to bda1ccd and is not treated as verification of subsequent changes.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901828230:

Confirmed: the separate content-addressed files remain in their original Claim namespaces on work-queue. No additional branch change is needed.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901828402:

Confirmed: the Claim-scoped branch design was superseded. Current publication keeps separate files on work-queue with bounded non-forced conflict recovery.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901828569:

Confirmed: assets already use the existing work-queue branch rather than creating another branch. The current batch preserves this design.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901828767:

Confirmed: shared publication uses bounded non-forced recovery while preserving concurrent ledger and asset updates. No new publication branch is introduced.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901829051:

Confirmed: no asset or Claim branches are created, uncertain writes stay fenced, and verification checks original receipts and retained current-head files. No additional asset-adapter change is needed.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901830158:

Agreed: the completion notice contains no concrete finding. Verification is based on executed tests rather than its reported_no_action status.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901830337:

Agreed: concrete implementation and specification findings are handled in their individual threads. The completion notice does not substitute for final-revision validation.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901830536:

Agreed: the shared-branch race is addressed through checked recovery and its regressions. This historical status notice needs no additional change.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901830741:

Agreed: this notice supplies no design finding or ADR draft. The existing-work-queue storage requirement remains unchanged.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901830928:

Agreed: this is historical run evidence without an actionable finding. It is not used as proof of current correctness.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901831187:

Agreed: the completion notice remains unchanged, while concrete findings are handled individually. Asset behavior has been checked against the synchronized source and local tests.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901831455:

Agreed: the managed memory and its historical REQUEST_CHANGES result remain untouched. Corrective work is evaluated through the corresponding review thread.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901831676:

Agreed: the baseline finding_count=1 ledger entry remains intact. It is not rewritten to imply later fixes or validation.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6901831932:

Agreed: the specification history remains unchanged. The aligned result for bda1ccd does not verify subsequent revisions.

Copy link
Copy Markdown
Collaborator Author

In reply to comment 6902147272:

The requested main revision is already merged, and the listed fixture, effect-coverage, and conflict-recovery fixes are present in 4fa718f; its eight JS shards pass. This batch verifies those fixes and addresses remaining pacing/reader gaps without another merge or any CI dispatch.

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.

4 participants