← Back to Pull requests

MP2-016: verify Ed25519 with host OpenSSL #138

Closed
unknown closed this pull request without merging on Sep 19, 2026 12:36 UTC
View on GitHub
unknown unknown commented on Sep 19, 2026 11:00 UTC
Author

Outcome

Problem

The protected-main MP2-020 attestor failed closed after PR #137 deployment with
program grant owner signature is not trusted. The owner signature is valid,
but the stdlib-only systemd environment has neither the optional Python
cryptography package nor a service-visible Node runtime. The verifier's only
fallback was Node even though the governed host contract requires OpenSSL.

User-visible behavior

The isolated task attestor can verify owner Ed25519 envelopes in the documented
stdlib-only host environment by using the system OpenSSL runtime. Invalid or
altered signatures remain rejected.

Changes

Scope

Add a bounded OpenSSL pkeyutl verification fallback for raw Ed25519 public
keys and signatures, use it before the existing Node fallback, add positive and
negative regression coverage, document the service runtime boundary, and
regenerate governed public-surface and traceability records. No key, grant,
schema, task scope, provider observation, or repository setting changes.

Compatibility

No Python/platform support, CLI, schema, artifact, package, or historical
work-order compatibility changes. The existing optional cryptography path and
Node fallback remain supported. OpenSSL is already a declared broker-host
prerequisite.

Evidence and research impact

The failed attestor invocation at 2026-09-19T10:43:41Z remains retained as
failure evidence and produced no READY output. Verification remains fail-closed:
malformed inputs, altered signatures, unavailable verification backends, and
untrusted keys return rejection. No release or research claim changes.

Validation

Tests

  • Focused tests: 29 passed for attestation, delegation, canonical collection, and policy documentation paths.

  • Governed inventory/currentness subset: 206 passed, 2 skipped.

  • Ruff check/format, mypy, public-surface, traceability, UI currentness, and staged diff checks: passed locally.

  • Production-shaped check: the deployed stdlib venv with no Node in PATH validated the protected Miko grant through OpenSSL.

  • Complete hosted qualification on exact head 9c82333bfbecb2697deadbc34c9be943b767a5af: pending and required before merge.
  • Documentation

    Updated docs/maintainers/main-health-broker.md to state that the stdlib-only
    broker/attestor uses the required host OpenSSL runtime and does not depend on a
    user-scoped Node installation.

    Boundaries

    Privacy and security

    Only public Ed25519 key bytes, public signatures, and canonical envelope bytes
    are written to mode-restricted temporary files for the child verifier process.
    No private key, passphrase, credential, Linear token, GitHub App material,
    recording, or personal data enters the PR or logs. Existing systemd credential
    boundaries, exact-main checks, grant scope, keyring trust, and fail-closed
    provider validation 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: 453 lines (+339 / -114) across 5 files Reviewer: Miko997 Review duration: 95m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 453 lines diff across 5 files
    0.45
    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.366
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #138"
    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.5% (MEDIUM) · Higher = larger blast radius
    45.5%
    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.0% · Safe to merge
    18.0%