Repository navigation
docs(scaffold): map Dashboard/Base ownership and audit generated output (#674) - #675
Merged
Merged
Conversation
…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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
AGENTS.md,llms.txt,package.json, the official-ownedsrc/app.d.ts, the additiveui/+ icon barrels, the Dashboard root+layout.svelte/+layout.ts(prerender off, Fix sveltekit-adapter integration on modern config layouts #439), and the sequential DBvitest.config.ts.src/hooks.server.tsis a safe extension: the official Better Auth handler and Paraglide middleware survive, the SVForge policy is added on top (asserted, not just read).vitestis^5.0.0in Base,^4.1.5in 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
bun run testbun run lint/bun run typecheckbun run build:allbash scripts/test-scaffold.sh basebash scripts/test-scaffold.sh dashboardbun run graphify:updateNo 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)
modes/dashboard.ts.vitestdivergence (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.