← Back to Pull requests

docs(release): require two green main batches before a timing-sensitive feature is cut #2476

Closed
unknown closed this pull request without merging on Oct 23, 2026 02:59 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 01:32 UTC
Author

Summary

Item 12 of the "Next" plan in #2422 (feature admission rule; #2404 item 4). The Owner decided on 2026-10-22: N = 2, a decision record plus a skill rule, no tool enforcement yet.

The COUNT-IN merges (#2342, #2359) landed on the cut day of 2.0.122.0; their latency defects (#2394, #2395) showed only on the slower candidate hosts, PR-time checks could not see them, and two candidates were lost before the feature was withdrawn.

Change

  • docs/prd/decisions/2026-10-23-feature-admission-two-green-batches.md: a timing-sensitive feature merged since the last candidate enters release scope only after two consecutive green automatic main batches on the candidate hosts (M1 for the macOS gates and Release stress, netcup for the Web lanes, ci-core for Linux Core): each with a successful executor run, the suites owning the feature's lanes passed in its batch-verdict-<target>-<run>-1 artifact and no new triage Issue for them; candidate, node and overflow-host batches do not count. Otherwise the feature is withdrawn from the cut. The repository has no release-scope flag mechanism (verified: no such flag exists), so withdrawal is the only path and a flag stays future work. The decision names what counts as timing-sensitive (audio scheduling, the Control thread or worker, count-in, recording switches, the Runtime or Creator browser Proof journeys, lanes with a deadline or budget; when in doubt, treat as timing-sensitive) and records the non-goals (no PR gate change, no automatic classification, no tool enforcement).

  • .agents/skills/lmdj-release/SKILL.md: the rule, applied before every cut, in the candidate admission section.

  • tests/build/release_skill_test.py: test_skill_applies_the_feature_admission_rule_before_a_cut pins the rule's opening sentence, the candidate-host and batch-verdict references, the withdrawal and the no-flag statement.
  • Related Issue

    Related issue: #2422

    Premise refresh (issue-done §0)

    Base: origin/main at 86ad15ed2aa095bd54c25601d736db56838d956b (#2475). Verified on the base: the skill has no feature admission rule; no release-scope flag mechanism exists anywhere in the tree; the candidate hosts are fixed by the 2026-10-22 runner pinning decision; a batch's per-suite result is its batch-verdict artifact and failures surface as triage Issues (docs/quality/core-test-policy.md); #2394 is still open and #2395 closed. Still outstanding; delivered here. No release request is active.

    Verification

  • The skill pin was written first and failed on the base; after the edit it passes.

  • Mutation proof (file restored with a fresh mtime, exit read): removing the rule paragraph fails the dedicated test alone; restored: 16/16 OK.
  • Commands run on the committed head:

    python3 tests/build/release_skill_test.py   # OK (16)
    git diff --cached --check                   # clean
    

    Complete tests/build/release_*_test.py run (all modules, one at a time, started on 97d3811 in a detached worktree; the later commits changed only the skill paragraph and release_skill_test.py; release_skill_test rerun on 5311ab3): 81 PASS, 0 FAIL.

    PR Review

    Head SHA: 5311ab3f49fe22873ccf13b46adaecb1c817aacd. Review of 97d3811 raised one maintainability finding (the pins sat in the candidate-dispatch test), fixed in 50a9323 by a dedicated test with its own diagnostic; review of 50a9323 found the skill omitted the decision's batch-only-lane criterion and lane list, fixed in 07bd517; review of 07bd517 found the skill attributed the merge numbers to the defect issues, fixed in 5311ab3; all three threads resolved. Current-head review evidence is checked with scripts/ci/review_wait.py before merge.

    CI Scope

    Expected mode: focused
    Expected selected lanes: ci_contract deploy_contract docs_static
    Expected skipped lanes: core_asan core_coverage core_macos core_ubuntu creator package portal web_runtime_host web_runtime_lab web_toolchain
    ci:full required: no
    Reason: one .agents skill, one decision file and one release contract test.

    Batch-only Lanes

    deploy_contract: not run as a lane locally; its release suite is run one module at a time on this head (see Verification).

    Version Management

    Version impact: none
    Reason: documentation and a contract test only.

    Documentation Impact

    Documentation impact: none
    Affected portal pages:
    Reason: a .agents skill and a decision file under docs/prd/decisions/; no page under apps/docs-site/docs/ changes.

    Pitfall Impact

    Pitfall impact: none — reason: the rule is a release decision recorded in the skill with a gate over its wording (gate:tests/build/release_skill_test.py); the COUNT-IN loss is #2422's root cause 5.

    Merge Danger

    Door: two-way
    Blast Radius: operator instructions before a cut; no code path changes.

    Release Impact

    Release impact: none
    Candidate tag: none
    Profile: none
    Channel: none
    Intent disposition: none
    Release assets: none
    Release gates: none
    Reason: no release is active; tags, Releases and the ledger are untouched.

    Transition authority

    Authorized transitions: push | PR | merge (standing Task authorization in CLAUDE.md; cleanup not requested)
    No tag, Release, deploy, publication, or Channel promotion is implied.

    🤖 Generated with Claude Code

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: endaye Review duration: 86m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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%
    56%
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2476"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 22.5% · Safe to merge
    22.5%
    Repository