Skip to content

feat(wiki): pages in spaces with authors and history - #42

Merged
lucasnevespereira merged 4 commits into
mainfrom
feat/wiki-pages
Nov 11, 2026
Merged

lucasnevespereira merged 4 commits into
mainfrom
feat/wiki-pages

Conversation

@lucasnevespereira

@lucasnevespereira lucasnevespereira commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

The wiki was one wiki.md written once by the engineering lead, folder by folder. So it read like a map of the repo, and nothing about the product. Now it's pages in spaces, each with an author and a history, drafted by the people who'd know.

<company>/wiki/
├── Company/      Mission · What we're building · Now · Decisions   ← yours, empty with a hint
├── Product/      Customers · Rules · Voice                         ← someone on the product side drafts
└── Engineering/  Codebase · Build and test · Conventions           ← engineering lead drafts
wiki_log (page, author, note, text, at)                             ← every save, so any version comes back
 first write
-  engineering lead → one doc, "folder by folder"
+  engineering lead → Engineering pages   } in parallel, read-only, no questions to you
+  product/design/growth person → Product pages, from landing pages and app copy
+  a writer only saves the pages it was asked for; your brief is never replaced
 propose_wiki
-  section: Decisions | Conventions
+  page: any Space/Title, new pages too (old "section" still accepted)
  • crates/core/src/wiki.rs holds pages, clean() (a page can't escape the folder), history, restore, rename, find() for old section names, parse() for drafts, and the migration from wiki.md.
  • Company keeps wiki(), brief(), write_brief(), add_to_wiki() and set_wiki_section() on top of pages, so prompts and planning didn't change shape. Prompts get every non-empty page under # Space / Title.
  • The app's Wiki has a space and page tree, "By Rui · 2 days ago", History with view and restore, edit with rename or move, new page, delete, and a proposal badge on the page it targets.
  • A company that starts empty gets a Draft your wiki from the repo card on the Wiki page once someone is hired, with your team or one person to pick. Nothing drafts by itself on a hire, so no surprise spend.
  • Redraft from the repo… in the sidebar (and onecorp wiki redraft [--by]), by the team or one person.
  • Answering a question, "Save to the wiki" adds question → answer to Company/Decisions.

Evidence

  • wiki::tests: an old wiki.md migrates into pages, authors are logged (an unchanged save isn't), restore works, rename keeps history, ../ is refused, drafts parse.
  • tests/kickoff.rs: write_wiki makes two tickets, Odile for Engineering and Rui for Product. Each page's history names its writer, Now stays empty, the brief is kept, a resumed run saves again, and a draft can't overwrite a page it wasn't asked for.
  • cargo test, clippy -D warnings, ui-smoke.js and onboarding.mjs pass. Browser mock: #wiki-page, #wiki-empty, #wiki-history, #wiki-edit.

Merge Danger

Door: one-way, for existing companies' data

The first open moves wiki.md into wiki/ and renames it to wiki-before-pages.md. Nothing is deleted, but going back to an older app would show an empty wiki until the file is renamed back.

Blast Radius: medium

Touches every prompt's wiki text, the CLI wiki commands (edit now takes a page) and propose_wiki. Overlaps #41 in CHANGELOG.md, preview.ts and work.rs; whichever merges second needs a small rebase.

@lucasnevespereira
lucasnevespereira merged commit 6af3eb2 into main Nov 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant