Repository navigation
Conversation
Signed-off-by: zlareb1 <[email protected]> (cherry picked from commit 43642ce) Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]> (cherry picked from commit 91307a575ba422e9902a92908e38064f2fcfac22) Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]> (cherry picked from commit 4b79adb68ab6b676765bd23b2a93b8fb5467be45) Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]> (cherry picked from commit 363b42d009ecb211c80241b8f3a86f92bb263afe) Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]> (cherry picked from commit 28af9cbea128f7c9df850d606a5da3f094d2d6d7) Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Independent review of
This is a static review of the refresh queue prerequisite only. The base is the live prerequisite, so the normal hosted CI workflow has not started for this stacked PR. No worker transport or knowledge writes are enabled. The reviewer could not independently verify the requested model identifier. I’ll address the findings in source, then request another review at the next head. |
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
|
The independent review of
Terminal replay now reacquires the exact queue row only after source authorization. The hosted Postgres fixture covers reassignment, exhaustion, a clock rollback, and both interval boundaries. Local focused checks passed (97 tests), as did Ruff and |
Signed-off-by: zlareb1 <[email protected]>
|
The independent review of Focused checks passed (135 tests), as did Ruff and |
|
The independent source review of The remaining wall-clock behavior is explicit: an unreclaimed lease or unpruned receipt can reopen after a backward step. This draft stays disabled pending a qualified expiry policy. The re-run after recovery of the local resource floor passed 70 focused tests, Ruff and diff checks. Fresh independent review is running; no hosted database result exists yet for this stacked head. |
Signed-off-by: zlareb1 <[email protected]>
|
56 focused tests passed. The new Postgres fixture has not run locally. This draft is stacked; the required hosted suites still need to run against the eligible base. A fresh independent review of the entire change is in progress. This draft does not enable refresh or write a document. |
Signed-off-by: zlareb1 <[email protected]>
|
96 focused tests passed. The Postgres fixtures await required hosted execution. The exact-head independent review stopped before a verdict due to disk exhaustion; a fresh review is running. This draft remains unqualified and disabled. |
|
The independent review of all 24 changed paths at Verdict: needs verification. Exact-head Postgres execution and the required hosted workflow are still pending. The queue remains disabled, with no approval to activate it or to merge without those checks. |
Related: #1302
Related: #1190
Changelog category
Not for changelog
Changelog entry
None. This change adds the storage and lease contract for selected document refresh. It does not expose a refresh operation.
Why
Scheduled refresh and Sync now need to admit the same bounded work without depending on a running agent session. Postgres owns the schedule cursor, exact selected task, and lease. A reissued lease changes the fence without changing the task identity. Repeated completion can be recognized under current authority without publishing the work twice.
Scope and risk
Add additive Postgres storage for the selected refresh queue, schedule and one manual offer per source. An authority transaction admits at most one unfinished batch of 64 selected items and retains at most 128 queue entries. Expired receipts for new queue entries may be removed without touching document or source history. A manual offer binds its exact owner, destination, generations and selected identities; retry returns its accepted job, and an expired or changed offer cannot enqueue again. A prior document version is unchanged only when its accepted raw digest and scoped revision agree.
The queue stores no upstream tokens or document bodies. Hosted fixtures cover partitioned claims, rollback of a staged checkpoint, cancellation fencing, and replay and expiry of a manual offer. They do not exercise a document write. An authenticated worker transport, scheduler, public Sync now operation, stored copy acceptance and access still need separate changes.
Compatibility, rollout and rollback
Tests
bd3e79cad2aa8901acd1c6e945b3096227e8092eis pending.AI assistance in the code
AI-generated (Codex). Focused tests were run on the rebased code; database behavior is still subject to hosted qualification.
Checklist