Repository navigation
Commit 42d6194
docs(agents): WIP-commit ordering rule + the shared turbo-cache carve-out (#12420)
* docs(agents): require a WIP commit before every minutes-long step
Make the commit-ordering rule trigger on the STEP, not on waiting: push a
WIP commit before a build, a full test run, a gate sweep or an ablation,
because that is the moment the worktree stops being the only copy. The
"commit before you wait" framing never fires for an agent that is not
waiting — it is working — which is precisely the population that
accumulates the largest uncommitted surface.
Placed at the head of Build & Test, immediately under the command block
that lists the minutes-long steps themselves, so the rule is read at the
moment of use.
Paid for in place against a zero-headroom ceiling (1158/1158), no raise:
- Documentation Guardrails: the three named-example rows (concepts/,
getting-started/, protocol/) deleted (-3). Surviving home: the
generic `content/docs/<tree>/` row directly above them, which covers
every tree except references/ and releases/ and whose own text called
them "named examples, not the whole set" (that dangling sentence is
dropped with them).
- Skills: the governed-surface paragraph compressed 4 lines -> 2 (-2).
Surviving home: Prime Directive #14, which carries every clause —
human-merge only, never merge/queue/arm/flip-draft, the retired
per-PR approval check, and the post-merge audit.
Net 0 lines; check-skill-line-ratchet green at 1158/1158, widest table
row unchanged at 1081 bytes (pin 1081).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JANH3y7qe3MD8aLaLXci8N
* docs(agents): carve the shared turbo cache out of the isolation promise
The worktree rules promise isolation, and agents read that promise as
covering the build cache. It does not: turbo resolves the repo root
through the git COMMON directory, so every linked worktree replays one
`.turbo/cache` in the primary checkout — the same class of shared state
as the stash stack already documented beside it.
Carries the symptom and the remedy, because the two are otherwise
unrecognisable: a typecheck failing on a package the diff never touched,
which a plain rebuild does not repair because that rebuild is a cache
HIT. The remedy is a forced rebuild of that package. Ablating a build
tool is named as a sanctioned producer of poisoned entries — the
discipline this repo requires of gate PRs is itself the producer — and
`--force` is noted as writing the whole dependency closure, since the
remedy has the wider blast radius.
Paid for in place against a zero-headroom ceiling (1158/1158), no raise:
- Prime Directive #11's stash tail compressed 3 lines -> 2 (-1), and
its claim that the stash is "the one thing a worktree does not
isolate" corrected — that sentence was already false against the
Multi-agent section's own "the stash is one CASE" paragraph, and
this change adds a second counter-example. Surviving home: the same
Multi-agent paragraphs, which carry the hook name, OS_ALLOW_STASH=1
and the collision-free replacements in full.
- The Multi-agent section opener compressed 6 lines -> 2 (-4). It
restated Prime Directive #11 nearly clause for clause (the same
worktree command, the same reset-under-you hazard, the same hook
enforcement); what replaces it points at #11 and introduces the
carve-outs that follow, which is the section's own subject.
Net 0 lines; check-skill-line-ratchet green at 1158/1158, widest table
row unchanged at 1081 bytes (pin 1081).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JANH3y7qe3MD8aLaLXci8N
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent db8c288 commit 42d6194
1 file changed
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
238 | | - | |
239 | | - | |
240 | | - | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
412 | 417 | | |
413 | 418 | | |
414 | 419 | | |
| |||
709 | 714 | | |
710 | 715 | | |
711 | 716 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
| 717 | + | |
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
| |||
830 | 832 | | |
831 | 833 | | |
832 | 834 | | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
| 835 | + | |
| 836 | + | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| |||
0 commit comments