Skip to content

chore: the #100 retro: red-on-main judges each test under -g, a brief's "lands first" becomes a blocking edge, and the pin check says when a quoted name is an entry's - #104

Merged
Kyu-seok merged 1 commit into
mainfrom
retro-100
Nov 22, 2026

Conversation

@Kyu-seok

Copy link
Copy Markdown
Owner

Summary

Three changes to the agent's environment from the #100 session; nothing under src/.

 npm run red-on-main -- [-g <pattern>] <test files>
   main's src and popup into the working tree, tests run, source restored
-  a file is red when any test in it fails
+  with -g: only the matching tests run
+    a matching test that passes on main → named, exit 1
+    a file with no matching test        → named, exit 1
 docs/agents/issue-tracker.md
+  the -g recipe for a fix's new tests
+  a brief that says another ticket lands first adds the blocked_by edge
+  a ticket's branch: issue-<n>, cut from origin/main
+  a brief for a routing, render-path or lifecycle bug names rule 5's Modes and Field placements
 tests/node/engine-seams.test.ts
+  a quoted name with no test that is another entry's name: the failure says to point to it without quotes

Evidence

  • Before: implementing A click away with the command line open is undone (the Field takes focus back), and the prompt's character stays in the Status Line #100, red-on-main exited 0 on a file holding a new unit test that was green on main, and ran 121 e2e tests on main's source to check 30.
    After, each run by hand:

    -g '#100' on #100's shadow-root spec             → "every matching test is red on main", exit 0
    -g 'input blurring' on #100's session.test.ts    → the same, exit 0
    -g 'Normal mode editing' on session.test.ts      → each passing test named, exit 1
    -g <pattern nothing matches in a file>           → "no test matches", exit 1
    
  • Typecheck, import check, unused-code check and npm test (579) pass. The full gate was not run locally: no source or e2e spec changed.

  • The pin check's fixture test covers the new hint.

Merge Danger

Door: two-way

Blast Radius: tooling

Without -g, red-on-main behaves as before.

🤖 Generated with Claude Code

…'s "lands first" becomes a blocking edge, and the pin check says when a quoted name is an entry's

- tools/red-on-main.mjs: `-g <pattern>` runs only the matching tests and
  fails naming any that pass on main, or a file with none matching. A file
  was red as soon as one test in it failed: a new unit test green on main
  went unreported, and 121 e2e tests ran on main to check 30.
- docs/agents/issue-tracker.md: the `-g` recipe; a brief that says another
  ticket lands first adds the blocked_by edge (#100 was built before #98);
  a ticket's branch is issue-<n> from origin/main; a brief for a routing,
  render-path or lifecycle bug names rule 5's Modes and Field placements.
- tests/node/engine-seams.test.ts: a quoted name with no test that is
  another entry's name gets a hint to point to it without quotes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Kyu-seok
Kyu-seok merged commit 6648584 into main Nov 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant