Skip to content

Plan declarations; isolate test fixtures from Git hook variables - #28

Merged
TheCryptoDonkey merged 3 commits into
mainfrom
fix/plan-declarations
Sep 23, 2026
Merged

TheCryptoDonkey merged 3 commits into
mainfrom
fix/plan-declarations

Conversation

@TheCryptoDonkey

Copy link
Copy Markdown
Member

Planner. A tool-level walkthrough of the 0.4.0 tarballs on an external repository (sindresorhus/ky at 0d59458) anchored a plan on a class field (HTTPError.ts:20) and got no supported syntax block. Named classes, interfaces, type aliases and enums are now planner blocks. The smallest enclosing block still wins, so a line inside a method selects the method; imports are still not planned.

Test isolation (found while pushing this branch). Run by a pre-push hook in a linked worktree, git exports GIT_DIR, GIT_INDEX_FILE and similar. The repository-packet MCP fixtures and the ecosystem snapshot fixtures then ran git init/config/commit against the pushed repository: a fixture commit on the branch, core.bare = true and a fixture identity in the shared .git/config. Both suites now drop GIT_* variables (a vitest setup file for context-tools; module-level cleanup in the Python test). Verified by running npm run check with GIT_DIR pointed at a decoy repository: all suites pass and the decoy is unchanged; without the setup file the MCP fixtures write the fixture identity into the decoy.

Checks: npm run check (183 context-tools tests, 31 worker-packet tests), navigation smoke, both benchmark gates with recall 1.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KzXbuBSq88i3Re82qt6c4L

A plan anchor on a field or signature line, as in a walkthrough on an
external repository, previously found no supported block.
Run from a pre-push hook in a linked worktree, repository-packet fixtures
inherited GIT_DIR and wrote to the pushed repository: a fixture commit on
the branch, core.bare=true and a fixture identity in the shared config.
@TheCryptoDonkey
TheCryptoDonkey merged commit facc559 into main Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant