Skip to content

fix: stop naming stale tags, and match the shell's theme-color to the chrome - #74

Merged
bketelsen merged 4 commits into
mainfrom
fix/sweep-pins-theme-color
Nov 13, 2026
Merged

bketelsen merged 4 commits into
mainfrom
fix/sweep-pins-theme-color

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Summary

Four sweep findings. Each place that named a "latest" tag now names the series and how to read its newest tag, so the text does not go stale at the next tag.

  • sweep: client and UI install snippets pin client/v0.2.0 and ui/v0.1.0, which lack the documented features #64: the install snippets of client/README.md, ui/README.md and docs/specs/ui-package.md pinned client/v0.2.0 and ui/v0.1.0. These tags lack the rpc subpath and the primitives the same pages describe. The snippets now use client/vX.Y.Z and ui/vX.Y.Z. A sentence gives the newest tag: git ls-remote --tags --refs --sort=-v:refname https://github.com/frostyard/lodge 'refs/tags/client/v*', or the Tags page.
  • sweep: AGENTS.md names kit/v0.3.1 and v0.2.0 as the latest tags and the apps' pins, but kit/v0.4.0 and v0.3.0 exist #67: AGENTS.md named kit/v0.3.1 and v0.2.0 as the latest tags, and the apps' pins as v0.3.1, but kit/v0.4.0 and v0.3.0 exist. The tag table loses its "Latest" column and gets the ls-remote pointer. "Who uses it" refers to each app's own go.mod and package.json. The base of the kit's git log example is now git describe --match 'kit/v*'. The host's release stays recorded in packaging/README.md#update.
  • sweep: the new-lodge-app scaffold pins kit v0.2.0 and client/v0.2.0, against its own take-the-latest rule #66: the scaffold pinned client/v0.2.0 (render.sh) and kit v0.2.0 (SKILL.md), against the skill's own rule to take the latest. Without LODGE_REF, render.sh now takes the newest client/vX.Y.Z tag of the checkout it runs from, by version order: prereleases and other series do not count. With no such tag, it refuses and says to run git fetch --tags. The skill uses go get github.com/frostyard/lodge/kit@latest. The Go proxy resolves this to v0.4.0 today. CI checks out with no tags, so the existing scaffold tests pass an explicit client/v0.3.2. 2 new tests cover the default in a temporary git repository and the refusal outside one.
  • sweep: the shell page's theme-color metas are not the chrome token the manifest uses #68: the shell page's theme-color metas held #e9e4d8 and #232629 from the first shell page. They are now the chrome token --bg-sidebar (#f2f2f4 light, #2a2a2c dark), the same value as the manifest's theme_color (ADR-0008, docs/specs/shell.md Colours and type). The new test shell/test/theme-color.test.ts checks the metas and the manifest against ui/src/tokens.css. To read that file, shell/vite.config.ts allows ../ui in server.fs.allow, and processes tokens.css in Vitest (test.css.include): by default Vitest gives CSS as empty text, also with ?raw.

Not in this PR: #65 (the docs site), which needs a policy decision.

Fixes #64
Fixes #66
Fixes #67
Fixes #68

Risk tier

Risk tier: 1. Docs and tests. The one script change (render.sh's default) is in an agent skill, not in the shipped product. No path of .github/risk-paths.json is touched.

Docs housekeeping

  • Cross-links added in both directions (the spec's new line links the UI README's anchor; repocheck passes)
  • Conformance aliases and canonical symlinks are unchanged; canonical targets are edited instead

Verification

  • make check green (host): 0 lint issues in each module, all tests pass (internal/scaffoldcheck run uncached with -count=1 -v: 6 PASS)
  • make shell-check green (nsl lodge): Biome clean, tsc clean, 4 files and 53 tests pass
  • Revert test for a fix: with render.sh at 0e4a5bd, go test -count=1 -run 'TestRenderDefaultsToTheNewestClientTag|TestRenderWithoutATagRefuses' ./internal/scaffoldcheck/ fails on both tests. With shell/index.html at 0e4a5bd, pnpm exec vitest run test/theme-color.test.ts (nsl) fails on the 2 meta tests.

The install snippets of client/README.md, ui/README.md and the UI
package spec pinned client/v0.2.0 and ui/v0.1.0, which lack the rpc
subpath and the primitives the same pages describe. AGENTS.md named
kit/v0.3.1 and v0.2.0 as the latest tags after kit/v0.4.0 and v0.3.0.
Each place now gives the series pattern and how to read its newest tag.

Fixes #64
Fixes #67
render.sh pinned client/v0.2.0 and the skill kit v0.2.0, against the
skill's own rule to take the latest of each. render.sh now takes the
newest client/vX.Y.Z tag of the checkout it runs from, and refuses with
a hint when there is none; the skill uses go get ...kit@latest.

Fixes #66
The metas held #e9e4d8 and #232629 from the first shell page; the
manifest and the spec name the chrome, --bg-sidebar (#f2f2f4 light,
#2a2a2c dark). test/theme-color.test.ts checks the metas and the
manifest against the UI package's tokens.

Fixes #68
@github-actions github-actions Bot added the level:L3 Skim label Nov 13, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review: Ready, Blocking: none, no findings.

  • Reviewer: openai/gpt-6.1-sol. Coder: deepseek/deepseek-flash.
  • Base 0e4a5bd00cc4ebdee9eb8577a8f18d859516c1c8, head 32fbe92d3719cf7cda31da90c002c3a0a9586f4f. All 11 changed files reviewed, none excluded. No path of .github/risk-paths.json matches.
  • Revert test, in a scratch worktree at the head: with render.sh and shell/index.html at the base, TestRenderDefaultsToTheNewestClientTag and TestRenderWithoutATagRefuses fail, and so do the 2 meta tests of shell/test/theme-color.test.ts (expected '#e9e4d8' to be '#f2f2f4', expected '#232629' to be '#2a2a2c').
  • CI: all 9 checks pass at the head.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 13, 2026
@bketelsen
bketelsen merged commit 605f18f into main Nov 13, 2026
10 checks passed
@bketelsen
bketelsen deleted the fix/sweep-pins-theme-color branch November 13, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

2 participants