← Back to Pull requests

(docs) scope: record the account-label-integrity PRD, design, feature stubs and scope brief (issue #1550) #1638

Closed
unknown closed this pull request without merging on Nov 02, 2026 18:42 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 17:29 UTC
Author

Lands the planning set for account label integrity, so the items under #1550 have committed files to cite. It is documentation only: no code, no wire change, and nothing under a path that the Rust, Swift or Formula jobs filter on.

Why. The operator asked whether anything stops one account from being captured or logged in twice under different labels. The roster key does stop one account from becoming two roster entries. Nothing stops one label from naming a second account: the CLI capture and login, the socket capture and config-set can each do it without saying so. A login can also rename a different account than the one the operator meant, one credential can sit under two roster entries unnoticed, and every surface downstream of the roster tells accounts apart by label alone.

What it adds.

  • The PRD, docs/requirements/account-label-integrity.md: each gap with its evidence in the tree, EARS requirements and an OOUX object model.

  • The solution design, docs/design/account-label-integrity-solution-design.md, and its design brief, docs/briefs/2026-10-26-design-account-label-integrity.md.

  • The Gherkin specification stubs under docs/specs/, each bound to the acceptance criteria of the item it serves.

  • The scope brief, docs/briefs/2026-10-30-scope-account-label-integrity.md, which lists every item with its readiness verdict, registers every pipeline decision that awaits ratification, and records the findings still open at merge.
  • Decisions. Every requirement, design decision and readiness verdict here is pipeline-authored and ratification-pending. The PRD's readiness gate failed on approval grounds alone, and the run went on under the orchestrator's acknowledgment, recorded as proceed-past-failed-dor in the scope brief's register. This PR ratifies none of them. The operator directed this PR to merge ("go, drive till merge autonomously", 2026-11-02); that instruction covers landing the planning record and ratifies nothing in it.

    Citations. The documents read the code at d9d75ba. This branch was rebased onto 363698d, and every file:line citation was re-mapped through git's diff between the two commits. Each cited line reads the same at both.

    Order. The items #1551 to #1585 cite these files by path, so this PR merges before any of them is built. Whether an item may be built before the operator ratifies the PRD is an open ruling, recorded in the scope brief's register as ready-items-before-ratification and on #1550.

    Linking. This PR links no issue for automatic closing. The umbrella #1550 and every item under it stay open.

    Status: review findings stay open. Before this PR was opened, a fresh-context polish pass read the set on nine axes, and a validator checked each finding. After it was opened, a fresh-context adversarial review read it again with eleven blinded reviewers (review 5741240932 on this PR, with the inline comments) and returned four blocking findings and a set of non-blocking ones. The factual corrections from both passes are in the commit, including the four blocking findings: the D-4 stash-write question is now registered (d4-restash-paths-coverage), the PRD's Accept option now says a decision record replaces the comments, the reaper stub's last-item default now matches #1555, and the scope brief's Next Steps now carry the ratification precondition as an open ruling. What stays open is recorded in the scope brief under Still open at merge: findings from the pre-merge reviews, the tracked home that survives the squash merge; the lists below are the short form.

    <details>
    <summary>Needs an operator decision</summary>

  • Whether a READY item may be built and merged before the operator ratifies the PRD and the design decisions it rests on (ready-items-before-ratification): proceed-past-failed-dor covered Stages 2 to 4 only, design § 14.1 says nothing should be scoped before ratification, and every READY verdict says "provisional on ratification".

  • Whether F3's shared-credential detection covers the swap engine's re-stash and the daemon's re-auth re-stash, two stash writes outside the four paths that roster a new entry (d4-restash-paths-coverage, design D-4).

  • PRD § 10.4's invariant, repeated in MET-T-004's CONSTRAINT, says no surface changes the text it displays for a roster without a duplicate label, while REQ-EVT-B-001 and REQ-NTC-B-001 in the same section prescribe text changes that are not conditioned on a duplicate label. Which side yields is a requirement decision.

  • PRD AC-ROW-001's Given says "the same roster" and states none; the nearest roster-shaped Given, AC-WIRE-001's (two entries both labelled work, with A relabelled in its closing And step), leaves the shared-label case the Then needs ambiguous. Acceptance-criterion text is reserved.

  • PRD AC-IDN-001 asserts that the rename happened while its Given leaves login-mismatch-policy unstated, so it fails under the refuse option that AC-IDN-003 covers; § 13 grades F9 COMPLETE while REQ-DOC-B-003 takes the keep-rename option of that same open decision; A-1's validation plan and § 4's premise-2 gate treat different outcomes as the failure; AC-ROS-003 tests only the capture card for REQ-ROS-I-001 and REQ-ROS-I-002; REQ-MIG-B-003 names an unambiguous account by label and two uuids where the naming rule admits a uuid only for an ambiguous label.

  • The design's delivery order puts F1 to F3 ahead of F4's duplicate-set items while the F1 and F3 panel and Settings halves (#1561, #1560) are blocked by #1566 and reuse its ordinal function, so step 2 cannot finish before step 4.

  • Design § 14.9 keeps four lens verdicts verbatim, and the quotes describe earlier revisions on several points; the editorial note now discloses this and names the points, and the sibling designs carry a Design Lock section instead. Keeping the verbatim record is a recorded decision.

  • Design § 16's REQ-ROS-I-002 row, § 9.7 and CAP-04 say parity with § 8.5 includes the ordinals, while § 8.5's CLI collision and shared lines carry uuids and no ordinal, and UX-3 does not list the CLI reply among the ordinal's surfaces; the design brief's key decision 16 restates the ordinal for the CLI reply.

  • The 🟩 counts. Thirteen stubs count a Scenario Outline's rows where the sibling stubs on main count an outline once, five count blocks, and three never state their unit; capture-card-notices declares a count its own rule does not give. The issues quote these numbers, so the counting rule is a convention decision before any stub is recounted; two rung-4 criteria disagree on it.

  • Citation lines inside the design's § 14.9 quoted verdicts, and one in blocked-shared-label-switch, name no symbol beside a bare Name.swift:NNN, so the line number is the only way to re-derive the location; the verdicts are quoted verbatim by decision.
  • </details>

    <details>
    <summary>Scenario authoring for the items' executors</summary>

  • Seven stubs' accounts of their issue's acceptance criteria each omit a criterion the issue names, and five stubs state what their issue says where the issue's current text differs; each is closed in the item that binds the stub.

  • Stubs leave out open decisions their issue names (mock-page-restructure, panel-switches-by-identifier, swift-red-landing-form, reaper-lock-hold-bound, split-1565-to-free-f6) or fix an outcome that depends on one without carrying the condition.

  • Nineteen scenarios across eight stubs break the Given/When/Then shape: sixteen lack a When or a Given step and three run two action-and-outcome cycles under one title.

  • Forty-eight step lines across six stubs hold a (pending …) note in place of a step of behaviour; the sibling stubs on main hold such alternatives in a comment or under 🟥.

  • Twelve scenarios in orphan-stash-reaper, shared-credential-detection and swap-line-account-uuid carry a comment block that names no acceptance criterion and does not say that none applies; the review did not re-count this item.

  • docs/specs/blocked-shared-label-switch.feature.md, Rule 1's rename scenario, binds testARenameLiftsTheBlockOnTheNextFrame, whose fixture on #1583 (pair-renamed) has four rows and renames to temp, while the scenario uses three rows and renames to home. Which frame the oracle uses is #1583's executor's call.

  • No stub carries the siblings' ## Coverage section mapping each acceptance criterion to its scenarios, and the open-questions and not-a-scenario sections carry different H2s across the batch: seven distinct open-question headings (🟥 Open in six stubs, Red cards — the questions that no scenario above can close in seven, and five one-off Open — … forms) and four distinct not-a-scenario headings (Acceptance criteria that no scenario expresses in eight, Aspects that are not scenarios in three, Not scenarios — manual by design in two, Criteria with no scenario, and the check that decides each in one). No sibling fixes a convention.

  • The design's decision comparisons (§ 12.1, § 12.2, § 12b) name no evaluation dimensions before their alternatives, and the design has no top-level Design Lock section where the sibling designs have one.
  • </details>

    🤖 Generated with Claude Code

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: alexey-pelykh Review duration: 73m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). 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%
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1638"
    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: 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: 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: 20.5% · Safe to merge
    20.5%