Commit Graph
5 Commits
Author SHA1 Message Date
fargo 8d258e1d07 docs: finalize ri-4-001 scratchpad with verification evidence (#1275)
ci/woodpecker/pr/ci Pipeline was successful
2026-08-17 16:48:39 -05:00
fargo 540d6f17d1 docs: ri-4-001 scratchpad for PRD authority card (#1275) 2026-08-17 16:46:17 -05:00
fargo a23826ccba test(mosaic): RI-N3 contract specs for prdy and mission --plan adapters (#1275)
- import paths: created/draft, typed refusal creates nothing, conflict
  refusal leaves bytes untouched, --accept-successor persists v+1
- export writes the labeled generated view; authority unchanged
- mission --plan persists linkage readable by a fresh service instance;
  mission path and prdy path share the docs/prdy store with stable
  ids/versions
2026-08-17 16:46:14 -05:00
fargo 2c5d208691 feat(mosaic): route prdy and mission --plan through PrdService (#1275)
- mosaic prdy becomes a thin adapter: --init/--update (wizard for TTY,
  service otherwise), --import with --accept-successor, --export
- mosaic mission --plan persists the mission↔PRD linkage (mission id +
  version marker, PRD id + version) through the service instead of invoking
  the wizard as a second writer; non-TTY runs create non-interactively
2026-08-17 16:46:06 -05:00
fargo e291bfb837 feat(prdy): add PrdService as the single PRD authority surface (#1275)
- PrdService owns create/read/update/link/import/export; wizard and package
  CLI become prompt layers over the service (no second writer path)
- PRD documents gain a content version and a missions linkage array persisted
  in the YAML authority store (survives restart); linkage writes do not bump
  the content version
- exportMarkdown renders a labeled generated view (id + version + do-not-edit
  header) that no code path reads back; the store loads .yaml/.yml only
- importDocument validates structure with zod before anything else, persists
  valid imports as draft (validity is not approval), and refuses conflicts
  with a typed PrdImportConflictError carrying a proposed successor; the
  original document stays byte-identical until acceptSuccessor
- raw store writers (createPrd/savePrd) are no longer exported from the
  package entry point
2026-08-17 16:46:00 -05:00