The Cat's mark is now a cat's head whose face is one of Duchamp's
rotoreliefs (Anémic Cinéma, 1926): off-centre rings that, turned, read
as a tunnel breathing in and out. Only the rings turn (new motion
'turn', about the face's centre); the head stays still. On its icon tile
the Cat wears Bitcoin orange (new iconInk); elsewhere it is currentColor.
Loki's mark mirrors bitbaum/loki's new rotorelief disc.
The installed OrangeCat icon showed as a blank black tile on an Android
home screen. The manifest was the only one in the fleet listing its SVG
icon first; generate:brand now lists the PNGs first and the SVG last.
Claude-Session: https://claude.ai/code/session_019MDtmreRmsJkmf3AcYy6DS
Co-authored-by: Claude <noreply@anthropic.com>
Forty-five 2025 plans, assessments, design scenarios, status reports and
superseded business docs move to docs/archive/ (same relative path). Each
described a plan or a snapshot as if it were the running system: strict:false,
a five-table schema, an "organization" entity, price_sats, a Gemini /api/chat
widget, a /auth/forgot-password page, Google Places, building group labels and
contract voting flows that never landed.
Fixed in place: NAVIGATION_UX_DESIGN.md (referenced by .claude/rules) gains a
status note naming what shipped and where; GENERIC_API_HANDLERS.md lists the
handler options the code actually takes; datetime_standards.md points at
scripts/dev/; CONTRIBUTING.md describes the auto-merge shipping flow. Inbound
links repointed (SECURITY.md at the root, SUPABASE_SCHEMA_GUIDE.md for schema).
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
* docs: archive point-in-time records, drop broken guide symlinks
Status reports, progress trackers, audits, session summaries, completed
migration plans and the 2025 roadmap move to docs/archive/ (same relative
path), with a README saying they describe the day they were written.
.ai-guides/ held only symlinks into a docs/guides/ai/ that no longer
exists, tests/unit/docs/ held a stray copy of an old getting-started page,
and docs/operations/PORT_MANAGEMENT_README.md duplicated port-management.md;
all three are deleted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* docs: correct drifted paths, links and versions in current docs
Fix in place the reference docs agents use: point paths at where the code
lives now (src/stores/auth.ts, src/lib/supabase/*, scripts/dev/*,
docs/reference/api/CONVENTIONS.md, the squashed baseline migration),
rewrite the development, features, operations and API index pages to list
documents that exist, say plainly where something is gone (/api/metrics,
the CSP report route, .envrc in the repo, Loki's `migrate` script), and
correct the Next.js major. docs-truth findings: 468 -> 2 (both "Next 30/90
Days" headings in the legal overview, a checker false positive).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
---------
Co-authored-by: Claude <noreply@anthropic.com>
* design: every mark is one file, replaced with one command
pnpm run brand:import <slug> <file.svg>
converts any SVG (Figma, Illustrator, Inkscape, an icon set) into
src/config/marks/<slug>.ts, rebuilds the registry, and for this app's own
slug regenerates every static icon. Nothing else changes: the header,
hero, auth page, share cards, studio tiles, pillars and project banners
all render from the registry through one generic <Mark>, and know nothing
about which drawing they show.
- src/config/marks/: one data file per mark (viewBox + stroked/filled
shapes + motion), a generated index (MARKS, markFor), and generators/
for the marks drawn by code (OrangeCat's cat coil, Loki's coil). Solon's
scales were imported through the new command from lucide's SVG.
- <Mark>, <ProjectMark slug> (mark from the registry, else the initial),
BrandMarkIcon and the share-card mark all render any MarkDefinition.
PillarMark and sibling-marks.ts are gone.
- Giving any studio project a face is the same command with its fleet
slug; its tile and banner pick it up.
- The importer keeps geometry and how each shape is painted, drops colours
and a full-size background, and refuses transforms, clip paths, masks,
<use>, <text> and <image> with a message saying what to do, rather than
producing a mark that is quietly wrong.
- The brand test is written against any mark: registry matches the folder,
every mark is drawable, static icons equal exactly what the generator
writes. Replacing the drawing never means rewriting the test.
- Brand scripts run with plain node: a dependency-free resolve hook maps @/
and extensionless imports so they load the app's TypeScript directly.
Verified by swapping in a throwaway SVG end to end (icons regenerated,
background dropped, holes kept, gate green) and restoring the coil.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* fix(home): the badge fits a phone, the headline breaks at its tone, Loki's banner opens Loki
Found reviewing the live site after #1314 deployed:
- the three-part hero badge ran off a 390px screen; on phones it now
carries the lead phrase alone
- the two-tone headline wrapped mid-phrase on desktop, so the dim tone
started partway through a line; the tail now takes its own line from sm
- StudioProjectBanner reused the tile's link for its door, which for a
project funded here is the page itself — Loki's banner had no way to
open Loki. FleetTile now carries liveUrl, tested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* fix(brand): the importer strips to a fixed point and refuses non-path data
CodeQL (3 high, incomplete multi-character sanitization): one pass of the
comment/<style> stripping over '<!<!--x-->-- … -->' leaves a fresh '<!--'
behind, and what it hid was then read as markup. The path is narrow — a
crafted SVG given to brand:import — but a mark's path data is written
verbatim into public files (favicon.svg), so it is closed twice:
- stripping repeats until nothing changes;
- every shape's path data must be pure path syntax (commands, numbers,
separators), or the import is refused with a message. A quote or angle
bracket can never reach a file, whatever the input looked like.
Tested both: a hidden shape behind a nested comment is not imported (a
single-pass strip imports it), and markup smuggled through a single-quoted
d is refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* fix(brand): read SVG comments and ignored blocks in one forward scan
CodeQL still flagged the comment/<style> stripping after a3e2b25: it does
not credit a repeat-until-stable loop, and rightly so in spirit — regex
removal is the wrong tool. withoutIgnoredMarkup() now walks the input once,
skipping comments, CDATA, processing instructions, doctypes and the
never-drawn blocks (defs, title, desc, metadata, style) by position. It
never re-reads what it emitted, so no removal can leave a new opener behind.
The CSS CDATA unwrap is split/join, not a regex replace.
Safety still rests on PATH_DATA: nothing but path syntax reaches a file.
Tests: contents of comments and never-drawn blocks are not imported; tangled
comments yield only path data; the scanner's skips are pinned. Re-importing
Solon's scales gives a byte-identical mark file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
---------
Co-authored-by: Claude <noreply@anthropic.com>
The mark is now a coil that is a cat: one continuous stroke wound inward
with two ears on its outer turn — Loki's spiral wearing the cat. Its
geometry lives once, in src/config/brand-mark.ts; BrandMarkIcon, the share
cards, favicon.svg, orange-cat-logo.svg, a real favicon.ico (16/32/48
PNG-ICO), apple-icon.png and the PWA icons are all rendered or generated
from it (pnpm run generate:brand), and a unit test fails on any drift.
Why: three different marks were live — a cat face in the header, a
"window with ears" on every share card, and where favicon.ico should
have been, a 155 KB fav.farm HTML page served as image/x-icon, so the tab
icon was broken in every browser that prefers .ico. The 144px PWA icon
was one byte. Nothing generated those files, so nothing could notice.
The home fold is rebuilt to Loki's and Solon's standard: centred,
viewport-relative two-tone display type, the mark drawing itself in above
the headline, a radial-glow + dot-grid backdrop (tokens only, survives
light mode), one warm action, and real numbers underneath (HomePulse: the
same public-only counts /discover uses, plus the studio's live count from
Loki's fleet map). The three-card row that repeated the hero's own actions
is gone, with its FIRST_MOVES config.
The studio is on the front page (StudioSection: the three pillars with
their real marks, then every live studio product as a tile, each a door),
closes /ecosystem grouped by layer, and a studio project's own page wears
its face (StudioProjectBanner: mark, live door, last moved, siblings). The
list is Loki's fleet map, never a copy; when the map is unreachable the
pillars stand and the grids are absent, and no page fails. Selection and
ordering are pure and tested (studio-fleet.ts).
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
The sibling product was renamed on 2026-09-14. Every reference follows:
service and route paths (src/services/loki, /api/integrations/loki),
env keys (LOKI_*), the build-intent audience and timeline source ('loki'),
ecosystem config, docs, tests, and 13 file names.
Tool labels keep "Loki" capitalised: the old name had an internal capital
and passed the "looks like a name" shape test for free; a one-word name
needs listing, so softLower now carries a small PROPER_NOUNS set.
Box and data were moved ahead of this: LOKI_* keys sit beside the old ones
in the app env, the OAuth client is `loki` with the new callback host, and
timeline/metadata rows carrying the old name were rewritten.
Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The docs tree had sprawled into ~40 overlapping/singleton/empty directories.
Consolidated (history preserved via git rename detection; links rewritten so
no previously-working link broke):
- architecture/ ← adr/, database/, + loose *_ARCHITECTURE / my-cat specs
- development/ ← standards, contributing, guides, examples, templates, components, ai
- operations/ ← devops (+runbooks), deployment, supabase
- design-system/← design, UX, ux-improvements, branding
- reference/ ← api, changelog, content, misc
- forward-looking/ ← planning, improvements, implementation
- archive/2026-h1/ ← point-in-time reports/plans that were loose at docs/ root
- removed empty docs/analysis/; rewrote docs/README.md as a current index
Verified: non-README relative-link health 81→83 OK (0 regressions, same 64
pre-existing-rot broken); all new README links resolve; external refs in
.claude/ + root repointed to moved targets.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Mirror x.ai aesthetic: agent-window mark (currentColor strokes), neutral
primary palette, brand strings consolidated in src/config/brand.ts.
- brand.ts: APP_NAME / APP_KICKER / APP_TAGLINE / BRAND_ACCENT_HEX
- BrandMark + BrandMarkIcon: single geometric mark used by header,
Cat surfaces, favicon, og image
- Logo + CatIcon now thin wrappers around BrandMark / BrandMarkIcon
- :root --primary flipped from Tiffany to near-neutral; tiffany/orange
remain available as sparse Bitcoin/status accents only
- .oc-chat-* component classes seed the chat-surface SSOT in globals.css
- Static SVGs (favicon + og) match BrandMarkIcon geometry pixel-for-pixel
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>