Files
zernie f52fa12c4f fix(lint): spec-refs reaches every compiled surface, and compile emits prettier-clean artifacts (#195)
Closes #190.

spec-refs re-derives a compiled file's references from its spec, but
called compileClaude directly and skipped every spec whose _specType was
not "claude". Four of the five compiled surfaces — skills, subagents,
railway orchestrators, generated harness files — got no re-derivation at
lint time, so an artifact committed while its refs were live stayed green
forever after the target was deleted. Measured here: compile reported
`Skill not found` on examples/SKILL.md while lint reported `hash valid`.

Smaller than the issue estimated. #190 expected a per-type ref accessor
because each compiler reaches its refs differently; they do not — all
four already return the same errors: CompileError[], and only the options
differ. One exhaustive dispatcher, so a fifth spec type is a tsc error
rather than a silent skip.

compile also emitted artifacts that prettier --check then rejected, on
all seven examples/ artifacts — which is why they sat un-recompiled
carrying a retired marker position, and which blocked the fix above. Two
independent defects: both frontmatter renderers padded inside the ---
fence, and the frontmatter/body join added a blank line placeIntegrityHeader
then added again. Fixed at the join, not in the stamper: seal hashes the
content it receives, so trimming there hashes one string and writes
another (measured — it broke integrity on three artifacts).

Also: check.mjs now declares and prints the CI jobs it does NOT run, with
a test asserting that list against ci.yml. It covered one job of six
while its name and its "18/18 passed" read like all of them, and that
cost a cycle. The test earned itself immediately — the hand-written list
missed e2e and named two commands that do not exist.

Also: @openai/codex is pinned. latest was 0.153.1, whose tarball 404s
while its metadata still resolves, so the install step failed on every
branch until pinned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 02:44:22 +05:00
..