Skip to content

docs: repo architecture + CONTRIBUTING (aligned to module layout)#16

Merged
Lyther merged 4 commits into
mainfrom
docs/repo-arch-contributing
Jul 2, 2026
Merged

docs: repo architecture + CONTRIBUTING (aligned to module layout)#16
Lyther merged 4 commits into
mainfrom
docs/repo-arch-contributing

Conversation

@Lyther

@Lyther Lyther commented Jul 2, 2026

Copy link
Copy Markdown
Owner

What

Adds the repo-level docs/architecture.md and CONTRIBUTING.md (plus the synapse/grimoire architecture docs), aligned to the current scripts/ module layout after the god-file decomposition landed in #15.

This branch predated #15, so main was merged in first and the docs reconciled to reality.

Docs alignment (vs the pre-refactor draft)

  • architecture.md — Source tree: rewritten from "agent-surface.mjs = the whole compiler" to the real map — CLI entry + 20 modules under scripts/agent-surface/ (engine targets.mjs; emit render/merge/postprocess/jsonc; install, check, workflow, evidence, doctor; source readers; foundations).
  • Scope / "single script" claims → "zero-dependency ES modules behind one CLI entry".
  • Decisions: "single zero-dependency script" → "zero-dependency ES modules"; note the decomposition was verified byte-identical against pre-refactor build.
  • Risks: dropped the now-resolved "one ~4k-line file / revisit modularization".
  • CONTRIBUTING: "add a target/MCP" steps repointed at targets.mjs / render.mjs / roots.mjs / merge.mjs.

Verification

  • npm run check — pass
  • npm test — pass
  • Every module named in the Source tree exists (20 modules confirmed); architecture.md relative links resolve.

by mass-energy equivalence

Lyther added 4 commits July 1, 2026 12:58
…e Linux, roadmap reconcile

- docs/architecture.md: the compiler itself (pipeline, registries, producers, install/strict-sync,
  merge model, gates) — the repo-level architecture doc it lacked.
- CONTRIBUTING.md: the contributor loop (add command/rule/subagent/target/MCP/pack), gates, rules.
- mcps/grimoire/test/smoke/README.md: living per-host launch matrix (operator-recorded during use).
- synapse Linux: document lazy-start as the supported mode + optional reference systemd user unit
  (deploy/systemd/synapse-sidecar.service).
- Reconcile both MCP roadmaps to reality: check off everything shipped in PR #14 (P4.1/3/5,
  P5.1/4/5/6); mark per-host smoke [~] deferred-continuous; leave only the git tags open.
  Deferred-by-design items remain tracked in the Later sections.
- Adjusted the formatting of the prerequisites section in mcps/grimoire/test/smoke/README.md to ensure clarity and consistency. The bullet point for `manifest.json` now correctly uses a hyphen instead of a plus sign.
The god-file decomposition (merged in #15) split scripts/agent-surface.mjs into a
CLI entry + 20 focused modules under scripts/agent-surface/. Reconcile the stale
docs: rewrite the architecture Source Tree to the real module map, update the
scope/'single script' claims, refresh the modularity decision, drop the resolved
'one ~4k-line file' risk, and repoint the CONTRIBUTING 'add a target/MCP' steps
at targets.mjs/render.mjs/roots.mjs/merge.mjs.

by mass-energy equivalence
@Lyther
Lyther merged commit 0d54e32 into main Jul 2, 2026
2 checks passed
@Lyther
Lyther deleted the docs/repo-arch-contributing branch July 2, 2026 05:41
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