Repository navigation
Open
Description
Problem and verification layers
Existing process-kill tests cover geometry in progress and committed phase boundaries, but they do not interrupt every transaction boundary required by the recovery contract. Extend verification at claim before/after commit, product completion before checkpoint, checkpoint commit, source-head update before/after, version-publication commit and preview publication before/after its commit.
| Layer | Verification |
|---|---|
| Worker ownership | SIGKILL before claim, after a committed claim and while claim SQL remains uncommitted |
| Geometry checkpoint | Completed synthetic product before persistence and an interrupted checkpoint transaction |
| Version/head publication | Stop before/after head update and before publication commit; verify rollback and exactly one recovered version |
| Preview publication | Interrupt generation-manifest publication and completion marking after preview commit; recover without repeating committed versions |
| Test synchronization | Dedicated-schema SQL triggers wait on a parent-owned advisory lock; pg_locks proves the boundary, with deadlines and backend cleanup conditions |
Architecture (local)
flowchart LR
TEST[New crash-boundary verification] --> CHILD[Separate ordinary worker process]
CHILD --> EXISTING[Existing claim / geometry / publication / conversion]
EXISTING --> PG[(Existing PostgreSQL state)]
GATE[Test-schema SQL pause] -.Exact boundary.-> PG
TEST --> KILL[SIGKILL and reopen]
KILL --> RECOVER[Existing ordinary recovery worker]
classDef added fill:#e8f5e9,stroke:#15803d,stroke-width:3px,color:#111;
class TEST,GATE,KILL added;
Data flow (local)
flowchart TB
PREPARE[Prepare synthetic run and selected phase] --> START[Start child worker]
START --> OBSERVE[Observe stdout marker or blocked advisory lock]
OBSERVE --> KILL[Kill child, release test gate, await backend exit]
KILL --> CHECK[Check committed head / version / preview boundary]
CHECK --> REOPEN[Reopen pool and recover through normal worker]
REOPEN --> VERIFY[Exactly one version; expected geometry/conversion re-execution counts]
classDef changed fill:#fff3e0,stroke:#b45309,stroke-width:3px,color:#111;
class PREPARE,OBSERVE,KILL,CHECK,VERIFY changed;
No production fault-injection hooks or fixed sleeps are added. All ten new process-kill scenarios passed real PostgreSQL validation, race ×5, complete Go/vet and strict native integration. Exact-head CI for PR #52 also passed gateway, web and notebook.
Metadata
Metadata
Assignees
Labels
No labels
Activity