Glossary¶
Chalk names its parts after school, so that a run reads like a term: the agent does its work against a rubric, follows the textbook, ends up in detention when it is stuck, gets help in office hours, and the term ends with a report card. On every page of this site, the school terms have a dotted underline; hover over one to see its definition.
School terms¶
- Rubric
- The test command,
CHALK_TEST_CMD, that decides whether a loop's work is acceptable. The harness runs it itself, inside the sandbox, after every loop, and again in CI. Only work that passes it is committed. Mechanism:run_rubricinlib/run.sh; thechalk / rubricgate. - Textbook
.chalk/textbook.md: your engineering rules, appended to every agent's system prompt inside<engineering_rules>. It applies to every ticket and takes precedence overCLAUDE.md. Mechanism:agent_write_systeminlib/agent.sh.- Detention
- Where a run stops when it cannot make progress: a reported blocker,
exhausted retries, the loop limit, a review that still fails, or a
stopping verdict. The work is parked on a local
detention/<TICKET>-<timestamp>branch, nothing is pushed, and an open lesson is logged. Mechanism:run_detaininlib/run.sh. See Detention and office hours. - Office hours
chalk office-hours -m NOTE. A person fixes the blocker on the detention branch, leaves a note, and the loop resumes. The note becomes a lesson. Mechanism:cmd_office_hoursinlib/lifecycle.sh.- Tutoring
- The
tutoring/<TICKET>-<timestamp>branch a run resumes on after office hours. The CI gates treat it like achalk/branch. - Lesson
- A rule distilled from an office-hours note and the fix, stored in the
lessonstable and recalled into the prompts of later loops whose failures look the same. Its scope says whether it holds in any repository (general) or only in its own (repo). Mechanism:office_hours_distillinlib/lifecycle.sh,memory_recallinlib/memory.sh. See Lesson recall. - Report card
chalk dashboard: one static HTML page built from the localrunstable. Its grade is the cost per finished checkpoint. Mechanism:lib/dashboard.sh,share/dashboard.sql,share/dashboard.html. See Verdicts and the report card.- Notes for next term
- The report card's recommendations: plain rules over the numbers, such as lowering a spend cap that loops never come near.
Work¶
- Ticket
- One unit of work, named by a key like
PROJ-123. One ticket is one branch (chalk/PROJ-123), one worktree and one spec. - Spec
specs/<TICKET>.md: the context and the checkpoints for a ticket.- Checkpoint
- One line
- [ ] …in the spec: a step small enough for one loop and provable by the rubric. The agent ticks it (- [x]) when done. - Spec check
- A cheap model's check, before the first loop, that every checkpoint is small, testable and unambiguous, and leaves the rubric passing on its own.
- Loop
- One agent call that works on a checkpoint (
continue), retries after a failure (retry) or fixes review findings (fix-review), followed by the rubric. Each has a spend cap,CHALK_BUDGET_USD. - Run
- One
chalk run: a sandbox, the spec check, loops, the final review and either a pull or merge request or detention. - Final review
- An independent agent's read-only review of the finished change for stubs, weakened tests and drift from the spec.
- Sandbox
- The throwaway container a run works in. See The sandbox.
- Fleet, epic, workstream
chalk fleet EPICsplits an epic into workstreams, one ticket each, and runs them in parallel.- Forge
- Where the repository is hosted: GitHub (pull requests,
gh) or GitLab (merge requests,glab).
Verdicts and the future¶
- Fingerprint
- What a loop reduces to after the rubric runs: the failing tests, the
normalized first error and the working tree's ID.
Mechanism:
lib/fingerprint.sh. - Verdict
- The label a loop that made no progress gets from its fingerprint, such
as
repeatorno_change. Three of them,deja_vu,repeatandno_change, can stop a run early whenCHALK_FP_RULES=on. See Verdicts. - Shadow mode
- A rule records what it would have done and changes nothing.
CHALK_FP_RULES=shadowis the default; the report card shows whether turning a ruleonwould pay. - Harness
- The coding-agent CLI that runs each loop. Today it is always Claude Code.
- Decider
- System 1: a small, fast model that answers bounded questions, such as
"is this loop stuck?" or "does this lesson apply?", each with a
confidence, so Chalk does not have to ask Claude. Optional, off by
default, and in shadow mode until turned on.
Mechanism:
lib/decider.sh. See The decider and the decider protocol. - Hindsight
- An optional lesson-memory server, removed in favour of recall from the
lessonstable.
The roadmap's design notes keep the same terms.