Repository navigation
Conversation
Spec and ADR drafts for NIW2-311, from the 2026-10-12 security, quality and scalability audit (umbrella NIW2-302). Status: proposed, not implemented. Refs: NIW2-311 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
csdev19
deleted the
feature/niw2-311-close-ssrf-code-injection-and-exponential-blowups-in
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-311. Spec:
design/generate-hardening.md. ADR: 0017 (references never leave the document, and there is no switch).Decisions
$refin any schema position is refused at import and at export.declarationName()produces every generated type name: valid, unique, non-shadowing, with a length cap.compileSchemamemoizes per$refand has a budget of 100k nodes.parseTypesmemoizes and has a budget of 50k visits.parseTypescompiler host is in-memory only.packages/schema.All five findings were reproduced again on
main. The spec amends three rows ofdesign/json-schema-adapters.md.Open questions
T2faor_2fa?additionalPropertiesbesideproperties: compile it silently (proposed), or warn withloss.index-signature?unknown?MAX_SHAPE_DEPTHdouble count into this work, or defer it?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