Add .fips-template.yaml manifest#9
Merged
Merged
Conversation
Declares which paths in this template are template-managed (offered as patches by `fips-agents patch`) and which belong to the user. The CLI reads this file from the comparison root after cloning, before computing drift in `fips-agents patch check`. Categories mirror the CLI's hardcoded MCP_FILE_CATEGORIES set 1-to-1 (generators, core, docs, build, claude). The never_patch list extends the CLI's MCP_NEVER_PATCH with three entries the constants miss: - LICENSE — each project carries its own - requirements.txt — users add their own dependencies - .github/** — repo settings (CODEOWNERS, workflows) are per-project Loader behavior is described in fips-agents/fips-agents-cli#45 — when a manifest is absent, malformed, or declares an unsupported schema_version, the CLI falls back to its built-in category set, so this change is non-breaking for older CLI installs. Assisted-by: Claude Code (Opus 4.7)
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.
Companion PR to fips-agents/fips-agents-cli#48 (the CLI loader). After both merge, drift in this template's files surfaces in `fips-agents patch check` without needing a CLI release — the manifest is the source of truth.
What
Adds `.fips-template.yaml` at the repo root with `schema_version: 1`. Five categories declared (`generators`, `core`, `docs`, `build`, `claude`) plus a 14-entry `never_patch` list separating template-managed from user-authored files.
What changes vs. the CLI's hardcoded fallback
Categories are 1-to-1 with the CLI's `MCP_FILE_CATEGORIES` constants (after fips-agents/fips-agents-cli#43 lands). The `never_patch` list extends the CLI's set with three entries the constants miss:
Compatibility
Older CLI installs that don't know about `.fips-template.yaml` will simply ignore the file — nothing breaks. The CLI loader (fips-agents/fips-agents-cli#48) falls back to its hardcoded categories when the manifest is absent, malformed, or uses an unknown `schema_version`. So this PR is safe to land before, after, or independently of the CLI PR stack.
Test plan