Repository navigation
feat!: structured diagnostics, tighter types, CI hardening - #427
Merged
Merged
Conversation
Every action is referenced by a full commit SHA with its version beside it. Each bun install uses --frozen-lockfile. ci.yaml gets a top-level contents: read. The release job passes the tag-derived version to its scripts through the environment instead of interpolating it into shell, which closed a shell injection through a crafted tag name. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… time addColorModes rejects unknown colour tokens, non-string aliases, an unknown initial mode and a basedOn naming no mode. The unplugin adapters require their options argument. effect-ui .contract() rejects unknown keys at every level. addSelectors rejects an alias without the _ prefix, in core and effect-ui. Each is pinned by a negative assertion in the published type fixtures. light-dark(), contrast-color() and hwb() are accepted as theme colour values. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ransition Value diagnostics report the position of the offending value and carry property, value and a reason code. ExtractChainFact is exported complete. ExtractionSession gains analysisInputs and analyzeWith; the system loader returns token values and colour modes as data, and registered keyframes are exposed. The agent CLI uses these and no longer parses message text or generated CSS; describe and check move to schema 2. @animus-ui/react/view-transition exports a ViewTransition that accepts Animus view-transition refs. In production, a registered view transition no analysed source references is no longer emitted. The React builder's addSelectors rejects an alias without the _ prefix. The seam baseline is re-recorded under intent structured-diagnostics-20261128: added property and value fields and moved columns only. Verified at this commit: vp run verify:full (54 of 54 tasks). verify:bench passes build:vite-app and reports the other three rows invalid, because output now differs from release 0.2.0 by design; scripts/bench/accepted-differences.json is not updated here. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three changes, one commit each, on top of #426.
CI and release hardening
bun installuses--frozen-lockfile.ci.yamlgets a top-levelcontents: read; the release and deploy jobs keep the per-job permissions they had.$, backticks and;, so a craftedv*tag could run shell inside the job that publishes. The version now reaches those scripts through the environment.Not done here: a protected environment in front of the publish, which needs matching settings on GitHub and on each package's npm trusted publisher.
Four type holes closed
Each of these compiled and then failed or misbehaved at run time; each is now a compile error on TypeScript 7.0.2 and 5.9.3 and is pinned by a negative assertion in the published fixtures.
addColorModeswith an unknown colour token, a non-string alias, an unknown initial mode, or abasedOnnaming no modeTS2322listing the valid token paths, orTS2345listing the valid modesTS2554: Expected 1 arguments, but got 0.contract()with an unknown keyTS2322 … not assignable to type 'never'addSelectorsalias without the_prefix (core, react, effect-ui)TS2322namingUnprefixedSelectorAlias<"name">light-dark(),contrast-color()andhwb()are accepted as theme colour values, and the extractor recognisescolor-mix(),light-dark()andcontrast-color()token values as colours.Structured diagnostics; view-transition refs
property,valueand areasoncode.ExtractChainFactis exported complete.ExtractionSessiongainsanalysisInputsandanalyzeWith(). The system loader returns token values and colour modes as data; registered keyframes are exposed.animus describelists keyframes.@animus-ui/react/view-transitionexports aViewTransitionwhoseenter,exit,update,shareanddefaultprops accept Animus view-transition refs.Release notes
ThemeBuildergains a fourth type parameter andColorModeOptionsa second.property,valueandreason.stages[].skippedentries change from[property, reason]tuples to{ property, reason, code }objects.animus describeandanimus checkmove to schema 2.@animus-ui/react/view-transition;ExtractionSession.analysisInputsandanalyzeWith();systemThemeValues;registeredKeyframes.Verification
vp run verify:fullpasses atbfd772a2: 54 of 54 tasks.structured-diagnostics-20261128; the reviewed difference is addedpropertyandvaluefields and moved columns, nothing else.verify:bench:build:vite-apppasses (ratio 0.998). The other three rows report INVALID, because the loaded system and the diagnostics now differ from release 0.2.0 by design. Timed outside the gate with its own runners, they are within budget (ratios 1.002, 1.011, 1.016).scripts/bench/accepted-differences.jsonis not updated in this PR; the pairs to record are:loader:large-closurelarge-closure95be9e47926a23eb6b29d7b1c8e39c3c66fd63ea556eb428f6d288ac1d1f427d58f777b86e4f9a519911024f22cd9089d58c121441c0123678902c0d5d318ac9loader:showcaseshowcasefb211aefb668300290d73f956e9d410b2727ecf045cde103f97d13d79a6ccb1b69dfcb2884578167e48fcd8f3bab6f8cb70fa9e80b0e507df55c67dae0b09284analysis:showcaseshowcase-analysisc1edb027a5935ba98105d226039783a408ad400b82de1dd8a13f333a4db1c5545cc7f0e8c5ab12dab02e7bcca7a06d7dde28f90dad3b8726f2298c74f794a0bc🤖 Generated with Claude Code