A fresh clone. Nothing done. Run the service by hand, then build the Claude Code setup the three cadences start from.
What is different in this folder.env:PORT=8161. A fresh clone says 8160. Seven folders run on one machine.- No Claude Code setup. Section B builds it.
- git remote
origin: fetch works. The push address isDISABLED_demo_copy_no_push, so nothing can be pushed. README-SETUP.md,WALKTHROUGH.md,.vscode/anddocs/pr/are listed in.git/info/exclude, so git never shows them.
~/Projects/runway-0-fresh-clone
The steps of this page, in order, each with what to type. The colour of a step's number is its kind. Sections and groups open and close, on the page and in the list on the left, and the two stay the same. Tick a step when it is done, on the page or in the list. Every group and every section counts its done steps. The time beside a step, a group or a section is rounded: ~2 min, or ~2–3 min. A time marked planned is the time of the recorded reference run, which is the work of Claude Code only. Press Start and End on a step and your own time takes its place.
Platform These steps were prepared and run on macOS. They run the same on Linux. On Windows, work inside WSL 2 or a dev container. Other operating systems
Check the machine Terminal
The sample and its Claude Code setup use Unix tools: make, a bash script and shell hooks. macOS and Linux have them. Windows does not, so a Windows developer works inside WSL (Windows Subsystem for Linux: a real Linux that runs inside Windows).
Every machine: the four tools
make --version uv --version python3.12 --version git --version
Windows only, once, in PowerShell as administrator
wsl --install
Windows only, in the Ubuntu terminal that WSL gives
sudo apt update && sudo apt install -y make git python3.12 python3.12-venv curl
- Each of the four commands prints a version. A missing tool prints
command not found. - On Windows, the PowerShell terminal inside VS Code does not know
make, and./start.shdoes not run there. This is expected. Do not work around it command by command. - On Windows, install the VS Code extension
WSL, clone the repository inside the Linux home folder (not under/mnt/c), and open it withcode .from the Ubuntu terminal. The terminal inside that VS Code window is Linux, and every step of these notes works as written. - Install
uvand Claude Code inside WSL too, each with the Linux command from its own installation page. - The Windows path was not run when these notes were written. The steps were run on macOS only.
- The page "One setup for every operating system", on the index of these notes, explains every option for a team: Git Bash, WSL 2, a dev container and the cloud.
- The lower left corner of the VS Code window shows
WSL: Ubuntuon Windows. On every machine,make --versionprints a version in the VS Code terminal.
Get the code Git
The work starts from a clone (a full copy of the repository, with its history). The history matters later: the ticket cannot be done well without reading it.
A new clone
git clone https://github.com/cosmicflow-space/runway-board.git cd runway-board
Or the folder the kit already made
cd ~/Projects/runway-0-fresh-clone git log --oneline | wc -l
- The repository is private. The clone needs a GitHub sign-in that may read it.
git log --oneline | wc -lprints 54. The history is constructed for teaching.- In
runway-0-fresh-clonethe kit has already run the next two steps and has set the port to 8161. A clone made by hand uses 8160. Running the two steps again does no harm here.
git remote -vin the kit's folder shows the push addressDISABLED_demo_copy_no_push. Nothing can be pushed from it.
Install Terminal
The service needs its own virtual environment (a private folder of Python packages, .venv) and a settings file, .env.
make install
uvmakes.venvwith Python 3.12 and installs the package with its development tools.- When there is no
.env, the command copies.env.exampleto.env. - The last line names
runway-board==0.1.0.
cat .envshows three settings:PORT,DATABASE_URLandSEPARATION_CHECK=off.
Load the sample data Terminal
An empty board teaches nothing. The seed script (a script that fills the database with sample rows) gives three runways and eleven flights.
make seed
- The last line is
seeded 3 runways and 11 flights with slots. - The README says this command loads data. It does more than that. Section B comes back to it.
ls runway_board.db: all the data is in this one SQLite file.
Run the app Terminal
A person sees the service work before reading its code. make run keeps the app in the foreground, so its log lines stay visible.
In the first terminal
make run
In a second terminal, in the same folder
PORT=$(grep '^PORT=' .env | cut -d= -f2) echo $PORT curl -s http://127.0.0.1:$PORT/health
- The second terminal prints the port (8161 in
runway-0-fresh-clone) and then{"status":"ok","db":"ok"}. - The first terminal shows one log line for each request.
- Keep the second terminal open. The next steps use
$PORT.
Open the board Look
The board is the page the tower team looks at. The ticket is about what this page lets through today.
open http://127.0.0.1:$PORT/board
- One plain HTML page with three runways: 09L, 09R and 27.
- Runway 27 is closed. The page says
CLOSED: surface inspection. - On 09R, ORB65 and NLA118 stand 45 seconds apart. This is the pair the ticket names.
Try three API calls Terminal
The ticket changes POST /slots. A person who has sent that request by hand knows what a normal answer looks like.
Create a flight
curl -s -X POST http://127.0.0.1:$PORT/flights \
-H 'X-Position: TWR' -H 'Content-Type: application/json' \
-d '{"callsign": "NLA900", "aircraft_type": "A320", "wake_category": "MEDIUM", "kind": "departure"}'Give it a slot. flight_id is the id from the first answer
curl -s -X POST http://127.0.0.1:$PORT/slots \
-H 'X-Position: TWR' -H 'Content-Type: application/json' \
-d '{"flight_id": 12, "runway_id": "09L", "slot_time": "2030-01-01T10:00:00Z"}'Read the sequence of the runway
curl -s http://127.0.0.1:$PORT/runways/09L/sequence | python3 -m json.tool
- The first call answers with the flight and its
id. After a fresh seed that is"id":12. - The second call answers with the slot:
"status":"planned". - The sequence lists six slots on 09L, earliest first. NLA900 is the last one, at position 6. The cancelled flight HLX9 is left out.
- Every
POSTneeds the headerX-Position. Without it the answer is{"detail":"X-Position header is required"}. - A second flight with the same callsign is refused:
flight NLA900 already exists.
- Reload
/board. NLA900 is on 09L.
Run the tests Terminal
The numbers before any change are the baseline. Every later step is compared with them.
make test make lint
make testends with61 passed, 1 skipped.make lintends withAll checks passed!.- One test reads the real clock and is marked
wallclock. It can fail when the minute changes during the run. To leave it out:.venv/bin/python -m pytest -m "not wallclock". - The tests never touch the data file. Each test gets its own database in memory.
Read the open issues Terminal
Tickets are GitHub issues here. Reading all of them first shows which questions are already open around the ticket.
gh issue list gh issue view 8
- Eight open issues. Issue 8 is RB-142, the ticket of this training.
- Issue 8 has four numbered acceptance criteria: 120 seconds between slots, 180 seconds when the earlier flight is HEAVY, an answer that names the conflicting flight and gives
next_free_at, and independent runways where cancelled slots do not count. - Issue 7 asks when a released slot leaves the board. Issue 2 says the error bodies differ. Both touch the ticket.
- Issue 1: the README names
make reset-db, and that target is gone.
grep -n reset-db README.md Makefilefinds the name in the README only, at line 74.
Start Claude Code Claude Code
Claude Code is an AI assistant that reads the repository, runs commands and edits files. The first session only reads: in plan mode it can read and cannot change.
Stop the app first with Ctrl+C in the first terminal. Open the Claude Code panel: click the Spark icon at the top right of the editor, or Claude Code in the status bar. Click the mode indicator at the bottom of the prompt box and choose Plan. Then ask
Explain how a POST /slots request moves through this code, from the route to the database, with file and line references. Do not change anything.
- The first time the panel opens, a sign-in screen appears. Click Sign in and finish in the browser.
- These notes use the panel of the VS Code extension, not the
claudecommand in a terminal. The panel is the same on Windows, macOS and Linux. - No answer to this prompt was recorded. The code gives these points to check an answer against:
- The route is
assign_slotinrunway_board/routes/slots.py. - Its checks, in order: the flight exists, the runway exists, the runway is not closed, the flight has no planned slot yet.
- A request without
slot_timegets the next whole minute. Then the slot is saved.
- Open two of the files it names and check that the lines say what it claims. That is the habit: trust, and check.
Ask Claude to explore the repository and its history Claude Code
A memory file is only worth keeping when it is true. It starts with what Claude can find by running and reading, before anybody writes a line.
Leave plan mode first (click the mode indicator and choose another mode), so Claude can run the tests
Explore this repository and its git history. Change nothing. 1. How do I run it, test it and lint it? Run the tests and the lint and give me the real numbers. 2. How is the code organised? One line for each file under `runway_board/`. 3. What would surprise a new developer? Look for commands that do more than their name says, documents that no longer match the code, and work that was started and left unfinished. Use `git log` and give commit hashes. Say for each point whether you ran it, read it, or assume it.
make test: 61 passed, 1 skipped.make lintpasses.- Two unfinished attempts at a separation rule. RB-97: commits
db99fd3and5da9dbe, switched off by7b5dc34. RB-118:e1826f8and77a2cc4, parked by01a5996. make seeddrops every table before it loads the sample data:Base.metadata.drop_allinrunway_board/seed.py.- The README names
make reset-db. Commit2d93bb8removed that target. - Two shapes of error body in
runway_board/routes/slots.py.
git log --oneline | grep -E "RB-97|RB-103|RB-118"shows the six commits.
Draft CLAUDE.md Claude Code
CLAUDE.md is the memory file: Claude Code reads it at the start of every session. What stands in it does not have to be found again, and a wrong line misleads every session.
Write `CLAUDE.md` for this repository from what you just found. Sections: run the app, tests and lint (with the numbers), traps, documents that do not match the code, how the code is organised, conventions (from `CONTRIBUTING.md` and the code), how we work a ticket, and what needs a person's yes. State only what you ran or read. Refer to code as path and name, not as line numbers. Keep it under 80 lines.
- The kit's file has 78 lines and these sections: Run the app, Tests and lint, Traps, Docs and code, How the code is organized, Conventions, How we work a ticket, Ask a person before.
- Its traps:
make seedwipes the data file, there are no migrations, the two unfinished separation attempts,SEPARATION_CHECK=onmakes tests fail, naive and aware datetimes are mixed, one test uses the real clock, two shapes of error body, and the seed data breaks the rule the ticket asks for. - Claude's draft will not match word for word. Compare the facts, not the sentences.
Check its claims by hand Look
A line in the memory file that nobody checked is a guess that every later session trusts.
make test make lint grep -n drop_all runway_board/seed.py grep -n reset-db README.md Makefile git log --oneline -1 2d93bb8
61 passed, 1 skippedandAll checks passed!.drop_allis at line 53 ofrunway_board/seed.py.reset-dbis inREADME.mdonly.2d93bb8 seed resets the database, drop reset-db.
- For every claim that fails, tell Claude what was seen and ask it to correct that line. Fix the file, not the next prompt.
Add the deny rules Claude Code
Some things must not happen at all. A deny rule in the shared settings file, .claude/settings.json, refuses a tool call before it runs, for everyone who works here.
Create `.claude/settings.json` for this repository. Deny the Edit and Write tools on `./.env`, and deny `git push`. Nothing else. Then add one line to `CLAUDE.md` under what needs a person's yes: editing `.env` is denied by the settings, and a shell command could still change it, so ask first.
- The file holds a
permissions.denylist with four entries:Edit(./.env),Write(./.env),Bash(git push *)andBash(git push). - The first two rules cover the two edit tools only. A shell command could still change
.env, which is why the memory file also says: ask first.
cat .claude/settings.json. A person's own approvals go to.claude/settings.local.json, which stays out of git.
Meet the seed trap Terminal
The README says make seed loads sample data. A developer who has entered flights by hand runs it once and loses them. Seeing it happen is the reason for the next step.
The flight NLA900 from section A is in the data file
./start.sh PORT=$(grep '^PORT=' .env | cut -d= -f2) curl -s http://127.0.0.1:$PORT/flights | grep -c NLA900 make seed curl -s http://127.0.0.1:$PORT/flights | grep -c NLA900
The same command on a scratch file leaves the data file alone
DATABASE_URL=sqlite:///./scratch.db make seed rm scratch.db ./start.sh stop
- The first count is 1. The second count is 0: the script dropped every table and loaded the sample data again.
- With
DATABASE_URLpointed at a scratch file,runway_board.dbkeeps its content. A real environment variable wins over.env.
grep -n drop_all runway_board/seed.pyshows the line that does it.
Add the guard hook Claude Code
A hook is a script that Claude Code runs by itself at a fixed moment. A PreToolUse hook runs before a tool call and can block it. The memory file tells Claude about the trap. The hook holds on the day the text is not read.
Add a PreToolUse hook for the Bash tool that blocks a command that would wipe the data file `runway_board.db`. - Block `make seed`, the other ways to run `runway_board/seed.py`, and the common ways to remove, move, overwrite or empty the file. - Allow a seed command that points `DATABASE_URL` at another SQLite file. - Put the rule in a Python file, `.claude/hooks/guard_data_file.py`, started by `.claude/hooks/guard-data-file.sh`. Exit status 2 blocks, and the message on stderr says what to do instead. - Keep examples in `.claude/hooks/guard_examples.txt`, one per line: `block` or `allow`, a tab, the command. Add `.claude/hooks/guard-check.sh`, which runs every example through the real hook script. - Register the hook in `.claude/settings.json`. - Say in the docstring what the rule cannot see.
- Five files under
.claude/hooks/:guard-data-file.sh,guard_data_file.py,guard_examples.txt,guard_check.pyandguard-check.sh. - The kit's examples file has 56 commands. Among the blocked ones:
sudo make seed,uv run make seed,eval "make seed",rm -f *.dbandgit clean -fdx. - A rule that looks only at the first word of a command lets
sudo make seedthrough. The kit's first version did (seeLESSONS.md). - The rule cannot see a script that is written to a file and then run. So the memory file keeps the rule in words too.
Test the hook Terminal
A guard that was never seen to block is a hope. First feed it the JSON that Claude Code sends, then watch it in a session.
Its own examples, then one blocked and one allowed command
.claude/hooks/guard-check.sh | tail -1
printf '{"tool_name":"Bash","tool_input":{"command":"make seed"}}' | .claude/hooks/guard-data-file.sh; echo "exit $?"
printf '{"tool_name":"Bash","tool_input":{"command":"DATABASE_URL=sqlite:///./scratch.db make seed"}}' | .claude/hooks/guard-data-file.sh; echo "exit $?"In a new conversation (Command Palette: "Claude Code: Open in New Tab"), so the settings are loaded
Load the sample data again.
all examples as expected.- The plain command: a message that starts with
Blocked: this command would wipe the data file runway_board.db, thenexit 2. - The scratch command: no message, then
exit 0. - In the session, the hook blocks the plain command when Claude tries it. With the trap named in
CLAUDE.md, Claude may not try it at all: in the three recorded runs it never did, and the hook never fired (seeLESSONS.md). Both results are right.
Add the format hook Claude Code
A PostToolUse hook runs after a tool call. This one formats the one Python file that Claude just edited, so a diff carries no formatting noise.
Add a PostToolUse hook for the Edit and Write tools, `.claude/hooks/ruff-format-file.sh`. After Claude edits or writes a `.py` file inside this repository, it sorts the imports and formats that one file with the ruff of `.venv`, using the settings in `pyproject.toml`. It never touches another file, and it skips silently when there is no `.venv`. Register it in `.claude/settings.json`.
- One script, and a
PostToolUseentry with the matcherEdit|Writein.claude/settings.json. - The hook sees the two edit tools only. A file changed by a script in the shell is not formatted. In the recorded runs most edits went through the shell (see
LESSONS.md), so the gate staysruff format --check .at the end.
~/Projects/cadence-kit/tools/test-hooks.sh "$PWD"feeds both hooks real hook JSON. No line starts withFAIL, and the last line isok no file of the repository changed.
Add the two skills Claude Code
A skill is a written procedure that a person starts with a slash command. Two steps repeat on every ticket: a plan before code, and a review before a commit.
Add two skills under `.claude/skills/`. Only a person may start them (`disable-model-invocation: true`). 1. `ticket-approach`: takes an issue number. It researches the repository and writes a short approach note in `docs/approach/` from a template: background, existing code, decisions with options, test names, steps. It writes no code and no tests. It asks each open decision one at a time and never fills a `Decision:` line itself. 2. `review-change`: read-only. It collects the change, runs `make test`, `make lint` and `.venv/bin/ruff format --check .`, maps every acceptance criterion to a real test, checks the change against the Conventions and Traps of `CLAUDE.md`, looks for cases the tests miss, and flags unrelated edits. Its last line is exactly Ready or Not ready. Then add to `CLAUDE.md`, under how we work a ticket: `/ticket-approach` first, `/review-change` before every commit.
.claude/skills/ticket-approach/SKILL.mdwithtemplate.md, and.claude/skills/review-change/SKILL.md.- Both say
disable-model-invocation: true. A person starts them by typing the name with the slash. review-changelists the only tools it may use (allowed-tools). Edit and Write are not among them.
Review the setup, then make it equal to the kit Skill
The setup is code too. A review by the new skill finds what its author missed, and the kit's finished version is the state the three cadences start from.
In a new conversation (Command Palette: "Claude Code: Open in New Tab")
/review-change
Compare with the kit. One line for each file that differs or is missing
cd ~/Projects/cadence-kit/setups/base && for f in $(find . -type f); do cmp -s "$f" ~/Projects/runway-0-fresh-clone/"$f" || echo "differs: $f"; done; cd -
Take the kit's version
cp -R ~/Projects/cadence-kit/setups/base/. ~/Projects/runway-0-fresh-clone/ git status --short
- On the kit's first setup this review ended with Not ready and eight findings, all in the guard. It let through
sudo make seed,! make seed,uv run make seed,eval "make seed"and four more (seeLESSONS.md). - A setup made by hand differs from the kit in wording, so the compare prints lines.
- After the copy the compare prints nothing, and
git status --shortshows three entries:.claude/,CLAUDE-SETUP.mdandCLAUDE.md. CLAUDE-SETUP.mdis the guide for a team member's first hour. It comes with the kit's version.
- The folder now equals
runway-1-steps-start. To get the fresh clone back:~/Projects/cadence-kit/setups/reset.sh 0.
A fresh clone holds no file for Claude Code. Every item below says who added it, in one of these ways.
- Part of the prepared setup The memory file, the settings, the hooks, the skills and the architecture view. Written for Runway Board, from its code. In the prepared folders setups/make.sh copies it from the kit. In the fresh clone, section B builds it with prompts.
- Claude Code wrote it, during the ticket Made or changed while the ticket was carried out. A person read it before the commit.
- Made when the folder was built Belongs to this copy only: its port, its data, its notes. Git never shows it.
The repository comes with its history, and the ticket cannot be done well without it. This history is constructed for teaching. Counted from git: 54 commits, from June 2026 to November 2026, by 3 authors: Ilse Brandt (20), Tomas Wrona (20), Nadia Okoye (14).
A first attempt at the rule exists: RB-97, a list in memory.
Commits db99fd3 and 5da9dbe added a separation check to POST /slots that keeps recent slots in the memory of the process. Commit 7b5dc34 (RB-103) switched it off by default. The ticket has to say what happens to this code.
git log --oneline --grep RB-97 --grep RB-103
A second attempt exists: RB-118, a minute bucket.
Commit e1826f8 added the column slot_bucket, 77a2cc4 a test that is skipped, and 01a5996 a note that the work is parked. The column is written on every new slot and nothing reads it.
git log --oneline --grep RB-118
The README names a command that is gone.
Commit 2d93bb8 removed make reset-db and made make seed the only reset. make seed drops every table before it loads the sample data.
git show --stat 2d93bb8
The history shows how commits are named.
One short line, lowercase, the ticket key first when there is one. The commits of the ticket follow that style.
git log --oneline -12
Where it is used Every cadence reads the history before it proposes anything. Steps: B · step 1, Ask Claude to explore the repository and its history.
Nothing yet. This folder is the repository as cloned.
.envThe settings of this folderMade when the folder was builtThe port of this folder and the address of the data file.
| Who added it | Made when the folder was built. make install copies it from .env.example. The kit writes the port. |
|---|---|
| The steps | A · step 3, Install |
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
.env
runway_board.dbThe data fileMade when the folder was builtAll data of this folder, in one SQLite file.
| Who added it | Made when the folder was built. Made by make seed when the folder was built. |
|---|---|
| The steps | A · step 4, Load the sample data |
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
README-SETUP.mdWhat this folder isMade when the folder was builtThe state of the folder and how it differs from a fresh clone.
| Who added it | Made when the folder was built. Written by setups/make.sh. |
|---|---|
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
README-SETUP.md
WALKTHROUGH.mdThe steps of this page, as MarkdownMade when the folder was builtThe same steps, to read inside the editor.
| Who added it | Made when the folder was built. Written by notes/build.py --folders. |
|---|---|
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
WALKTHROUGH.md
.vscode/settings.jsonWindow title and colourMade when the folder was builtThe VS Code window of this folder has the colour of this page's bar.
| Who added it | Made when the folder was built. Written by setups/vscode.sh. |
|---|---|
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
.vscode/settings.json
.claude/settings.local.jsonThe local settingsMade when the folder was builtThe permission mode of this machine.
| Who added it | Made when the folder was built. Written when the folder was marked as trusted. |
|---|---|
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
Each acceptance criterion on the running app
One PASS or FAIL line per criterion. The script exists once the change is built. If it says the app does not answer, run ./start.sh first
.venv/bin/python scripts/show_*.py
The board, as the tower team sees it
open http://127.0.0.1:$(grep '^PORT=' .env | cut -d= -f2)/board
All tests
Before the ticket: 61 pass, 1 is skipped
make test
The lint and the format
make lint && .venv/bin/ruff format --check .
The files of the change
Before the commit
git status --short && git diff --stat
The commits of the change
After the commit
git log --oneline origin/main..HEAD && git status --short
None in this folder yet.
None in this folder yet.
.claude/settings.local.jsonThe local settingsOnly on this machine. Git leaves the file out.
- The permission mode of this machine. Not part of the team's setup.
| Default mode | bypassPermissions |
|---|---|
| Git | Only in this folder. Git leaves it out, so no commit can contain it. |
.claude/settings.local.json
Give the ticket first
Before any skill that works a ticket
The ticket for this session is GitHub issue 8. Read it with `gh issue view 8`, then show me its title and its acceptance criteria. Change nothing.
Start a ticket with an approach note
Folders with the setup. The ticket is in the conversation
/ticket-approach
Review the change
It ends with Ready or Not ready
/review-change
The whole ticket, with two stops
Folders of cadence 2 and 3. The ticket is in the conversation
/ticket-to-commit
See the plan before any edit
Plan mode. Or click the mode indicator under the prompt box and choose Plan
/plan
CadenceThe rhythm of the work: how often a person decides, and how much the tool does between two decisions.
- The ticket is the same in all three cadences, so only the way of working changes.
| In this repository | Three: step by step, with skills, with the architecture view. |
|---|---|
| Not the same as | A process. It is one ticket, done three ways. |
Memory fileCLAUDE.md. Claude Code loads it into every session in this repository.
- Claude Code reads it and usually follows it. Nothing forces it to.
| In this repository | How to run and test, the traps, the layout, and what needs a person's yes. |
|---|---|
| Not the same as | The settings, which are enforced. |
Deny ruleA line in .claude/settings.json that names something Claude Code may never do.
| In this repository | Two things are denied: editing .env, and git push. |
|---|---|
| Not the same as | A hook, which runs a script and can look at the whole command. |
HookA script that Claude Code runs by itself at a fixed moment, for example before every shell command.
- A hook that runs before a tool call can block the call. Claude Code then reads the reason.
| In this repository | The guard for the data file runs before every shell command. The format hook runs after Edit or Write. |
|---|---|
| Not the same as | A git hook. That one belongs to git and runs at a commit. |
SkillA routine written down once, in .claude/skills/<name>/SKILL.md, and started by its slash name.
- Every skill of this setup can be started only by a person.
| In this repository | Two in the base setup. Five more that run a ticket. Five more for the architecture view. |
|---|---|
| Not the same as | A prompt, which is typed again every time. |
Approach noteA short file in docs/approach, written before any code: the ticket, the options, the decisions, the tests.
- Claude Code never fills a Decision line. A person does.
| In this repository | Written by /ticket-approach or /ticket-options. |
|---|---|
| Not the same as | A plan in the conversation, which is gone when the session ends. |
Acceptance criterionOne numbered sentence of the ticket that a test or a request can show.
- Each one gets one or more tests, and one PASS or FAIL line of the show script.
| In this repository | RB-142 has four. |
|---|---|
| Not the same as | A test. The criterion says what must be true. The test proves it. |
Reference runThe recorded run of a cadence: every prompt, every answer, and the seconds Claude Code worked.
- The seconds do not include the time a person needs to read an answer and to decide.
| In this repository | In the kit, under runs/. A planned time on this page is a reference time. |
|---|---|
| Not the same as | Your own time, which the page measures with Start and End. |
Start it, or start it again
In the background
./start.sh
Stop it
./start.sh stop
Is it running?
./start.sh status
Health check
Expect {"status":"ok","db":"ok"}
curl -s http://127.0.0.1:$(grep '^PORT=' .env | cut -d= -f2)/health
One test
.venv/bin/python -m pytest tests/test_slots.py::test_assign_slot -q
Without the test that reads the real clock
That test fails when the minute changes while it runs
.venv/bin/python -m pytest -m "not wallclock" -q
The guard's own examples
Folders with the setup
.claude/hooks/guard-check.sh
Sample data on a scratch file
The data file stays as it is
DATABASE_URL=sqlite:///./scratch.db make seed
Wipe the data file and load the sample data
It drops every table first. A person types it. The guard hook blocks it for Claude Code
make seed
Read the ticket
RB-142 is GitHub issue 8
gh issue view 8
Where a word came into the code
Change the word
git log --oneline -S'slot_bucket'
Where this folder pushes
The push address is DISABLED_demo_copy_no_push
git remote -v