← Back to Pull requests

docs: verify the runtime core docs against main (#3522) #6054

Closed
unknown closed this pull request without merging on Oct 11, 2026 12:30 UTC
View on GitHub
unknown unknown commented on Oct 10, 2026 12:34 UTC
Author

Summary

Second verification pass over the Runtime-core slice of #3522: both runtime-core-architecture-draft documents (en + synced zh-CN), read line-by-line against current main. First pass was #3523 — the oldest verified group in the issue (2026-08-23) — and the runtime area has moved a lot since (read-model, compaction, bots, preview work), so drift was plausible. None found.

| Claim | Verified against |
| --- | --- |
| SessionManager.sendMessage() delegates to RuntimeKernel.startTurn() | session-manager.ts:2299 |
| respondToSandboxBoundary() / respondToUserQuestion() / stopSession() on the kernel | runtime-kernel.ts:2168,185,1936 |
| AgentRun.begin() durably writes the initial user RuntimeEvent before backend dispatch | agent-run.ts:974, called from runtime-kernel.ts:1392 |
| Legacy permission_request / permission_answer_ack / permission_closure_ack / permission_decision_ack vocabulary dropped before mapping/persistence | session-event-runtime-mapper.ts:175-192 (isLegacyPermissionSessionEvent guard at the kernel's ingress boundary) |
| Log ordering: UNIQUE (invocation_id, event_seq) on runtime_events | packages/storage/src/sqlite-runtime-schema.ts:62 |
| missing_terminal_event convergence for a stream that ends without a terminal fact | agent-run.ts:1373 |
| safe_boundary_continuation as the separate verified-boundary resume path | session-manager.ts |
| waiting_for_user projection while parked | agent-run.ts:1570, conversation-copy.ts:111 |
| Code map: 10 source paths | all exist (session-manager, runtime-kernel, agent-run, session-event-runtime-mapper, ai-sdk-backend, model-adapter, tool-runtime, core/runtime-event, core/agent-run, storage/agent-run-store) |
| Test entry points: 4 paths | all exist |
| Tracking links | #615 open; #4311 and #3909 closed (superseded by shipped work — links remain accurate as history) |

last_verified and the in-body currency date refresh to 2026-10-10 in both language editions.

Verification

  • Every path/symbol in the table resolved on this branch (grep against source, not dist).

  • npm run check:asf-headers: green.

  • Documentation-only change (date refreshes only); no test suites affected.
  • AI use

    Generated with an AI coding assistant (ZCode / GLM-5.3-Flash) under human direction; every table row was checked against the repository by the assistant and verified by me.

    Checklist

  • One subsystem only (Runtime core), per the issue's contributing rules

  • Paired translations move together (translation_status: synced preserved)

  • Refs #3522
  • Diff: 329 lines (+246 / -83) across 4 files Reviewer: ggbdpq Review duration: 1435m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 329 lines diff across 4 files
    0.42
    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.347
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6054"
    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: 42.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    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: 16.6% · Safe to merge
    16.6%
    Repository