Skip to content

v4.8.41

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:32
· 1 commit to main since this release
683212d

Summary

For a plugin user, two instruction files change. Teammates are no longer told to set a memory_saved flag in task metadata before completing, so they intentionally stop writing that retired metadata. The unattended-runs reference names the config root as {config_dir} in its settings example instead of a hardcoded home path. No runtime or hook code path behaves differently — the flag had zero code readers.

What landed

  • The "Confirm Memory Saved" step is deleted from the pact-agent-teams skill's Before Completing checklist. The flag was self-reported and unenforced: nothing verified a save, and the measured incident behind the change found five tasks flagged true with no PACT-prompt pact-memory records created during 07–16 UTC on 2026-11-10. The step was the list's last item; this change unnumbers the surviving item so the checklist does not read as having lost a step; the save-discipline prose is untouched — domain learnings still go to agent memory, institutional knowledge still goes in the HANDOFF.
  • The agent-handoff emitter's docstring drops the line documenting that no hook enforces the flag; the flag no longer exists, so the caveat had no referent. No code changes.
  • Two validation-silence tests swap their example extra key to a neutral name; one also drops the docstring sentence that called the old key a real secretary field. The property under test — extra keys in a HANDOFF stay silent — is unchanged and still positively asserted. Both files now say about half where they said most for the share of real handoffs an advisory would fire on, and two comments in other emitter tests that cited the emitter by line numbers which no longer held what they named cite its branch and its invariant instead.
  • Two sibling pins now scan the same six LLM-loaded directories as the retirement pin: the planning-artifact scrub and the agent-memory leaf pins widen their enumerations to reference/ and templates/ (119 files each — the scrub pin counts the git-tracked set, the leaf pin walks the filesystem). No violations surfaced in either directory.
  • One constant in tests/fixtures/tracked_files.py names the six directories, and every census derives from it: the retirement pin's, the scrub pin's, the leaf pin's, the prose-root gate's, and the test-run scope census's glob list, which is generated from it. Each of those modules carries an arm that reddens when its own census is narrowed, and the retirement pin holds the scope census to the same directories, so a scan cannot silently narrow or widen while the others stay put. In that fixture, tracked_files and tracked_glob now refuse a blank or non-string directory or pattern argument (previously "" meant the repository root in both, and so did None in tracked_files; tracked_glob(None) raised TypeError).
  • A regression pin bans the retired token from every tracked Markdown file (.md or .markdown, case-insensitive) in the six LLM-loaded directories: skills/, agents/, commands/, protocols/, reference/, templates/. The flag was write-only, so a re-taught token would reintroduce it. The ban is strict: after normalization, encoded and dash spellings alike, memory[-_ ]*saved anywhere in a file is a hit. The cost is that ordinary English containing the phrase must be reworded; the diagnostic names the file, the line and the text, naming the first and the last line when a hit crosses a paragraph break, and says so. Self-tests seed every spelling on every surface, check the decoder against the rule restated, and a second count holds the scan to every tracked Markdown file. Outside the scan: files that are not Markdown, text that code emits to agents (hooks/, scripts/, bin/), and every file outside the six directories, the two READMEs, tests/ and this file included. The pin's docstring (tests/test_skills_structure.py) has the detail.
  • The prose-root regression gate now scans the same six LLM-loaded directories as the retirement pin; it previously scanned four and excluded reference/ and templates/. Two settings.json sites in reference/unattended-runs.md migrate to the {config_dir} convention, and the passage that shows how to set tmux mode there moves under the section describing tmux mode, where its "it" has a referent; reference/config.md keeps its ~/.claude/pact-memory literal under a justified allowlist entry because that default is pinned in code at skills/pact-memory/scripts/config.py:186; a premise pin reads that whole expression, pact-memory tail included, which the prefix-matching ARM2 cannot see, and the gate's synthetic-repository control now seeds all six census directories.
  • An installed plugin layout that lacks one of the six directories no longer fails three of those modules. In a copy of the plugin without templates/, the planning-artifact scrub, the agent-memory leaf pin and the prose-root gate failed eight arms between them, each meeting the missing directory a different way, and three more arms passed without scanning the directory. One rule in the fixture answers for all of them: outside a checkout named pact-plugin the arms that need the directory skip and name it, and in the checkout a missing directory still fails. An arm copies the plugin without templates/, runs the five census modules in the copy, and asserts that nothing fails and that those eleven arms skip naming the directory.
  • The fast-suite verifier's test rig no longer depends on how pytest was started. It records both commands, and starts every child, with the interpreter as an absolute path, so a recorded command and the verifier's recomputed one agree however the interpreter was spelled. On main, 110 of the module's 150 arms refused a valid baseline with CANARY-COMMAND-MISMATCH when pytest was started through a relative path that climbs with .., and as many when the interpreter was found on a relative PATH entry. The module now passes by an absolute interpreter path, by a relative path that climbs with .. or starts with ., by python3 found on an absolute and on a relative PATH entry, and by the pytest script. An arm holds both artifact builders and both verifier paths to a climbing and to a relative spelling.

Why

A signal nothing reads and nothing enforces is not a signal: it asked agents to attest a save no mechanism could verify, against a referent (the agent's own memory directory) with no task-scoped trace. The durable record of banked HANDOFFs already exists downstream — the agent_handoff journal events at lead acceptance and the secretary's harvest ledger — so the flag retired rather than gained an enforcer.