← Back to Pull requests

Add shared WorkScope load summaries and inline indicators #888

Closed
unknown closed this pull request without merging on Oct 12, 2026 15:33 UTC
View on GitHub
unknown unknown commented on Oct 11, 2026 22:18 UTC
Author

Summary


Expose lightweight sampled CPU/memory visibility for live tracked WorkScope jobs through one shared API, Global-only tool and inline indicators—not exhaustive process accounting.

Changed


  • Collect consumed CPU approximately every five seconds while tracked bash jobs are live; expose latest and1/5/15-minute averages in cores, sampled duration and bounded in-memory history.

  • Declare typed live_tracked_bash_groups measurement basis: short-lived native children may be missed, tracking ends with the handle, and duration does not certify completeness.

  • Preserve concrete defenses: launch incarnation proof, tracked lifecycle epochs, before/after membership checks, conflicting ownership rejection and unavailable rather than partial totals.

  • Reuse fresh shared demand memory; monotonic receipt expiry and server-domain CPU age tolerate remote clock skew and newer CPU samples.

  • Admit ordinary API callers only to their attached scope and tools only to current Global; bootstrap live idle UI with server-confirmed inventory, revoke on mismatch and disable/reentry, keep pinned/archived fixtures inert.

  • Show sampled load inline with explicit no-tracked-live-jobs semantics and progressive-disclosure limitations; no disk, native child tracker, host diagnostics or controls.
  • Qualification and remaining gates


    Frozen head 67b132bb25bc6838da83b334cd8eba0dd1661d5c, tree 4c33f5be1b2b901392a1b2e996aebdb94874553c, actual base 1839a37f6 (#890/#891/#860). ADR095/096, no migration/perf/wake rollup. Exact independent APPROVE; terminal hosted clean review6127102597; fully paginated18threads/0unresolved including top-level feedback.

    Combined candidate coordinator18PASS/1ignored, load26PASS, monitor9PASS. Exact hosted Rust/Clippy/UI-spec/E2E/build/task green. Fresh final audit:18threads0unresolved, no further top-level findings; mergeable on base1839.

    Final owning-path UI active→SPA home→history Back cycles, idle/unavailable/stale, keyboard and nooverflow PASS with intercepted measurement HTTP. Diagnosed harness canonical-ID mistake and prefeature isolated DEV server EMFILE/proxy502; failure retained, explicitly authorized samebinary no-build recovery, IPv4 FDs stable6 after cycles+idle3min. Not candidate native backend or production acceptance; long-lived dev FD issue remains followup if recurrent. Archived-row browser caveat retained, integration coverage green.

    Global sole merger and sole-host deployment routing. Production SEARCH activation hold unchanged.

    Diff: 312 lines (+234 / -78) across 3 files Reviewer: scottopell Review duration: 1034m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 312 lines diff across 3 files
    0.40
    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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #888"
    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: 40.3% (MEDIUM) · Higher = larger blast radius
    40.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: 15.9% · Safe to merge
    15.9%