feat(af02): add deterministic surface scanner - #59
Draft
TheHalfMoon wants to merge 7 commits into
Draft
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
AF-02 Stack A0 — T012 scanner infrastructure
Stack predecessor:
This is a stacked A0 infrastructure candidate. It does not alter
surface-policy.json, does not commit source-universe/finding evidence, and does not claim T013.T012 implementation
syn = 3.0.3withfullandvisit, matching the planning-frozensyn-af02-scanneridentity;tools/af02-verifier/src/surface.rsas the plannedSURFACE_SCANNER/SURFACE_POLICY_PARSERimplementation path;synand scan cfg-disabled/dead syntax without scanning comments or literal contents;usealiases deterministically and emit uncertain findings for relevant glob ambiguity;PATH_CALL,TYPE_CONSTRUCTOR,METHOD_CALL, andMACRO_TOKENmatching with exact identities;parse-surface-policyandscan-surfaceCLI entrypoints while leavingverify-prfail-closed.Temporal/lineage boundary
The currently canonical surface policy remains the earlier BOOTSTRAP policy. This candidate intentionally does not rebase that policy and does not carry dependent source-universe/finding evidence.
dependent_evidence_allowed_in_same_candidateremains false. Policy rebase and T013 evidence must be separately governed after the predecessor/scanner authority is canonical.Qualification
This initial head is intentionally unqualified. GitHub Actions is the authoritative compile/format/test environment for this stack; any failure will be repaired on a new exact head. No merge is authorized while the predecessor PR remains unmerged or review governance is unsatisfied.
Summary by cubic
Adds the deterministic T012 surface scanner to
tools/af02-verifierso boundary syntax in Git-tracked Rust sources can be matched against surface-policy JSON. The canonical surface policy and evidence are unchanged, andverify-prremains fail-closed.New Features
syn = 3.0.3(full,visit) and the newsurface.rsmodule, exposed throughparse-surface-policyandscan-surfaceCLI commands.cratesandtoolsroots, including cfg-disabled/dead syntax but never comments or literal contents.usealiases deterministically; glob ambiguity yields uncertain findings.Qualification
syn, ran fmt/clippy/test and the canonical policy scans, and committed the qualification back.commandf-pkgintegration test locks the scanner (synversion and checksum), runs clippy/test, and executes both CLI entrypoints, binding the scanner to the required rust gate./target/is ignored.Written for commit dc4b9a3. Summary will update on new commits.