musememory 3.0.2 β†’ 3.3.0

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.
Files changed (47) hide show
  1. package/.agents/artifacts/2026-10-26-dashboard-rehaul-rashin-research-and-wave-23-tickets.md +236 -0
  2. package/.agents/artifacts/2026-10-26-wave-29-code-review-audit.md +52 -0
  3. package/.agents/artifacts/2026-10-26-wave-29-gauntlet-acceptance-packet.md +48 -0
  4. package/.agents/artifacts/2026-10-26-wave-29-muse-security-audit.md +71 -0
  5. package/.agents/artifacts/2026-10-26-wave-29-sovereign-lifeos-migration-plan.md +88 -0
  6. package/.agents/artifacts/HANDOFF.md +124 -15
  7. package/.agents/artifacts/TECHNICAL_DEBT-wave24-25.md +12 -0
  8. package/.agents/artifacts/TECHNICAL_DEBT-wave26.md +11 -0
  9. package/.agents/artifacts/TECHNICAL_DEBT-wave27.md +13 -0
  10. package/.agents/artifacts/WORKTREE-LEASE.md +86 -0
  11. package/.agents/artifacts/gauntlet-wave23-pr1/ACCEPTANCE_PACKET.md +85 -0
  12. package/.agents/artifacts/gauntlet-wave23-pr1/GAUNTLET_JOB_CONTRACT.md +50 -0
  13. package/.agents/artifacts/gauntlet-wave23-pr1/ITERATION_LEDGER.md +131 -0
  14. package/.agents/artifacts/gauntlet-wave23-pr1/TECHNICAL_DEBT.md +28 -0
  15. package/.agents/artifacts/gauntlet-wave23-pr456/ACCEPTANCE_PACKET.md +22 -0
  16. package/.agents/artifacts/gauntlet-wave23-pr456/GAUNTLET_JOB_CONTRACT.md +41 -0
  17. package/.agents/artifacts/gauntlet-wave23-pr456/ITERATION_LEDGER.md +36 -0
  18. package/.agents/artifacts/gauntlet-wave24-25/ACCEPTANCE_PACKET.md +13 -0
  19. package/.agents/artifacts/gauntlet-wave24-25/ITERATION_LEDGER.md +28 -0
  20. package/.agents/artifacts/gauntlet-wave25-wiring/ACCEPTANCE_PACKET.md +7 -0
  21. package/.agents/artifacts/gauntlet-wave25-wiring/ITERATION_LEDGER.md +27 -0
  22. package/.agents/artifacts/gauntlet-wave27/ACCEPTANCE_PACKET.md +7 -0
  23. package/.agents/artifacts/gauntlet-wave27/ITERATION_LEDGER.md +36 -0
  24. package/.agents/context/current.md +146 -6
  25. package/.agents/context/decisions.md +8 -0
  26. package/.agents/context/deep-research-agentic-memory-evolution.md +1 -1
  27. package/.agents/context/evidence-ledger.md +89 -0
  28. package/.agents/context/index.md +1 -1
  29. package/.agents/context/roadmap.md +11 -2
  30. package/.agents/context/ticket-plan.md +203 -10
  31. package/.agents/skills/muse-health/SKILL.md +29 -0
  32. package/.agents/standards/README.md +1 -0
  33. package/.agents/standards/dox-hierarchy.md +2 -1
  34. package/.agents/standards/frontend-astro.md +3 -1
  35. package/.agents/standards/git-workflow.md +14 -1
  36. package/.agents/standards/landing-gate.md +253 -0
  37. package/.agents/standards/memory-context.md +5 -6
  38. package/.agents/standards/security-vibeguard.md +1 -1
  39. package/.agents/standards/workflows.md +8 -2
  40. package/README.md +227 -95
  41. package/claims.json +5 -5
  42. package/dist/index.js +11330 -5944
  43. package/docs/agent-reference.md +36 -0
  44. package/docs/cli-reference.md +21 -6
  45. package/docs/mcp-tool-matrix.json +5 -1
  46. package/package.json +9 -2
  47. package/schema.json +1 -0
@@ -0,0 +1,253 @@
1
+ # 🚚 The Landing Gate β€” A Commit Is Not a Delivery
2
+
3
+ > **Doctrine**: Work is **LANDED** only when it is reachable from the
4
+ > integration branch **on the remote**. Until then it is **LOCAL**. A commit is
5
+ > an artifact, not a delivery.
6
+ >
7
+ > **Enforced by**: `scripts/check-landed.ts` (exits non-zero when the work
8
+ > cannot be proven delivered). Prose that an agent can forget is not a rule;
9
+ > this is a gate.
10
+
11
+ ---
12
+
13
+ ## 1. The failure this standard exists to prevent
14
+
15
+ On **2026-10-22**, two complete waves of work β€” `T-320` (contradiction engine
16
+ calibration) and `T-321` (per-project health gate scope) β€” were committed to a
17
+ local branch and a local `dev`, and the session ended.
18
+
19
+ | What happened | What it looked like from the outside |
20
+ | :--- | :--- |
21
+ | 6 commits, 2 waves, all code written | Complete |
22
+ | `bun test` green, `tsc` clean, build clean | Verified |
23
+ | A close-out document describing both waves as shipped | Shipped |
24
+ | Under a heading reading *"Recently Landed Waves (Verified on `dev`)"* | **On `dev`** |
25
+ | **No push. No pull request. No CI run.** | β€” |
26
+
27
+ `dev` did not contain the work. `origin/dev` had already moved to **v3.0.2**
28
+ while the branch sat local, so the branch had **diverged** and a direct push
29
+ would have been rejected. The work was invisible to review, invisible to the
30
+ release, and invisible to every agent that later read the close-out document
31
+ and believed it.
32
+
33
+ **The code was correct. Every test was green. The failure was not a coding
34
+ failure β€” it was a false claim about the remote that nothing had ever checked.**
35
+
36
+ The three sub-failures, in order:
37
+
38
+ 1. **The gate was missing.** Nothing between "tests pass" and "the work is
39
+ delivered" existed, so "delivered" became a matter of opinion.
40
+ 2. **The claim was written before the fact.** The close-out document asserted
41
+ remote state *before* the push β€” the sequence was reversed.
42
+ 3. **The close-out document became the next session's source of truth.** A
43
+ later session read "landed, verified on `dev`" and built on it.
44
+
45
+ ---
46
+
47
+ ## 2. The vocabulary is the gate
48
+
49
+ These words assert a fact about the remote. **They may only be used when
50
+ `check-landed.ts` has exited 0 in the same session:**
51
+
52
+ > landed Β· shipped Β· merged Β· released Β· published Β· deployed Β·
53
+ > *verified on `dev`* Β· *on `dev`* Β· *in `dev`* Β· *upstreamed*
54
+
55
+ Until the gate has run, the only permitted words are:
56
+
57
+ > **local** Β· *committed locally on `<branch>` at `<sha>`* Β· *not yet pushed* Β·
58
+ > *not yet reviewed* Β· *not yet landed*
59
+
60
+ **This applies to every artifact, not just chat:** commit messages, close-out
61
+ documents in `.agents/context/`, PR bodies, changelog entries, issue comments,
62
+ and the final report to the user. A doc that says "landed" is a doc that will
63
+ be read as truth by the next session β€” which is exactly how a six-commit
64
+ silent failure survived a close-out.
65
+
66
+ ---
67
+
68
+ ## 3. The gate
69
+
70
+ ```bash
71
+ bun run check:landed # is this LANDED?
72
+ bun run scripts/check-landed.ts --pr --branch <name> # is this REVIEWABLE?
73
+ ```
74
+
75
+ ### Post-merge mode β€” `bun run check:landed`
76
+
77
+ Answers: *is this work on `origin/dev`?*
78
+
79
+ | Check | Fails when |
80
+ | :--- | :--- |
81
+ | `HEAD` is an ancestor of `origin/dev` | The work is committed but not on the integration branch. |
82
+ | Nothing unpushed | A commit exists that the remote has never seen. |
83
+ | PR state (informational) | β€” |
84
+
85
+ ### Pre-review mode β€” `--pr --branch <name>`
86
+
87
+ Answers: *is this branch reviewable?*
88
+
89
+ | Check | Fails when |
90
+ | :--- | :--- |
91
+ | `origin/<name>` exists | The branch was never pushed. |
92
+ | A pull request exists and is `OPEN` | There is nothing to review. |
93
+ | No failing PR checks | The PR is already red. |
94
+
95
+ ### Reading the result
96
+
97
+ ```
98
+ RESULT: LANDED β†’ exit 0. The remote-state claims are earned.
99
+ RESULT: LOCAL β†’ exit 1. The work is LOCAL. Say so.
100
+ RESULT: REVIEWABLE β†’ exit 0. Pre-review mode only.
101
+ RESULT: NOT REVIEWABLE β†’ exit 1. Pre-review mode only.
102
+ ```
103
+
104
+ > **The two verdicts never contain each other as substrings.** An earlier
105
+ > draft used `NOT LANDED` β€” which contains `LANDED`, so a report quoting the
106
+ > output, or a `grep "LANDED"`, could read a failure as a success. The
107
+ > failure verdicts are `LOCAL` and `NOT REVIEWABLE`. `test/landing_gate.test.ts`
108
+ > pins this.
109
+
110
+ The gate prints the **exact commands and SHAs** it used. **Quote that
111
+ evidence; do not restate it as an assertion.** A report that pastes the
112
+ command and its exit code is auditable. A report that says "landed on dev" is
113
+ not.
114
+
115
+ ---
116
+
117
+ ## 4. Where the gate MUST run
118
+
119
+ ### 4.1 Before the close-out DOX pass
120
+
121
+ The close-out pass writes to `.agents/context/current.md` under a heading that
122
+ claims *"Recently Landed Waves (Verified on `dev`)"*. **Run the gate first.**
123
+
124
+ If the gate fails, the entry is not a "Landed Wave" β€” it belongs under
125
+ *Next Up* with the word **local** in it, and the report must say what is
126
+ missing (push / PR / CI / merge).
127
+
128
+ ### 4.2 Before the final report to the user
129
+
130
+ A report that omits the remote state leaves the reader to assume the best
131
+ case. The report **must** carry the block in Β§5.
132
+
133
+ ### 4.3 Before writing any remote-state claim
134
+
135
+ Anywhere. Any artifact. Including a commit message body that says "merged" or
136
+ a changelog entry that says "released".
137
+
138
+ ### 4.4 After every push
139
+
140
+ Re-run it. A push that lands on a *feature* branch is not a delivery; the
141
+ PR and the merge are.
142
+
143
+ ---
144
+
145
+ ## 5. The report contract
146
+
147
+ Every final report carries this block. It is short, it is mechanical, and it
148
+ is the thing that makes "did you actually finish?" answerable at a glance.
149
+
150
+ ```markdown
151
+ ## Remote state
152
+
153
+ | | |
154
+ | :--- | :--- |
155
+ | Branch | `fix/T-321-per-project-health-gate` @ `983de69` |
156
+ | Integration | `origin/dev` @ `8092ae6` |
157
+ | Landed | βœ… `git merge-base --is-ancestor HEAD origin/dev` β†’ exit 0 |
158
+ | Pull request | #315 β€” MERGED |
159
+ | Unpushed | none |
160
+ | Gate | `bun run check:landed` β†’ `RESULT: LANDED` |
161
+ ```
162
+
163
+ When the gate has **not** been run or has **failed**, the block reads:
164
+
165
+ ```markdown
166
+ ## Remote state
167
+
168
+ | | |
169
+ | :--- | :--- |
170
+ | Branch | `fix/x` @ `abc1234` |
171
+ | Landed | ❌ **LOCAL β€” not pushed, not reviewed, not landed** |
172
+ | Gate | `bun run check:landed` β†’ `RESULT: LOCAL` |
173
+ | Remaining | push β†’ `gh pr create` β†’ CI β†’ merge |
174
+ ```
175
+
176
+ **Never omit this block.** A report without it is indistinguishable from a
177
+ report about work that shipped β€” which is the entire failure mode.
178
+
179
+ ---
180
+
181
+ ## 6. The staging rule (concurrent agents in one checkout)
182
+
183
+ The other half of the failure class: **a commit that does not contain the
184
+ work it claims to contain.**
185
+
186
+ A dispatched subagent writing into the same checkout, while the orchestrator
187
+ runs `git add -A`, produces a commit that silently absorbs the subagent's
188
+ in-progress edits. The commit message then describes work that is *not* in it.
189
+ This happened for real on 2026-10-22 and was only caught by the subagent
190
+ reporting it β€” nothing mechanical would have caught it.
191
+
192
+ ### Rules
193
+
194
+ 1. **Never `git add -A`. Never `git add .`.** Stage the exact paths you
195
+ edited. There is no exception for "the tree looks clean".
196
+ 2. **Run `git status --short` immediately before staging.** If you see files
197
+ you did not touch, another agent is writing here β€” stop, coordinate, or
198
+ wait.
199
+ 3. **Never commit into a checkout another agent holds a lease on.** The lease
200
+ protocol lives in `.agents/artifacts/WORKTREE-LEASE.md`.
201
+ 4. **A commit's message must match its contents.** After committing, read
202
+ `git show --stat HEAD`. If the file list does not match the message, the
203
+ commit is wrong β€” fix it before pushing.
204
+ 5. **One worktree per agent when they can overlap.** If two agents may touch
205
+ the same files, give them separate worktrees and reconcile at the end.
206
+
207
+ ---
208
+
209
+ ## 7. Exceptions, and what to do instead
210
+
211
+ | Situation | What to do |
212
+ | :--- | :--- |
213
+ | No network / offline | Say **local**. Report the branch and SHA, state that the push is pending, and give the exact command. Never write "landed". |
214
+ | The principal asked for local-only work | Still run the gate and report the truth: *committed locally, deliberately not pushed*. |
215
+ | The integration branch does not exist yet | The gate fails. Create it, or report local with the reason. |
216
+ | The work genuinely belongs on a feature branch (a draft PR) | Use `--pr` mode. The report says **ready for review**, not landed. |
217
+ | The gate fails but you believe the work is fine | The gate is right and you are wrong, or the work is genuinely not delivered. Investigate; do not describe the work as landed. |
218
+
219
+ **There is no state in which the honest answer is silence.** If the gate did
220
+ not run, the report says the gate did not run.
221
+
222
+ ---
223
+
224
+ ## 8. Why this is a standard and not a habit
225
+
226
+ The failure was not a lapse of diligence. The agent was thorough β€” it wrote
227
+ a close-out document, ran the full test suite, verified the CLI by hand, and
228
+ documented the design decisions in detail. Every one of those steps was
229
+ performed **correctly**, and the work still never shipped.
230
+
231
+ Diligence applied to the wrong axis. The agent verified *the code* and
232
+ assumed *the delivery*. A standard that only says "be more careful" cannot
233
+ fix that, because the agent was already careful.
234
+
235
+ So this standard does three things that diligence alone did not:
236
+
237
+ 1. **It names the exact state** β€” LOCAL or LANDED β€” so there is no ambiguity
238
+ to resolve by feel.
239
+ 2. **It replaces the judgement with a command** that exits non-zero.
240
+ 3. **It forces the evidence into the report**, so the next reader (human or
241
+ agent) can check instead of believing.
242
+
243
+ The rule exists because the cheapest possible fix for this class of failure
244
+ is not "try harder". It is "make the wrong thing impossible to say".
245
+
246
+ ---
247
+
248
+ ## 9. Related
249
+
250
+ - [Git Branching, Commits & SemVer](./git-workflow.md) β€” branch lifecycle, commit format, SemVer.
251
+ - [Agent Development Workflows & Phase Gates](./workflows.md) β€” the 5-phase pipeline; Phase 5 (Ship) depends on this gate.
252
+ - [DOX Hierarchy & Subtree Contracts](./dox-hierarchy.md) β€” the closeout checklist; step 5 runs this gate.
253
+ - [Execution & Cognitive Kernel](./execution-kernel.md) β€” judgment laws and the general evidence-before-claims doctrine.
@@ -38,13 +38,12 @@ The `./.memory` directory at the project root is the local persistent memory sto
38
38
 
39
39
  ## 3. Creed Native Context & Canonical LifeOS Sources
40
40
 
41
- When available on the system, agents reference these canonical LifeOS sources:
41
+ Agents reference these canonical sovereign Muse Memory sources:
42
42
 
43
- 1. `~/.config/LIFEOS/USER/PRINCIPAL/PRINCIPAL_IDENTITY.md` β€” Stable principal identity and preferences.
44
- 2. `~/.config/LIFEOS/USER/DIGITAL_ASSISTANT/DA_IDENTITY.md` β€” Muse and Agency Council roles, routing, and gates.
45
- 3. `~/.config/LIFEOS/USER/TELOS/PRINCIPAL_TELOS.md` β€” Mission, goals, strategies, and challenges.
46
- 4. `~/.config/LIFEOS/USER/CONFIG/OPERATIONAL_RULES.md` β€” Principal-specific operating rules.
47
- 5. `~/.config/LIFEOS/USER/PROJECTS.md` β€” Project routing and aliases.
43
+ 1. `~/.memory/USER.md` β€” Stable principal identity, telos, agency council roles, preferences, and portfolio routing.
44
+ 2. `./CURRENT.md` β€” Active working project constraints, invariants, and open loops.
45
+ 3. `~/.memory/` β€” Global long-term cognitive memory store (via `memory` MCP server).
46
+ 4. `./.memory/` β€” Project-scoped memory store.
48
47
 
49
48
  ### Durable-Memory Proposal Format
50
49
  When a durable fact, preference, constraint, or recurring pattern is learned, propose a narrow Markdown diff:
@@ -35,7 +35,7 @@ Before executing high-risk system commands:
35
35
  Before finalizing commits, merges, or deliverables, run the Vibeguard security scan:
36
36
 
37
37
  ```bash
38
- bun ~/.config/LIFEOS/runtime/TOOLS/SecretScan.ts .
38
+ memory scan-secrets .
39
39
  ```
40
40
 
41
41
  If the scan reports any credential leakage or pattern matches, resolve them immediately before declaring completion.
@@ -44,14 +44,19 @@ To balance velocity with rigor, overhead is strictly proportional to task risk:
44
44
 
45
45
  ### Phase 4: πŸ›‘οΈ Review & Hardening (Nexus Quality Gate)
46
46
  - Run targeted automated tests (`bun test` / `vitest`).
47
- - Run the Vibeguard SecretScan (`bun ~/.config/LIFEOS/runtime/TOOLS/SecretScan.ts .`).
47
+ - Run the Vibeguard SecretScan (`memory scan-secrets .` or `bun run src/cli.ts scan-secrets .`).
48
48
  - Verify WCAG 2.2 AA accessibility and responsive mobile breakpoints.
49
49
 
50
50
  ### Phase 5: 🚒 Ship & Archive (Crew)
51
51
  - Create structured Conventional Commits following the Git standard.
52
+ - **Run the Landing Gate**: `bun run check:landed`. Phase 5 is not complete
53
+ until it exits `RESULT: LANDED`. A green test suite is not a delivery β€”
54
+ the work must be reachable from `origin/dev`. See
55
+ [The Landing Gate](./landing-gate.md).
52
56
  - **Archive Work Artifacts**: Move completed plans or temporary scratchpads into `.agents/archive/` using the timestamped format `[title]-[YYYYMMDD-HHMMSS].md`.
53
- - **DOX Pass**: Update `./.agents/context/current.md` and the nearest owning `AGENTS.md`.
57
+ - **DOX Pass**: Update `./.agents/context/current.md` and the nearest owning `AGENTS.md`. The close-out may only write "landed" language under a *"Recently Landed Waves"* heading **after** the gate has passed; until then the entry says **local**.
54
58
  - **Memory Update**: Persist newly confirmed invariants or architectural decisions into `./.memory`.
59
+ - **Report**: the final report to the user carries the Remote State block from [The Landing Gate](./landing-gate.md) Β§5.
55
60
 
56
61
  ---
57
62
 
@@ -63,5 +68,6 @@ To balance velocity with rigor, overhead is strictly proportional to task risk:
63
68
  a. `updatedocs` skill β€” complete mode (doc↔code drift sync; CHANGELOG/docs alignment).
64
69
  b. `updateagents` skill β€” all modes (AGENTS.md + `.agents/` context synchronization).
65
70
  c. `git` skill β€” end-to-end, **stopping before release**. Release cutting is principal-confirmed only; never auto-release.
71
+ d. **The Landing Gate** β€” `bun run check:landed`. This is the step that proves the merge actually happened on the remote rather than being assumed. See [The Landing Gate](./landing-gate.md).
66
72
  4. **Docs upkeep.** Update CHANGELOG.md, CONTRIBUTING.md, and credits (package.json author/contributors, README credits) whenever required: behavioral changes, new dependencies, new contributors, process changes.
67
73
  5. Gates unchanged: green per commit, Why/What/Verification commit bodies, zero secret exposure, English only.