Skip to content

Docs: Why whittle covers both surfaces; policy authoring guide - #7

Merged
anshal21 merged 2 commits into
mainfrom
polish
Jul 10, 2026
Merged

Docs: Why whittle covers both surfaces; policy authoring guide#7
anshal21 merged 2 commits into
mainfrom
polish

Conversation

@anshal21

Copy link
Copy Markdown
Contributor

Two documentation improvements from founder review:

  1. docs/why-whittle.md (was why-write-time.md): the README's "Why whittle?" link landed on a compression-only essay. Now opens with two short paragraphs, one per surface (why compress at write time, why route per an auditable policy), with the write-time-vs-read-time essay preserved beneath as a section.

  2. Policy authoring guide (incoming on this PR): a technical-writer audit of the policy customization docs found they don't teach a new user to author a policy; a dedicated task-oriented guide is being added, with every JSON example validated against the real loader.

🤖 Generated with Claude Code

anshal21 and others added 2 commits July 10, 2026 10:07
The README's 'Why whittle?' quick-link landed on a compression-only essay, a
bait-and-switch for anyone clicking to understand the product. The doc now
opens as Why whittle: two short paragraphs, one per surface (why compress tool
outputs at write time; why route requests per an auditable policy), with the
original write-time-vs-read-time essay preserved beneath as 'The write-time
argument'. Links updated; no dangling references.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Technical-writer audit of the reader path (README -> policies/default.md ->
ROUTER.md) found it explains the shipped default but cannot teach a new user to
author a policy: no per-leaf JSON shapes, no signal-definition syntax or the 14
category strings, no tuning workflow, no inspect/session/keep semantics, no
validation-error reference, no log-debugging vocabulary.

docs/POLICY.md fills it, task-oriented: ten-line mental model, the minimum valid
policy, the condition grammar (including the rules that bite: no implicit AND,
single-node not, depth cap), a complete leaf reference with exact JSON and
matching semantics, signal definitions with a probe-the-sidecar tuning workflow,
inspect scopes and the keyword-vs-ML text asymmetry, stickiness and the pin
header, the init -> validate -> SIGHUP -> log authoring loop, the full signals
trace vocabulary, seven recipe policies, and symptom->fix + validation-message
reference tables. All 8 complete example policies pass the real loader
(independently re-verified). Zero em-dashes.

Drift fixed along the way: ROUTER.md section 8's log example was missing the
signals field the router actually emits. README and default.md now link the
guide; ROUTER.md stays the architecture reference and cross-links it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@anshal21
anshal21 merged commit dcf1f09 into main Jul 10, 2026
1 check passed
@anshal21
anshal21 deleted the polish branch July 10, 2026 04:49
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