{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Backend Stack Manifest", "description": "Per-variant stack declaration and verify contract consumed by `oma verify agent backend` and agent structured lookup.", "type": "object", "required": ["language"], "properties": { "$schema": { "type": "string" }, "language": { "type": "string", "description": "Primary implementation language. Shipped variants cover python, node, and rust; the stack-set workflow (`source: detected`) may also produce go, java, kotlin, elixir, ruby, csharp, and others." }, "framework": { "type": "string", "description": "Primary web framework (e.g., litestar, nestjs, axum)." }, "orm": { "type": "string", "description": "Primary ORM/query layer (e.g., sqlalchemy, prisma, sqlx)." }, "source": { "type": "string", "enum": ["variant", "preset", "migrated", "user", "detected"], "description": "Origin marker. `variant` = shipped with repo, `preset` = a shipped variant chosen at install and copied into stack/, `migrated` = produced by legacy migration, `user` = hand-customized, `detected` = generated by the stack-set workflow from codebase detection." }, "verify": { "type": "object", "description": "Executable contract run by `oma verify agent backend` (cli/commands/verify/stack-checks.ts).", "properties": { "detect": { "type": "string", "description": "Manifest file that identifies this stack (e.g., package.json). Informational: no verify check reads it." }, "syntax": { "$ref": "../../_shared/core/stack-verify.schema.json#/definitions/commandCheck" }, "tests": { "$ref": "../../_shared/core/stack-verify.schema.json#/definitions/commandCheck" }, "raw_sql": { "type": "object", "description": "Raw-SQL injection scan: an in-process line-by-line regex scan of the workspace (node_modules and .git are always skipped).", "required": ["patterns"], "properties": { "patterns": { "type": "array", "items": { "type": "string" }, "minItems": 1, "description": "Patterns joined with `|` into one JavaScript RegExp and tested against each line." }, "include_glob": { "type": "string", "description": "Glob matched against the file basename (e.g., `*.ts`)." }, "exclude_dirs": { "type": "array", "items": { "type": "string" }, "description": "Terms that exclude a hit when they appear anywhere in its `./path:line:text` record; usually directory names." } }, "additionalProperties": false } }, "additionalProperties": false } }, "additionalProperties": true, "definitions": { "commandCheck": { "$ref": "../../_shared/core/stack-verify.schema.json#/definitions/commandCheck" } } }