Status ยท 9 November 2026

State reliability fixes

Failed work remains recoverable, and late activity no longer disappears after an idle scan.

Base a46470cBranch docs/implicit-state-machinesState Pre-publication verification snapshot

What changes

Resulting behavior

All 52 inventory entries

These were stateful mechanisms, not 52 independent defects. Retained means no concrete failure required changing that protocol.

Inventory entryDispositionEvidence or reason
1.1 Batch acknowledgementRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
1.2 Collector drain loopRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
1.3 Transport delivery protocolCorrectedDurable delivery queue; explicit retry and visible pending counts.
Regression tests
1.4 Scan health and heartbeatCorrectedIncomplete labels report a failed heartbeat and nonzero exit.
Regression tests
1.5 State recovery and ownershipRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
1.6 Repository identity initializationRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
2.1 File tail lifecycleRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
2.2 Collector state migrationRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
2.3 Session, model, and turn attributionRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
2.4 Copied and imported history boundaryRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
2.5 Legacy prompt recognitionCorrectedLegacy loop state survives chunk boundaries.
Regression tests
3.1 Claude turn and link lifecycleRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
3.2 Interrupt and queued-prompt carryoverCorrectedQueued prompt hashes survive chunk boundaries and are consumed.
Regression tests
3.3 Pending tool-call correlationRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
3.4 Tool deduplication and repeated-call detectionCorrectedCurrent open-turn tool IDs survive long turns without a truncation cap.
Regression tests
3.5 Turn link evidenceRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
3.6 Pi turn lifecycleCorrectedIdle Pi snapshots preserve pending calls and remain correctable.
Regression tests
3.7 Cursor root-list turn reconstructionCorrectedLate Cursor work revises covered aggregates with stable IDs and timestamps.
Regression tests
4.1 Automated Cursor registrationRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
4.2 SDK terminal-run acknowledgementRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
4.3 Cursor API catch-up and paginationCorrectedCapped windows split; indivisible saturation refuses acknowledgement.
Regression tests
5.1 ActivityWatch settled-range cursorRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
5.2 ActivityWatch retention backlogRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
5.3 macOS lookup circuit breakerRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
5.4 Active-time block builderRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
6.1 Label task window and acknowledgementCorrectedMissing episode rebuilds and budget cuts remain retryable.
Regression tests
6.2 Cached label unit lifecycleRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
6.3 Prompt and reply interval attributionCorrectedAmbiguous Cursor prompt context is omitted rather than assigned incorrectly.
Regression tests
6.4 Evidence snapshot cacheRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
6.5 Current-label selectionRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
7.1 Frozen historical replayRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
7.2 Recent/mature outcome coverageRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
7.3 Local label generation clockRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
8.1 Local ensemble batch lifecycleRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
8.2 Lazy model resource lifecycleRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
8.3 llama-server process lifecycleCorrectedDead servers restart on the next request; spawn failures close resources.
Regression tests
8.4 Teacher budget and failure breakerRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
8.5 Teacher and evaluation progressCorrectedScores require the same complete request hash, including its revision.
Regression tests
9.1 Gold annotation queue and undoRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
9.2 Local HTTP save and shutdownRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
10.1 Commit outcome lifecycle (named states)CorrectedA missing clone produces undecided, preserving prior known outcomes.
Regression tests
10.2 Outcome uncertainty and cache retentionCorrectedNegative PR answers cannot permanently hide a later merge.
Regression tests
10.3 Git source coverage lifecycle (named statuses)RetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
10.4 Daily Git ledger acknowledgementRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
10.5 Git-days due and retry schedulerRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
10.6 Remote Git output parserRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
10.7 Commit shell-directory parserRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
11.1 Scheduled scan retry markerCorrectedKernel locking prevents overlap; tunnel failures support systemd retry.
Regression tests
11.2 Once-per-day outcomes and labelsCorrectedDaily markers record success; incomplete work retries after the next scan.
Regression tests
11.3 SSH tunnel ownershipCorrectedCleanup targets only the owned tunnel process on normal exit and signals.
Regression tests
11.4 Backup attempt and last-good statusRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.
11.5 Backup retention and weekly pruneRetainedRetained protocol or source constraint. Existing regression coverage remains in the full suite.

Verification

946 tests passed in 572.76 seconds on macOS with Python 3.13, including PostgreSQL 16 integration tests. No tests were skipped in this run.

Ruff 0.15.11 passed. Mypy 2.4.1 passed across 58 source files with optional installed packages excluded, matching the minimal CI type-checking scope. Bash syntax, whitespace, documentation links, and HTML validation passed. Two independent reviews have no unresolved findings in the corrected paths.

The final report was inspected at desktop and phone widths. The phone viewport has no page overflow, and all 52 disposition rows are present.

Regression cases failed before their corresponding fixes. PostgreSQL 16 scratch tests also cover legacy timestamps, restricted INSERT/SELECT roles, deferred updates, and replay after a column grant.

Independent correctness and contract reviews found timestamp, machine-copy, Linux retry, heartbeat, and documentation gaps. Each receives a regression or a direct documentation correction.

Limits and rollout

Update the installed package before copying the new scheduled wrapper; the wrapper calls aut scan-job.

Apply the optional UPDATE(attrs) grant as the database administrator to enable covered corrections. Until then, normal delivery continues and corrections remain queued. Run aut retry-delivery afterward.

This snapshot records verification before publication. It does not report deployment status. Database checks used a disposable PostgreSQL instance; live grant and collector checks belong to the release verification.

Deleted source blobs cannot be reconstructed. Indivisible API page saturation stops safely for operator recovery. SIGKILL cannot execute cleanup. Source-coverage hashes grow with a turn.

Crash recovery still uses at-least-once delivery and stable sink identities. That is a required safety property, rather than a defect to remove.