Skip to content

fix(manifest-guard): retain Go binding declaration coverage - #12

Merged
antoinetoussaint-byte merged 2 commits into
mainfrom
fix/go-binding-declarations
Oct 27, 2026
Merged

antoinetoussaint-byte merged 2 commits into
mainfrom
fix/go-binding-declarations

Conversation

@antoinetoussaint-byte

@antoinetoussaint-byte antoinetoussaint-byte commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

The earlier binding matcher refinement stopped detecting ordinary Go declarations such as var Branch = "main", var Revision = "HEAD", and inline type Source struct { Branch string }. Each failed the original scanner but passed current main. This was found while independently reviewing service-go #128's full scanner-pin upgrade.

Extend the existing matcher for explicit Go var/const declarations and named inline struct fields. Punctuation alone is not a declaration boundary: comments containing semicolons or braces remain allowed. Keep innocent prose and released-contract field reads allowed. This is a fix at the shared ownership scanner, not a consumer bypass or second parser. docs/manifest-guard.md describes the retained coverage.

Maintained regressions check both branch and revision for variables, constants and inline fields. The complete scanner suite passes, including checksum metadata, real generated clients, all prior forbidden categories, allowed prose/contract reads and rejected runtime exclusions. Full conformance/evidence/workflow self-tests are also run. The first F3 follow-up identified punctuated-prose false positives; those were corrected and maintained as negative regressions. Fresh independent F3/F4 closure review at 3a1e906 verified 69 actual scanner runs, retained all named positives/negatives and found no remaining scoped blocker. Hosted scan-test passed in run 40576271810.

This follows merged #11 and closes the earlier matcher regression before codefly-dev/service-go#128 adopts the full owner pin. No issue/ticket was created.

@antoinetoussaint-byte
antoinetoussaint-byte merged commit aa2b11b into main Oct 27, 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