Files
pages/docs/design
..

PagesWiki design documentation

Current reading order

The reorganized Japanese handbook is ja/index.md, published under https://pages.anya.jp/lab/pageswiki-dev/. It separates implemented slices, proposals, unresolved decisions and delivery gates. Its chapter identifiers are language-neutral; existing English source documents remain here for traceability and future aligned translations, not as automatically current English editions.

Document roles

DRの詳細設計・初版CLI・復旧手順は 単一writerのDR を参照。 インスタンス単位の停止snapshotと手動昇格を先行し、自動切替・オンライン同期は未実装。

次段階のDR-D1は詳細設計完了・実装未着手: 役割分離と再参加、 protocol・同期・切替、 実施計画と受入試験。DB別件と独立して文書化し、 保存側の能力契約が未提供の場合は自動切替を有効化しない。

arch.md, address-model.md, access-model.md, auth.md and i18n-delivery.md include original conceptual drafts. Detailed topic documents describe contracts and implementation slices. implementation-status.md contains dated progress; older paragraphs are historical and may be superseded. The roadmap is a task inventory; the execution ledger is verification/deployment history, not a blanket feature-completeness claim.

For new work, update the relevant chapter and detailed contract together. Keep stable identity, authorization and bounded processing constraints. Do not convert design proposals into active features or public grants merely by documenting them.

Publication

Japanese Markdown under ja/ is the editing source. The documentation export tool renders canonical HTML with the application's Markdown renderer, validates chapter links, and emits a manifest. Upload through the trusted data CLI with an explicit Domain and PAGESWIKI_LANG=ja; no authentication/publication policy is changed. Record resulting Page/Revision identities separately from source text. English publication is deferred until an aligned translation and language UI are ready. Never overwrite Japanese with English at language und.

Generate a fresh, empty staging directory, then run:

go run ./tools/design-export -out /tmp/pageswiki-design-staging
go test ./tools/design-export

The tool does not access the database or network. Review manifest.json, check destination collisions, and select the correct database/Domain explicitly before using data/pageswiki-cli put for each rendered HTML file and manifest Path. The index maps to /lab/pageswiki-dev, not /lab/pageswiki-dev/index. Do not blindly replace existing Wiki edits on a later publication: compare the recorded Revision UUID/hash with the current head and resolve divergence first.

The initial upload receipt is publication-ja-2026-09-19.json. All 23 canonical payloads were read back and compared. Source hashes and stored Page/Revision identities support later language alignment. Anonymous HTTPS access still redirects to login; this upload did not change public access settings.