← Back to Pull requests

Document the KMS OpenSpec baseline and enforce reference integrity #764

Open
unknown opened this pull request with 571 lines diff across 7 files
View on GitHub
unknown unknown commented on Nov 22, 2026 04:24 UTC
Author

Summary

Establish the Regalia KMS OpenSpec baseline for product commit 0a32a901d1240eec51ddff323274e2ad935116f3 (tree 347cc36bd44945fcff8a6624237222cb64c0cf17). Add 31 synchronized capability specs with 158 requirements and 421 scenarios. Publish the source inventory, authoring records, canonical 463-case ledger and explicit gaps alongside the specs. Keep first-store commissioning and no-history restore protection in a separate, proposed OpenSpec change.

Add candidate HTTP regression tests for the seven operation routes that share policy reservation and executor capacity. The tests exercise the real HTTP handler, coordinator, FileState and capacity controls with an inert backend. Add SOPS protobuf regressions for the admitted carrier subset and full method names against official SOPS 3.13.3 source, retained as an offline reference cache with provenance and license.

Extend the existing build-test job with strict OpenSpec 2.1.1 validation, focused checker/wiring tests and a reference integrity check. The job prepares a separate shallow product checkout with credential persistence disabled and checks its exact commit and tree plus the primary worktree HEAD. The checker validates the declared references using local inputs and reports referenceIntegrity, verificationAuthority=not-assessed, and coverageComplete=false. The job graph, triggers, permissions and aggregate dependencies are unchanged.

Validation

  • Parent reran the 31 checker/entrypoint tests, 18 workflow tests, all 34 strict OpenSpec checks and the actual 101-input reference and result-envelope checks in the local integration. Local no-op and restored runs passed. The four CI/parser mutations failed at their intended assertions.

  • Earlier parent Linux runs passed 15 focused HTTP subtests and the seven new SOPS wire/method subtests, plus the existing SOPS RPC package tests. These runs are candidate evidence for the tested cases.

  • Finite hosted task 4.1 is supported by ready run 44988104217, attempt 1 on head 91151a4d and evaluated merge 3f7db361: all 20 job executions and all 18 aggregate dependencies passed, with IS_DRAFT=false. Parent independently verified all 101 checker input hashes and the exact non-authorizing result. Commit 3378b31f records that dated observation and closes the finite task; it changes documentation and metadata only. CI for the later documentation head is separate and is not covered by that earlier execution. The full ratchet, synchronization and independent-review gates remain open.
  • Open boundaries

    The ledger retains 4 specification gaps, 418 test or execution gaps, 13 contract conflicts and 19 proposals. The nine historical hosted/emulated cases retain their original narrow scope. The reference check makes no evidence-authority or complete-coverage determination. Discovery, assertion adequacy, approval for non-applicability, legacy-budget and case-deletion preservation, and change-based enforcement remain separate work. Prior incomplete independent reviews remain open.

    The tests cover HTTP reservation and capacity and local protobuf interoperability within the admitted SOPS 3.13.3 carrier subset. Full-daemon restart replay, unsupported carrier fields and variants, full SOPS CLI interoperability, and physical qualification remain open. Single-node durable restore, first-store authority, the replacement integration and TEST/production release acceptance retain their existing gates. The product code, immutable single-node limits and Gantts are untouched.

    Publication representation

    The publication uses one commit atop the pinned product baseline. It preserves the original local work history separately. Source digests use documented typed records; five historical provenance locators use portable identifiers with their captured hashes intact. The inert HTTP fixture is byte-equivalent. All 463 classifications are preserved; the nine historical cases differ only in verified representation-hash pointers. No historical execution or approval is renewed.

    Unchanged Gitleaks 8.30.1 passed both the exact publication range and final tracked tree in worker and fresh parent runs. Parent independently checked all 1,271 source digests, 146 changed-file byte bindings, case preservation and the real reference result. The worker reran the affected 15 HTTP subtests and strict 34/34 checks on the final candidate. The scanner config and both workflows are unchanged by this representation migration.

    Diff: 571 lines (+428 / -143) across 7 files Reviewer: jobordu Review duration: 19916m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.50) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 571 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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.380
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #764"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 49.8% (MEDIUM) · Higher = larger blast radius
    49.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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 28.4% · Safe to merge
    28.4%