session 2026-08-07 evening: PENDING-112 + REVIEWED-95 (route harvested capabilities by firing moment)
Register censused and rebuilt from the archive: 177 claimed -> 154 real live proposals, legible, with exact archive:L### pointers. The 2026-08-01 compaction was lossless but illegible (55 scraped header rows; 95% of cells cut mid-word); completeness verified 124 = 124, so nothing had been dropped. Skills pruned 63 -> 12 after measuring that 53 had never been invoked across 64 sessions / ~5 months. The finding underneath: retrieval is set by a capability's HOME, not its importance -- MEMORY.md 83%, register 77% (named in a wake step), ladder 14%, 'THE GOVERNING FRAME' 12%, 'Read at Step 0' 9%, recall-bound skills 0%. PENDING-112 filed, jurist design-gated, steward concurred; REVIEWED-95 drafted. Landed: the /wrap-up 1.6 filing gate (prospective) and the /wake-up ladder sentence (a pre-registered trial intervention, landed alone). The 20-session falsifier is WIRED, not intended -- DEFERRED-DECISION ladder-ritual-trial, trigger: transcripts 84. Wiring it exposed two defects in the deferral checker: no way to express a session count except as a date proxy, and a scan that never looked at claude/governance/. Controls 16 -> 19. Stroke 2's 41-entry ladder append deliberately NOT done: REVIEWED-95 Q3 sequences it after the ladder trigger, which now exists. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NEWjLBP4quXbDPDL2byEzZ
This commit is contained in:
co-authored by
Claude Opus 5
parent
2bdd40749a
commit
33c11fff87
@@ -283,6 +283,12 @@ DEFERRED_RE = re.compile(
|
||||
r"<!--\s*DEFERRED-DECISION:\s*([a-z0-9][a-z0-9-]*)\s*\n(.*?)-->", re.S)
|
||||
|
||||
SCAN_ROOTS = [HOME / "_Dev", HOME / "dotfiles"]
|
||||
TRANSCRIPTS = HOME / ".claude/projects/-Users-davidglidden"
|
||||
# Governance packages live outside the */docs/** convention the scan was written for,
|
||||
# so a deferral filed there was invisible to this check. Found 2026-08-07 while wiring
|
||||
# PENDING-112's falsifier: the mechanism existed, and the one place it most needed to
|
||||
# reach was the one place it did not look.
|
||||
EXTRA_SCAN_GLOBS = [(HOME / "dotfiles", "claude/governance/**/*.md")]
|
||||
deferrals: list[dict] = []
|
||||
|
||||
|
||||
@@ -315,13 +321,28 @@ def trigger_fired(d: dict) -> bool | None:
|
||||
else (d["root"] / arg).exists()
|
||||
if kind == "date":
|
||||
return datetime.date.today().isoformat() >= arg
|
||||
if kind == "transcripts":
|
||||
# Session-count trigger. Added 2026-08-07 for PENDING-112's pre-registered
|
||||
# 20-session falsifier, which the jurist required be BINDING rather than a
|
||||
# disclosed intention. A date would have been a proxy — sessions run at wildly
|
||||
# variable rates — and this block's own comment records that proxies are what
|
||||
# failed last time. Counting transcripts encodes the real condition.
|
||||
try:
|
||||
return len(list(TRANSCRIPTS.glob("*.jsonl"))) >= int(arg)
|
||||
except (ValueError, OSError):
|
||||
return None
|
||||
return None
|
||||
|
||||
|
||||
for root in SCAN_ROOTS:
|
||||
_scan_targets = [(r, "*/docs/**/*.md") for r in SCAN_ROOTS] + EXTRA_SCAN_GLOBS
|
||||
_seen_files: set = set()
|
||||
for root, pattern in _scan_targets:
|
||||
if not root.is_dir():
|
||||
continue
|
||||
for f in root.glob("*/docs/**/*.md"):
|
||||
for f in root.glob(pattern):
|
||||
if f in _seen_files:
|
||||
continue
|
||||
_seen_files.add(f)
|
||||
try:
|
||||
if f.stat().st_size > 400_000:
|
||||
continue
|
||||
@@ -343,6 +364,16 @@ control("deferred-decision parser reads a well-formed block",
|
||||
len(_p_ok) == 1 and _p_ok[0]["slug"] == "tei-native")
|
||||
control("deferred-decision parser rejects a non-block",
|
||||
not parse_deferrals("<!-- DEFERRED: nope -->", CLAUDE_MD))
|
||||
# transcripts-trigger controls: it must fire on a threshold already passed and stay
|
||||
# silent on one that has not. An absence is not evidence until the instrument is shown
|
||||
# capable of detecting presence — and this trigger carries a standing obligation.
|
||||
control("transcripts trigger fires on a passed threshold",
|
||||
trigger_fired({"trigger": "transcripts 1", "root": HOME}) is True)
|
||||
control("transcripts trigger silent on an unreached threshold",
|
||||
trigger_fired({"trigger": "transcripts 999999", "root": HOME}) is False)
|
||||
control("governance dir is inside the deferral scan",
|
||||
any("claude/governance" in str(p) for p in _seen_files)
|
||||
or not (HOME / "dotfiles/claude/governance").is_dir())
|
||||
control("trigger evaluator FIRES on a met condition",
|
||||
_p_ok and trigger_fired(_p_ok[0]) is True)
|
||||
control("trigger evaluator does NOT fire on an unmet condition "
|
||||
|
||||
Reference in New Issue
Block a user