Repository navigation
Conversation
Spec and ADR drafts for NIW2-314, from the 2026-10-12 security, quality and scalability audit (umbrella NIW2-302). Status: proposed, not implemented. Refs: NIW2-314 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
csdev19
deleted the
feature/niw2-314-harden-mcp-tools-against-agent-misuse-and-unbounded-output
branch
October 12, 2026 17:13
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.
Refs NIW2-314. Spec:
design/mcp-tool-safety.md. ADR: 0022 (MCP overwrites are confirmed by the client, never by a tool argument).Decisions
.jsononly, inside the root, at most 200 kB, and it must look like a JSON Schema.mcp.confirmationsfallback..laqi/backup/before any MCP overwrite or delete.list_endpointsgets a cursor.import_openapireports every drop with a reason. It follows local$refs and accepts+jsonmedia types.tool-result.tshelper and a static@laqi/generateimport. Builds on PR fix: report the real version over MCP, and keep OpenAPI integer formats in range #78 for the version.Open questions
schemaSources.rootas., or require it to be set beforerefresh_schemaworks?update_endpointbody edits are not gated. Add an endpoint-level revision?laqi mcpflag?Project.load()cache goes to NIW2-313.Plus the conflict with NIW2-310 over elicitation: decide both together.
Status
This PR contains only the design spec and ADR drafts. It is opened as a draft so the design is not lost. The implementation will land on this same branch after the open questions are answered. Everything is "proposed, not implemented".
Part of the 2026-10-12 audit, umbrella NIW2-302. Specs were written by Fable agents against a read-only export of
mainatee34302. The ADR numbers (0014–0026) are assigned across all eight audit PRs.decisions/index.mdis not edited in these PRs, to avoid eight-way conflicts; add the index rows when each PR is promoted.🤖 Generated with Claude Code