Skip to content

Wire a committed DotGram-generated parser for target filters (stub grammar) - #2

Merged
igor-tkachev merged 4 commits into
masterfrom
tf-dotgram-wiring
Nov 7, 2026
Merged

igor-tkachev merged 4 commits into
masterfrom
tf-dotgram-wiring

Conversation

@igor-tkachev

Copy link
Copy Markdown
Owner

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

igor-tkachev and others added 4 commits November 6, 2026 22:55
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
@igor-tkachev
igor-tkachev merged commit c185f5f into master Nov 7, 2026
7 checks passed
@igor-tkachev
igor-tkachev deleted the tf-dotgram-wiring branch November 7, 2026 04:10
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