Repository navigation
fix(domain): close the review notes on the template package schema - #245
Conversation
The review of #244 at `c6b1908` found no blocking issues and six non-blocking notes; this change closes all of them, plus the two smaller observations. It documents the format on a `docs/template-packages.md` page linked from the reference sidebar, so #236's "documented package schema" criterion is true while the rules are fresh. The remaining changes are the review's one-sentence and one-predicate notes: - `license.spdx` is narrowed to a single SPDX identifier, matching what the validator already accepted; the type comment and message no longer promise expressions. - A successful result records `filesObserved`. Without a reader's listing the validator examined the declaration only, and `ok` no longer leaves that implicit; the files module's header says the two-way agreement runs only when observations are supplied. - A case-only observation mismatch is reported as such, rather than as an unrelated file, so the caller knows the tree and manifest name one entry. - A declared path may not begin with `files/`, which is the directory the path is already relative to. - The tag, author, revision, licence-name, and SPDX lengths are named fields in `TemplatePackageLimits` instead of literals inside the readers. - `provenance.createdAt` must name a real calendar date: `Date.parse` would roll 31 February into March. - Display text (name, description, author, licence name, revision) refuses control characters, which could rewrite a terminal line in a search result. The docs placeholder table wraps its braces in `<span v-pre>`: VitePress reads `{{ … }}` as an interpolation, and `verify:docs-interpolation` refuses a page that leaves them bare. Refs #236 Assisted-by: Claude Code (Antruly-dev-1)
Review —
|
|
🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1 CI is green at
The underlying flake is recorded separately in #246 with the observation and its inferred mechanism; the CI run itself is not evidence for the template-package change either way. The local gate quoted in the PR body still stands as the evidence for this diff. |
|
Owner approval. Approved at Reviewed in this comment. No blocking findings: all six notes and both observations from #244 are closed in the code, the tests, and the new At this head: Merging as a merge commit at the exact reviewed head. Recorded by the owner's review assistant at the owner's explicit instruction. |
Part of #236. Follow-up to #244, which the owner approved and merged at
c6b1908— the head they reviewed — before these commits were pushed. It closesthe six non-blocking notes and the two smaller observations from that review.
🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1
Notes closed
docs/template-packages.md: package layout, anexample manifest, the field reference, limits, path rules, placeholders, and
the evidence boundary. Linked from the reference sidebar.
identifier (optional trailing
+), matching what the predicate accepts.MIT OR Apache-2.0is refused rather than promised.okdid not record what was examined — a successful result now carriesfilesObserved;falsemeans the declaration only. The files module'sheader states the narrower claim.
observation mismatch is now reported as such instead of as an unrelated
file.
files/prefix — a declared path may no longer begin withfiles/, thedirectory it is already relative to.
are named
TemplatePackageLimitsfields.The smaller observations are closed too:
createdAtmust name a real calendardate (
2026-02-31is refused instead of rolled into March), and display text(
name,description,author, licence name, revision) refuses controlcharacters that could rewrite a terminal line.
The docs table wraps placeholders in
<span v-pre>: VitePress reads{{ … }}as an interpolation, and
verify:docs-interpolationrefuses a page that leavesthem bare. That check and
format:checkboth caught intermediate heads of thiswork; the pushed head carries the fixes.
Validation
npm run test:local -- src/domain/templatePackage.test.ts— 93 passed at1508f7c.npx tsc --noEmit -p tsconfig.json— exit 0.oxfmt --check— clean on the source files, the docs page, and the sidebar.npm run lint— no findings in the changed files.npm run knip— no unused exports.npm run docs:checkandnpm run docs:build— exit 0 (58 scripts across 31pages, all facts consistent; the new page builds and its sidebar link
resolves).
npm run check:pr— exit 0 at1508f7c: 13/13 tasks; 1377 passed and 66skipped (68 files passed, 11 skipped), with every skip naming its reason;
verify:docs-interpolationscanned 17 pages with no unescaped braces. Thishost has no libuvcpp, so the real-toolchain lanes skipped by name (
uvp doctor found no libuvcpp) and the Windows-only lanes skipped as not aWindows host; it does not claim that coverage. CI is separate evidence.
Author readiness
Human owner: @Antruly