Skip to content

Add mod.rs facade policy#67

Merged
octogonz merged 2 commits into
microsoft:mainfrom
octogonz:main
May 21, 2026
Merged

Add mod.rs facade policy#67
octogonz merged 2 commits into
microsoft:mainfrom
octogonz:main

Conversation

@octogonz
Copy link
Copy Markdown
Collaborator

Update files to comply

octogonz added 2 commits May 19, 2026 23:39
Visibility sweep across app/, app/crawl/, app/commands/, engine/, engine/fts/, engine/git_ops/
to demote child module declarations from pub mod to plain mod, per the facade integrity
policy in docs/code_organization_policy.md.

- app/mod.rs: demote cli, context, crawl, search
- app/commands/mod.rs: demote audit_chunks, debug_fts, dump_chunks, use_cmd, view
- app/crawl/mod.rs: demote all children, add re-exports for crawl.rs facade reach
- engine/mod.rs: demote 12 children, add re-exports for app/ facade reaches
- engine/fts/mod.rs: demote all 6 children
- engine/git_ops/mod.rs: demote commit, working_dir

Re-export additions:
- app/crawl/mod.rs: re-export items used by commands/crawl.rs
- engine/mod.rs: re-export items used by app/ (git_ops, partitioner, etc.)

Import rewrites in src/app/:
- crawl.rs, phases.rs, preamble.rs, warning.rs
- search.rs, tests.rs (search module)
- config.rs, audit_chunks.rs, dump_chunks.rs
- commands/search.rs (including test module)

CI infrastructure:
- scripts/check-facades.sh: enforce facade integrity with 12-entry allowlist
- justfile: add check-facades recipe, wire into ci and ci-quick
- .github/workflows/ci.yaml: add Check facade integrity step
@octogonz octogonz merged commit c680d1d into microsoft:main May 21, 2026
2 checks 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