Repository navigation
Wire a committed DotGram-generated parser for target filters (stub grammar) - #2
Merged
Merged
Conversation
A stub grammar (optional operator, optional matcher prefix, rest of the line) is read by TargetFilterParser, whose members are generated by DotGram.Cli at a pinned DotGram commit and SDK (Source/TargetFilter/dotgram.pin) and committed under Source/TargetFilter/Generated. regenerate.sh builds the pinned tool and runs project-mode generation; the build itself needs no DotGram, so the package gains no dependency. -p:DotGramLocal=true builds the parser from the grammar with a DotGram checkout instead. Co-Authored-By: ai-it-boss <ai.it.boss@tkachev.com> Claude-Session: https://claude.ai/code/session_018vDs8xWpRAzexkRByS29oa
filter-parser regenerates the target filter parser exactly as a developer does (pinned SDK, the regenerate script) and fails on any difference in Source/TargetFilter, on Linux and on Windows. The workflow can be started by hand. The minimum-sdk consumers apply an aspect with a TargetFilter to a type and assert that only the selected call is intercepted. AGENTS.md describes the flow. Co-Authored-By: ai-it-boss <ai.it.boss@tkachev.com> Claude-Session: https://claude.ai/code/session_018vDs8xWpRAzexkRByS29oa
Co-Authored-By: ai-it-boss <ai.it.boss@tkachev.com> Claude-Session: https://claude.ai/code/session_018vDs8xWpRAzexkRByS29oa
Say what is proven today: the generated parser compiles against Roslyn 4.12 and is exercised by unit tests; production filters still use the hand-written parser, so the minimum-sdk consumer will cover it once filters are parsed by it. DotGramLocal=true turns automatic packaging off and fails an explicit pack (checked in CI), so a package never carries an unpinned parser. regenerate.sh pins the exact SDK for the DotGram.Cli build as well and fails when Generated holds a file its manifest does not list. Co-Authored-By: ai-it-boss <ai.it.boss@tkachev.com> Claude-Session: https://claude.ai/code/session_018vDs8xWpRAzexkRByS29oa
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.
Draft for CI only: proves the filter-parser job (regenerate at the pinned dotgram commit and fail on a diff) and the minimum-sdk consumer with a TargetFilter.
🤖 Generated with Claude Code
https://claude.ai/code/session_018vDs8xWpRAzexkRByS29oa