fix(runtime): surface writeback no-receipt failures#244
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
More reviews will be available in 37 minutes and 14 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 959bd0fca3
ℹ️ 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".
| if (normalized.state !== 'succeeded') { | ||
| throw new WritebackError(normalized); |
There was a problem hiding this comment.
Don't throw for fire-and-forget writebacks
When a client intentionally sets writebackTimeoutMs: 0, adapter-core returns immediately with no receipt; mcp-workforce still relies on that mode in its GitHub tool test (packages/mcp-workforce/src/tools/integrations.test.ts:65-67) and calls this runtime helper from integrations.ts:84. This new branch normalizes that expected fire-and-forget result to no_receipt and throws, so integration.github.comment/createIssue/etc. can no longer write drafts in offline/fire-and-forget mode and the existing mcp-workforce test would fail. Preserve timeout-0 as a successful draft write or update the callers/config to stop using it.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Addressed in 672f3e0. The wrapper now preserves explicit writebackTimeoutMs: 0 fire-and-forget writes by returning the draft result when normalization reports no_receipt; timed waiters still throw WritebackError. Added regression coverage for both paths and verified @agentworkforce/runtime (95/95) plus @agentworkforce/mcp-workforce (25/25). The aggregate check got through lint/typecheck and later hit an unrelated timing flake in a deploy OAuth polling test; rerunning that deploy test passed.
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. The only production consumer is My review is complete. Let me write up the findings. Review Summary — PR #244 (
|
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Let me analyze the I have enough to write the review. Let me verify there are no lint/format/typo issues I should mechanically fix in the diff. The diff is clean TypeScript that already compiles. Let me confirm there's no pre-existing changelog formatting issue or import-order issue. The code is well-formatted and passes Review SummaryI reviewed PR #244 ( What the PR doesThe runtime previously re-exported Verification (ran the full canonical CI sequence)
(An initial isolated FindingsThis is a deliberate behavior change (fail-loud), not a bug. Callers that don't set Did not auto-edit anything. The diff compiles, is well-formatted, and has no lint/typo/import-order issues to mechanically fix. The core logic change is semantic/safety-relevant, so per policy it gets review comments, not edits. Addressed comments
Advisory Notes
The PR is internally consistent, fully builds/typechecks/tests green across the monorepo, and moves writeback handling in the safer fail-loud direction. The remaining items above are author/product judgment calls, not blockers I can mechanically resolve. Since the decision on the |
Summary
writeJsonFileso missing Relayfile writeback receipts become first-classWritebackErrors withstate: no_receiptWritebackErrorfrom runtime/client barrelsWorkforceIntegrationErrorDependency
Verification
pnpm install --frozen-lockfilepnpm --filter @agentworkforce/persona-kit buildpnpm --filter @agentworkforce/runtime test(94/94 pass)Part of AgentWorkforce/cloud#2291 W6 follow-up.