T-PARC-sdf-adopt-apply-driftreport
State: planning/draft · Impact: medium · Complexity: medium
Finish the adopt flow: the Apply section, the Plan tab, the adopted-mode drift report and the preview pane tabs.
The shell stubs Apply; actionSetupProject is called only through useProjectSetup, and the
preview pane has no tabs.
Proposed
Section titled “Proposed”Apply calls actionSetupProject through useProjectSetup (keeping its generation counter), shows
the Plan tab on DPathChangeTree, and the adopted-mode /adopt renders a drift report. The preview
pane tabs (Files, sdlc.yaml, Model, Routing, Journal) reflect the section drafts.
Approach
Section titled “Approach”- Fill the Apply section and Plan tab on
DPathChangeTree; keep theuseProjectSetupgeneration counter. - Add the adopted-mode drift report to
/adopt. - Wire the preview pane tabs to the section drafts.
- Add stories Apply and DriftReport.
| Area | Note |
|---|---|
solutions/ontological/desktop/src-nuxt/app/components/adopt/sections/ApplySection.vue | Apply |
solutions/ontological/desktop/src-nuxt/app/components/adopt/AdoptPreviewPane.vue | tabs |
solutions/ontological/desktop/src-nuxt/app/composables/useProjectSetup.ts | consumed, generation counter kept |
solutions/ontological/desktop/src-nuxt/app/pages/adopt.vue | drift report mode |
Acceptance criteria
Section titled “Acceptance criteria”- AC-1: In fixture mode a project is adopted end to end: sections, Apply, then
/adoptshows a drift report. - AC-2: The generation counter still discards stale setup results.
- AC-3: Stories Apply and DriftReport exist.
- AC-4:
moon run sdf:checkandmoon run sdf:testpass, run detached one at a time;nuxi typecheckand vue-tsc are never run locally (CI typechecks). - AC-5: Every new story renders at the
tauriMediumviewport in light and dark, and a screenshot pair is committed underdocs/screenshots/sdf-adopt-apply-driftreport/{light,dark}.pngand embedded in the PR body. - AC-6: Only
--d-*tokens, no raw colors; D* components come from@determined/ui;app/generated/*,app.vue,nuxt.config.tsandpackage.jsonare untouched unless this task says so. - AC-7: Fixture timestamps are constants; any force layout has a deterministic seed and a cooldown.
Out of scope
Section titled “Out of scope”- Real apply backend beyond the existing
actionSetupProject.
Dependencies
Section titled “Dependencies”- Depends on
T-R0S1,T-511UandT-T425.
Discovery context
Section titled “Discovery context”- Plan:
/Users/sksizer/.claude/plans/toasty-soaring-ullman.md(the adoption wizard and operator screens, built in SDF) andN-6DUQ. - Control spec:
docs/planning/strategy/wizard-prototype.html; strategy: N-HETB-adopting-a-project. - Rules every agent follows are in the plan and the shared acceptance criteria above; the derive step later replaces fixtures with generated transport.
Depends on
Section titled “Depends on”T-R0S1, T-511U, T-T425