Skip to content

docs(scaffold): map Dashboard/Base ownership and audit generated output (#674) - #675

Merged
LudoLoops merged 1 commit into
mainfrom
674-dashboard-base-composition
Oct 26, 2026
Merged

LudoLoops merged 1 commit into
mainfrom
674-dashboard-base-composition

Conversation

@LudoLoops

Copy link
Copy Markdown
Contributor

What changed and why

Phase 1 of #674, as the issue's delivery plan asks: map ownership and verify the generated output before touching the composer. No behaviour change — one document and one deterministic audit.

What the mapping found (measured, not assumed)

Both modes were rendered into disposable projects (Dashboard with the official foundation seeded):

  • Base delivers 67 files; Dashboard delivers all of them (0 missing) plus 53 of its own.
  • Exactly 11 shared files differ, each with an owner: upgrade baseline, project manifest, AGENTS.md, llms.txt, package.json, the official-owned src/app.d.ts, the additive ui/ + icon barrels, the Dashboard root +layout.svelte / +layout.ts (prerender off, Fix sveltekit-adapter integration on modern config layouts #439), and the sequential DB vitest.config.ts.
  • src/hooks.server.ts is a safe extension: the official Better Auth handler and Paraglide middleware survive, the SVForge policy is added on top (asserted, not just read).
  • One dependency divergence remains: vitest is ^5.0.0 in Base, ^4.1.5 in Dashboard and in the optional uploads testpack. The generated output otherwise shares every declared version (Skeleton, Svelte, Kit, Vite, Paraglide, Tailwind, TypeScript).

Deliverables

  • packages/svforge/docs/dashboard-composition.md — ownership matrix (Base / Dashboard / official-owned / mode artifacts), the override table with reasons, the dependency-authority section with the single known divergence, and the three delivery phases.
  • tests/dashboard-base-composition.test.ts — the acceptance criterion “deterministic audit that fails on unexplained differences”: it re-renders both modes and fails when a Base file is missing from Dashboard, when content differs outside the documented list, when a shared version diverges outside the known exception, when the reference manifests or the uploads testpack disagree with their mode's declarations, or when the doc stops explaining an override. Red-checked: dropping one entry from the override list makes it fail; restoring makes it pass.

Tests and checks

Gate Result
bun run test 147 files / 1457 tests passed (includes the new audit)
Audit red/green fails with an unlisted difference, passes on the committed tree
bun run lint / bun run typecheck clean
bun run build:all OK
bash scripts/test-scaffold.sh base passed
bash scripts/test-scaffold.sh dashboard not run — needs a reachable PostgreSQL (recorded limitation, unchanged from before)
bun run graphify:update stable across repeat runs

No Changeset: documentation + test only, no publishable package change (the doc lives in the repo, not in the npm payload).

Remaining work on #674 (issue stays open)

  • Phase 2 — composition refactor: one canonical Base delivery operation invoked by the Dashboard mode (single tracking/manifest computation, explicit official-owned exclusions) instead of the replay in modes/dashboard.ts.
  • Phase 3 — harmonise + validate: remove the vitest divergence (DB suites on the shared version, templates/testpack aligned, lockfile/Docker builder refreshed) and run the real Base + Dashboard scaffolds including the PostgreSQL integration profile.

Part of #674 — phase 1 only; the audit lists will be updated deliberately as phases 2 and 3 land.

…ut (#674)

Phase 1 of #674 — map ownership, then make the invariant executable. No
composer behaviour changes.

Findings from rendering both modes into disposable projects (Dashboard with
the official foundation seeded):

- Base delivers 67 files; Dashboard delivers all of them (0 missing) and adds
  53 of its own.
- Exactly 11 shared files differ, each with an owner: upgrade baseline,
  manifest, AGENTS.md, llms.txt, package.json, the official-owned
  `src/app.d.ts`, the additive ui/icon barrels, the Dashboard root
  `+layout.svelte` / `+layout.ts`, and the sequential DB `vitest.config.ts`.
- `src/hooks.server.ts` is a safe EXTENSION of the official output: the Better
  Auth handler and the Paraglide middleware survive, the SVForge policy is
  added on top.
- One dependency divergence remains: `vitest` is `^5.0.0` in Base but
  `^4.1.5` in Dashboard (and in the optional uploads testpack). Harmonising it
  is phase 3, because the sequential PostgreSQL suites must be validated on the
  shared version first — not a JSON edit.

- `packages/svforge/docs/dashboard-composition.md` records the ownership
  matrix (Base / Dashboard / official-owned / mode artifacts), the override
  table with reasons, the dependency authority and the remaining divergence,
  and the three delivery phases.
- `tests/dashboard-base-composition.test.ts` makes it deterministic: both
  modes are rendered, and the test fails on any Base file missing from
  Dashboard, on any content difference outside the documented override list,
  on any dependency divergence outside the single known exception, when the
  reference manifests or the uploads testpack disagree with their mode's
  declarations, and when the doc stops explaining an override. Removing one
  entry from the override list fails the audit (verified red/green).

Verification: full suite 147 files / 1457 tests; lint; typecheck; baseline
`base` scaffold profile; graphify stable. `dashboard` scaffold profile needs a
reachable PostgreSQL and was NOT run in this phase (recorded limitation).

Part of #674 — phase 1 only; the issue stays open for the composition refactor
(phase 2) and the dependency harmonisation + end-to-end scaffolds (phase 3).
@LudoLoops
LudoLoops merged commit 705789f into main Oct 26, 2026
3 checks passed
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