← Back to Pull requests

Protect published schema-114 launchd activation #934

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

Summary


Adds one fail-closed launchd path for upgrading an exact schema-114 database with an immutable published release whose registry ends at 128, without weakening the existing prepared-artifact or ordinary deployment contracts.

Changed


  • Separates candidate provenance from controller authority: the binary and migration registry remain bound to the exact published release commit, while activation uses a different explicit controller commit and retained helper digest.

  • Reuses the protected current-schema lifecycle for exact 114→128: pre-disruption validation and capacity reservation, stopped/exclusive snapshot proof, and a durable migration_started boundary before candidate invocation.

  • Prohibits predecessor rollback once migration may have written; recovery and finalization can use only the exact retained candidate after that boundary.

  • Rejects every unqualified ordinary pending-migration interval before service disruption, including an existing database with no installed predecessor; exact-target ordinary replacement remains unaffected.

  • Makes manifest/status mode coherence fail closed across activation, cleanup, finalization, recovery, markerless claims, and malformed or tampered retained evidence.

  • Records the narrow compatibility expansion in ADR-115, requirements, and the launchd behavioral model; schema 114 is not admitted for prepared artifacts, and no other baseline or target is qualified.
  • Why


    The published RC can migrate schema 114 to 128, but its ordinary deployment path may restart the schema-114 predecessor after candidate writes. This route preserves release provenance while moving the irreversible boundary ahead of the first migration invocation.

    Verification


  • PYTHONPATH=tests/devpy python3 -m unittest test_current_schema_prepared_upgrade test_launchd_deploy — 324 passed

  • PHOENIX_CHECK_WORKERS=1 ./dev.py check --lanes spec-shape — spec shape and full dev.py unit-test lane passed

  • ./dev.py tasks validate — 1107 task files passed
  • Diff: 251 lines (+188 / -63) across 3 files Reviewer: scottopell Review duration: 122m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 251 lines diff across 3 files
    0.39
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #934"
    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: 39% (MEDIUM) · Higher = larger blast radius
    39%
    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: 15.4% · Safe to merge
    15.4%