← Back to Pull requests

M1-F6b: the owners file and the full CLAUDE.md #8

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 15, 2026 01:54 UTC
Author

Summary

Ticket plan/tickets/M1-F6b.md. Which paths wait for the owner, and the rulebook every agent session loads.

.github/CODEOWNERS         # new: the owner approves spec/, oracle/, .github/, .claude/, deny.toml,
                           #      scripts/agent/ and xtask/src/policy/; no other path has an owner
CLAUDE.md                  # 31 lines to 72
docs/cookbook/README.md    # new: what a cookbook entry is; no entry yet

 # One Launch (Rust)
-No Rust exists yet [...] This file is the minimum [...] Milestone 1 replaces it [...]
+With a ticket, read it and only what its `read` field cites.
 ## Standing rules         # unchanged, word for word
 ## The oracle             # one bullet added: expectations come from oracle/, the implementer never writes one
 ## What must match        # unchanged
+## Tickets                # one per agent, immutable, stay in write_scope, never merge, when to stop and ask
+## GitHub                 # only as the app, through scripts/agent/
+## Rust                   # unsafe, typed errors, no comments, dependencies, the crate graph
+## GPUI                   # from the cookbook or the pinned source, never from memory
+## Commands               # cargo xtask check, one crate's tests, the app
+## Docs and commits       # when a doc changes, the commit voice, no attribution

Evidence

Run by the verifier, who did not write the files, with the implementer's three check scripts and a comparison of its own.

  • The owners file, before: a scratch branch with two bad lines added (an owner who does not exist, a line with no owner), gh api repos/{owner}/{repo}/codeowners/errors?ref=<scratch branch>:
  • 9   Unknown owner   make sure @one-launch-no-such-user-zz9 exists and has write access to the repository
    10  Invalid owner   /docs/ not-an-owner
    

    After: the same call on this branch: {"errors":[]}. On main, which has no owners file, it answers 404, so the empty list is about this branch's file. The scratch branch is deleted.

  • Which paths each pattern owns, read against GitHub's rules and run through git's own pattern matcher as a stand-in for GitHub's (34 paths, 0 wrong). One line per pattern here:
  • | Owned | The nearest path that is not |
    | --- | --- |
    | spec/SPEC.md | plan/spec/SPEC.md, Spec/SPEC.md |
    | oracle/l1/steam/vdf.json | xtask/src/oracle.rs, crates/ol-testkit/oracle/PIN |
    | .github/workflows/ci.yml | docs/.github/CODEOWNERS, .gitattributes |
    | .claude/hooks/guard/main.ps1 | crates/ol-app/.claude/settings.json, CLAUDE.md |
    | deny.toml | crates/x/deny.toml, deny.toml.bak |
    | scripts/agent/lib/token.ps1 | scripts/other.ps1, scripts/agents/gh.ps1 |
    | xtask/src/policy/rules/attribution.rs | xtask/src/policy.rs, xtask/src/secrets.rs, xtask/tests/policy/scope.rs |

    In a scratch copy with the leading slash taken off spec/ and deny.toml and the .claude line dropped, the same table reports six wrong rows (plan/spec/SPEC.md and crates/x/deny.toml become owned, .claude/settings.json is not).

  • The standing rules, before: a scratch copy with one word changed ("Never run an installer" to "Never start an installer"):
  • MISSING  - Never run an installer on this machine. Installer runs happen on Git[...]
    standing rules in main:CLAUDE.md: 8; found word for word in the new file: 7        exit 1
    

    After: this branch: 8 of 8, the same bullets in the same order and no other. The verifier's own comparison agrees: the only lines of today's file that are not whole lines of the new one are its two opening paragraphs.

  • No file that does not exist, before: a scratch copy naming plan/design/hooks.md and a section that is not there: 2 missing, exit 1. After: this branch: 29 paths, crate names and section references checked, 0 missing. Three paths are outside the repo, all carried over from the standing rules (the real data folder, the Electron checkout, its Riot rules file).

  • CLAUDE.md is 72 lines; the limit is 120.

  • Each claim in the new sections checked against its source: the fake feature in crates/ol-app/Cargo.toml, "anyhow in binaries only" in architecture.md, the four GPUI crates in the crate graph table, the auto-merge rule in workflow.md › "Identity and merging".

  • cargo xtask check passes in the implementer's run: 66 tests, as on main. CI repeats it here.

  • Every changed file is inside the ticket's write_scope: three files.
  • Merge Danger

    Door: two-way

    A revert removes both files' effect. While it is on main, the owners file changes what can merge.

    Blast Radius: every-session

  • Once this is on main, a pull request that touches an owned path merges only with the owner's approval. That includes the two tickets in progress: F6a (.claude/) and F6c (.github/workflows/ci.yml, xtask/src/policy/).

  • This pull request is not held by its own owners file: GitHub reads the file from the base branch.

  • The ticket fixes the list of owned paths. Not on it, and so changeable by any pull request without review: CLAUDE.md itself, xtask outside xtask/src/policy/ (the list of steps gate runs, the secret scan and its allow list, the lints), clippy.toml, rust-toolchain.toml, tools.toml, .cargo/config.toml. Widening it is the owner's decision.

  • /.claude/ and /xtask/src/policy/ match nothing until F6a and F6c merge. GitHub reports no error for that.

  • Three sentences of the new CLAUDE.md come from no design file: commits go through scripts/agent/git.ps1 so they carry the app's name; a plain gh is not used even to read (the F6a ticket says it, workflow.md does not); a doc changes only when a change makes it wrong or adds a rule a later agent needs (the first sentence of the Electron repo's docs policy).

  • "Today its main is empty" is true until the walking skeleton (F4) lands; F4's ticket has to name CLAUDE.md.

  • workflow.md › "Owner-approved paths" does not list scripts/agent/, and the root README.md has no row for docs/. Both are outside this ticket.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Documentation
    Updated project guidance for working with tickets, repository changes, Rust and GPUI development, testing, and commits.
    Added guidance for documenting and referencing version-specific GPUI cookbook patterns.
    Clarified that oracle expectations are based on the reference source and are not editable by implementers.

    Chores
    Documented repository areas with designated code ownership and clarified that no default owner is assigned.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: coderabbitai[bot] Review duration: 5m
    All Vouch review confidence checks passed
    Residual risk 0.44 = Change Risk (0.57) × (1 − Review Confidence (0.23)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 650 lines diff across 8 files
    0.57
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 36% · Reviewer familiarity: 35%
    22%
    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.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #8"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 22.6% 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: 57% (MEDIUM) · Higher = larger blast radius
    57%
    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: 22.6% · Lower = rushed or shallow review
    22.6%
    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: 44.1% · Moderate risk
    44.1%