feat(receipts): project-aware verification hint and shared code-extension list - #106
Merged
Conversation
…sion list The TaskCompleted refusal used to list every ecosystem's commands. It now names only the commands of the ecosystem detected for the project: root markers in the working directory and in the first two path segments of the files changed in the session (monorepos), plus the extensions of those files. bun test and bunx tsc on a Bun repo, npm or pnpm or yarn test per lockfile, pytest with mypy or pyright when configured, go test and go vet, cargo test and cargo check, php artisan test or phpunit or pest with phpstan when configured, swift test, flutter test or dart test; the generic list only when nothing is detected. The SubagentStop advisory uses the same hint. A single shared code-extension list (code-extensions.ts) now feeds session change tracking, the completion gate and the hint; Dart files were gated but never tracked, so the Dart branch could not fire, fixed. Paths coming from session state are confined to the working directory before any disk read; search directories are deduplicated. Verified on 30 real fixture projects through the hook binary; tests 1837 to 1857.
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.
Summary
Changes
Test plan
Breaking changes
None