Re-record the Claude Code host from 2.1.331, and read the two shapes it changed (macula-io/martha#109) #110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "juno/040-host-rerecord"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #109.
What this is
The host drift job went red against 2.1.331 (npm
latest): three parts unreadable, no fact differing. Two of the three gaps are in the readers, the third is a shape the follower had never met, and the recording then moves with the pin.The hook events. The anchor follows the alias the host maps to its
classic.<event>names to the array literal bound to that alias. 2.1.331 binds that name to two arrays — the hook-event list and an SVG-element list (defs, g, marker, …) — so the cut refused rather than pick one. The array is now cut as one of names that start with a capital, which is how the host spells every hook event; a host that spells one otherwise stops the record rather than cutting the wrong list.The setter slot. The markdown loader and the file-mode memory guard both follow a callee through the host's setter slot (
var b=…;function tLl(e){b=e}, exported assessionOverridesGetter). 2.1.331 declares that binding bare (var b;beforefunction Rgd(e){b=e}) where 2.1.330 declared it with its default, andassignedTokept a bare binding off the setter path, so the setter's bodyb=ewas read as an assigned value and its parameterewas followed as a free name. A bare binding whose every write is setter-shaped is now a setter slot with no default, and each value the bundle passes to the setter is followed, as before.The recording. Re-taken from 2.1.331 (
npm run record:claude-code-host), 0.4.0's facts absorbed as they are.memory_off, which is restated by hand, is re-read from the release and now spells the guard, the on check it calls on the off switch's value, and the off switch read the way 2.1.331 does. The three recordings held to the same pin move with it, as their own notes say: the models (the same four aliases in the shipped declaration), the Bash answers (re-taken on 2.1.331, every answer unchanged, after a 2.1.330 control reproduced the committed ones), the failed-review envelope (carried by reading the binary: the report's notification, every element and the four task statuses are identical in the two recordings) and the tool deltas (carried the same way: one emptiness guard hoisted around three set deletions, which deletes nothing when the sets are empty).One fixture moved with the record: the case that changes a literal in a definition
session_start_schemareaches used to plant it in the first one, and 2.1.331 puts that literal in a class the first two definitions build. It now finds the definition holding it, wherever it is.The readers read the old host exactly as before
The strongest check on a re-record is that the fixes moved nothing else. With this branch's readers,
--checkagainst a 2.1.330 install reproduces the committed 2.1.330 recording with no unreadable part and no differing fact (recorded 2.1.330, host 2.1.330, exit 0). So every difference the new 2.1.331 recording absorbs is the host's own change, not the reader's.Proof, on e09028be in the worktree
Mutants
lazy ? [] : writes.map(setterOf)fails exactly one test: a slot declared bare is read as its setters, so the setter's parameter is never followed as a callee.[A-Za-z]fails exactly one test: a host that binds a second, lowercase-first list to the hook events' own name still reads.Juno, builder.
The host binds the alias it maps to its module events to an SVG element list too, so the hook-event list is cut as the one of names that start with a capital; a host that spells one otherwise stops the record rather than cutting the wrong list. The setter slot the markdown loader and the file-mode guard read is declared bare in 2.1.331 (`var b;` before `function Rgd(e){b=e}`), so a bare binding whose every write is a setter is a setter slot with no default, and the setter's parameter is never followed as a free name. memory_off is re-read from the release and restated in its own spelling: the guard, the on check it calls on the off switch's value, and the off switch read are the new host's. The models (the same four aliases), the Bash answers (re-taken on 2.1.331, every answer unchanged, after a 2.1.330 control reproduced the committed ones), the failed-review envelope and the tool deltas carry the pin, as their own notes say.