[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
@@ -47,6 +47,24 @@ BANNED = (
|
||||
)
|
||||
|
||||
|
||||
MUTE = os.path.expanduser("~/.claude/state/tarbuckle-mute")
|
||||
|
||||
|
||||
def muted() -> str:
|
||||
"""'' | 'mute' | 'off'. §9: "mute / off available at all times."
|
||||
|
||||
⚠ Read by EVERY surface, and it 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 the fool could
|
||||
ignore is not a mute. It conserves nothing and no utterance depends on it having
|
||||
been set before: it is a switch, not a memory.
|
||||
"""
|
||||
try:
|
||||
v = open(MUTE).read().strip()
|
||||
return v if v in ("mute", "off") else ""
|
||||
except OSError:
|
||||
return ""
|
||||
|
||||
|
||||
def source_lacks(path: str, *parts: str) -> bool:
|
||||
"""True if the joined needle does NOT appear in `path`.
|
||||
|
||||
@@ -156,6 +174,8 @@ def acceptable(line: str, max_words: int = MAX_WORDS,
|
||||
|
||||
|
||||
def main() -> int:
|
||||
if muted():
|
||||
return 1
|
||||
kind = sys.argv[1] if len(sys.argv) > 1 else "aside"
|
||||
transcript = sys.argv[2] if len(sys.argv) > 2 else ""
|
||||
register = soul_register()
|
||||
@@ -243,6 +263,21 @@ def selftest() -> int:
|
||||
paths = (SOUL, SLOT, REJECTS)
|
||||
ck("A4 material paths are session/soul only",
|
||||
not any(("PENDING" in q or "REVIEWED" in q) for q in paths))
|
||||
# A5 — the mute switch, and that every surface must be able to see it.
|
||||
import tempfile
|
||||
global MUTE
|
||||
_m = MUTE
|
||||
MUTE = os.path.join(tempfile.mkdtemp(), "mute")
|
||||
try:
|
||||
ck("A5n unmuted by default", muted() == "")
|
||||
open(MUTE, "w").write("mute")
|
||||
ck("A5 mute is read", muted() == "mute")
|
||||
open(MUTE, "w").write("off")
|
||||
ck("A5 off is read", muted() == "off")
|
||||
open(MUTE, "w").write("nonsense")
|
||||
ck("A5n a junk value is not a mute", muted() == "")
|
||||
finally:
|
||||
MUTE = _m
|
||||
ck("A4n the predicate can fail",
|
||||
any(("PENDING" in q) for q in paths + ("/x/PENDING.md",)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user