← Back to Pull requests

Preserve delegated request nonce compatibility #143

Closed
unknown closed this pull request without merging on Sep 20, 2026 17:52 UTC
View on GitHub
unknown unknown commented on Sep 20, 2026 11:36 UTC
Author

Outcome

Problem

MP2-016 delegate-normal requests use a 64-hex-character nonce, while the broker's durable request inventory still accepted only the 32-character owner-request form. PR #141 therefore reached durable reservation but was fenced as uncertain with durable request inventory identity is inconsistent even though its signed package and exact-head qualification were valid.

User-visible behavior

None. The broker can interpret retained delegate-normal request rows using their existing contract without weakening owner-normal nonce validation or rewriting historical evidence.

Changes

Scope

Classify the durable request subject before validating its nonce: the exact delegate-normal subject shape requires 64 lowercase hexadecimal characters, while owner and human request shapes continue to require 32. Export the canonical delegate subject field set, cover both accepted and rejected cross-shape lengths, and refresh only mechanically affected inventories and traceability records. No workflow, ruleset, credential, trust-root, publication, or repository-setting change is included.

Compatibility

Existing owner-normal and owner-repair rows retain their 32-character nonce contract. Existing delegate-normal rows retain their signed 64-character nonce contract and become readable by full inventory/orphan reconciliation. Historical request rows are not migrated, relabelled, or rewritten. Python and platform support declarations are unchanged.

Evidence and research impact

The change only corrects broker interpretation of durable authorization evidence. The failed PR #141 request and provider identities remain immutable retained evidence. No product evidence schema, research result, or release artifact changes.

Validation

Tests

  • Focused tests run: 458 broker and program-delegation tests passed, including delegate 64/32 and owner 32/64 positive/negative cases and orphan-reconciliation inventory visibility.

  • Complete hosted qualification (exact candidate, run/attempt, or pending): pending for exact head 2d66d21d25d3a9a93e5452388d28bd29a0757c83; local Python 3.12 suite: 5,842 passed, 16 skipped in 22m40s.

  • Manual checks, if any: Ruff, format, mypy, generated inventory/currentness, traceability, staged diff, test-identity counts, and an independent review all passed.
  • Documentation

    docs/maintainers/main-health-broker.md now records the shape-specific nonce lengths. Testing policy and mechanically generated functional-inventory, public-surface, requirements, and capability-ledger records were refreshed.

    Boundaries

    Privacy and security

    No credentials, recordings, personal data, private paths, or secret material were added. Delegate shape classification is exact and fail-closed; ambiguous, malformed, cross-length, or unknown shapes remain rejected. Authorization, signatures, freshness, exact-head binding, CAS, and App-owned state boundaries are unchanged.

    Checklist

  • The pull request is focused and its diff has been reviewed.

  • New or changed behavior has tests, including a relevant failure path.

  • Focused checks pass locally; required complete qualification must be green for the exact candidate before merge.

  • User-facing commands, support boundaries, and documentation remain truthful.

  • Third-party material has compatible licensing and required attribution.

  • No credentials, private recordings, personal data, or identifying workcell data were added.

  • Frozen v0.2.0 evidence, checksums, measurements, tag, and DOI metadata were not rewritten.

  • Current package capabilities are not attributed to the v0.2.0 SoftwareX evidence or the TIM v0.1.3 measurements.
  • Diff: 464 lines (+348 / -116) across 5 files Reviewer: Miko997 Review duration: 375m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 464 lines diff across 5 files
    0.46
    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.367
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #143"
    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: 45.6% (MEDIUM) · Higher = larger blast radius
    45.6%
    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: 18% · Safe to merge
    18%