The machine-level block points every session at the instruction render (#445) - #449
Merged
Conversation
…render, beside the self context bullet it already carried. Cell G17 in docs/maintainers/case-tables/440-instructions.md covers it, golden.test.mjs's G3 scope widens to admit the machine block's own instruction mentions, and the golden fixture is regenerated. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: rayim <rayim@inflike.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #445
What changed
renderMachineBlock(apps/cli/src/connect.ts), the templateconnectMachinewrites into~/.claude/CLAUDE.md,~/.codex/AGENTS.mdand~/.gemini/GEMINI.md, gains one bullet directly after theself contextbullet, wrapped to the block's own width and matching the wordingBLOCK_BODYalready uses for the project-level block:Does the machine block refresh on version change?
No, and this PR does not add that.
refreshBlocks(the project block's path) is called fromfoldProject, so a project'sAGENTS.md/CLAUDE.mdis rewritten to the current template on nearly every write command, version mismatch or not —upsertBlockdoesn't even compare versions, it just always replaces whatever sits between the markers. The machine-level block has no equivalent caller:connectMachineonly runs from an explicitself init(when the agents question is answered yes) or an explicitself connect --global. An existing machine file carrying the old block sits stale until one of those is run by hand; nothing today detects the stale version marker and offers a refresh. That's a separate gap from #445 and is left alone here.Case table
docs/maintainers/case-tables/440-instructions.mdgains cell G17, numbered after G16, asserting the whole bullet lands in all three machine files afterself connect --global. The group table's G row and the designed-cells count (147 → 148) are updated, and a new "added for #445" entry documents the cell.Golden fixture
test/fixtures/golden/piped.txtregenerated withnode test/golden.mjs --write— the only diff is the new bullet inside theself connect --globalsection. That triggered a real fix:golden.test.mjs's G3 test asserted everyinstruction-naming line in the fixture came from the root usage listing (plus one exempted receipt phrase); the new bullet's twoinstruction-naming lines now legitimately live inside the machine block, so G3's exemption widens to admit any line inside the block's own begin/end markers.Docs
Grepped
docs/andapps/cli/README.mdfor text that quotes the machine block's individual bullets (as opposed to summarizing the block generally) — none found, so no doc changes beyond the case table.Gates run
pnpm --filter superself typecheck— passpnpm --filter superself build— passnode test/structure.mjs— passnode --test test/guide.test.mjs test/docs.test.mjs test/golden.test.mjs test/instruction-context.test.mjs test/init-mode.test.mjs— 112/112 passCI runs the full suite on this PR.
🤖 Generated with Claude Code