← Back to Pull requests

Remove durable wake execution while preserving stored history #894

Closed
unknown closed this pull request without merging on Oct 12, 2026 17:38 UTC
View on GitHub
unknown unknown commented on Oct 12, 2026 14:48 UTC
Author

Summary


Remove unused durable wake execution without purging persisted history. This preserves existing per-tool async handles and admitted work; it does not deliver a unified Promise-like tool abstraction.

Changed


  • Remove wake registration/injection, worker startup and supervision, automatic observation/adoption/resumption, and wake-only API/UI/client commands.

  • Remove wake coupling from Close, continuation and deletion without introducing replacement settlement machinery.

  • Add migration 126 to record explicit retirement for historical wake workflows and execution pointers. Keep original payloads, statuses, bindings, receipts, messages and acceptance links unchanged.

  • Stop treating historical wake pointers as execution authority while preserving normal lifecycle for already-admitted Direct Turns, including wake-origin turns.

  • Preserve Bash/tmux handles, sub-agent completion, MCP results, explicit activation, conversation creation and active Direct Turn foundation primitives. Distinguish generic foundation verification contracts from production consumers.

  • Replace active wake specifications with the retirement/history contract and ADR-097; add synthetic upgrade, rollback, reopen and preserved-lifecycle regressions.
  • Qualification and integration


  • Post-federation retirement: 8 passed; combined migration module: 94 passed, both with clean corrected-guard receipts.

  • Runtime selection: 802 passed, 1 ignored; includes startup-no-wake-resumption and preserved creation/sub-agent/Direct Turn/continuation/Close behavior. Historical-pointer/Direct Turn DB regressions pass.

  • Python client: 14 passed. TypeScript, UI lint/Vitest, changed Allium and formatting pass. Workspace all-target Clippy exits 0 with warnings denied; guard cleanup and actual descendant absence are recorded separately.

  • Initial complete DB run: 892 passed / 9 partial-schema fixture failures / 1 ignored; those fixture boundaries were corrected and the owning migration module rerun. Tools: 533 passed with an unchanged macOS registry signaling-oracle failure tracked separately. No full dev.py check pass is claimed.
  • Cumulative source: actual federation merge 1839a37f then resource merge eec3fae6; resource ADRs 095/096 and ledger124/125 are retained, wake adds097/126. ADR shape now passes. Global is the sole merger under the user's qualify-and-merge decision; deployment is authorized organically in the next normal qualified batch, not a dedicated urgent restart or bypass of the search activation hold.

    Rollback limitation: migration126 is forward-only. Binary replacement does not undo retirement or authorize automatic wake resumption. Older code ignores the additive metadata and is unsupported against the migrated database; safe version rollback requires the existing offline matching-database/binary or specifically qualified paired-transaction policy, not a new downgrade mechanism.

    Diff: 368 lines (+276 / -92) across 4 files Reviewer: scottopell Review duration: 169m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 368 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.354
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #894"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.8% (MEDIUM) · Higher = larger blast radius
    42.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.9% · Safe to merge
    16.9%