Repository navigation
Qualify an unwired durable admission wait with a fixed cutoff - #1264
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Pre-merge checks:
|
Codex Review Summary: ✅ CompletedThis 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. |
…ck-admission-wait
There was a problem hiding this comment.
2 issues found and verified against the latest diff
Confidence score: 4/5
runWorker.mjscan pass without proving the pre-crash read was replayed from the durable journal. Loadbefore-crash.jsonon resume and assert the trace is unchanged after replay delivery.runScenario.mjsduplicates the restart and cleanup lifecycle, so future fixes can drift across fixture runners. Extract the shared lifecycle.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="scripts/pack-admission-workflow-fixture/runScenario.mjs">
<violation number="1" location="scripts/pack-admission-workflow-fixture/runScenario.mjs:7">
P3: This runner duplicates the full restart and cleanup lifecycle already present in the scheduler and foundation fixture runners. Extract the shared lifecycle so future timeout, process-failure, or cleanup fixes cannot diverge across fixtures.</violation>
</file>
<file name="scripts/pack-admission-workflow-fixture/runWorker.mjs">
<violation number="1" location="scripts/pack-admission-workflow-fixture/runWorker.mjs:62">
P2: The restart scenario does not verify that the pre-crash read was replayed from its durable journal. Load `before-crash.json` in the resume path and assert the trace is unchanged after the replay delivery, before the next scheduled poll; otherwise duplicate read effects during restart remain undetected.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval blocked by 8 unresolved issues from previous reviews.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 17 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds an unwired durable admission-wait candidate with a 30-second cutoff, plus a compiled restart/replay fixture, documentation, and CI wiring. No production caller or factory wiring exists, so the change is bounded and has no production behavior effect.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 5 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Dismissed because Cubic found issues in a newer review.
There was a problem hiding this comment.
All reported issues were addressed across 15 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 13 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds an unwired durable admission-wait candidate with a fixed 30-second cutoff, restart/replay fixture diagnostics, docs, and CI wiring. No production caller/factory activation exists, so the change is bounded with no production behavior change.
View guided diff | Turn on auto-fix | Re-trigger cubic
Adds an unwired durable admission wait for the existing Packs read path. The engineering candidate uses a 30-second admission cutoff and schedules polls at the earliest of one second, the original cutoff or hold expiry. Only a missing saved workflow ID on the same authorized running job is waitable; other identity/status/expiry/read failures reconcile with the original job/run context. No production caller, factory activation, admission write, lease change or second dispatch is added.
The compiled fixture uses the actual coordinator and durable steps with a synthetic read RPC, verifies original-clock restart and terminal replay, and is required by CI. The cutoff is not a wall-clock completion guarantee; pre-journal clock crashes and production authority/continuation policy remain unqualified.
Fixture reliability resolution candidate
An earlier combined-head CI run recorded an extra wait without sufficient IDs to classify it. Deterministic controls now prove that startup recovery plus the fixture's explicit startup reenqueue produces two SDK queue messages, and a separate source-verified storage overlap probe reproduces duplicate stored event IDs for one wait correlation. Neither retrospectively attributes the historical failure.
The fixture removes the redundant startup reenqueue while preserving explicit terminal replay. A passive, fixture-local observer records actual queue messages, per-delivery async context and create/list operations before startup; it preserves original SDK promises/results. Timeout-safe capture retains incremental operations, raw events/waits and pre-crash evidence before cleanup. Strict wake/effect assertions remain unchanged; no deduplication or delivery serialization is introduced. General SDK concurrency and hosted fencing remain unqualified.
Validation
58d73dc3b3a2ad5a0f4f12404b4c8432c3821e93normally incorporates accepted main37b5a07572e182429e3fc44baf24706ded292f7c. Exact-head CI and independent review are required.Merge hold remains with the coordinating reviewer until this source-bound resolution and successor qualification are accepted. A prior green retry alone is not acceptance. CodeRabbit's function-length advisory is acknowledged as non-blocking for the cohesive admission state machine.
Normal integration of accepted Sites #1266 preserves all22 incoming bridge/capture paths, all34 admission paths and all9 runtime bindings. No SDK/package/lock change. Final combined-head CI and independent composition remain required.
Successor58d73dc3 fixes the independent P2: start readiness and post-SDK-close success both require a fully drained immutable trace; last-append failure controls prevent success and preserve primary errors. Byte-bounded reads and local WebSocket/HTTP2 guards address review follow-ups. All35 focused tests and7 compiled scenarios pass. Root routes focused successor review and owns merge; final exact-head CI remains required.