2026-06-12 — demarkus-library deploy manifests + CI/release
Roadmap item 1 (deploy manifests), branch feature/deploy-manifests, awaiting Fritz commit/PR.
Shipped (working tree)
.goreleaser.yml(root): single-module → plainvtags, NO monorepo block (unlike demarkus). Usedarchives.idsnotarchives.builds— deprecated since goreleaser 2.8 (demarkus repo still on old syntax;goreleaser checkfails locally on it). Addedvar version = "dev"to main.go for the-X main.versionldflag.Dockerfile(root): COPY-only overdist/docker/<arch>/staged binaries (no QEMU compile),distroless/static-debian12:nonroot— CA certs needed for outbound HTTPS to broker. EXPOSE 8080/tcp.deploy/helm/demarkus-library/: mirrors broker chart conventions. Key divergences:replicaCount: 1+strategy: Recreate— sessions in-memory; rolling update = login flapping. PDB default-off (minAvailable 1 would block drains at 1 replica).- Env-based config (no config.yaml Secret like broker). Chart-managed
-oauthSecret only for cleartextlibrary.broker.clientSecret;existingSecretRefmode for production.checksum/secretannotation only in cleartext mode. demarkus-library.validatehelper mirrors NewAppConfig startup validation at render time (transport enum, broker-mode required fields, secret mutual exclusion, quic host).- NetworkPolicy egress: DNS + TCP 443 (broker) + UDP 6309 (
networkPolicy.quicEgressPort, federation/quic dials). - Probes both hit
/health(only endpoint; broker has /healthz+/readyz). automountServiceAccountToken: false(library never talks to kube-apiserver, unlike broker).- 23 helm-unittest tests (deployment/secret/ingress suites) pass.
.github/workflows/ci.yml: paths-filter (app/charts), golangci-lint v2.9.0 action, go test/vet/build, goreleaser check, helm lint+unittest..github/workflows/release.yml: test → semver (PaulHatch, tag_prefixv, no change_path — single module, chart-only commits must bump too) → tag + goreleaser-pro + stage binaries + buildx multi-arch (amd64/arm64/armv7) → ghcr.io/latebit-io/demarkus-library + helm chart to oci://ghcr.io/latebit-io/charts, version==appVersion==image tag.- Lint cleanup: 13 errcheck issues fixed with explicit
_ =discards (demarkus convention) in broker.go, oauth.go, 2 test files. Default golangci-lint now 0 issues.
Deferred / decisions
- demarkus's strict
.golangci.yml(gocritic/revive/gocyclo/modernize) NOT adopted — 18 issues would need fixing (mostly gocritic style in tests). CI uses lint defaults. - Repo secret needed before first release:
GORELEASER_KEY(goreleaser pro).GITHUB_TOKENcovers ghcr. - Verified locally: go test ✓, golangci-lint 0 issues ✓, goreleaser check ✓, snapshot build + version stamp ✓, helm lint ✓, helm template (7 resources) ✓, 23 unittest ✓.
Next
- Fritz: commit, PR, add GORELEASER_KEY secret.
- Roadmap item 2: drop broker rateLimit.tokens to ~30/min burst ~15 (demarkus repo AppSet values).
- Then rendering upgrades (chroma first).
Correction: GORELEASER_KEY is an org-level (global) secret — already available to this repo, no per-repo setup needed.
Module-path migration to latebit-io (later same day)
demarkus merged the rename (15cc18b fix(package): latebit → latebit-io, tags
client/v0.12.40 + protocol/v0.7.13, proxy-resolvable — verified). Library
follow-up (working tree on top of 712511f "feat(CI): added deploy manifests"):
- Imports rewritten
github.com/latebit/demarkus/→latebit-io; go.mod replaces DROPPED, now requires client v0.12.40 + protocol v0.7.13 (tagged, fetchable — no sibling checkout needed anywhere). - Library's own module renamed too:
module github.com/latebit-io/demarkus-library(same latent mismatch;go mod edit -module+ import sweep). Gotcha: renaming internal imports before the module line makesgo mod tidyfetch the repo from the proxy as an external dep — fix module line first. - CI/release sibling-clone steps removed from both workflows.
- Verified: build ✓, tests ✓, lint 0 ✓, vet ✓, goreleaser check + snapshot ✓.
The 2026-06-12 sibling-clone entry in debugging.md is now historical.
PR #10 review response (CodeRabbit, 11 findings — all addressed)
Workflows: actions pinned to commit SHAs (tag comments kept) · ci.yml top-level
permissions: contents: read · release.yml write scopes moved to release job
only · non-cancelling concurrency: release-${ref} (semver/tag race) ·
release test job now also runs helm lint+unittest (chart-only push can't ship
broken chart) · if: failure() rollback step deletes release+tag so a failed
publish doesn't burn the version (tag must still exist BEFORE goreleaser —
GORELEASER_CURRENT_TAG).
Chart: validate helper trims all presence checks (matches NewAppConfig trim;
whitespace-only fails at render not CrashLoop) + new cleartextSecret helper
shared by secret.yaml/deployment.yaml · automountServiceAccountToken: false
on POD spec (held SA-only before; broke when serviceAccount.create=false) ·
NetworkPolicy ingress adds same-namespace podSelector: {} (default install
was unreachable — ingress.enabled defaults false) · NOTES insecure warning
gated on quic OR federation — NOT the reviewer's exact ask (move under quic
branch): DEMARKUS_INSECURE also governs broker-mode federation QUIC dials, so
quic-branch-only would hide a real warning.
Code: session_test.go setup Save now t.Fatalf on error.
24 chart tests (added whitespace-trim regression), lint 0, go tests pass.
PR #10 outside-diff comments (2, both fixed)
- release job gated
github.ref == 'refs/heads/main'— workflow_dispatch from a feature branch could otherwise tag + publish unmerged code. - goreleaser-action
version: latest→"~> v2"in both workflows (bounded drift).
Roadmap item 2 — broker rate limit back down
demarkus-knowledge-system-deploy branch fix/broker-rate-limit-down
(uncommitted): apps/demarkus-broker/applicationset.yaml rateLimit.tokens
60/30 → 30/15, comment rewritten (session pool made reads 1 request; the old
comment's "revisit down once the library reuses its MCP session" condition is
met). YAML validated. ArgoCD auto-syncs on merge (automated + selfHeal).
Roadmap item 2 done pending Fritz commit/PR; next is in-cluster library
install (item 1 wrap-up), then rendering upgrades (chroma).
Rendering upgrades (a)+(b) — branch feature/rendering-chroma
Debt.md items: chroma highlighting + GFM alerts + emoji, all server-side zero JS, on one branch (uncommitted).
- Chroma (goldmark-highlighting/v2): CLASSES mode, never inline styles
(bluemonday strips
style; widening = CSS-injection surface). Policy admitschromaClassesregex on pre/code/span +tabindex="0"on pre (chroma a11y).static/chroma.cssGENERATED byinternal/adapter/inbound/web/gen_chroma_css.go(go:build ignore,go generate ./internal/adapter/inbound/web) — github light + github-dark in@media (prefers-color-scheme: dark)(site declarescolor-scheme: light dark). Generator lives OUTSIDE static/ — thego:embed static/*glob would embed+serve it. - GFM alerts (zmtcreative/gm-alert-callouts v0.8.0): emits
div.callout.callout-<kind)+.callout-title/.callout-title-text/.callout-body. Default inline-SVG icons REPLACED with emoji map (WithIcons) — svg through bluemonday would mean a dozen attr allowances.calloutClassesregex bounds kind (author-controlled via [!KIND]); data-callout deliberately stripped. CSS in page.html useslight-dark()(GitHub palette both modes). Unknown kinds render neutral; plain blockquotes untouched (test-pinned). - Emoji (yuin/goldmark-emoji): :shortcode: → unicode chars, sanitizer-inert.
- Live smoke (quic vs soul): chroma classes + css verified on roadmap doc's sh fence. goldmark bumped 1.7.8→1.7.13 by deps.
- Suite green -race, lint 0. Remaining rendering debt: mermaid + KaTeX islands (ADR 0003 concessions, later).
PR #11 review fix
chromaClasses shape pattern ([a-z]{1,3}[0-9]?) admitted non-chroma tokens
(nav/btn). Replaced with an allowlist BUILT FROM chroma.StandardTypes at
init — exact by construction, upgrade-proof (formatter reads class names from
the same table). Longest-first alternation (prefix shadowing). Tests cover
nav/btn/foo1 and mixed bg nav (whole attr value must match). Suite green.
Rendering upgrades merged + released
PR #11 → main (86d490a). Release pipeline auto-shipped v0.1.1 (fix: → patch bump; image + chart at 0.1.1). Pipeline working as designed on its first real post-v0.1.0 release. Roadmap item 3 (a)+(b) DONE; (c) mermaid + KaTeX islands remain in debt.md. Next queued: universe view (mark_worlds broker tool → floor page) or Phase 2 restricted collections.
Rendering (c) — mermaid + KaTeX islands (branch feature/rendering-islands)
ADR 0003 concessions recorded (ADR updated v3). Design:
- Loader
static/islands.js(~4KB, only always-loaded piece): lazy-loads heavy vendored libs ONLY when page content needs them; re-scans onhtmx:afterSettle(fragment swaps). Mermaid: keys onpre>code.language-mermaid, swaps topre.mermaid,mermaid.run, render failure restores source block. KaTeX: textContent probe for delimiters → auto-render withtrust:false, throwOnError:false. - Vendored (static/vendor/, ~3.7MB embedded): mermaid 11.15.0, katex 0.17.0 (js+auto-render+css+woff2 only).
- Server side: hugo-goldmark-extensions/passthrough shields TeX from
markdown (delimiters: inline
\(..\), display$$..$$+\[..\]; single-$ rejected — dollar-amount false positives, test-pinned). Policy admitslanguage-mermaidon code (chroma has no mermaid lexer → plain fallback keeps the class; bluemonday was the stripper). Sanitizer remains backstop (script-in-math test). - goldmark bumped 1.7.13→1.8.2 (passthrough dep). Suite green -race, lint 0.
- Gotcha: smoke-test 404s were a STALE server pid from the earlier chroma
smoke still bound to :8099 serving the old binary —
kill %1doesn't cross Bash tool invocations; uselsof -ti :PORT | xargs kill.
Islands merged + released
PR #12 → main (1f68dac), v0.1.2 auto-released. Review fixes before merge: loadScript AND loadCSS failure-aware + retryable (evict rejected promise from cache; explicit terminal catches → console.warn, degradation preserved); CodeRabbit path_filters exclude static/vendor/** + *.min.js (vendored payloads, stylelint noise).
Rendering roadmap item fully DONE (chroma, alerts, emoji, mermaid, KaTeX). debt.md rendering section shipped end to end.
Found: semver quirk — PaulHatch minor_pattern: "feat:" is a SUBSTRING
match; feat(scope): doesn't contain feat: → scoped feats bump PATCH not
minor (v0.1.2 should arguably have been v0.2.0). Same quirk in demarkus repo
workflows. Fix if desired: regex form /^feat(\(.+\))?:/ (+ same for
BREAKING CHANGE which is body-matched, that one's fine). Flagged to Fritz.
Scratch demo page /demarkus-library/scratch/rendering-demo.md left in place
as a rendering test card (importance 0.1); archive if unwanted.
Remaining queue: universe view (mark_worlds → floor page) · Phase 2 restricted collections.
Reading Room design session (end of day)
Fritz brought full design notes ("The Reading Room" — context-optimized reading, digital universe library, not digital garden). Hashed out + locked:
- ADR 0005 (v2, 15 decisions): spatial trails (stack-in-URL, truncate-and-append, scroll-not-resize, spines), Tufte column + working margin, status trust badge, catalog/graph/universe-as-pane, no search box, friendly frontmatter, rendered-HTML cache requirement, desktop-only, + agent symmetry amendment (projection-never-source, escape to protocol, authoring contract in-universe, constructible trail format, librarian consumes trail).
- plans/reading-room.md (v3): full design, feasibility (htmx-hard VIABLE — trail is server state in URL; only new JS = scroll-into-view snippet), rate-limit math forcing the render cache, phasing R1 (Tufte pane) → R2 (trail engine) → R3 (previews/backlinks/graph pane), universe-view research alongside.
- Roadmap v12 re-queued accordingly. R1 is next up and fully specified.
Session ended here; next session starts R1.
Late addition — inclusivity rule (ADR 0005 v3, decision 16): the library must ALWAYS work both as a single-world app (direct QUIC, e.g. soul.demarkus.io, no broker/login) and against a full knowledge system (broker). Single-world mode: the universe IS the world (floor = world root, graph pane = world graph, catalog = direct lookup). Broker-only features are incomplete, not shipped. Every R-phase acceptance-tested in both transports.
Evening: Reading Room R1 — the Tufte pane BUILT (Fable, branch feature/reading-room-r1)
R1 per ADR 0005 / plans/reading-room.md, all on the branch, staged, awaiting
Fritz's commit. Suite green -race, vet clean, gofmt clean.
- Domain/ports:
domain.Documentgains Status/Tags/Properties/Modified/ Version/Agent;domain.Rendered{HTML, Properties}is the Renderer port's new return (frontmatter parsed, not discarded);ReadingServicegainsTag(tag pages) +Raw(protocol escape);WorldGateway.Lookupgains afilterarg (QUIC →fetch.LookupOptions.Filter; broker →filtertool arg, omitted when empty; federated passes through). - Markdown adapter:
splitFrontmatter(same strict shape as the old strip, now returns the fence) +parseFrontmatter(yaml.v3 Node walk — ordered top-level scalars/scalar-lists only, garbage → nil, never fails a render). Newsidenote.gogoldmark extension:extension.Footnote+ AST transformer at priority 1000 (after footnote's 999) converts single-paragraph, referenced-once footnotes into inline<sup class="sidenote-number"></sup><span class="sidenote">…</span>; multi-paragraph/multi-ref notes stay classic footnotes (sanitizer admits fn-shaped ids/hrefs/classes only — DOM clobbering stays closed). CSS counters number both ends; no ids for sidenotes. - Service: status authority order (metadata
status:tag axis → frontmatterstatus:→ "draft"; values bounded^[a-z0-9][a-z0-9-]{0,31}$, invalid → draft). Synthetic views (Browse/History/Search/Tag) carry no margin.Tagsends the tag as query ANDtag=filter (exact narrowing + sane ranking). - Web: Tufte pane — grid
minmax(0,60ch) 250px, gap 2.5rem, Charter/ Georgia serif, off-white/off-black via light-dark(), booktabs tables (heavy top/bottom, light header rule, no verticals). Pinned.doc-meta(sticky, paper background + z-index so sidenotes slide under): status badge, tag links (status: axis excluded — the badge carries it), provenance dl (modified/version→editions link/agent), properties dl, escape block (mark://address + raw + editions). Sidenotes float right with negative margin into the margin column. New routes/w/:world/tags/:tag+/w/:world/raw/*(text/plain, body verbatim). Nav search box removed (decision 5); /search route survives for R2's catalog pane. Newreading_handlers_test.gocovers margin rendering, axis-tag exclusion, tag/raw routes, error mapping, no-search-box. - Authoring contract (decision 13) published in-universe:
mark://soul.demarkus.io/.well-known/library/authoring.md(status:accepted, importance .85); repo sourcedocs/authoring-contract.md. - Acceptance, quic mode (live against soul.demarkus.io): VERIFIED.
rendering-demo.md (republished v2 with frontmatter + 4-footnote matrix):
2 sidenotes converted with inline markup intact, notes 3+4 correctly
remain footnotes (
fn:3,fn:4), badgestatus-wip(metadata axis beat frontmatterstatus: draft), properties block rendered (list joined ", "), mark:// + raw escape (text/plain, frontmatter intact), tag page /tags/sidenotes lists the doc, no search box, versions/browse margin-free, authoring contract rendersstatus-accepted. - Acceptance, broker mode (live, headless limit): boots against
knowledge.demarkus.io with ~/.config/demarkus-library/dev.env + mkcert
TLS; turnstile guards everything including the NEW routes (/, /w/root/
tags/adr, /w/root/raw/index.md all 302 → /login with return_to; /login
200, no search box). Post-login read path not exercised — web SSO
needs a browser; Claude Code's knowledge-system OAuth tokens aren't
reachable headless. Unit level: broker gateway filter pass-through +
parseToolResult margin metadata tested; broker tool surface is
byte-for-byte demarkus-mcp whose mark_lookup declares
filter. Fritz: one click-through wanted —source ~/.config/demarkus-library/ dev.env && ./demarkus-library, log in at https://library.dev.test:8443, eyeball a root-world doc's margin + a tag click. Residual risk: deployed broker build predating LOOKUP filter would make tag pages return unfiltered results (cosmetic, not erroring). - Visual polish pass (spacing, dark mode, sticky-meta overlap behavior on long sidenote docs) deliberately left for Fritz's eyeball round.
R1 broker-mode acceptance CLOSED
The dev.env credentials had been stranded by the 2026-06-12 in-cluster
rotation (library-web re-registered with cluster-only redirect + new secret
hash). Fix: registered a SECOND confidential client library-web-dev in
demarkus-knowledge-system-deploy deployment.yaml (hash of the existing
local secret, redirect https://library.dev.test:8443/auth/callback) so prod
rotations can never strand local e2e again; dev.env CLIENT_ID switched to
library-web-dev. Fritz merged; ArgoCD synced; render smoke green
(empty/single/multi). Purely additive — prod library-web untouched, no
refresh tokens invalidated (RefreshStore is k8s-Secret-backed anyway).
Fritz logged in through the live broker and verified the Tufte pane against root-world content. R1 acceptance complete in BOTH transports (decision 16). Probe gotcha for next time: OAuth endpoints live on broker.knowledge.demarkus.io (discovery at knowledge.demarkus.io works; /oauth/authorize on the bare domain 404s).
Remaining R1 tail: Fritz commits/PRs feature/reading-room-r1 (staged);
visual polish round by eyeball.
Night: Reading Room R2 — the trail engine BUILT (Fable, branch feature/reading-room-r2)
R1 merged as PR #13 (CodeRabbit round: frontmatter strip now validates the
fence is a YAML mapping before stripping — ---\nintro\n--- is content).
R2 built on top, staged for Fritz. Suite green -race. Build decisions
recorded in plans/reading-room.md §"R2 build decisions" BEFORE building.
- Trail URL (decisions 1/14):
/t/<pane>/~/<pane>?focus=i— pane chunk =/w/route tail (<world>/d/<path>,<world>/tags/<tag>, trailing slash = listing).~reserved separator segment; raw slashes (no %2F for ingress); focus 0-based default-last clamped; cap 10 (parse 400s past it, click drops oldest). Codec + click algebra are pure functions in web/trail.go: truncate-to-N+append, dedup→focus, spine→focus-only. - Cache (decision 9): port.DocumentCache + LRU adapter (adapter/outbound/cache, 512 entries default, no TTL). Service: Read/Browse/Tag now cachePut; ReadCached/BrowseCached/TagCached read through (nil cache ⇒ live). Focused-live policy: trail handler reads the focused pane live, everything else cached ⇒ every click = exactly 1 world read; staleness only where attention isn't.
- Canvas: /t/* renders paneVMs — spine (vertical title + status badge)
/ body (immediate parent, full body, sidenotes hidden — their float
would bleed into the next pane) / focused (R1 Tufte pane + margin; only
focused gets doc-meta). Unfocused pane error → tombstone spine ("gone",
dashed) so stale shared trails survive; focused error → real 404/401.
trailizeLinks post-process (trail_links.go): /w/ doc+tag hrefs → their
post-click trail URLs; the link to the pane open at i+1 gets
class="active-link" (highlighted links ARE the breadcrumb). versions/raw
stay /w/ (deliberate escapes).
overscroll-behavior-x: contain; scroll-focused-pane-into-view rides islands.js (DOMContentLoaded + htmx:afterSettle)./302s to the default one-pane trail; /w/ stays the permalink space. Templates refactored: shared head/nav/doc-meta defines; new canvas.html. - Trail format spec (decision 14) published:
mark://soul.demarkus.io/.well-known/library/trails.md(status:accepted)- repo docs/trail-format.md; cross-links the authoring contract.
- Acceptance, quic (live, soul.demarkus.io): VERIFIED. 3-pane trail: spine/body/focused modes, exactly one doc-meta, wip badge + 2 sidenotes inside focused pane, trailized + active links; tag pane's catalog rows continue the trail (lookup results live on the path); listing pane; tombstone trail 200 with gone-spine; focused-missing 404; malformed 400; / → default trail redirect.
- Acceptance, broker (headless limit): R2 binary live behind turnstile;
/t/* 302→login with return_to. Gotcha that cost a few minutes: the
R1-era process still held :8443 — new server logged bind failure and
curl was hitting the OLD binary (404 on /t/). Kill by
lsof -ti :8443, not the pid file, before re-verifying. Post-login trail walk = Fritz click-through (login, click links to stack panes, spine click, tag pane). - Call-pattern pinned in tests: ReadCached/ReadCached/Read for a 3-pane trail; BrowseCached/Tag/ReadCached for mixed kinds with focus=1.
R2 broker-mode acceptance CLOSED
Fritz logged in and walked trails against the live broker — R2 verified in
both transports (decision 16). Branch feature/reading-room-r2 staged,
awaiting his commit/PR. Remaining tail: visual polish round by eyeball;
then universe-view research / R3 per roadmap.
R2 MERGED — PR #14
main HEAD 11732ed. CodeRabbit round: islands.js comment now cites ADR 0005
for the scroll-snippet concession; the wg.Go "compile error" finding was a
false positive (stdlib since Go 1.25) — rebutted on-thread, skipped. Local
feature branches deleted. Day total: ADR 0005 → R1 designed/built/merged
(#13) → R2 built/merged (#14), accepted in both transports. Next: visual
polish · universe-view research (needs broker mark_worlds) · R3.
Cluster updated with R1+R2
Fritz rolled the in-cluster library. Verified from outside:
library.knowledge.demarkus.io serves the new binary — /t/root/d/index.md
302s to /login with return_to (the /t/ route only exists post-R2), /login
200. The Reading Room (Tufte pane + trail engine) is live in production.
Universe-view research + mark_worlds (post-merge, Fable)
- Research recorded in plans/reading-room.md §"Universe-view research" BEFORE building (roadmap process). Headline findings: (1) the catalog is the cheap universe — mark_lookup's importance/tags/path give nodes, weights, clustering, and hierarchy with one call per world; edges (graph store) are enrichment, not skeleton — resolves decision 16's don't-assume-the-broker-store clause. (2) SSR SVG first — post- aggregation node counts are SVG-sized; deterministic server-side orbit/cluster layout, cacheable in DocumentCache, zero new JS, projection-pure; ADR 0003's canvas island stays the documented escalation path, unspent. (3) Three zoom levels (floor / world / neighborhood) = one component; every zoom transition is a click that continues the trail. Proposed build order: mark_worlds → floor+world view (no edges needed) → R3 neighborhood when the edge-source decision lands. Design awaits Fritz's read before building the library side.
- mark_worlds BUILT (demarkus repo, branch
feat/mark-worlds, staged): 15th broker MCP tool over the existingauthorizedWorldspredicate (same data /me/install serves on REST). No args; output = formatToolResult shape withcount:+ markdown table| world | url |(PublicURL may be blank — worldName stays the addressing primitive). Deliberately broker-only: enumerating worlds is a knowledge-system concept; the single-world MCP's universe IS its world — parity comment- TestMCPToolsExactly15 document the asymmetry. Tests: authorized-only filtering (unauthorized world must not leak), blank URL, empty universe, missing claims. Full broker suite green.
mark_worlds MERGED — demarkus #182 (02e52ef)
Universe-view session complete: research + 2 addenda in plans/reading-room.md (catalog-as-cheap-universe, SSR-SVG-first, extensional non-brokered universe with portal nodes, hubs as the primary topology source with mark_worlds as the broker-mode permission mask), mark_worlds shipped. To use it live: cut a broker release and bump the image tag in demarkus-knowledge-system-deploy deployment.yaml. Open before the floor build: hub-discovery convention (manifest self-declaration vs DEMARKUS_HUB env — lean manifest + env override) and Fritz's read on SSR-SVG-first.
The floor BUILT (late night, Fable) — two staged branches
demarkus feat/lookup-match-all (staged): LOOKUP accepts query * =
whole catalog under scope, filters apply, importance order (uniform score →
sortResults falls through to importance). Server handler validation allows
exactly *; demarkus-mcp + broker lookup descriptions updated. Gotcha:
hand-built wire requests must quote it (query: '*') — frontmatter is
YAML and bare * is an alias; real clients yaml.Marshal so it's
transparent. All three module suites green. Worlds must be re-released +
rolled for the floor to grow satellites — old servers reject * and the
floor tombstones them (by design).
library feature/universe-floor (staged): the universe view as pane
zero.
WorldGateway.Worlds()port verb: broker parses mark_worlds' table; QUIC returns the home world (extensional universe — enumeration beyond home is discovery's job); federated prefers Names, falls back to Hosts.service.Floor/FloorCached: mark_worlds (permission mask) + per-world Lookup("*") parsed from the LOOKUP markdown table (parseCatalogTable — status from the tag axis, basename title fallback, MD unescape). World whose catalog read fails → FloorWorld.Err (dimmed, never dropped); ErrUnauthorized propagates (re-login beats tombstone). Floor cache = single slot, focused-live policy.- Web: pane kind
u(bare chunk, no world — the floor IS the universe);/→/t/u; floorSVG renders worlds as circles (r ∝ satellite count) with top-10 importance docs on an orbit ring (r ∝ importance, stroke = status), every node a plain carrying its post-click trail URL (trailAfterClick directly — no HTML post-process pass for SVG). All text html-escaped (UGC titles). Tombstoned worlds render dashed. Canvas island still unspent — SSR SVG was enough, as researched. - Trails spec v2 published (u chunk + floor semantics) in-universe + repo.
- Acceptance: unit suites green -race. Live e2e against a LOCAL working-tree demarkus-server (match-all build): published 4 docs with tags/importance/status; floor rendered world + 4 satellites with correct strokes (accepted/wip/draft-unlabeled), importance sizing, tooltips; clicking a satellite collapsed the floor to parent and focused the doc with margin — walking the universe builds the trail. Against the live soul (old server): world tombstones correctly. Broker mode headless: /t/u turnstiled with return_to.
- zsh trap for the journal:
IFS read -r path …clobbers PATH (path is zsh's tied array) — name loop vars docpath. And AGAIN a stale process held the port (:6399 this time) — kill bylsof -ti, not pid files.
Remaining for live floors: release demarkus server + roll world pods (then soul + cluster floors grow satellites); broker-mode visual = Fritz login.
Match-all lookup MERGED — demarkus b8aedb7
feat(server): Add wildcard support to catalog lookup on demarkus main.
The floor's data prerequisite is in. Still staged: library
feature/universe-floor (Fritz to PR). For live satellites: cut a demarkus
server release and roll the world pods (soul + cluster) — until a world
runs >= b8aedb7 it rejects * and the floor tombstones it.
Cluster rollout prepped — deploy branch feat/floor-rollout (Fable)
Everything for the floor is released; this stages the cluster bumps. Releases auto-cut on merge (PaulHatch per-module): server 0.17.17 (match-all, b8aedb7 ✓ in tag), broker/tools 0.1.36 (mark_worlds #182 02e52ef ✓, + match-all desc), library 0.1.5 (R1+R2+floor 21a513d ✓). All three charts confirmed present in ghcr.io/latebit-io/charts.
Deploy branch bumps chart targetRevision + image.tag together for each
app in demarkus-knowledge-system-deploy:
- demarkus-worlds 0.17.14 → 0.17.17 (the floor's per-world data source)
- demarkus-broker 0.1.33 → 0.1.36 (floor enumerates worlds via mark_worlds)
- demarkus-library 0.1.4 → 0.1.5 (the floor UI)
Rollout gotcha — worlds need a manual recreate. The apps-immutable-check
guard flags the worlds bump: at 0.17.14 the VCT ignoreDifferences +
RespectIgnoreDifferences were dropped (render finally matched live on
volumeMode), so the chart-version labels now stamped on
volumeClaimTemplates (helm.sh/chart, app.kubernetes.io/version) change
with every bump, and k8s forbids ANY in-place VCT change. Non-destructive
recreate per world (pod + PVC survive), both root and world-a:
kubectl delete statefulset <world> -n <ns> --cascade=orphan then hard-
refresh the Argo app (runbook-world-version-bump.md). Broker + library are
Deployments (no VCT) → clean auto-roll, guard clears them. Smoke
(webClients) green at 0.1.36.
Sequencing matters for a clean floor: roll worlds + broker first (data
sources), then library — otherwise the floor briefly renders every
world as a tombstone (old server rejects *) until the worlds land. Fritz:
commit/PR the deploy branch, merge, then run the two world recreates.
The VCT-label immutable trap — root-caused + fixed (Fable)
Fritz asked the right question ("aren't we just bumping the version?"). The
per-bump recreate is NOT correct — it's the emergency procedure misapplied
to a recurring non-event. Root cause found in the chart:
deploy/helm/demarkus-server/templates/statefulset.yaml stamped the FULL
label set (include "demarkus-server.labels") onto volumeClaimTemplates.
That helper includes helm.sh/chart + app.kubernetes.io/version, which
change every release — on an immutable field. The author already fixed the
spec drift (the volumeMode comment) but missed the metadata.labels
churn. The chart already has a selectorLabels helper (name + instance,
stable).
Fix (demarkus branch fix/server-vct-stable-labels): VCT labels →
selectorLabels. Rendered VCT now carries only name+instance; 41 chart
unit tests pass incl. a new regression pinning the VCT label set. This
makes every future server bump clean — no ignoreDifferences workaround, no
recreate. Will release as server 0.17.18 on merge (fix: → patch).
Corrected rollout (deploy branch feat/floor-rollout updated): worlds
now target 0.17.18 (skip .17), so tonight's recreate is the LAST one
ever (the full→selector label change is itself one immutable diff). broker
0.1.36, library 0.1.5 unchanged (Deployments, clean).
Ordering dependency: the deploy worlds pin (0.17.18) does not exist until the chart fix merges + releases — so the apps-immutable-check guard can't render head until then. Sequence: (1) merge chart fix → 0.17.18 releases, (2) merge deploy, (3) one-time recreate of root + world-a, (4) clean forever. Ranked alternatives considered: re-add ArgoCD ignoreDifferences (workaround, masks not fixes; was deliberately removed) and recreate-every- bump (treadmill) — chart fix is the correct layer.
Floor LIVE in the cluster — rollout complete
Fritz merged the deploy bumps + the chart fix (#184) and ran the world recreates. Verified cluster-side:
- worlds root + world-a → 0.17.18, Synced/Healthy, pods Running, PVCs
(content-root-0, content-world-a-0) stayed Bound through the
orphan-delete. The wedge was confirmed first (ArgoCD operationState:
Forbidden: updates to statefulset spec ... volumeClaimTemplatesretry loop) — top-line still read Synced/Healthy off the last good sync, so always check operationState, not just sync.status. - broker 0.1.36, library 0.1.5 — Synced/Healthy, rolled clean (Deployments, no VCT).
- Chart fix proven landed: the recreated STS VCT now carries only
app.kubernetes.io/{name,instance}— no version/chart labels. Future server bumps apply in place, no recreate ever again.
All three floor components live: worlds answer match-all *, broker serves
mark_worlds, library renders /t/u. Couldn't port-forward to lookup-test
(demarkus is QUIC/UDP; kubectl port-forward is TCP-only) — match-all is the
same code verified in the local e2e. Final visual = Fritz's browser login
at library.knowledge.demarkus.io → /t/u.
Latent follow-up filed in memory: the deploy repo's apps-immutable-check
runs bash check-immutable-fields.sh 2>&1 | tee — the pipe masks the
script's exit (2 on render-fail, 1 on flag), so the guard can NEVER fail
the build; it only posts a PR comment. Add set -o pipefail / drop the
tee so it can actually gate.