Repository navigation
Commit 5c2064f
* merge-ticket: document --checks-and-push <branch> as the flake rerun
The header and the usage line now show the mode's integration branch
argument, and the header names it as how to rerun the checks and push
after a failure that turned out flaky. (#246)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* walkthrough-app-check: wait for the tabs before checking their language
The tabs-language check read the Description tab once, so a slow render
on a loaded machine failed it with "(null)". It now waits for the tab
with waitFor, like the checks around it. (#298)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* dev-branch-servers: status exits 1 when not running (#331)
An agent starting the servers in the background had nothing to wait on:
status printed "not running" and exited 0. CLAUDE.md names the wait loop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* WalkthroughsMatchSamplesTest: breakage cases on fixtures (#332)
Every breakage case now breaks a small Walkthrough it builds (samples,
moves and map, table, intervals, set, board, graph, span fixtures)
instead of a real Walkthrough at a fixed frame or move, so regenerating
a tracer can no longer make a case fail for the wrong reason or pass
vacuously. Each case asserts the message it is caught with, and
aFixtureUnbrokenPasses shows every fixture passes before it is broken.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* dev-branch-servers: claim ports under a lock, check listeners (#291)
A port was checked free with lsof and bound only minutes later, so two
worktrees starting at once could both take it. Each port is now claimed
under a mkdir mutex, in a file naming the database and the start's pid,
until its stop releases it or the start is gone.
start and status also check that each port's listener is this checkout's
process (CODEBITE_DEV_BRANCH): a start fails at once when another server
answers on its port, and status exits 1 naming who holds it, or which
app isn't up yet. restate-problem no longer asks for an lsof by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* CODING_STANDARDS: Walkthrough breakage cases build their fixtures (#332)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* WalkthroughsMatchSamplesTest: run labels match the Examples (#340)
Run N of a Walkthrough must be labelled "Example N" ("예시 N") exactly
when the problem's description has **Example N:** (**예시 N:**), and
"Case N" ("케이스 N") otherwise, so a Restatement that turns a sample
into an Example can't leave a stale "Case N" behind. Breakage cases on
a fixture cover a Case label for an Example and an Example label for a
non-Example in both languages. Every Walkthrough on master passes, so
none is regenerated. restate-problem names the tracer rerun and
add-walkthrough the new check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* dev-branch-servers: migrate, a branch database with no servers (#245)
Reading a problem as the branch has it needed start, about six minutes
of npm ci and three servers only for Flyway. migrate creates the branch
database as start does and runs this checkout's migrations, SQL and Java,
through common's migrateDatabase task (a source set of its own, so no
jar ships it), in seconds. The BEHIND warnings, restate-problem step 1,
triage-labels and CLAUDE.md point at it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: judge-run.sh runs reference solutions on a branch backend
Sends each problem's scripts/replay-solutions files to the Run endpoint
of the backend dev-branch-servers.sh status prints (or --backend),
printing one verdict per Language and NOT JUDGED where no reference
solution exists; --former checks a Former Slug resolves. Runs are
spaced past the 5 s cooldown and a 429 is waited out; a refused
connection says to restart the branch servers and exits 2. (#339)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: restate-problem step 5 runs scripts/judge-run.sh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ship-branch: drop the shipped worktree's branch database (#294)
ship-branch removed a worktree but left the database, Kafka topics and
Redis index dev-branch-servers.sh made for it, and drop can't run from a
worktree that is gone. ship-branch now stops that worktree's branch
servers and drops their data from inside it before removing it; a
failure only warns. A worktree that never ran them has nothing to drop.
For those already left behind, dev-branch-servers.sh orphans lists the
branch databases whose worktree is gone and drop <name> drops one, from
any checkout, refusing any other database or one whose servers run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: trim CLAUDE.md back under its size ceiling after #339 and #245
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: kit --check fails on a recorded commit not on kit main
With the kit on the machine, copy-walkthrough-kit.py --check now fails
when KIT_VERSION.json's kit commit is not an ancestor of the kit's main,
naming both commits and the git merge --ff-only that fixes it. A kit
without a main branch is noted, not failed; without the kit (CI) the
check is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: ship-branch runs the kit check on the branch before merging
CI has no walkthrough kit, so ship-branch.sh runs the branch's own
copy-walkthrough-kit.py --check on its tree (git archive) with the kit
beside the main checkout, before waiting on CI; a failure merges nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: judge-run exits 0 past a Language NOT JUDGED
A Language without a reference solution no longer turns the exit code to
2: most problems have only a Python one. Exit 2 is now only an unreachable
backend, an endless 429 or a missing problem; a problem with no judged
Language fails (1). The per-problem result is an ordered Outcome, worst
wins, in place of re-ranking 'failed'/'missing' strings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: judge-run.sh header points to judge-run.py
The header repeated the docstring, spacing included, and would drift
from it; it is now a usage line and a pointer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: dev-branch-servers main-checkout exceptions in CLAUDE.md
CLAUDE.md said the script refuses the main checkout outright; orphans and
drop <name> work there. Reading a problem says migrate runs from a
worktree again. Tighter wording elsewhere keeps CLAUDE.md under 25,000
bytes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(walkthrough): label check cases just outside its exceptions
A sample run with a free label (as only an extra run may have) or no
label is caught, in either language. A problem with no Korean
description had its Korean labels skipped, so any one passed; they now
follow the English description's Examples, the same samples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: break the port mutex only when its start is dead
Two waiters that both found the mutex older than a minute could both
break it: the second removed the first's new one, and a start holding it
longer than a minute lost it too. The mutex is now a symlink naming the
holder's pid, broken only when that pid is gone and only under a
breaker link, so one waiter breaks it. The two-minute message no longer
rests on find -mmin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: dev-branch-servers status reads its ports into locals
listeners_ours and summary sourced $state/ports into the global shell,
overwriting a caller's port variables.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: one helper names the globals of a branch database
setup and drop <name> each derived prefix and state from the database
name; use_database does it for both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* scripts: name the port listener helpers by what they return
port_listeners and port_listener differed by one letter: one prints
pids, the other a verdict. They are now listener_pids and
listener_verdict.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* merge-ticket: gate also runs the pre-commit hook's repo-wide checks
A ticket committed with --no-verify skipped check-doc-references, the kit
copy check, shellcheck and the script tests, and the gate ran only Gradle
and the frontend, so #348's servers merge pushed a CLAUDE.md over its size
ceiling that CI would have failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: CLAUDE.md points at dev-branch-servers.sh's header for subcommands
The paragraph had grown into a copy of the script's header, so every
subcommand change touched CLAUDE.md, which #348 left 10 bytes under its
ceiling. 24,404 bytes now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: Agent Briefs name what they edit, for parallel runs (#348 retro)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d9ab397 commit 5c2064f
25 files changed
Lines changed: 1636 additions & 165 deletions
File tree
- .claude/skills
- add-walkthrough
- restate-problem
- backend/src/test/java/com/codebite/problem
- common
- src/migrate
- java/com/codebite/migrate
- resources
- docs/agents
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments