@wipcomputer/wip-ldm-os 0.4.73-alpha.14 → 0.4.73-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,74 @@
1
+ # Documentation Pipeline
2
+
3
+ Documentation lives in three places. They stay in sync through the installer. This is not optional.
4
+
5
+ ## The Three Levels
6
+
7
+ ### 1. Repo Docs (source of truth)
8
+
9
+ Every repo has documentation at its root and in `docs/` for features:
10
+
11
+ ```
12
+ repo/
13
+ ├── README.md What this repo is
14
+ ├── TECHNICAL.md How it works
15
+ ├── SKILL.md Agent instructions
16
+ ├── CLAUDE.md Agent context for Claude Code
17
+ ├── docs/
18
+ │ └── <feature>/
19
+ │ ├── README.md What this feature is
20
+ │ └── TECHNICAL.md How this feature works
21
+ ```
22
+
23
+ When a feature gets absorbed into a repo, its README and TECHNICAL move into `docs/<feature>/`.
24
+
25
+ Repo docs are the source of truth. Everything else is derived from them.
26
+
27
+ ### 2. Home Docs (human readable, personalized)
28
+
29
+ Location: `~/wipcomputerinc/library/documentation/`
30
+
31
+ These are personalized for YOUR system. "Here's how releases work on YOUR machine." Generated by the installer from repo doc templates + your `~/.ldm/config.json`.
32
+
33
+ The human reads these. They describe how the system is set up on this specific machine, with this specific configuration.
34
+
35
+ ### 3. Agent Docs (OS reference)
36
+
37
+ Location: `~/.ldm/shared/`
38
+
39
+ ```
40
+ ~/.ldm/shared/
41
+ ├── rules/ Thin rules deployed to ~/.claude/rules/
42
+ ├── dev-guide-*.md Org-specific dev conventions
43
+ ├── boot/ Boot sequence config
44
+ └── prompts/ Cron prompts
45
+ ```
46
+
47
+ These are what agents reference. Rules, dev guide, boot config. The installer deploys them so agents always have current instructions.
48
+
49
+ ### 4. ai/ (development process)
50
+
51
+ Location: `<repo>/ai/`
52
+
53
+ Plans, bugs, research, dev updates. Private repo only. Never ships to public. Updated by the dev team (humans + AI agents) during development.
54
+
55
+ ## The Update Flow
56
+
57
+ ### On merge to private main
58
+
59
+ 1. **Repo docs** updated. README, TECHNICAL, docs/<feature>/, SKILL.md, CLAUDE.md. Part of the PR. Code and docs ship together.
60
+ 2. **ai/** updated. Plan archived, bugs closed, dev update written. Notes the version is on alpha.
61
+
62
+ ### On `ldm install`
63
+
64
+ 3. **Home docs** regenerated. Installer reads repo doc templates + config.json, generates personalized `library/documentation/` files.
65
+ 4. **Agent docs** deployed. Installer copies rules, dev guide, boot config from the installed package to `~/.ldm/shared/` and `~/.claude/rules/`.
66
+
67
+ ### On deploy to public
68
+
69
+ 5. **Public repo** updated. `deploy-public.sh` syncs everything except `ai/`.
70
+ 6. **ai/** dev update notes the version moved from alpha to release.
71
+
72
+ ## The Rule
73
+
74
+ Three places, one update, never out of sync. The installer is the bridge between "code landed" and "docs are current everywhere." Developers write repo docs. The installer propagates them. Nobody manually updates home docs or agent docs.
@@ -0,0 +1,79 @@
1
+ # Documentation Pipeline: Technical Details
2
+
3
+ ## File Paths
4
+
5
+ ### Repo doc templates (in the LDM OS repo)
6
+
7
+ ```
8
+ shared/docs/*.md.tmpl Templates for home docs
9
+ shared/rules/*.md Source for agent rules
10
+ shared/boot/ Boot sequence config
11
+ ```
12
+
13
+ Templates use placeholders from `~/.ldm/config.json` (workspace path, agent names, org name, etc.).
14
+
15
+ ### Installed locations
16
+
17
+ ```
18
+ ~/.ldm/config.json Org config (agents, paths, co-authors)
19
+ ~/.ldm/shared/rules/*.md Agent rules (source for ~/.claude/rules/)
20
+ ~/.ldm/shared/dev-guide-*.md Org dev guide
21
+ ~/.ldm/shared/boot/ Boot sequence config
22
+ ~/.ldm/shared/prompts/ Cron prompts
23
+ ~/.ldm/templates/ CLAUDE.md templates, install prompt, etc.
24
+ ~/wipcomputerinc/library/documentation/ Personalized human docs (from templates)
25
+ ~/.claude/rules/ Deployed rules (copied from ~/.ldm/shared/rules/)
26
+ ~/.claude/CLAUDE.md Level 1 global (generated from template + config)
27
+ ```
28
+
29
+ ### What ldm install deploys
30
+
31
+ | Source | Destination | When |
32
+ |--------|------------|------|
33
+ | `shared/rules/*.md` | `~/.ldm/shared/rules/` then `~/.claude/rules/` | Every install |
34
+ | `shared/docs/*.md.tmpl` | `~/wipcomputerinc/library/documentation/` | Every install |
35
+ | `shared/boot/` | `~/.ldm/shared/boot/` | Every install |
36
+ | `shared/prompts/` | `~/.ldm/shared/prompts/` | Every install |
37
+ | `shared/templates/` | `~/.ldm/templates/` | Every install |
38
+
39
+ **Known bug (April 2026):** The installer currently deploys shared rules on `ldm init` (first install) but not on every `ldm install`. This means rule updates in new versions don't propagate until the user re-initializes. This needs to be fixed so rules deploy on every install.
40
+
41
+ **Known bug (April 2026):** The installer previously deployed home docs to `settings/docs/`. This path was renamed to `library/documentation/` on March 28, 2026. The installer must deploy to the correct path.
42
+
43
+ ## How templates work
44
+
45
+ Home doc templates at `shared/docs/*.md.tmpl` contain placeholders:
46
+
47
+ ```
48
+ Workspace: {{workspace}}
49
+ Agents: {{agents}}
50
+ ```
51
+
52
+ The installer reads `~/.ldm/config.json`, substitutes the placeholders, and writes the personalized docs to `~/wipcomputerinc/library/documentation/`.
53
+
54
+ ## CLAUDE.md cascade
55
+
56
+ Three levels. Claude Code reads all of them, walking up from CWD:
57
+
58
+ ```
59
+ Level 1: ~/.claude/CLAUDE.md Global. ~30 lines. Universal rules.
60
+ Level 2: ~/wipcomputerinc/CLAUDE.md Workspace. ~150 lines. Org context.
61
+ Level 3: <repo>/CLAUDE.md Per-repo. ~50-86 lines. Repo-specific.
62
+ ```
63
+
64
+ After context compaction, CWD may shift to a repo. Without Level 3, all context is lost. Every repo must have a CLAUDE.md.
65
+
66
+ ## Config paths (correct as of April 2026)
67
+
68
+ References in CLAUDE.md and rules must use absolute paths:
69
+
70
+ | Reference | Correct path |
71
+ |-----------|-------------|
72
+ | Org config | `~/.ldm/config.json` |
73
+ | Dev guide | `~/.ldm/shared/dev-guide-wipcomputerinc.md` |
74
+ | Human docs | `~/wipcomputerinc/library/documentation/` |
75
+ | Agent rules | `~/.ldm/shared/rules/` (source) or `~/.claude/rules/` (deployed) |
76
+ | Workspace CLAUDE.md | `~/wipcomputerinc/CLAUDE.md` |
77
+ | Global CLAUDE.md | `~/.claude/CLAUDE.md` |
78
+
79
+ NOT `settings/config.json`. NOT `settings/docs/`. Those paths are from before the March 28 rename.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wipcomputer/wip-ldm-os",
3
- "version": "0.4.73-alpha.14",
3
+ "version": "0.4.73-alpha.15",
4
4
  "type": "module",
5
5
  "description": "LDM OS: identity, memory, and sovereignty infrastructure for AI agents",
6
6
  "engines": {