feat(initflow): MCP fallback, external-API token prompt, and verification gate tweak - #8
Merged
Conversation
GitHub's "Merge pull request" commits are signed by the web-flow key, which is often expired (E) or untrusted locally. Re-signing them is impossible without diverging from the remote, so filter them out of the unsigned-commits report and document the rule in the skill.
Shorten the runtime-whitelist, MCP-fallback, and external-API auth-failure sections by ~45% with the same semantics. Add an explicit "execute these steps; do not ask clarifying questions" directive to the MCP fallback so smaller models commit to the recovery path instead of pausing for confirmation.
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.
Summary
Three additions to agent instruction templates plus one verification-gate tweak:
--header/--envtemplates from its own MCP config, resolves them vialocksmith get, and runs the server directly. Templates also whitelistsession ensure,serve, andgetas the only runtime locksmith commands; all other subcommands are forbidden.verification.shand the verification skill now ignore GitHub-generated "Merge pull request" commits whoseweb-flowsignature is often expired locally and cannot be re-signed without diverging from the remote.Two new cross-template Go tests (
TestTemplates_AllHaveMCPFallback,TestTemplates_AllHaveAuthFailurePrompt) block regressions by asserting that every shipped template carries the required needles.Test plan
go test ./internal/initflow/...).scripts/verification.sh): build, lint, test-race, coverage >= 90%, GPG signatures, CHANGES.md, docs completeness