Fix parser import edge cases #19
No reviewers
Labels
No labels
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
priority:p0
priority:p1
priority:p2
priority:p3
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/fallow-ts!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/prewave-parser-bugs-v0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Canary Context Pack
Product story
Wave 1 should not lock incorrect parser behavior into golden output. Issue #17 verified four v0 parser bugs that affect agent-readable import evidence.
What changed
fromimports to avoid multiline overmatching.Why it changed
The current parser emitted false positives and false negatives on common JS/TS source forms. That would make Wave 1 contract goldens canonicalize known-bad behavior.
Files touched
src/analyze.tstests/analyze.test.mjsREADME.mdRelevant context
codex/prewave-governance-bootstrap)Runtime evidence
Verified red:
npm testfailed before the parser fix on the new B1, B2, and B3/B4 regression tests.Verified green:
npm run buildnpm testnode dist/cli.js analyze --root . --format json --output /tmp/fallow-ts-report.jsongit diff --checkKnown constraints
The parser remains regex-first. Comments and template literals are masked, which prevents phantom imports but also means code inside template interpolation is not analyzed yet.
Explicit out-of-scope
Requested decision
Approve and merge after PR #18.
Merge blockers
Regression tests missing the verified cases from #17, parser overclaiming AST-level accuracy, or output false positives from comments/templates.
Pull request closed