docs(6209): calibration stamp, after-write hook, usage seam, work log, duplicates, skill structure, tuning and rulebook routes, kind surface, prompt filter, moments, strict args, auth, lesson write path

Fourteen more test files: docstrings state the failure each guard defends
as a present-tense shape instead of the incident that found it, and issue,
milestone and rule numbers leave comments and assertion messages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 21:35:44 -04:00
co-authored by Claude Opus 5.5
parent d0d278dcce
commit ba0b56018e
14 changed files with 90 additions and 104 deletions
+8 -9
View File
@@ -1,20 +1,19 @@
"""Every typed record kind gets the same doors (#4164).
"""Every typed record kind gets the same doors.
WHY THIS IS ONE GUARD AND NOT FIFTEEN
Milestone 385 shipped `lesson` across four steps and it still arrived with
three of five tools, no way to list it, and no duplicate report. Nothing was
red, because every test asked "does what I built work" and none asked "is the
kind finished". A per-tool test cannot catch a MISSING tool.
A kind can ship across several steps and still arrive with three of five
tools, no way to list it, and no duplicate report — with nothing red, because
every test asks "does what I built work" and none asks "is the kind
finished". A per-tool test cannot catch a MISSING tool.
So this asserts the property directly — a kind with its own `note_type` has a
full create/read/update/delete plus a listing, each one registered and each one
classified for auth — and derives the expectation from the kinds themselves. A
fourth kind added later inherits the bar without anyone remembering to.
#2250 is the same failure one kind earlier: processes could always be deleted
through `delete_note`, but nothing said so, and "a kind whose own tools offer
create/read/update reads as one you cannot retire".
A kind deletable only through `delete_note` is the same failure: "a kind whose
own tools offer create/read/update reads as one you cannot retire".
"""
from __future__ import annotations
@@ -103,7 +102,7 @@ def test_every_kind_can_be_asked_whether_it_holds_duplicates(singular):
def test_the_surface_guards_can_fail():
"""Rule 167: falsify the shape these assert against, so a guard that has
"""Falsify the shape these assert against, so a guard that has
quietly stopped describing anything cannot pass by describing nothing."""
assert _expected_tools("lesson", "lessons") == [
"list_lessons", "create_lesson", "get_lesson",