musememory 2.3.0 β†’ 3.0.1

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 (43) hide show
  1. package/.agents/artifacts/2026-10-20-lifeos-memory-distillation-plan.md +865 -0
  2. package/.agents/artifacts/HANDOFF.md +22 -0
  3. package/.agents/artifacts/audit-and-realigned-roadmap-20261015.md +152 -0
  4. package/.agents/artifacts/bench-graph-baseline.json +519 -0
  5. package/.agents/artifacts/bench-graph-baseline.md +139 -0
  6. package/.agents/artifacts/brief-dayos-inspired-site-redo.md +89 -0
  7. package/.agents/artifacts/handoff-20261015-143202.md +109 -0
  8. package/.agents/artifacts/plan-competitor-adaptation-dashboard-graph.md +99 -0
  9. package/.agents/artifacts/session-report-2026-10-01-memory-gaps-and-website.md +94 -0
  10. package/.agents/artifacts/wave-3-sdd-ledger.md +18 -0
  11. package/.agents/artifacts/wave-4-sdd-ledger.md +18 -0
  12. package/.agents/context/architecture.md +1 -0
  13. package/.agents/context/current.md +222 -3
  14. package/.agents/context/decisions.md +4 -0
  15. package/.agents/context/deep-research-agentic-memory-evolution.md +261 -0
  16. package/.agents/context/deep-research-memory-adaptation-2026-10.md +107 -0
  17. package/.agents/context/deep-research-memory-improvement-2026-10.md +420 -0
  18. package/.agents/context/deep-research-memory-mechanisms-2026-09.md +334 -0
  19. package/.agents/context/index.md +47 -2
  20. package/.agents/context/product.md +139 -73
  21. package/.agents/context/roadmap.md +369 -7
  22. package/.agents/context/ticket-plan.md +553 -0
  23. package/.agents/plans/2026-10-20-wave-22-failure-attribution-negative-mining-design.md +198 -0
  24. package/.agents/plans/2026-10-20-wave-22-failure-attribution-negative-mining-plan.md +274 -0
  25. package/.agents/plans/EVOLUTION_PLAN.md +351 -0
  26. package/.agents/plans/local-embeddings-llama-cpp.md +37 -0
  27. package/.agents/plans/recall-eval-harness.md +31 -0
  28. package/.agents/research/ecosystem-teardown-2026-10.md +289 -0
  29. package/.agents/research/research-brief-agent-memory-migrator.md +1 -1
  30. package/.agents/research/research-brief-walrus-memory-architecture.md +189 -0
  31. package/.agents/research/retirement-audit-2026-10.md +45 -0
  32. package/.agents/standards/README.md +42 -0
  33. package/.agents/standards/frontend-astro.md +111 -29
  34. package/.agents/standards/git-workflow.md +5 -0
  35. package/.agents/standards/workflows.md +13 -0
  36. package/README.md +300 -253
  37. package/claims.json +15 -0
  38. package/dist/index.js +20784 -9111
  39. package/docs/agent-reference.md +199 -0
  40. package/docs/cli-reference.md +263 -0
  41. package/docs/mcp-tool-matrix.json +121 -0
  42. package/package.json +30 -10
  43. package/schema.json +40 -2
@@ -0,0 +1,42 @@
1
+ # πŸ“š Standards Index
2
+
3
+ > **Reading order**: the root [`AGENTS.md`](../../AGENTS.md) is the router. It
4
+ > links the standards that apply to this repository. Everything else in this
5
+ > folder is retained but **not routed** β€” see "Unrouted standards" below.
6
+ >
7
+ > Load a standard on demand, not up front. Each one states what it governs and
8
+ > when to open it.
9
+
10
+ ## Routored from `AGENTS.md`
11
+
12
+ | Standard | Governs |
13
+ | :--- | :--- |
14
+ | [`execution-kernel.md`](./execution-kernel.md) | Judgment laws, refactoring discipline, code-complete standards, byte-capping. |
15
+ | [`security-vibeguard.md`](./security-vibeguard.md) | Secret isolation, the Destructive Command Gate, untrusted tool output. |
16
+ | [`system-design.md`](./system-design.md) | Domain modelling, resilience, migration rehearsal, schemas. |
17
+ | [`workflows.md`](./workflows.md) | Scaled tiers, the 5-phase pipeline, PR-per-feature and the post-merge sequence. |
18
+ | [`git-workflow.md`](./git-workflow.md) | Branch lifecycle, commit standards, SemVer. |
19
+ | [`dox-hierarchy.md`](./dox-hierarchy.md) | Reading order, child document shape, the closeout checklist, the pruning loop. |
20
+ | [`council-roles.md`](./council-roles.md) | Muse / Sol / Jasper / Crew / Nexus responsibilities and subagent dispatch policy. |
21
+ | [`memory-context.md`](./memory-context.md) | Context hygiene, the `.memory` store lifecycle, durable proposals. |
22
+ | [`frontend-astro.md`](./frontend-astro.md) | The `apps/website` stack: the `/musememory` base-path rule, generated assets, the a11y and visual gates. |
23
+
24
+ The brand and accessibility standards live in [`../brand/`](../brand/) and are
25
+ routed from the same place: `design.md`, `bem-conventions.md`, `a11y.md` and
26
+ `screenshots/README.md`.
27
+
28
+ ## Unrouted standards (retained, not applicable)
29
+
30
+ These files are kept for the day the stack changes. They are **not** linked
31
+ from `AGENTS.md` because following them today would lead an agent to build
32
+ something this repository does not have.
33
+
34
+ | Standard | Why it is not routed |
35
+ | :--- | :--- |
36
+ | [`frontend-nextjs.md`](./frontend-nextjs.md) | The site is Astro with static output. There is no Next.js, no React Server Components, and no SSR adapter in this repository. |
37
+ | [`backend-workers-hono.md`](./backend-workers-hono.md) | Hono is not a dependency. The engine is a Bun/TypeScript CLI and an MCP stdio server; there is no HTTP worker tier. |
38
+ | [`tech-stacks.md`](./tech-stacks.md) | A general catalogue of stacks rather than a standard. Useful when choosing a new dependency, not when implementing in this one. |
39
+
40
+ If a future change adopts one of these stacks, re-link the file from
41
+ `AGENTS.md` **and** rewrite it against the real codebase before it is used β€”
42
+ most generic standards assume a different layout than this repository has.
@@ -1,50 +1,132 @@
1
1
  # πŸš€ Astro Frontend Engineering Standards
2
2
 
3
- > **Runtime Target**: Astro v7.2.x Β· Bun / Node pinned runtime Β· TypeScript Strict Β· `@astrojs/cloudflare`
3
+ > **Runtime Target**: Astro v7.3.x Β· Bun / Node runtime Β· TypeScript Strict
4
+ > **Applies to**: `apps/website/` β€” the Muse Memory marketing and documentation site.
4
5
 
5
6
  ---
6
7
 
7
- ## 1. Architectural Conventions
8
+ ## 1. Project Shape (verified against this repo)
8
9
 
9
- ### Static-First & Island Hydration
10
- - **Static by Default**: All `.astro` components render to static HTML at build time or server edge.
11
- - **Selective Hydration**: Hydrate client islands with `client:*` directives ONLY when user interaction requires it:
12
- - `client:load` β€” Critical above-the-fold interactive components (e.g., global navigation toggle, hero configurator).
13
- - `client:idle` β€” Lower-priority interactive widgets (e.g., search modal, newsletter popup).
14
- - `client:visible` β€” Below-the-fold components (e.g., heavy testimonials carousel, interactive calculator).
15
- - `client:media` β€” Components conditional on media queries.
10
+ | Fact | Value | Source of truth |
11
+ | :--- | :--- | :--- |
12
+ | Framework | Astro `^7.3.5` | `apps/website/package.json` |
13
+ | Output | `static` (no SSR adapter) | `apps/website/astro.config.mjs` |
14
+ | Base path | `/musememory` (GitHub Pages) | `apps/website/astro.config.mjs` |
15
+ | Site origin | `https://harshsinghmp.github.io` | `apps/website/astro.config.mjs` |
16
+ | Styling | Plain CSS with design tokens (no Tailwind, no UnoCSS) | `apps/website/src/styles/global.css` |
17
+ | Motion | CSS keyframes + one inlined `IntersectionObserver` script | `apps/website/src/scripts/motion.ts` |
18
+ | Tests | `bun test` (axe-core + Playwright audits) | `apps/website/scripts/audit-*.ts` |
16
19
 
17
- ### Content Collections & Validation
18
- - Content collections live strictly in `src/content/`.
19
- - Every collection must define a strict **Zod schema** in `src/content/config.ts`.
20
- - Validate all incoming parameters, frontmatter, and external data at the collection boundary.
20
+ > The generic Astro standard assumes `@astrojs/cloudflare`, Tailwind v4 and
21
+ > Motion.dev. **This project does not use them.** Do not introduce an SSR
22
+ > adapter, a utility CSS framework, or a JS animation runtime to solve a
23
+ > problem the current stack already solves.
21
24
 
22
25
  ---
23
26
 
24
- ## 2. Styling & Motion Standards
27
+ ## 2. Architectural Conventions
25
28
 
26
- - **Styling**: UnoCSS v66.x or Tailwind CSS v4 utility classes inline. Extract to a dedicated component or BEM class when a utility pattern is repeated 3+ times.
27
- - **Design Tokens**: Consume design tokens from `./.agents/brand/tokens/` or CSS variables. Never introduce arbitrary raw hex codes or ad-hoc pixel values.
28
- - **Animations**: Use **Motion.dev** (Framer Motion v12+). All animations must respect `@media (prefers-reduced-motion: reduce)`.
29
+ ### Static by default
30
+ Every page renders to static HTML at build time. There is no client framework
31
+ and no hydration directive (`client:load` and friends are not used β€” the site
32
+ ships zero framework JS). Interactive behaviour is progressive enhancement:
33
+ the navigation menu is a `<details>` element, the FAQ is `<details>`, the
34
+ reveal animation is CSS plus one observer.
35
+
36
+ ### The base path is not optional
37
+ The site is served from `/musememory/`. **Every** internal URL must be built
38
+ from `import.meta.env.BASE_URL` or it will resolve on the domain root and
39
+ 404. A root-absolute `/favicon.svg` is a bug, not a style choice.
40
+
41
+ ```astro
42
+ <a href={`${import.meta.env.BASE_URL}/docs`}>Docs</a>
43
+ ```
44
+
45
+ ### Shared components, not copied markup
46
+ Navigation, footer and the logo live in `src/components/`. They were
47
+ copy-pasted per page and had already drifted (the 404 page had no nav at
48
+ all). If a page needs a nav variant, add a prop β€” do not fork the component.
49
+
50
+ ### The published numbers are generated
51
+ `claims.json` (repository root) holds every countable claim, generated from
52
+ `src/` by `scripts/generate-claims.ts`. The site imports it:
53
+
54
+ ```astro
55
+ import claims from "../../../../claims.json";
56
+ ```
57
+
58
+ Never hand-type a count, a tool total or a test count into a page. A test
59
+ (`test/marketing_claims.test.ts`) fails the build if the prose and the code
60
+ disagree.
61
+
62
+ ### Content collections
63
+ `src/content/` does not exist in this project. If it is ever introduced, every
64
+ collection must define a strict schema and validate at the collection
65
+ boundary.
29
66
 
30
67
  ---
31
68
 
32
- ## 3. Testing & Code Quality
69
+ ## 3. Styling & Motion Standards
33
70
 
34
- - **Testing**: Vitest for unit and component tests; Playwright for end-to-end user journeys. Tests live adjacent to source files (`*.test.ts`).
35
- - **No Network in Tests**: Never run unit tests that make real outbound network requests. Mock at the `fetch` boundary.
36
- - **Type Strictness**: No `any` or forced casts (`as unknown as Type`). Fix the root interface.
37
- - **Clean Logging**: Never commit `console.log`. Use structured logging or logger utilities.
71
+ - **Tokens only**: consume the CSS custom properties in `global.css` or the
72
+ JSON in `./.agents/brand/tokens/`. Never introduce an arbitrary hex code.
73
+ - **Text colour is restricted**: only `--text`, `--text-dim` and `--text-faint`
74
+ may carry text. The depth palette (`--plasma`, `--indigo`, `--edge-*`) is
75
+ decorative and has no contrast obligation. Every text token is audited
76
+ against WCAG 2.2 AA by `scripts/audit-a11y.ts`.
77
+ - **Class naming**: BEM per `./.agents/brand/bem-conventions.md`.
78
+ - **Animations** must respect `@media (prefers-reduced-motion: reduce)`.
79
+ - **The reveal contract**: an element that is on screen must be visible. The
80
+ `IntersectionObserver` uses `threshold: 0` and `rootMargin: "0px"` so the
81
+ trigger boundary is exactly the viewport. A ratio threshold silently
82
+ strands any `.reveal` taller than the viewport.
83
+ - **`transform` is owned by one rule**: `.reveal` and `.tilt` both write
84
+ `transform`, so they must be composed in a single declaration. Never split
85
+ them across two selectors.
38
86
 
39
87
  ---
40
88
 
41
- ## 4. Standard Commands
89
+ ## 4. Testing & Code Quality
42
90
 
91
+ - **Accessibility gate**: `bun run --cwd apps/website scripts/audit-a11y.ts`
92
+ β€” axe-core on every page (zero critical/serious) plus a computed-contrast
93
+ check of every token pair.
94
+ - **Visual gate**: `bun run --cwd apps/website scripts/audit-visual.ts` β€”
95
+ 375 / 768 / 1280 viewports on every page: horizontal overflow, console
96
+ errors, the reveal runtime, and the nav CTA.
97
+ - **No network in tests**: mock at the `fetch` boundary.
98
+ - **Type strictness**: no `any` and no `as unknown as T`. Fix the interface.
99
+ - **No `console.log`** in committed code.
100
+
101
+ ### Assets are generated, never hand-edited
43
102
  ```bash
44
- bun install # Install dependencies
45
- bun dev # Local dev server
46
- bun build # Production build (@astrojs/cloudflare)
47
- bun test # Run Vitest suite
48
- bun lint --fix # Run linter with autofix
49
- bun typecheck # Run tsc --noEmit
103
+ bun run --cwd apps/website brand # favicon, OG card, twitter card, banner
104
+ bun run --cwd apps/website build # astro build + llms.txt / llms-full.txt
105
+ ```
106
+ Brand PNGs are rasterised from SVG with resvg using the fonts already vendored
107
+ in `showreel-hf/assets/fonts`, so the output is deterministic and needs no
108
+ browser download. `llms.txt` and `llms-full.txt` are generated from the built
109
+ HTML, so the agent-readable layer cannot drift from the site.
110
+
111
+ ---
112
+
113
+ ## 5. Standard Commands
114
+
115
+ ```bash
116
+ # From the repository root
117
+ bun run site:dev # astro dev
118
+ bun run site:build # astro build + llms.txt / llms-full.txt
119
+ bun run site:preview # preview the built site
120
+
121
+ # From apps/website
122
+ bun run dev # astro dev
123
+ bun run build # astro build && build-llms-txt.ts
124
+ bun run brand # regenerate brand assets
125
+ bun run llms # regenerate the agent-readable text layer
126
+
127
+ # Quality gates
128
+ bun run --cwd apps/website scripts/audit-a11y.ts
129
+ bun run --cwd apps/website scripts/audit-visual.ts
130
+ bun test # the whole repository suite
131
+ bunx tsc --noEmit # type check
50
132
  ```
@@ -87,6 +87,11 @@ All releases and git tags must follow strict `vX.Y.Z` semantic versioning:
87
87
  - Sync `package.json` `"version"` with the `vX.Y.Z` tag in the release commit.
88
88
  - Stage on `release/vX.Y.Z` from `dev` β†’ merge to `master` β†’ back-merge to `dev`.
89
89
  - CI publishes on `v*` tag push (`git tag -a vX.Y.Z -m "release: vX.Y.Z"`). Never publish manually.
90
+ - **README "What's New" Rule**:
91
+ - Keep only the current release/feature highlights in `README.md` under `## πŸš€ What's New`.
92
+ - Do NOT accumulate historical version blocks (`### vX.Y.Z`).
93
+ - Do NOT write version headers (`### vX.Y.Z`) inside `## πŸš€ What's New`; format as a clean, plain-English bullet list understandable to non-technical users.
94
+ - Detailed versioned change history lives strictly in `CHANGELOG.md`.
90
95
 
91
96
  ---
92
97
 
@@ -52,3 +52,16 @@ To balance velocity with rigor, overhead is strictly proportional to task risk:
52
52
  - **Archive Work Artifacts**: Move completed plans or temporary scratchpads into `.agents/archive/` using the timestamped format `[title]-[YYYYMMDD-HHMMSS].md`.
53
53
  - **DOX Pass**: Update `./.agents/context/current.md` and the nearest owning `AGENTS.md`.
54
54
  - **Memory Update**: Persist newly confirmed invariants or architectural decisions into `./.memory`.
55
+
56
+ ---
57
+
58
+ ## 3. Mandatory PR & Post-Merge Pipeline (principal rule, 2026-10-15)
59
+
60
+ 1. **One PR per feature.** Every feature or fix lands on its own branch (`feat/*`, `fix/*`) off `dev`. Never commit directly to `main`, `master`, or `dev`.
61
+ 2. **Per-phase subagent worktrees.** Every phase starts by dispatching multiple subagents, each in its own worktree, doing the work there. The orchestrator reconciles terminal results back into the feature branch. Execution model: one branch per ticket (`fix/T-xxx`), full gate per commit (`bun test` + `tsc --noEmit` + `bun run build`).
62
+ 3. **After feature work merges to `dev`, run in order, end-to-end:**
63
+ a. `updatedocs` skill β€” complete mode (doc↔code drift sync; CHANGELOG/docs alignment).
64
+ b. `updateagents` skill β€” all modes (AGENTS.md + `.agents/` context synchronization).
65
+ c. `git` skill β€” end-to-end, **stopping before release**. Release cutting is principal-confirmed only; never auto-release.
66
+ 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
+ 5. Gates unchanged: green per commit, Why/What/Verification commit bodies, zero secret exposure, English only.