← Back to Pull requests

MP2-042: package runtime resources for installed use #189

Closed
unknown closed this pull request without merging on Sep 29, 2026 16:46 UTC
View on GitHub
unknown unknown commented on Sep 29, 2026 12:43 UTC
Author

Outcome

Problem

MP2-042 requires runtime assets and operator helpers to work from an installed wheel without relying on a repository checkout.

User-visible behavior

Installed Metriplane now carries the dashboard, Atlas defaults, demo inputs, and six operator helper modules. Live dashboard configuration is explicit, generated Atlas output is served only from the platform data directory, and an alternate operator Python is rejected unless it imports the exact current helper payload.

Changes

Scope

Adds the governed runtime-resource registry and checker, packages 42 runtime resources and six operator modules, switches runtime callers to package resources, separates immutable dashboard assets from generated Atlas output, and updates tests, documentation, generated inventories, and both existing ManiSkill proof normalization guards to the exact new package-discovery contract. Release, publication, broker, ruleset, trust-root, and repository-protection changes are out of scope.

Compatibility

Root Python 3.12/3.13 support is unchanged. Existing root tools/*.py compatibility entry points remain byte-identical to the installed modules. Existing reports and bundles remain readable. --live now requires an explicit --config PATH; bundled non-live defaults remain installed and source-independent.

Evidence and research impact

No evidence schema or research claim changes. Resource resolution and operator preflight fail closed on traversal, symlinks, missing resources, failed imports, timeout, or module-payload mismatch. Functional, public-surface, UI, requirements, capability-ledger, and traceability records were regenerated.

Validation

Tests

  • Focused tests run: MP2-042 acceptance set 108 passed; affected runtime/Atlas/operator/UI set 350 passed, 1 skipped; latest proof/resource/characterization regression set 38 passed; strict-parser/currentness correction set 94 passed; package-identity correction set 41 passed; canonical collection 6270; Ruff, format, mypy, runtime registry, behavior characterization, functional/public/UI inventories, traceability, and git diff --check pass.

  • Complete hosted qualification (exact candidate, run/attempt, or pending): pending for exact head c7c96d9b7d084bcce36f2f9c0ad4bc97eca5193b.

  • Manual checks, if any: exact-head clean-room root-wheel gate passes (final_result=pass, package content PASS, 40.837 s); 42 runtime resources and six operator modules import successfully; _local_http --help succeeds. Exact-head wheel SHA-256 fe9011a9d427193851ef738113bacdcf52e79457fc9d692c8f0bfc56f4c1fb5b.
  • Documentation

    Updated runtime-resource and testing policies plus deterministic public, functional, UI, requirements, capability-ledger, and traceability records.

    Boundaries

    Privacy and security

    No credentials, private recordings, personal data, or identifying workcell data were added. Resource paths are canonical and package-owned; generated data remains in the platform data directory. Alternate-interpreter helpers require successful import and exact SHA-256 payload equality.

    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: 484 lines (+363 / -121) across 6 files Reviewer: Miko997 Review duration: 243m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 484 lines diff across 6 files
    0.47
    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.370
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #189"
    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: 47.3% (MEDIUM) · Higher = larger blast radius
    47.3%
    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.7% · Safe to merge
    18.7%