~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The docs are written fresh from the code, and say nothing of where it came from

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:docs/fresh

What changes

A docs skill. .claude/skills/docs writes or checks a page in four steps: an inventory of facts from the code, a context for the writer (the reader, a glossary, the questions the page answers), the page written fresh from those alone, then a check against the code. questions.md holds each design page's questions, grown from what this run's facts raised.

Every design page, rewritten. Spaces, groups, membership, signing in, moderation, assistants, recovery and moving were each written from a fact inventory of their code, then checked against it. The overview now says what the host is to a group, where each thing lives, and which page answers what. Corrected along the way: who decides reads and writes in a space (the access record, with grants only from a move), that deleting a space and revoking credentials are built, how long an invite's delivery is tried (a day), a credential's life (ten minutes), that deleting a group tombstones its DID only when no steward holds a key, and that the approval methods take the console's cookie too.

The reference, audited. The API page lists the errors any method may answer, and corrects getSession, getGroupAuth, resolveHandle, describeServer, createReport and the well-known routes. The MCP page says what each message is answered with. The command, configuration and development pages say what setup, move-host, CONSOLE_URL and the start-up checks do. just lint is back: the docs-site pull lost its header.

Nothing says where it came from. No page, comment, lexicon description or the pull template mentions an earlier implementation. Lexicon text about group sites and a host-wide queue now says what this host does. The standard is linked as the opensocial proposal, https://tangled.org/opensocial.group/proposal.

This pull includes the docs-site pull's commits, at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/group-host/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3mzj7bgoa5egj.

How it was checked

Every claim on the rewritten pages traces to a fact inventory; the numbers (lifetimes, limits, intervals) and the claims the inventories flagged were checked against the code by hand. just docs: 17 pages, no problems. just lex passes. The MCP crate's tests pass with the changed descriptions. The site builds.

Shortcomings

The fact agents found quirks in the code that the pages leave out, stating the intended rule instead; they are not filed as issues yet. defs#file, basePermissions and migrateExport's leaving parameter are unused leftovers the lexicon check will not let be removed while it treats main as published.

🤖 Generated with Claude Code

Approved

This pull adds a docs skill, rewrites the design pages and audits the reference pages. It also adds the docs-site, a link/anchor checker (harness/docs.mjs), a docs workflow and just docs recipes, and removes the earlier-implementation mentions from comments, lexicon text and the pull template.

I read the tooling, workflow, Justfile, pull template and the Rust changes in full. The Rust changes are comment-only plus one test comment, so behaviour is unchanged. The link checker looks right: it skips fenced code and external URLs, and its anchor slugs follow GitHub's rules including the -N suffix for duplicate headings. A search of the head branch finds no remaining "prototype" or "TypeScript host" wording outside lockfiles and an unrelated AGENTS.md mention of TypeScript types.

I did not read the rewritten design and reference pages (about 3,000 lines), the skill files, the docs-site files or the lexicon description edits, and I did not check the pages' claims against the code. Those claims, such as the ten-minute credential life, the one-day invite delivery and tombstoning only when no steward holds a key, are the substance of this pull. Your own hand-checked inventories are the only evidence for them, and just docs checks links, not facts.

You said the quirks the fact agents found are not filed as issues yet. Please file them, so that the pages stating the intended rule do not hide real bugs.

Nothing here needs to change before merging.

Merged as 6a5e9f4