Repository navigation
fix(subscriber): preserve execution ownership during historical orphan recovery - #61
Conversation
…wnership evidence
|
Independent CertForge gate review (2026-11-12, read-only; current head Additional fail-closed review item: Retain draft/HOLD until independent review, real exact-SHA CodeQL, CertForge policy certification and reversible deployment authorization. No approval or merge performed. |
|
Independent CertForge gate repair — 2026-11-12 14:34 UTC. New exact draft head |
|
Independent CertForge release-gate review — 2026-11-12 15:25 UTC. HOLD; new reproducible lease-expiry ownership defect at exact head The #61 guards protect Actual isolated repro (no production mutation): On FORGE, shallow-cloned this exact SHA into a disposable temp directory. A synthetic pytest used existing Least-change correction requested before promotion: Apply the same fail-closed reservation ownership/consumption predicate to the expired- Separately, current exact-head hosted Actions test completed successfully ( |
Fail closed on lease expiry and retry errors when worker ownership, reservation consumption or execution markers exist. Preserve run/reservation/metering evidence and add synthetic negative and positive recovery controls. Reviewed locally: 30 focused pytest cases passed; Git diff check clean.
|
Independent CertForge release-gate update — 2026-11-12 15:37 UTC. New tested draft head published: Defect reproduced first: Expired Verified: 30/30 focused Review gates: Still a draft; no independent approvals or established exact-head CodeQL. Do not merge or deploy until independent review/security certification. Source PR #49's head is unchanged and does not yet include this dependent guard. |
|
Independent CertForge release-gate update — 2026-11-12 16:20 UTC (read-only; HOLD).
The FORGE connector's repeat disposable local-test invocation encountered an execution error in this inspection; no new local passing tests are claimed here. Prior separately recorded focused-test evidence and current successful hosted CI remain distinct. |
|
Independent release-gate source review, 2026-11-12 18:30 UTC. Exact reviewed stack: PR #61 head Additional ownership-custody review requirement (source-level, not a demonstrated production fault): In This is a potential forensic/ownership-preservation gap, not grounds to infer the seven historical QUEUED/FAILED/BOUND production jobs were misclassified. Please determine whether an existing immutable event already captures sufficient claim identity and time. If not, record a bounded, redacted owner/lease correlation before clearing the active claim; do not persist a replayable raw claim token or keep the stale token executable (since Fresh FORGE read-only check: seven historical QUEUED/FAILED/BOUND jobs still have zero selected ownership/consumption markers; eight separate CANCELLED/PENDING/BOUND records remain outside this patch. No production DB changes made. |
|
Independent custody follow-up (2026-11-12 ~19:35 UTC): new draft PR #63, stacked on exact-head #62 |
Independent CertForge release-gate safety patch
Stacked on draft #58 at exact parent
76b85df4185addbba0f8b700750c38c019e083ec, preserving #49 and #58 heads.The historical orphan selection in #49 previously matched any
QUEUED/FAILED/BOUNDrun, even an inconsistent record with an execution-start timestamp, worker ownership, worker attestation metadata, dispatch lease, or claim token. Such a record must not be terminalized and compensated as unstarted.This least-change patch adds negative, fail-closed SQL predicates for ownership and execution markers before recovery, preserving run state, reservation, metering and the existing audit evidence for inconsistent cases. No production database modification, heartbeat fabrication or policy override.
Exact local test evidence (FORGE disposable checkout): 16/16 tests passed in 35.96 seconds, including 12 new parameterized contradictory-state cases plus 4 existing recovery tests.
git diff --checkandcompileallpassed. Verified source Git blob66ff83dc4d2e527369a96f45fb86670bf9d900a5and test blob7286c2bcd96444ca971d8d27aee3d7a65f0cb3a7against the exact tested bytes before publishing.Live read-only predicate safety: seven existing QUEUED/FAILED/BOUND records have none of the 12 guarded ownership markers, so this correction preserves their eligibility. The eight separate CANCELLED/PENDING/BOUND reservation cases are not selected and require independent accounting review.
Gates: DRAFT, requires independent review, hosted exact-head CI and CodeQL, integration with deployed-ancestry PR #60, formal release authorization and authentic signed-worker recovery before any promotion. This PR does not approve or deploy the fix.
Related: #49, #50, #51, #52, Swarm PR #16.