Repository navigation
Releases
Releases · cljiahao/templatecentral
v7.2.2
Immutable
release. Only release title and notes can be modified.
[7.2.2] — 2026-11-03
Added
scripts/deploy-smoke.shscaffolds a stack, then installs, builds, lints, typechecks and tests it, builds its Docker image, checks HTTP (/health,/api/health,/) and runsverify-harness.sh. It takes an optionalDEPLOY_SMOKE_CA_FILEfor 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.mdanddocs/REPOSITORY.md.
Fixed
validate-manifest.shno 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.nodefloor is>=24.22.1, NestJS is^24.22.1 || >=26.12.1, and the FastAPI scaffold installscertifi>=2026.10.19. The template Dockerfiles keep their floating tags (a pinned digest goes stale downstream) and now say so, with the--pull --no-cacherebuild needed to pick up trust-store fixes.
v7.2.1
Immutable
release. Only release title and notes can be modified.
[7.2.1] — 2026-11-02
Fixed
- A fresh Azure DevOps scaffold now ships wired:
TC_CI=azurealso copies a starterazure-pipelines.yml(fromtemplate-ci/azure-ts/ortemplate-ci/azure-py/by stack) that installs, includesazure-pipelines/templatecentral-gates.yml, then lints, typechecks, tests and gates changed-line coverage, mirroring the GitHubqualityjob. Before, the gates template was seeded with no pipeline calling it.lint-skills.shchecks that both starters include the template. - The vite-react template
package.jsondrops@radix-ui/react-slot, which nothing imports (current shadcn uses theradix-uipackage). - 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 failedcheck-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
Readdenies in bothsettings.jsonvariants,.claude/skill-usage.login each stack.gitignore, andlefthookin the FastAPIrequirements-dev.txt. check-golden.sh --treenow requires, but does not compare, the files the guides tell the agent to customise (branding, project settings,docs/CONSTITUTION.md), listed intests/golden/user-edited.txt.- The documentation kit and the
readmeCI gate skip.lefthook/, so no README lands in the git-hook folder.
- Edits the kit told the agent to make by hand now ship in the templates: the build-artefact
- Scaffold flow:
templatecentral:scaffoldsettles the target, name, title, description and CI host up front;CLAUDE.mdand 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 usespnpm format; the nextjs.prettierignoreskips the governance markdown; FastAPI runslefthook installafter Step 0. adddatabase guides that replacesrc/api/routers/auth.pykeep the cookie-mode/auth/sessionand/auth/logoutroutes; the pymongo and Beanie guides name wheresecurity.pycomes from; sqlalchemy-iam reuses only sqlalchemy's auth section;add/SKILL.mddefines<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-couplingwarning and the documentation kit's working set both skip.lefthook/. .claude/rules/vite-react.mdnamesApiClientas whatadd authadds and the auth feature as a dev stub; rules nametemplatecentral:add (…)instead of skill names that do not exist.scripts/build-agents-dist.shcopies.claude/rules/,plugin.jsonandCHANGELOG.mdnext to the output, so<skill-dir>/../../reads resolve in other tools.- Smaller fixes: the nestjs
CLAUDE.mdstep text, thenestjs-kyselyB7 ordering note, migrate/database pointers to the copiedkysely.service.ts, the Next.js cleanup note about an auth folder it does not have, the FastAPIPROJECT_DESCRIPTIONnote, 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.jsonwithtc-copy.sh TC_PART=manifestinstead of about 22 hand-copied hashes. The script hashes every seeded file present, readstemplatecentral_versionfromplugin.json(no hardcoded version to bump), and setsadoWiki/richReadmefromTC_ADO_WIKI/TC_RICH_README. The lint now fails on a version literal instead of checking one. migratephase 4 copies the nextjsAGENTS.mdfrom the scaffold template instead of embedding a drifted copy; its summary and the phase-5 report print the plugin release instead of "v6.0". Theadd 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:scaffoldStep 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 asTC_ADO_WIKI/TC_RICH_README. The documentation kit keeps its own ask formigrateandadd (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.mdis written by the first review after the project's first commit. The update utility notes that the scaffold does not installpip-audit, so its FastAPI audit step is skipped and CI'sdepsgate does the audit.
v7.2.0
Immutable
release. Only release title and notes can be modified.
[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.shtakesTC_PART=leafwithTC_LEAF=<add|migrate>/<leaf stem>and optionalTC_TREE, so anaddormigrateleaf copies its own template trees per itstemplate.manifestwith 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/, plustemplate-cookie/for the nestjs and fastapi cookie mode), listed in atemplate.manifestand copied withTC_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.tsvmaps each moved fence to its file, andcheck-fencesproves the bytes are unchanged.add/database: 38 new-file fences across the 10 install leaves moved the same way intoskills/add/database/<lang>/<leaf>/template/(plus the empty package__init__.pyfiles the sqlalchemy and pymongo-async leaves create).moved.d/add-database.tsvmaps them. The sqlalchemy-iamsession.pystays inline: it is the canonical side of the IAM drift check.- The other
addleaves: 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.tsvmaps them. migrate/database: the 4 new files of the Drizzle-to-Kysely flows (nestjskysely.service.tsandmigrate.ts, nextjskysely-client.tsandmigrate.ts) moved intoskills/migrate/database/<stack>/template/; the IAM-block drift check still pairs them with theiraddcanonical. Thenextjs-backend-extractionfences 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-loadskill 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-linePrerequisitessections that only pointed at Step 0 are gone, and the code-standards Comments blocks point atcomments.mdinstead 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.Yfloor written in skill prose outside fences and inline code.
v7.0.0
Immutable
release. Only release title and notes can be modified.
[7.0.0] — 2026-10-30
Changed
- The copy script is a real file,
skills/scaffold/shared/tc-copy.sh, instead of abash <<'TC_GUARD'heredoc inharness-kit.mdStep 0 (andTC_TAILin Step G). The agent runs it withTC_STACK=<stack> TC_PART=<part> [TC_CI=<host>] bash "<skill-dir>/shared/tc-copy.sh" "<target>"and never reads its body. The inputs carry aTC_prefix so a caller'sCI=truecannot reach it. It keeps every refusal, the.tmplsuffix stripping, the manifest modes and theSTOP: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=tailappends 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_singlerequires exactly one copy script, bans every shell heredoc in the skills markdown and any other file carrying the copy loop;test-template-copy.shand the CIshell-lintjob run and shellcheck the real script.
Added
- The skills lint finds template trees by directory name (
templateortemplate-*, wherever they sit underskills/), so a tree underskills/add/orskills/migrate/needs no lint edit: itstemplate.manifest, symlink, empty-directory,SKILL.md.tmpland 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 intests/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 atemplate.manifestwith no tree beside it, even an empty or comment-only one.skills/CONVENTIONS.md§1 defines the layout. - Eval coverage for
skills/add,skills/migrateandskills/standards.scripts/count-load.sh --entry SKILL:NAME[@STACK]reports the load of one invocation (SKILL.md, router, leaf and what the leafcats) and--summary SKILL|alllists every leaf with its tokens, both with--base REFfor a delta; the scaffold report is unchanged.scripts/check-fences.shchecks 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-templatesmode and the per-slicemoved.d/*.tsvmappings (with anindent=Ncolumn for list-indented fences) prove byte identity once a fence moves (check-fences-frozen.shfails a pull request that edits the snapshot unless it carries thefence-snapshot-changelabel) into atemplate*/file.check-fences.test.shbreaks it on purpose;validate-skills.ymlruns 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 thevite-verifyskill, stored asSKILL.md.tmpl),skills/scaffold/vite-react/template-agents/holdsAGENTS.md,skills/scaffold/vite-react/template-tail/holds the task-management text, andskills/scaffold/vite-react/template.manifestlists each file with its mode, placeholders and seams. The copy is the same kit Step 0 script as for Next.js, run withSTACK=vite-reactandPART=stack,PART=baseandPART=agents. Onlypackage.json(__TC_PROJECT_NAME__) andAGENTS.md(__TC_PROJECT_TITLE__) carry placeholders. The seeded output is byte-identical to the 6.1.2 goldens, anddocker-entrypoint.shis now mode 755 in the template (it was 644 in the fence output; the Dockerfile runschmod +xon it anyway). The scaffold steps moved: the package name edit is in Step 1,vite-verifyis copied in Step 1 (7c is a note),PART=agentsruns at Step 7, and Step 9 appendstemplate-tail/task-management.md. scripts/test-template-copy.shcovers the Vite + React trees:vite_react_manifest_matches_tree,placeholders_only_in_small_files,no_leftover_placeholders,copy_keeps_dotfiles, the refusals, andvalidate_configson the Vite template files.lint-skills.test.shfails 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 forSKILL.mdregisters none of them. The manifests list the.tmplsource, the copy script andcheck-golden.shdrop the suffix, the project files and goldens are unchanged, andcheck_no_template_skill_mdfails when a file namedSKILL.mdsits 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/holdsAGENTS.md, andskills/scaffold/nextjs/template.manifestlists each file with its mode, its__TC_<NAME>__placeholders and its[[post-harness]]seams.AGENTS.mdsits in its own tree because the scaffold copies it after the verification gate: prettier would reformat it if it existed atpnpm format. Onlypackage.json(__TC_PROJECT_NAME__) andAGENTS.md(__TC_PROJECT_TITLE__) carry placeholders;tests/golden/placeholders.envholds the valuescheck-golden.sh --from-templatessubstitutes.docker-entrypoint.shis mode 755 in the tree; the 6.x scaffold wrote it as 644 and the Dockerfiledevstage still runschmod +xon it. - Every other copy-verbatim file the Next.js scaffold loads is a real file too, and the copy is one script.
harness-kit.mdStep 0 is the only copy script: Step B3 runs it withPART=ci, andCI=noneremoves the CI gate script (refusing on a symlink, a non-regular file, a file that differs from the template, or a failedrm). New parts:PART=settings(Step A) copiesshared/template-settings-tsortemplate-settings-py(.claude/settings.json), andPART=late(Step C) copiesshared/template-late(FUTURE.md,docs/CONSTITUTION.md, and the/skill-auditskill, which moved from Step B5 to Step C: it is created before Step E hashes it and prettier ignores.claude/). Both refuse untilAGENTS.mdexists, which keeps them behind the stack's verification gate and format pass in all four stacks.next-migrateandnext-verifyare innextjs/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 keepstemplate-tailout of everySEL. - The copy guard takes
PART=stackandPART=agents. Both read<skill-dir>/<STACK>/template.manifestand keep every refusal of the kit copy. The Next.js docs hold no copy of the script;check_copy_script_singlepins that Step 0 holds the only copy script (any spelling of a second shell fence fails, apart from the oneTC_TAILAGENTS.md tail command inharness-kit-finalize.md), and a test pins that thePART=cirun is that script. scripts/test-template-copy.shcovers the stack copy:nextjs_manifest_matches_tree,placeholders_only_in_small_files,no_leftover_placeholders,copy_keeps_dotfilesfor the stack, and the refusals (symlink parent, existing file, unwritable and unsearchable directories, empty and missing manifest, unknownSTACK, 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 thenest-verifyproject skill asSKILL.md.tmpl),template-agents/holdsAGENTS.md, andnestjs/template.manifestlists each file with its mode, placeholders (__TC_PROJECT_NAME__inpackage.json,__TC_PROJECT_TITLE__inAGENTS.md) and seams. The scaffold copies them with kit Step 0 (PART=stack, thenPART=agents), andcheck-golden.shpasses in both modes: the seeded project is unchanged.nestjs/config-files.mdis gone; its notes live innestjs/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.shand.gitleaks.toml;template-ts/andtemplate-py/hold the per-stack hooks,user-prompt-guardandlefthook.yml;template-ci/holds the GitHub (TS, FastAPI) and Azure CI files;template.manifestlists every file with its mode.harness-kit.mdStep 0 copies them under the guard described in the "copy guard" bullet below. Every file is identical to its entry intests/golden/. The comment-hygiene pattern list moved fromskills/scaffold/shared/comment-hygiene-patterns.txttoskills/scaffold/shared/template/.claude/comment-hygiene-patterns.txt. - A
lint-negative-testsCI job runslint-skills.test.sh. Theshell-lintjob runsbash -n,shellcheck --severity=warning,py_compileandnode --checkover the template scripts, and the yaml lint check fails instead of skipping whenCI=trueand PyYAML is missing. - No gitleaks allowlist is added for the template trees: gitleaks reports no leaks without one, and the only
AKIAstrings are regexes inuser-prompt-guard. scripts/test-template-copy.shruns the copy instructions from the kit mar...
v6.2.0
Immutable
release. Only release title and notes can be modified.
[6.2.0] — 2026-10-27
Added
- Scaffolded apps can be framed by their appCentral portal, and only by it. When the platform
injectsAPPCENTRAL_PORTAL_ORIGIN(e.g.https://appcentral-uat.cpfnet.gov.sg) and it matches
^https://[a-z0-9-]+(\.[a-z0-9-]+)+$, the app sendsContent-Security-Policy: frame-ancestors <origin>with its other CSP directives and noX-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 andX-Frame-Optionsmove to the runtime proxy.
The scaffold seedssrc/lib/security/frame-protection.ts(applyFrameProtection, the only place
the CSP is defined) and a minimalsrc/proxy.ts;templatecentral:add (auth)keeps the call by
wrapping its routing inroute().next.config.tsno longer sends a CSP orX-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 andfavicon.icoget no
CSP (not documents). - Vite + React:
docker/15-frame-protection.envsh(sourced by the nginx entrypoint before
envsubst) always exportsTC_FRAME_ANCESTORS/TC_X_FRAME_OPTIONS, so nginx never sees an
undefined variable;nginx.conf.templatereads them. - FastAPI:
CommonSettings.APPCENTRAL_PORTAL_ORIGIN, validated byframe_ancestors()in
core/security_headers.py(re.fullmatch). - NestJS:
appConfig.APPCENTRAL_PORTAL_ORIGIN, validated byportalFrameAncestor()in
security.setup.ts;frameguardis off only when a valid origin is set.
- Next.js:
templatecentral:migrategains a "Portal framing" recipe (migrate/portal-frame-ancestors.md)
for projects scaffolded before this change.
Changed
nextjs-backend-extractiondetects auth from abetter-authimport inproxy.ts, not from the
file's presence, because every scaffold now shipssrc/proxy.ts.tc-audit,standards/code-standards/nestjs.md,standards/full-stack-pairingand
.claude/rules/nextjs.mddescribe the new default-deny / portal-origin rule.
v6.1.2
Immutable
release. Only release title and notes can be modified.
[6.1.2] — 2026-10-27
Fixed
- The repo's
scripts/pre-guard.shno longer asks before writing protected-name files (for example
aDockerfile) whose target resolves, with symlinks and..followed, outside the repo root and
under/tmpor a$TMPDIRinside a system temp tree, so the scaffold-verify workflow can write
/tmp/scaffold-e2e/Dockerfile(#26). A$TMPDIRthat is or contains$HOMEor 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. /tmpand$TMPDIRare scratch bases only when neither is, or contains,$HOMEor the repo
root; an unset or unresolvable$HOMEdisables the exemption.scripts/pre-guard.shasks for absolute~/.claude/{rules,skills,commands}/**and
~/.claude/keybindings.json(session memory under~/.claude/projectsstays 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 namedsecretsis not blocked wholesale.scripts/pre-guard.shfollows a symlink target throughreadlink(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
Immutable
release. Only release title and notes can be modified.
[6.1.1] — 2026-10-27
Fixed
- The seeded
depsgate now rejects pnpmauditsuppressions written in YAML flow style
(audit: { ignore: [...] }), with a quoted key ("audit":,'audit':) or inside a flow
mapping, and treats anyignoreunder anauditkey 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
depsgate parsespackage.jsoninstead of matching text, sopnpm.audit,pnpm.auditConfig
and anyignoreGhsas/ignoreCveskey are rejected however the file is laid out; invalid JSON
fails the gate, a leading BOM is ignored, and apackage.json5orpackage.yamlfails 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) inpnpm-workspace.yamlis not detected. - NestJS
RolesGuarddenies a user whoseroleslist holds a non-string entry; a unit test covers it. - Next.js
hasRoledocuments that callers check for a null session first, because the false branch
also covers a missing session. The seededAGENTS.mdnotes and.claude/rules/nextjs.mdlist
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-scannedfrontmatter;scripts/check-research-content.py, tests in
scripts/check-research-content.test.shrun 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-auditfloors refreshed (Starlette current stable 1.10.0, floor of record stays in
.claude/rules/fastapi.md;@nestjs/platform-fastifychecks follow the Nest 12 floor, current
stable 12.2.0), the 200-line reference-file check exempts the per-stacksource-files.md
files (FUTURE.md roadmap item 1), and two checklist items cover the deps gate and the authz seeds.scripts/lint-skills.shgainscheck_security_seeds_present: the GitHub and Azuredepspipeline
steps and the deny-by-default authz definitions must stay in the shipped skill files.FUTURE.mdmarks the NestJSstrictitem done and Automated Ecosystem Refresh as shipped and
disabled.
v6.1.0
Immutable
release. Only release title and notes can be modified.
[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,RolesGuardandassertOwner, withAuthUser.roles; Next.js getssrc/lib/authz.ts
(hasRole,isOwner) and a server-onlyuser.rolefield (input: false, defaultuser). 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
depsgate inci-gates.sh, run by the GitHubqualityjobs (TS and FastAPI) and
the Azure Pipelines template. It auditspnpm-lock.yaml(high and critical advisories),uv.lockor
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.txtholds
<id> <YYYY-MM-DD> <reason>entries that expire, andprotect-files.shasks before editing it. - Re-sync adds the
depsgate as a blocking check with no label bypass. A project with no
pnpm-lock.yaml,uv.lockorrequirements*.txtfails with "no lockfile found". Azure projects that
took the "seed neither" path need thedepsstep added by hand, or by migrate's new health check. - The
depsgate audits every ecosystem present (pnpm-lock.yaml,uv.lockand 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 inertaudit.ignore. - FastAPI CI installs
uvwhenuv.lockexists, so thedepsgate can export it.
Security
ecosystem-refresh.ymlno longer gives the research agent write access. The agent reads web pages, so
a prompt injection there could previously reachWrite,gitandghunder acontents: write
token. It now runs in aresearchjob withcontents: read, no shell, and file writes limited to
.claude/audit-ecosystem-research.mdandpr-body.md. A separatepublishjob, with no LLM,
validates the uploaded artifact (exactly two regular files, size limits, one changed path) and opens
the PR.ecosystem-refresh.ymllimits the research agent'sRead,GlobandGrepto 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 byGITHUB_TOKEN, so close and
reopen it to trigger checks.
v6.0.5
Immutable
release. Only release title and notes can be modified.
[6.0.5] — 2026-10-13
Fixed
block-no-verify.shno longer blockscd <repo> && git commitfrom a checkout on a protected branch.
6.0.4 kept the command's starting directory as a candidate after anycd, in case thecdfailed, so
committing into a feature-branch repo from a session rooted onmain/developwas blocked. In a
strict&&chain git only runs after everycdbefore it succeeded, so the hook now judges exactly
the directories its git words run in. A strict chain has no;,||,|, lone&,(,),
backtick or newline onceN>&Mredirections are set aside, and every directory change in it is a
plain literalcd/pushdat the start of a segment. Anything else (acdinside a subshell,
command cd,env -C, an assignment beforegit, a second line) keeps the 6.0.4 candidate set.
Ported to the OpenCode adapter.test-harness-kit.sh615 passed; adapter hook matrix 157 passed.
v6.0.4
Immutable
release. Only release title and notes can be modified.
[6.0.4] — 2026-10-12
Fixed
block-no-verify.shjudges a baregit commit/git pushby the branch it can actually land on.
Claude Code may start hooks from the session's original root, so in a git worktree$PWDnamed the
main checkout's branch: every worktree commit was blocked when that checkout sat onmain, and the
check never looked at the worktree's own branch. The hook now reads the hook input'scwd.- Candidates are that
cwdplus each literalcd/pushd/env -C/sudo -Dtarget found anywhere
beforegit(if cd x,\cd x, …), resolved against every candidate so far. Any protected
candidate blocks, so acdthe 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 barecd,popd,eval,CDPATH,
GIT_DIR/GIT_WORK_TREE,--git-dir/--work-tree, or an unresolvablegit -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
cdthat runs aftergitin a loop or a
function still counts. Severalgit -Coptions 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 commitstill blocks when the project
root is on a protected branch. A baregit commit, orgit -C <literal path>, works. From a
protectedcwd,cd <feature dir> && git commitstill blocks. Both kit variants (TS, FastAPI). - OpenCode adapter: the bash-command guard ports the same model, taking the cwd from the tool's
workdir/cwdarg. It read one branch from the project root before, so it had the same worktree
mis-resolution and also ignoredgit -C.