Skip to content

Releases

v7.2.2

Choose a tag to compare

@github-actions github-actions released this 02 Nov 16:39
Immutable release. Only release title and notes can be modified.
727e832

[7.2.2] — 2026-11-03

Added

  • scripts/deploy-smoke.sh scaffolds a stack, then installs, builds, lints, typechecks and tests it, builds its Docker image, checks HTTP (/health, /api/health, /) and runs verify-harness.sh. It takes an optional DEPLOY_SMOKE_CA_FILE for networks that re-sign TLS. All four stacks passed.

Changed

  • README redesign: 371 lines down to about 201, with light and dark banners and a release badge that updates itself. The detail moved to docs/HARNESS.md and docs/REPOSITORY.md.

Fixed

  • validate-manifest.sh no longer fails on a README that has no static version badge.

Security

  • Scaffolded projects no longer run on a Node or certifi that still trusts the compromised eMudhra intermediate CAs (Oct 2026). The Next.js and Vite + React engines.node floor is >=24.22.1, NestJS is ^24.22.1 || >=26.12.1, and the FastAPI scaffold installs certifi>=2026.10.19. The template Dockerfiles keep their floating tags (a pinned digest goes stale downstream) and now say so, with the --pull --no-cache rebuild needed to pick up trust-store fixes.

v7.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Nov 08:21
Immutable release. Only release title and notes can be modified.
bcc00e4

[7.2.1] — 2026-11-02

Fixed

  • A fresh Azure DevOps scaffold now ships wired: TC_CI=azure also copies a starter azure-pipelines.yml (from template-ci/azure-ts/ or template-ci/azure-py/ by stack) that installs, includes azure-pipelines/templatecentral-gates.yml, then lints, typechecks, tests and gates changed-line coverage, mirroring the GitHub quality job. Before, the gates template was seeded with no pipeline calling it. lint-skills.sh checks that both starters include the template.
  • The vite-react template package.json drops @radix-ui/react-slot, which nothing imports (current shadcn uses the radix-ui package).
  • A real scaffold of all four stacks, run by an agent that followed the skills as written, passed every project gate (install, lint, typecheck, build, tests, verify-harness.sh) but failed check-golden.sh --tree. Three causes, all fixed:
    • Edits the kit told the agent to make by hand now ship in the templates: the build-artefact Read denies in both settings.json variants, .claude/skill-usage.log in each stack .gitignore, and lefthook in the FastAPI requirements-dev.txt.
    • check-golden.sh --tree now requires, but does not compare, the files the guides tell the agent to customise (branding, project settings, docs/CONSTITUTION.md), listed in tests/golden/user-edited.txt.
    • The documentation kit and the readme CI gate skip .lefthook/, so no README lands in the git-hook folder.
  • Scaffold flow: templatecentral:scaffold settles the target, name, title, description and CI host up front; CLAUDE.md and task management run before kit Step E so the manifest hashes them; nextjs 6d runs before Steps E–H like the other stacks; __TC_PROJECT_TITLE__ takes the project title; the TS final format pass uses pnpm format; the nextjs .prettierignore skips the governance markdown; FastAPI runs lefthook install after Step 0.
  • add database guides that replace src/api/routers/auth.py keep the cookie-mode /auth/session and /auth/logout routes; the pymongo and Beanie guides name where security.py comes from; sqlalchemy-iam reuses only sqlalchemy's auth section; add/SKILL.md defines <target>.
  • migrate: the migration branch is cut before any change, a stack with no database leaf stops cleanly, and the phase-4 step after 4f-3 is 4g.
  • Docs: SECURITY supported versions (7.x), README scripts tree and test counts, the scheduled-loop wording, the Python 3.14 example heading, and CONVENTIONS enforcement claims.
  • Kit Steps E–H (manifest, base snapshot, docs, symlink, AGENTS.md tail, plugins) are their own required step in every stack guide; before, they sat inside the optional task-management step.
  • Seeded docs/CONSTITUTION.md: every placeholder is a one-line [Fill in: …] that kit Step D's check finds; the authentication, audit-log, 401-test and PR-template rules no longer demand what a fresh scaffold lacks.
  • Kit Step E keys each hook hash by the hook's file name, not by position.
  • FastAPI verification gate: formats first, starts uvicorn without reload, polls /health, then stops the server.
  • The git-hook readme-coupling warning and the documentation kit's working set both skip .lefthook/.
  • .claude/rules/vite-react.md names ApiClient as what add auth adds and the auth feature as a dev stub; rules name templatecentral:add (…) instead of skill names that do not exist.
  • scripts/build-agents-dist.sh copies .claude/rules/, plugin.json and CHANGELOG.md next to the output, so <skill-dir>/../../ reads resolve in other tools.
  • Smaller fixes: the nestjs CLAUDE.md step text, the nestjs-kysely B7 ordering note, migrate/database pointers to the copied kysely.service.ts, the Next.js cleanup note about an auth folder it does not have, the FastAPI PROJECT_DESCRIPTION note, the stale "tail is appended" line and [[post-harness]] seam text in each AGENTS.md, and the FastAPI pre-commit hooks now run in sequence.

Changed

  • Kit Step E writes .claude/harness.json with tc-copy.sh TC_PART=manifest instead of about 22 hand-copied hashes. The script hashes every seeded file present, reads templatecentral_version from plugin.json (no hardcoded version to bump), and sets adoWiki / richReadme from TC_ADO_WIKI / TC_RICH_README. The lint now fails on a version literal instead of checking one.
  • migrate phase 4 copies the nextjs AGENTS.md from the scaffold template instead of embedding a drifted copy; its summary and the phase-5 report print the plugin release instead of "v6.0". The add auth (nextjs) file list names the template manifest instead of a hand-kept tree. (Fence snapshot updated.)
  • Agent-facing prose drops all-caps emphasis (NEVER, MUST, CRITICAL, "Do NOT"). Current Claude models follow plain instructions and over-apply shouted ones, so each rule is a plain sentence with its reason; security rules stay firm. Seeded template files (CONSTITUTION, regen-harness.sh, .gitignore, the nextjs AGENTS.md) follow suit; frozen code fences are unchanged.
  • templatecentral:scaffold Step 1 asks every user choice up front, each with a default: extra project skills, CLAUDE.md, task management, removing example code, the Azure DevOps Code Wiki (adoWiki), rich READMEs (richReadme), the post-scaffold checks and the Claude Code plugins. The stack guides and kit Steps E, G and H use those answers and ask only when Step 1 left one open; kit Step E passes the documentation answers as TC_ADO_WIKI / TC_RICH_README. The documentation kit keeps its own ask for migrate and add (documentation).
  • The post-scaffold utilities have a defined scope: the test utility only runs the existing suite (no new tests, no add (test)), the review covers only the files edited by hand during the scaffold, and .claude/review-baseline.md is written by the first review after the project's first commit. The update utility notes that the scaffold does not install pip-audit, so its FastAPI audit step is skipped and CI's deps gate does the audit.

v7.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 07:45
Immutable release. Only release title and notes can be modified.
2609413

[7.2.0] — 2026-11-01

Covers the 7.1 work (add and migrate fences become real template files) and the 7.2 work (prose prune, version floors only in .claude/rules); 7.1 had no separate release. appCentral products re-sync the harness once, at this release.

Added

  • tc-copy.sh takes TC_PART=leaf with TC_LEAF=<add|migrate>/<leaf stem> and optional TC_TREE, so an add or migrate leaf copies its own template trees per its template.manifest with every refusal of the scaffold parts (symlinks, unlisted files, clashes, .. and odd characters in the leaf path). It is the copy mechanism for the 7.1 fence-to-file moves.

Changed

  • add/auth: the 36 fences that create a new file now live as real files in template trees beside each leaf (skills/add/auth/<stack>/template/, plus template-cookie/ for the nestjs and fastapi cookie mode), listed in a template.manifest and copied with TC_PART=leaf: nestjs 13, nextjs 11, fastapi 10, vite-react 2. Fences that edit or replace an existing project file stay inline. tests/golden/fences/moved.d/add-auth.tsv maps each moved fence to its file, and check-fences proves the bytes are unchanged.
  • add/database: 38 new-file fences across the 10 install leaves moved the same way into skills/add/database/<lang>/<leaf>/template/ (plus the empty package __init__.py files the sqlalchemy and pymongo-async leaves create). moved.d/add-database.tsv maps them. The sqlalchemy-iam session.py stays inline: it is the canonical side of the IAM drift check.
  • The other add leaves: 20 fences that write a fixed-name utility file moved the same way (error-handling/nextjs error boundaries, logging HTTP wrappers and the Vite logging module, the StrykerJS config, the pagination helpers, and the redaction hooks). Fences that show a renamed example (my_thing, projects, github) or edit an existing file stay inline. moved.d/add-rest.tsv maps them.
  • migrate/database: the 4 new files of the Drizzle-to-Kysely flows (nestjs kysely.service.ts and migrate.ts, nextjs kysely-client.ts and migrate.ts) moved into skills/migrate/database/<stack>/template/; the IAM-block drift check still pairs them with their add canonical. The nextjs-backend-extraction fences are per-resource templates to adapt and stay inline.
  • Prose prune: skill markdown is about 15% shorter with every instruction, gate, warning and fence kept. Per area (count-load skill tokens): add 161,962 → about 137,700, migrate 48,568 → about 41,300, standards 41,171 → about 35,000; all 80 entries 251,701 → 214,145 (−14.9%). The scaffold load per stack drops from about 24,000–25,500 to about 19,900–20,600 tokens (−17% to −19%). Single-line Prerequisites sections that only pointed at Step 0 are gone, and the code-standards Comments blocks point at comments.md instead of repeating it.
  • Version-floor rationale lives only in .claude/rules/<stack>.md; skill prose points there, and install lines keep their floors. mutmut's floor joins the fastapi rules. A new lint check fails on a ≥X.Y floor written in skill prose outside fences and inline code.

v7.0.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 16:14
Immutable release. Only release title and notes can be modified.
d811b33

[7.0.0] — 2026-10-30

Changed

  • The copy script is a real file, skills/scaffold/shared/tc-copy.sh, instead of a bash <<'TC_GUARD' heredoc in harness-kit.md Step 0 (and TC_TAIL in Step G). The agent runs it with TC_STACK=<stack> TC_PART=<part> [TC_CI=<host>] bash "<skill-dir>/shared/tc-copy.sh" "<target>" and never reads its body. The inputs carry a TC_ prefix so a caller's CI=true cannot reach it. It keeps every refusal, the .tmpl suffix stripping, the manifest modes and the STOP: line, follows a symlink to itself, refuses a non-bash shell, and refuses / and the home directory as a target. The seeded output is byte for byte what it was. TC_PART=tail appends the AGENTS.md tail, which migrate also runs from <skill-dir>/../scaffold/shared/tc-copy.sh. Scaffold load against v6.1.2 (count-load.sh --base v6.1.2): nextjs −55.5%, vite-react −54.4%, fastapi −52.9%, nestjs −52.3% (nestjs was −49.5% with the heredoc). check_copy_script_single requires exactly one copy script, bans every shell heredoc in the skills markdown and any other file carrying the copy loop; test-template-copy.sh and the CI shell-lint job run and shellcheck the real script.

Added

  • The skills lint finds template trees by directory name (template or template-*, wherever they sit under skills/), so a tree under skills/add/ or skills/migrate/ needs no lint edit: its template.manifest, symlink, empty-directory, SKILL.md.tmpl and content-scan checks apply the same as for scaffold trees. The duplicated IAM block check resolves a side that moved into a template file through its row in tests/golden/fences/moved.d/ (the index picks the fence, so moving one of several sibling fences does not shift the others), and the authz seed check also reads the leaf's template tree. A symlinked tree root fails, and so does a template.manifest with no tree beside it, even an empty or comment-only one. skills/CONVENTIONS.md §1 defines the layout.
  • Eval coverage for skills/add, skills/migrate and skills/standards. scripts/count-load.sh --entry SKILL:NAME[@STACK] reports the load of one invocation (SKILL.md, router, leaf and what the leaf cats) and --summary SKILL|all lists every leaf with its tokens, both with --base REF for a delta; the scaffold report is unchanged. scripts/check-fences.sh checks a checked-in sha256 snapshot (tests/golden/fences/) of every copy-verbatim fence in those skills, keyed by file, heading and index, and its --from-templates mode and the per-slice moved.d/*.tsv mappings (with an indent=N column for list-indented fences) prove byte identity once a fence moves (check-fences-frozen.sh fails a pull request that edits the snapshot unless it carries the fence-snapshot-change label) into a template*/ file. check-fences.test.sh breaks it on purpose; validate-skills.yml runs both.
  • The Vite + React scaffold files are real files, copied instead of read and re-typed. skills/scaffold/vite-react/template/ holds every config and source file the scaffold writes verbatim (including the vite-verify skill, stored as SKILL.md.tmpl), skills/scaffold/vite-react/template-agents/ holds AGENTS.md, skills/scaffold/vite-react/template-tail/ holds the task-management text, and skills/scaffold/vite-react/template.manifest lists each file with its mode, placeholders and seams. The copy is the same kit Step 0 script as for Next.js, run with STACK=vite-react and PART=stack, PART=base and PART=agents. Only package.json (__TC_PROJECT_NAME__) and AGENTS.md (__TC_PROJECT_TITLE__) carry placeholders. The seeded output is byte-identical to the 6.1.2 goldens, and docker-entrypoint.sh is now mode 755 in the template (it was 644 in the fence output; the Dockerfile runs chmod +x on it anyway). The scaffold steps moved: the package name edit is in Step 1, vite-verify is copied in Step 1 (7c is a note), PART=agents runs at Step 7, and Step 9 appends template-tail/task-management.md.
  • scripts/test-template-copy.sh covers the Vite + React trees: vite_react_manifest_matches_tree, placeholders_only_in_small_files, no_leftover_placeholders, copy_keeps_dotfiles, the refusals, and validate_configs on the Vite template files. lint-skills.test.sh fails each re-pointed check for Vite + React on an empty match and on a deleted anchor.
  • Template skill files ship as SKILL.md.tmpl (next-verify, next-migrate, skill-audit), so a skill loader that scans the plugin recursively for SKILL.md registers none of them. The manifests list the .tmpl source, the copy script and check-golden.sh drop the suffix, the project files and goldens are unchanged, and check_no_template_skill_md fails when a file named SKILL.md sits in a template tree.
  • The Next.js scaffold files are real files, copied instead of read and re-typed. skills/scaffold/nextjs/template/ holds every config and source file the scaffold writes verbatim, skills/scaffold/nextjs/template-agents/ holds AGENTS.md, and skills/scaffold/nextjs/template.manifest lists each file with its mode, its __TC_<NAME>__ placeholders and its [[post-harness]] seams. AGENTS.md sits in its own tree because the scaffold copies it after the verification gate: prettier would reformat it if it existed at pnpm format. Only package.json (__TC_PROJECT_NAME__) and AGENTS.md (__TC_PROJECT_TITLE__) carry placeholders; tests/golden/placeholders.env holds the values check-golden.sh --from-templates substitutes. docker-entrypoint.sh is mode 755 in the tree; the 6.x scaffold wrote it as 644 and the Dockerfile dev stage still runs chmod +x on it.
  • Every other copy-verbatim file the Next.js scaffold loads is a real file too, and the copy is one script. harness-kit.md Step 0 is the only copy script: Step B3 runs it with PART=ci, and CI=none removes the CI gate script (refusing on a symlink, a non-regular file, a file that differs from the template, or a failed rm). New parts: PART=settings (Step A) copies shared/template-settings-ts or template-settings-py (.claude/settings.json), and PART=late (Step C) copies shared/template-late (FUTURE.md, docs/CONSTITUTION.md, and the /skill-audit skill, which moved from Step B5 to Step C: it is created before Step E hashes it and prettier ignores .claude/). Both refuse until AGENTS.md exists, which keeps them behind the stack's verification gate and format pass in all four stacks. next-migrate and next-verify are in nextjs/template/.claude/skills/. The AGENTS.md tail (shared/template-tail/AGENTS-tail.md) and the task-management text (nextjs/template-tail/) are listed in the manifests but never copied as files; a fixed command appends them (the tail's typecheck command is fixed per stack in the script, and the append writes nothing when the read fails). A lint check keeps template-tail out of every SEL.
  • The copy guard takes PART=stack and PART=agents. Both read <skill-dir>/<STACK>/template.manifest and keep every refusal of the kit copy. The Next.js docs hold no copy of the script; check_copy_script_single pins that Step 0 holds the only copy script (any spelling of a second shell fence fails, apart from the one TC_TAIL AGENTS.md tail command in harness-kit-finalize.md), and a test pins that the PART=ci run is that script.
  • scripts/test-template-copy.sh covers the stack copy: nextjs_manifest_matches_tree, placeholders_only_in_small_files, no_leftover_placeholders, copy_keeps_dotfiles for the stack, and the refusals (symlink parent, existing file, unwritable and unsearchable directories, empty and missing manifest, unknown STACK, hostile target and skill-dir names).
  • The NestJS scaffold files are real files too. skills/scaffold/nestjs/template/ holds every config and source file the scaffold writes verbatim (including the nest-verify project skill as SKILL.md.tmpl), template-agents/ holds AGENTS.md, and nestjs/template.manifest lists each file with its mode, placeholders (__TC_PROJECT_NAME__ in package.json, __TC_PROJECT_TITLE__ in AGENTS.md) and seams. The scaffold copies them with kit Step 0 (PART=stack, then PART=agents), and check-golden.sh passes in both modes: the seeded project is unchanged. nestjs/config-files.md is gone; its notes live in nestjs/source-files.md, and the NestJS scaffold loads 49.5% fewer tokens than v6.1.2 (count-load.sh --base v6.1.2, with documentation-kit; 25360 tokens against 50217; the notes keep every constraint the old config and source files carried).
  • The scaffold harness files are real files, copied instead of read and re-typed. skills/scaffold/shared/template/ holds the two shared hooks (session-context.sh, skill-usage-log.sh), ci-gates.sh, verify-harness.sh, regen-harness.sh, the comment-hygiene patterns, .lefthook/commit-msg.sh and .gitleaks.toml; template-ts/ and template-py/ hold the per-stack hooks, user-prompt-guard and lefthook.yml; template-ci/ holds the GitHub (TS, FastAPI) and Azure CI files; template.manifest lists every file with its mode. harness-kit.md Step 0 copies them under the guard described in the "copy guard" bullet below. Every file is identical to its entry in tests/golden/. The comment-hygiene pattern list moved from skills/scaffold/shared/comment-hygiene-patterns.txt to skills/scaffold/shared/template/.claude/comment-hygiene-patterns.txt.
  • A lint-negative-tests CI job runs lint-skills.test.sh. The shell-lint job runs bash -n, shellcheck --severity=warning, py_compile and node --check over the template scripts, and the yaml lint check fails instead of skipping when CI=true and PyYAML is missing.
  • No gitleaks allowlist is added for the template trees: gitleaks reports no leaks without one, and the only AKIA strings are regexes in user-prompt-guard.
  • scripts/test-template-copy.sh runs the copy instructions from the kit mar...
Read more

v6.2.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 08:39
Immutable release. Only release title and notes can be modified.
0c436ab

[6.2.0] — 2026-10-27

Added

  • Scaffolded apps can be framed by their appCentral portal, and only by it. When the platform
    injects APPCENTRAL_PORTAL_ORIGIN (e.g. https://appcentral-uat.cpfnet.gov.sg) and it matches
    ^https://[a-z0-9-]+(\.[a-z0-9-]+)+$, the app sends Content-Security-Policy: frame-ancestors <origin> with its other CSP directives and no X-Frame-Options. Unset or invalid keeps
    X-Frame-Options: DENY + frame-ancestors 'none'. Exactly one origin, never *; dev behaviour
    is unchanged. A unit test per backend/Next.js stack covers the origin check.
    • Next.js: headers() is build-time, so the CSP and X-Frame-Options move to the runtime proxy.
      The scaffold seeds src/lib/security/frame-protection.ts (applyFrameProtection, the only place
      the CSP is defined) and a minimal src/proxy.ts; templatecentral:add (auth) keeps the call by
      wrapping its routing in route(). next.config.ts no longer sends a CSP or X-Frame-Options.
      Responses on /api/external/* (the full-stack-pairing backend rewrite) are left untouched, so
      they keep the backend's stricter headers. Build output, optimised images and favicon.ico get no
      CSP (not documents).
    • Vite + React: docker/15-frame-protection.envsh (sourced by the nginx entrypoint before
      envsubst) always exports TC_FRAME_ANCESTORS / TC_X_FRAME_OPTIONS, so nginx never sees an
      undefined variable; nginx.conf.template reads them.
    • FastAPI: CommonSettings.APPCENTRAL_PORTAL_ORIGIN, validated by frame_ancestors() in
      core/security_headers.py (re.fullmatch).
    • NestJS: appConfig.APPCENTRAL_PORTAL_ORIGIN, validated by portalFrameAncestor() in
      security.setup.ts; frameguard is off only when a valid origin is set.
  • templatecentral:migrate gains a "Portal framing" recipe (migrate/portal-frame-ancestors.md)
    for projects scaffolded before this change.

Changed

  • nextjs-backend-extraction detects auth from a better-auth import in proxy.ts, not from the
    file's presence, because every scaffold now ships src/proxy.ts.
  • tc-audit, standards/code-standards/nestjs.md, standards/full-stack-pairing and
    .claude/rules/nextjs.md describe the new default-deny / portal-origin rule.

v6.1.2

Choose a tag to compare

@github-actions github-actions released this 27 Oct 07:43
Immutable release. Only release title and notes can be modified.
7c328a9

[6.1.2] — 2026-10-27

Fixed

  • The repo's scripts/pre-guard.sh no longer asks before writing protected-name files (for example
    a Dockerfile) whose target resolves, with symlinks and .. followed, outside the repo root and
    under /tmp or a $TMPDIR inside a system temp tree, so the scaffold-verify workflow can write
    /tmp/scaffold-e2e/Dockerfile (#26). A $TMPDIR that is or contains $HOME or the repo, or sits
    outside a system temp tree, is ignored. Secret and .env* hard blocks still apply in those
    directories; paths that cannot be resolved, anything inside the repo and ~/.claude/** keep
    asking. Case is folded only on case-insensitive filesystems.
  • /tmp and $TMPDIR are scratch bases only when neither is, or contains, $HOME or the repo
    root; an unset or unresolvable $HOME disables the exemption.
  • scripts/pre-guard.sh asks for absolute ~/.claude/{rules,skills,commands}/** and
    ~/.claude/keybindings.json (session memory under ~/.claude/projects stays unprompted), and
    matches the protected-path patterns on the resolved absolute path of a target outside the repo, so a
    symlink cannot reach ~/.claude/settings.json. The secret check uses the repo-relative resolved
    path for in-repo targets, so a repo under a directory named secrets is not blocked wholesale.
  • scripts/pre-guard.sh follows a symlink target through readlink (dangling links included) and
    matches both the secret hard blocks and the protected-path patterns on where the write really
    lands; a symlink it cannot resolve asks instead of being judged by its own name.

v6.1.1

Choose a tag to compare

@github-actions github-actions released this 27 Oct 07:09
Immutable release. Only release title and notes can be modified.
59dc4b9

[6.1.1] — 2026-10-27

Fixed

  • The seeded deps gate now rejects pnpm audit suppressions written in YAML flow style
    (audit: { ignore: [...] }), with a quoted key ("audit":, 'audit':) or inside a flow
    mapping, and treats any ignore under an audit key as a suppression. Its final failure
    message now says only audited advisories can be allowlisted and that unaudited packages need
    the missing audit tool installed (or the package made auditable or removed).
  • The deps gate parses package.json instead of matching text, so pnpm.audit, pnpm.auditConfig
    and any ignoreGhsas / ignoreCves key are rejected however the file is laid out; invalid JSON
    fails the gate, a leading BOM is ignored, and a package.json5 or package.yaml fails closed as an
    unsupported pnpm manifest format. Only the root manifest is checked (workspace packages are not).
    Known limitation: the YAML complex-key form (? audit) in pnpm-workspace.yaml is not detected.
  • NestJS RolesGuard denies a user whose roles list holds a non-string entry; a unit test covers it.
  • Next.js hasRole documents that callers check for a null session first, because the false branch
    also covers a missing session. The seeded AGENTS.md notes and .claude/rules/nextjs.md list
    src/lib/authz.ts.
  • The auth skills state the ownership-check rule once (in Rules) instead of twice.

Changed

  • The ecosystem-refresh publish job also checks the research file's content (workflow step: UTF-8 and the
    last-scanned frontmatter; scripts/check-research-content.py, tests in
    scripts/check-research-content.test.sh run in CI: everything below). The cache is plain prose and
    bullet lists, so the guard bans whole constructs: any < followed by a letter, /, ! or ?;
    ]( (links and images), ]: (reference definitions, however nested or split), ![; fence lines
    (three backticks or ~~~); lines indented four or more spaces or by a tab; and lines over 1,500
    characters. It also rejects characters that do not render as visible text: categories Cc (so any
    carriage return, CRLF included), Cf, Co, Zl, Zp; every space separator except U+0020; U+FFFC;
    noncharacters; the whole U+E0000–U+E0FFF block (tag characters, variation selectors supplement and the
    unassigned rest); the unassigned invisible U+2065 and U+FFF0–U+FFF8; variation selectors (U+FE0E and U+FE0F only after a symbol or keycap
    base); Hangul fillers, U+034F, U+17B4/17B5, Mongolian free variation selectors, U+2800 and
    interlinear annotation characters; and runs of three or more combining marks. Other unassigned
    code points are allowed. Known over-blocking: ZWJ emoji, ]: in prose or type hints, 4-space nested
    lists and three or more combining marks fail. The guard does not judge plain-text instructions; human PR review does. A guard crash
    fails the step instead of reading as clean. Research placeholders are written {name}, not
    <name>. The workflow stays disabled; the maintainer refreshes manually.
  • tc-audit floors refreshed (Starlette current stable 1.10.0, floor of record stays in
    .claude/rules/fastapi.md; @nestjs/platform-fastify checks follow the Nest 12 floor, current
    stable 12.2.0), the 200-line reference-file check exempts the per-stack source-files.md
    files (FUTURE.md roadmap item 1), and two checklist items cover the deps gate and the authz seeds.
  • scripts/lint-skills.sh gains check_security_seeds_present: the GitHub and Azure deps pipeline
    steps and the deny-by-default authz definitions must stay in the shipped skill files.
  • FUTURE.md marks the NestJS strict item done and Automated Ecosystem Refresh as shipped and
    disabled.

v6.1.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 06:32
Immutable release. Only release title and notes can be modified.
7e5c4cd

[6.1.0] — 2026-10-26

Added

  • add (auth) seeds deny-by-default authorization helpers next to authentication. FastAPI gets
    src/api/dependencies/authz.py (require_roles, get_current_roles, ensure_owner); NestJS gets
    @Roles, RolesGuard and assertOwner, with AuthUser.roles; Next.js gets src/lib/authz.ts
    (hasRole, isOwner) and a server-only user.role field (input: false, default user). FastAPI
    and NestJS never read roles from the token and start every user with none, so role-gated routes deny
    until the project loads roles from its database. Ownership failures return 404, so ids of other users'
    records cannot be probed. Each stack ships unit tests; the Vite rules and the review checklist gain
    matching lines. FastAPI auth steps 5-10 and NestJS steps 6-12 are renumbered by one; the Next.js SSO
    step is now Step 15.
  • Seeded CI gains a deps gate in ci-gates.sh, run by the GitHub quality jobs (TS and FastAPI) and
    the Azure Pipelines template. It audits pnpm-lock.yaml (high and critical advisories), uv.lock or
    requirements.txt (pip-audit, pinned) and fails closed on a missing tool, a network failure or
    unparseable output. There is no label bypass: .claude/dep-audit-allow.txt holds
    <id> <YYYY-MM-DD> <reason> entries that expire, and protect-files.sh asks before editing it.
  • Re-sync adds the deps gate as a blocking check with no label bypass. A project with no
    pnpm-lock.yaml, uv.lock or requirements*.txt fails with "no lockfile found". Azure projects that
    took the "seed neither" path need the deps step added by hand, or by migrate's new health check.
  • The deps gate audits every ecosystem present (pnpm-lock.yaml, uv.lock and each
    requirements*.txt) and fails when an audit covers no packages. Unaudited Python packages fail and
    cannot be allowlisted. Blocked lines read <package>: <ids> (<severity>).
  • Native pnpm suppressions (auditConfig, ignoreGhsas, ignoreCves, audit.ignore) are rejected in
    favour of .claude/dep-audit-allow.txt, and an allowlist expiry more than 180 days out is malformed.
    The NestJS scaffold no longer seeds an inert audit.ignore.
  • FastAPI CI installs uv when uv.lock exists, so the deps gate can export it.

Security

  • ecosystem-refresh.yml no longer gives the research agent write access. The agent reads web pages, so
    a prompt injection there could previously reach Write, git and gh under a contents: write
    token. It now runs in a research job with contents: read, no shell, and file writes limited to
    .claude/audit-ecosystem-research.md and pr-body.md. A separate publish job, with no LLM,
    validates the uploaded artifact (exactly two regular files, size limits, one changed path) and opens
    the PR.
  • ecosystem-refresh.yml limits the research agent's Read, Glob and Grep to the checkout (./**).
    The publish job deletes its branch and fails with a clear message when the PR cannot be opened, and the
    run attempt joins the branch name. It needs the repository's Actions setting "Allow GitHub Actions to
    create and approve pull requests"; CI does not run on a PR opened by GITHUB_TOKEN, so close and
    reopen it to trigger checks.

v6.0.5

Choose a tag to compare

@github-actions github-actions released this 26 Oct 01:14
Immutable release. Only release title and notes can be modified.
2c5a3b4

[6.0.5] — 2026-10-13

Fixed

  • block-no-verify.sh no longer blocks cd <repo> && git commit from a checkout on a protected branch.
    6.0.4 kept the command's starting directory as a candidate after any cd, in case the cd failed, so
    committing into a feature-branch repo from a session rooted on main/develop was blocked. In a
    strict && chain git only runs after every cd before it succeeded, so the hook now judges exactly
    the directories its git words run in. A strict chain has no ;, ||, |, lone &, (, ),
    backtick or newline once N>&M redirections are set aside, and every directory change in it is a
    plain literal cd/pushd at the start of a segment. Anything else (a cd inside a subshell,
    command cd, env -C, an assignment before git, a second line) keeps the 6.0.4 candidate set.
    Ported to the OpenCode adapter. test-harness-kit.sh 615 passed; adapter hook matrix 157 passed.

v6.0.4

Choose a tag to compare

@github-actions github-actions released this 12 Oct 10:21
Immutable release. Only release title and notes can be modified.
d296b0c

[6.0.4] — 2026-10-12

Fixed

  • block-no-verify.sh judges a bare git commit / git push by the branch it can actually land on.
    Claude Code may start hooks from the session's original root, so in a git worktree $PWD named the
    main checkout's branch: every worktree commit was blocked when that checkout sat on main, and the
    check never looked at the worktree's own branch. The hook now reads the hook input's cwd.
  • Candidates are that cwd plus each literal cd/pushd/env -C/sudo -D target found anywhere
    before git (if cd x, \cd x, …), resolved against every candidate so far. Any protected
    candidate blocks, so a cd the shell undoes (subshell, &, |) or that fails cannot hide the real
    directory. Anything the hook cannot resolve exactly also judges the project root, the directory it
    judged before: a variable, $(…), a backtick, ~, cd -, a bare cd, popd, eval, CDPATH,
    GIT_DIR/GIT_WORK_TREE, --git-dir/--work-tree, or an unresolvable git -C. A construct the
    parser misses therefore never leaves the check weaker than before. Checked against the previous hook
    over 248 command × directory combinations: no command it blocked is now allowed.
  • Directory changes are collected in a first pass, so a cd that runs after git in a loop or a
    function still counts. Several git -C options chain the way git applies them. source, . in
    command position, and a function defined in the command also judge the project root. Residual gap:
    a shell function or alias the agent's shell already has (from its snapshot) can change directory
    where no check can see it; only Setup A (project root protected, cwd a feature worktree) is exposed.
  • Conservative by design: in a worktree session, cd "$W" && git commit still blocks when the project
    root is on a protected branch. A bare git commit, or git -C <literal path>, works. From a
    protected cwd, cd <feature dir> && git commit still blocks. Both kit variants (TS, FastAPI).
  • OpenCode adapter: the bash-command guard ports the same model, taking the cwd from the tool's
    workdir/cwd arg. It read one branch from the project root before, so it had the same worktree
    mis-resolution and also ignored git -C.