manifest.json
Stack globs, profiles, vendor toggles and the standards version.
The one config file the renderer reads to decide which rule files go into which artifact, under which globs, for which assistants. It ships inside the published package; a product repository never carries a copy. redline init reads it to detect a profile and to know which vendors it can render for.
What it holds
version— the standards version every rendered file and every sync pull request names.core— the source file every profile includes.stacks— one entry per stack: title, source markdown,globs(plain, never negated or brace-expanded — Copilot'sapplyTocan't express either), and an optionalextendslist.profiles— named lists of stack ids. A repository installs exactly one; see Profiles & stacks.profileAliases— older profile names, still accepted, mapped to current ones.vendors— the assistants the renderer can write for, and whether each is on by default.deterministic— the rule ids a checker decides without a model; see Deterministic rules.
What a mistake here looks like
Not a bad review comment: a stack that never loads, or one that loads on the wrong files. scripts/validate.mjs fails CI on a stack whose source is missing, a profile naming an unknown stack, an alias shadowing a real profile, and globs Copilot's applyTo cannot express — negated (!), brace expansions, or a glob containing the separator comma.
Changing it
It is part of standards/, so the same loop applies as to the rule files, including the version bump, which lives in this very file.
- Edit the markdownstandards/ is the only place a human edits a rule. AGENTS.md, CLAUDE.md, .github/copilot-instructions.md and .github/instructions/ are rendered from it, and the next render overwrites any hand edit there.
- node scripts/assign-rule-ids.mjsAssigns a permanent <stack>/<slug> id to any new rule bullet and rewrites the file in place. Do not invent an id by hand. CI runs the same script with --check and fails if a rule is missing one.
- node scripts/render-self.mjsRe-renders this repository's own copies of those files. CI runs it with --check, so a stale copy fails the build.
- Bump standards/manifest.json → versionIn the same pull request as the rule change. Sync pull requests quote the version, so every repository can tell which standards it is on.
- Add a CHANGELOG.md entryAlso in the same pull request. Say what changed and why, and record the seed score: a standards change with no measurement is an opinion.
- node scripts/validate.mjsThe self-check CI runs: the manifest is consistent, rule ids are well formed, the output contract is intact, and every glob is one Copilot can read.
Related
- The output contract — what each severity obliges you to do.
- Profiles & stacks — how a repository ends up with a set of rules.
- All standards
The full file
{
"$comment": "Single source of truth for Redline. scripts/render.mjs turns this into vendor-specific artifacts. Never hand-edit generated output.",
"version": "0.2.2",
"core": {
"title": "Redline Core Engineering Standards",
"source": "standards/core.md"
},
"stacks": {
"javascript": {
"title": "JavaScript",
"source": "standards/stacks/javascript.md",
"globs": [
"**/*.js",
"**/*.jsx",
"**/*.mjs",
"**/*.cjs",
"**/*.vue",
"**/*.svelte"
]
},
"typescript": {
"title": "TypeScript",
"source": "standards/stacks/typescript.md",
"globs": [
"**/*.ts",
"**/*.tsx",
"**/*.mts",
"**/*.cts"
]
},
"react": {
"title": "React (web)",
"source": "standards/stacks/react.md",
"globs": [
"**/*.tsx",
"**/*.jsx",
"src/**/*.ts",
"app/**/*.ts",
"packages/**/src/**/*.ts",
"apps/**/src/**/*.ts"
]
},
"angular": {
"title": "Angular",
"source": "standards/stacks/angular.md",
"globs": [
"**/*.component.ts",
"**/*.component.html",
"**/*.service.ts",
"**/*.directive.ts",
"**/*.pipe.ts",
"**/*.guard.ts",
"**/*.interceptor.ts",
"src/app/**",
"apps/**/src/app/**",
"packages/**/src/app/**"
]
},
"vue": {
"title": "Vue",
"source": "standards/stacks/vue.md",
"globs": [
"**/*.vue",
"composables/**",
"pages/**",
"server/**/*.ts",
"src/**/*.ts",
"app/**/*.ts",
"apps/**/src/**/*.ts",
"packages/**/src/**/*.ts"
]
},
"svelte": {
"title": "Svelte / SvelteKit",
"source": "standards/stacks/svelte.md",
"globs": [
"**/*.svelte",
"**/*.svelte.ts",
"**/*.svelte.js",
"src/routes/**",
"src/lib/**",
"apps/**/src/routes/**",
"apps/**/src/lib/**",
"packages/**/src/lib/**"
]
},
"dom": {
"title": "Browser / DOM",
"source": "standards/stacks/dom.md",
"globs": [
"**/*.js",
"**/*.mjs",
"**/*.ts",
"**/*.html"
]
},
"react-native": {
"title": "React Native",
"source": "standards/stacks/react-native.md",
"extends": [
"react"
],
"globs": [
"**/*.tsx",
"**/*.native.ts",
"app/**/*.ts",
"src/screens/**",
"src/components/**",
"packages/**/src/**/*.tsx",
"apps/**/src/**/*.tsx"
]
},
"nextjs": {
"title": "Next.js (App Router)",
"source": "standards/stacks/nextjs.md",
"extends": [
"react"
],
"globs": [
"app/**",
"src/app/**",
"pages/**",
"src/pages/**",
"middleware.ts",
"src/middleware.ts",
"next.config.ts",
"next.config.js",
"next.config.mjs",
"apps/**/app/**",
"apps/**/src/app/**"
]
},
"nodejs": {
"title": "Node.js (NestJS)",
"source": "standards/stacks/nodejs.md",
"globs": [
"src/**/*.ts",
"apps/**/src/**/*.ts",
"libs/**/src/**/*.ts",
"packages/**/src/**/*.ts"
]
},
"express": {
"title": "Express",
"source": "standards/stacks/express.md",
"globs": [
"routes/**",
"src/routes/**",
"middleware/**",
"src/middleware/**",
"controllers/**",
"src/controllers/**",
"app.js",
"app.ts",
"server.js",
"server.ts",
"src/app.ts",
"src/server.ts"
]
},
"microservices": {
"title": "Microservice cross-cutting",
"source": "standards/stacks/microservices.md",
"globs": [
"**/*.java",
"**/*.go",
"**/*.py",
"**/*.cs",
"src/**/*.ts",
"cmd/**",
"internal/**",
"services/**"
]
},
"java": {
"title": "Java (Spring Boot)",
"source": "standards/stacks/java.md",
"globs": [
"**/*.java"
]
},
"go": {
"title": "Go",
"source": "standards/stacks/go.md",
"globs": [
"**/*.go"
]
},
"python": {
"title": "Python",
"source": "standards/stacks/python.md",
"globs": [
"**/*.py"
]
},
"csharp": {
"title": "C# (.NET)",
"source": "standards/stacks/csharp.md",
"globs": [
"**/*.cs"
]
},
"kotlin": {
"title": "Kotlin",
"source": "standards/stacks/kotlin.md",
"globs": [
"**/*.kt",
"**/*.kts"
]
},
"swift": {
"title": "Swift (iOS)",
"source": "standards/stacks/swift.md",
"globs": [
"**/*.swift"
]
},
"terraform": {
"title": "Terraform / HCL",
"source": "standards/stacks/terraform.md",
"globs": [
"**/*.tf",
"**/*.tfvars",
"**/*.hcl"
]
},
"effect": {
"title": "Effect",
"source": "standards/stacks/effect.md",
"extends": [
"typescript"
],
"globs": [
"**/*.ts",
"**/*.tsx",
"**/*.mts",
"**/*.cts"
]
}
},
"$profileComment": "A repo installs exactly one profile. Profiles are the disambiguation mechanism: glob negation is not portable across vendors, so we never install two rule sets that would contradict each other in the same repo. Names follow <kind>-<technology> in full words — web-react, service-go, infra-terraform. With no framework, the languages and platform the rules cover: javascript-typescript, javascript-typescript-browser. No abbreviations or slang: a reader picks a profile from this name and nothing else.",
"profiles": {
"javascript-typescript": [
"javascript",
"typescript"
],
"web-react": [
"javascript",
"typescript",
"react"
],
"web-nextjs": [
"javascript",
"typescript",
"react",
"nextjs"
],
"web-angular": [
"javascript",
"typescript",
"angular"
],
"web-vue": [
"javascript",
"typescript",
"vue"
],
"web-svelte": [
"javascript",
"typescript",
"svelte"
],
"javascript-typescript-browser": [
"javascript",
"typescript",
"dom"
],
"mobile-react-native": [
"javascript",
"typescript",
"react",
"react-native"
],
"mobile-android": [
"kotlin"
],
"mobile-ios": [
"swift"
],
"service-java": [
"microservices",
"java"
],
"service-go": [
"microservices",
"go"
],
"service-node": [
"javascript",
"typescript",
"microservices",
"nodejs"
],
"service-express": [
"javascript",
"typescript",
"microservices",
"express"
],
"service-python": [
"microservices",
"python"
],
"service-dotnet": [
"microservices",
"csharp"
],
"infra-terraform": [
"terraform"
],
"fullstack-react-node": [
"javascript",
"typescript",
"react",
"microservices",
"nodejs"
],
"typescript-effect": [
"effect"
]
},
"$aliasComment": "Other names for a profile: short forms (web, go) and the names profiles had before they were renamed (tooling, mobile-rn, infra). Accepted anywhere a profile is named — --profile, .redline.json, sync-targets.txt — and recorded as the profile they point to, so a repository moves to the new name on its next init or sync.",
"profileAliases": {
"web": "web-react",
"mobile": "mobile-react-native",
"java": "service-java",
"go": "service-go",
"node": "service-node",
"python": "service-python",
"dotnet": "service-dotnet",
"tooling": "javascript-typescript",
"web-vanilla": "javascript-typescript-browser",
"web-next": "web-nextjs",
"mobile-rn": "mobile-react-native",
"infra": "infra-terraform",
"fullstack-node": "fullstack-react-node",
"lib-effect": "typescript-effect"
},
"vendors": {
"copilot": {
"title": "GitHub Copilot code review",
"enabled": true
},
"agents": {
"title": "AGENTS.md (OpenAI Codex, Copilot coding agent, Jules, Cursor agent, Devin)",
"enabled": true
},
"codex": {
"$comment": "Renders AGENTS.md, the same file the \"agents\" vendor writes — that is the file OpenAI Codex reads, and inventing a second Codex-specific path would render rules nothing looks for. Listed separately because an operator looking for Codex should find it by name; selecting either produces the same artifact, and selecting both writes it once.",
"title": "OpenAI Codex (AGENTS.md)",
"enabled": true
},
"claude": {
"title": "Claude Code / Claude in GitHub",
"enabled": true
},
"cursor": {
"title": "Cursor rules",
"enabled": true
}
},
"$deterministicComment": "Rules a checker decides without a model. The classification lives HERE and not in the markdown deliberately: standards/*.md is what a reviewer reads, and removing a rule from it because a checker also covers it would narrow what the model considers. Every rule is classified by construction — listed here means deterministic, absent means judgement. Ids are permanent and are never rewritten by this list. scripts/validate.mjs fails the build if an id here has no implementation in cli/policy/checks.ts, which is the failure mode where a rule is silently enforced by nobody.",
"deterministic": [
"core/untracked-todo",
"core/type-checker-suppression",
"core/unsafe-assertion",
"javascript/var-in-new-code",
"javascript/unsafe-numeric-coercion",
"typescript/module-mocking",
"typescript/unknown-return",
"typescript/unknown-type-alias",
"typescript/object-parameter",
"typescript/reflect-dynamic-access",
"python/blanket-suppression",
"python/broad-exception-assertion",
"python/module-patching",
"python/quadratic-accumulation",
"java/reference-equality",
"java/bigdecimal-value-semantics",
"java/dropped-exception-cause",
"java/print-stack-trace",
"java/ignored-pure-result",
"kotlin/todo-stub",
"kotlin/dropped-exception-cause",
"kotlin/downcast-readonly-collection",
"kotlin/print-stack-trace",
"swift/concurrency-checking-opt-out",
"swift/unowned-capture",
"swift/implicitly-unwrapped-declaration",
"swift/copying-reduce-accumulator",
"csharp/rethrow-loses-stack",
"csharp/reserved-exception-type",
"csharp/culture-implicit-parse-format",
"csharp/ef-inmemory-test-double",
"go/error-wrap-verb",
"go/missing-client-server-timeout",
"terraform/empty-list-equality",
"terraform/ignore-changes-all",
"react/set-state-in-render",
"react/javascript-url",
"react/async-effect-callback",
"react/impure-render",
"react-native/deep-import",
"react-native/cached-window-dimensions",
"vue/async-computed",
"vue/shared-mutable-default",
"angular/async-lifecycle-hook",
"angular/output-native-event-name",
"angular/banana-out-of-box",
"angular/manual-lifecycle-call",
"angular/impure-pipe",
"svelte/async-store-start",
"svelte/load-in-page-component",
"svelte/double-brace-mustache",
"dom/remove-listener-fresh-function",
"dom/on-property-clobbers-handler"
]
}