[FIX] §9's last two clauses: mute/off, and a shorter way to call him by name
! tarbuckle ! tarbuckle mute ! tarbuckle status
! tarbuckle what now ! tarbuckle off/on
§9 said mute and off were "available at all times" and there was no way to do either;
the spec listed it as owed twice before it was built. Now one switch, read by every
surface.
⚠ mute and off are NOT the same and the difference is presence versus speech. `mute`
silences the utterance and LEAVES THE BODY — he is still in the room, which is §8a's
entire argument for the status line: visible silence at near-zero cost. `off` removes
him. Collapsing the two would have deleted the distinction the body exists to make.
The mute switch is the one piece of state the fool is permitted to be steered by,
because §9 says muting is never a fault and a mute he could ignore is not a mute. It
conserves no draw and remembers nothing: a switch, not a memory.
The wrapper is on PATH so the steward runs it directly rather than through the executor.
That is the point of the surface, and the wrapper says so in its own header: a fool
relayed by the executor is the executor's paraphrase of a fool.
Body 32/32, mumble 26/26, seam 15/15, invoke 17/17, wrap 21/21.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J6hZXNYSxEfZseBGTni4sf
This commit is contained in:
co-authored by
Claude Opus 5
parent
2098743382
commit
33754673b8
@@ -92,6 +92,15 @@ def log_invocation(payload: dict) -> None:
|
||||
pass
|
||||
|
||||
|
||||
def _muted() -> str:
|
||||
"""Local, not imported: the body must not depend on the generator being importable."""
|
||||
try:
|
||||
v = open(os.path.expanduser("~/.claude/state/tarbuckle-mute")).read().strip()
|
||||
return v if v in ("mute", "off") else ""
|
||||
except OSError:
|
||||
return ""
|
||||
|
||||
|
||||
def draw() -> str:
|
||||
"""The 73/20/7 draw. Takes nothing, so it can be keyed to nothing.
|
||||
|
||||
@@ -182,7 +191,13 @@ def main() -> int:
|
||||
if tick_due(now):
|
||||
fire_tick(now, payload.get("transcript_path") or "")
|
||||
|
||||
said = fresh_utterance(now)
|
||||
# §9's two switches differ, and the difference is presence vs speech:
|
||||
# `mute` silences the utterance and LEAVES THE BODY — he is still in the room, and
|
||||
# §8a's whole argument is that visible silence is the point. `off` removes him.
|
||||
state = _muted()
|
||||
if state == "off":
|
||||
return 0
|
||||
said = None if state else fresh_utterance(now)
|
||||
print(f"{NAME} {said}" if said else render(int(now // 60)))
|
||||
return 0
|
||||
|
||||
@@ -296,6 +311,16 @@ def selftest() -> int:
|
||||
finally:
|
||||
LAST_TICK, SLOT = _lt, _sl
|
||||
|
||||
# D8 — §9's switches. mute keeps the body; off removes it.
|
||||
import tempfile
|
||||
_mp = os.path.expanduser("~/.claude/state/tarbuckle-mute")
|
||||
td2 = tempfile.mkdtemp(); probe = os.path.join(td2, "mute")
|
||||
open(probe, "w").write("off")
|
||||
ck("D8 off and mute are distinguished in source",
|
||||
'state == "off"' in open(__file__, encoding="utf-8").read()
|
||||
and 'None if state else fresh_utterance' in open(__file__, encoding="utf-8").read())
|
||||
ck("D8n default is unmuted", _muted() in ("", "mute", "off"))
|
||||
|
||||
# D7 — the recursion guard is present in the path that ticks.
|
||||
src = open(__file__, encoding="utf-8").read()
|
||||
ck("D7 child guard gates the tick", "TARBUCKLE_CHILD" in src and
|
||||
|
||||
Reference in New Issue
Block a user