docs+refactor: audit cleanup (config truth, dead code) - #274
Merged
Conversation
SECURITY.md claimed an unregistered --allow-project-mcp flag and project-overridable model/provider/permissions; 05-configuration.md inverted user/project precedence and listed dead env vars. Both now match LoadSettings/projectSafeSettings and verified Getenv sites. .env.example lists only consumed vars. y0.go header corrected to default-on marketplace.
TokenStore.Load/Save no-op stubs (+3 tests); engine NewBackgroundAgentPool{,WithContext}/FormatResults/BackgroundAgentPool re-exports (zero callers); ZAI/Xiaomi region forwarders collapsed to Needs/SetGatewayRegion/GatewayRegionLabel (callers migrated, tests rewritten to generic funcs).
Base automatically changed from
chore/clean-unused
to
feat/rename-hawk-to-graycode
September 4, 2026 02:10
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.
Evidence-graded audit pass. Stacked on #273.\n\nDocs (were false, now match code): config precedence chain unified in SECURITY.md + 05-configuration.md (traceable to LoadSettings/projectSafeSettings); ghost --allow-project-mcp corrected to folder-trust gate; .env.example lists only consumed vars; Y0_MARKETPLACE default corrected to 1; GRAYCODE_HOME/DEPLOYMENT_ROUTING rows corrected; y0.go stale header fixed; project-MCP docs corrected.\n\nCode: dropped TokenStore.Load/Save lying stubs (+3 tests), dead engine BackgroundAgentPool re-exports, 6 ZAI/Xiaomi region forwarders collapsed to generic trio (callers migrated, tests rewritten).\n\nVerified: build, affected suites (auth/config/engine/agent/flags/trust/cmd), full golangci-lint (0 issues), boundary guards. Full 180-pkg suite + markdownlint not run (see audit report).