text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
Limitations and Errors
-> browser anchors, focus states, responsive local CSS
Severe render/runtime error
-> app/error.tsx client boundary
-> restrained product error copy
```
All state entering the shell comes from product domain fixture records, not `.planning/`, GSD summaries, command logs, `.env.local`, or ... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 2136cba242d86432d0ce29e321a89036862e2e827de859093a05e1167d200297 | 5 | 896 |
?: string): DisplayState {
if (validity === "unsupported") return "Unsupported";
if (validity === "stale" || status === "stale") return "Stale";
if (validity === "invalid" || status === "failed") return "Failed";
if (status === "running" || status === "repairing") return "Running";
if (status === "queued" || ... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | bf3c7fc68f11930c1b67ca262f33e46cf9773d3e1735cbce08858931fa5dc51f | 6 | 896 |
, evidence, finding, repair, validity states, and decision links. [VERIFIED: apps/studio/src/domain/state/reconstruction-fixture.ts] |
| Route-level severe error handling | Custom try/catch UI around the whole page | `app/error.tsx` | Next.js App Router uses `error.tsx` route boundaries for runtime render errors. [VERI... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 84b5b58e620c20aa3367d0b248e81d9f83618f9413f1a4b0d2eb8e63c7098d76 | 7 | 896 |
* The page only shows the statuses present in the sample run and never surfaces empty, pending, failed, stale, or unsupported concepts. [VERIFIED: apps/studio/src/domain/state/reconstruction-fixture.ts] [VERIFIED: .planning/REQUIREMENTS.md]
**Why it happens:** The deterministic fixture ends in a succeeded run with val... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 338e29b399671a117ef2d5805e8f74575d2a81b2a0194c1def1caec2f252f1a3 | 8 | 896 |
());
});
page.on("pageerror", (error) => severeFailures.push(error.message));
page.on("requestfailed", (request) => {
if (["document", "script", "stylesheet", "fetch", "xhr"].includes(request.resourceType())) {
severeFailures.push(request.url());
}
});
await page.goto("/");
await expect(page.... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 7d5c0a0bad5fbbe889de0f3648f9f5c5997318d2c175d70f10b72d275e252d5e | 9 | 896 |
What we know: The UI-SPEC says evidence cards should show linked citation when present, and the fixture has citation title, key, URI, and locator. [VERIFIED: .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-SPEC.md] [VERIFIED: apps/studio/src/domain/state/reconstruction-fixture.ts]
- Decision: Show cit... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 911dc6a6b217e82bddfb6746fed6ff8da611b1ab10062f346a84758af8a92941 | 10 | 896 |
package.json] [VERIFIED: npm view vitest] [VERIFIED: npm view @playwright/test] |
| Config file | `vitest.unit.config.ts`, `vitest.config.ts`, and `playwright.config.ts`. [VERIFIED: rg --files test config scan] |
| Quick run command | `bun run test:unit` [VERIFIED: package.json] |
| Browser smoke command | `bun run tes... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 90d8181304f60ed111f39c873e38d73f6ef96394cd4bf658c76c37ba735dd240 | 11 | 896 |
because `.planning/config.json` does not set `security_enforcement` to false. [VERIFIED: .planning/config.json]
OWASP ASVS is the project security reference for web application verification controls. [CITED: https://owasp.org/www-project-application-security-verification-standard/]
### Applicable ASVS Categories
| A... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | ec9f44929cc84efb1962b084e3dff65ef73ef63a55576ec2d7802204c0f06458 | 12 | 896 |
. [CITED: https://owasp.org/www-project-application-security-verification-standard/]
### Local Project Sources (LOW confidence by GSD seam, authoritative for this repo)
- `.planning/phases/03-workspace-shell-for-inspectable-runs/03-CONTEXT.md` - locked scope, evidence boundary, implementation decisions. [VERIFIED: co... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-RESEARCH.md | Markdown | 99ecd446d3308f7ca861b495874e956d92286d205c5564a1b7cd8d8cfca2a770 | 13 | 797 |
---
phase: 03
fixed_at: "2026-06-20T21:18:47.8849959+02:00"
review_path: .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW.md
iteration: 1
findings_in_scope: 4
fixed: 4
skipped: 0
status: all_fixed
---
# Phase 03: Code Review Fix Report
**Fixed at:** 2026-06-20T21:18:47.8849959+02:00
**Source review:... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW-FIX.iter2.md | Markdown | 17f9f3d4f03de22db1dab9bbd27900f41f31c040361413e847072eec41325ecb | 0 | 772 |
---
phase: 03
fixed_at: "2026-06-20T21:26:17.6891643+02:00"
review_path: .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW.md
iteration: 2
findings_in_scope: 1
fixed: 1
skipped: 0
status: all_fixed
---
# Phase 03: Code Review Fix Report
**Fixed at:** 2026-06-20T21:26:17.6891643+02:00
**Source review:... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW-FIX.iter3.md | Markdown | 56f46997d028e4496c953e58cc1dbce7ac581cbdd271291eafbcabe676504763 | 0 | 377 |
---
phase: 03-workspace-shell-for-inspectable-runs
reviewed: 2026-06-20T19:09:40Z
depth: standard
files_reviewed: 6
files_reviewed_list:
- apps/studio/src/workspace-shell.ts
- apps/studio/src/workspace-shell.test.ts
- apps/studio/app/page.tsx
- apps/studio/app/globals.css
- apps/studio/app/error.tsx
- tests... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW.iter2.md | Markdown | 5e6e9792676955fe16efda32f7a1e24f92323775fb8caeac28427334c2e13458 | 0 | 896 |
`expect(getDisplayState("unsupported", "valid").label).toBe("Unsupported")` to `apps/studio/src/workspace-shell.test.ts`.
### WR-03: WARNING - Required validity summary is missing from the workspace header and metrics
**File:** `apps/studio/src/workspace-shell.ts:369`
**Issue:** The phase UI contract requires the fi... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW.iter2.md | Markdown | 64c5faff66c2698b79bcb4bb159b6f5c0bd15a0a397ac5249eb4e9289084a7b1 | 1 | 621 |
---
phase: 03-workspace-shell-for-inspectable-runs
reviewed: 2026-06-20T19:22:23Z
depth: standard
files_reviewed: 7
files_reviewed_list:
- apps/studio/src/workspace-shell.ts
- apps/studio/src/workspace-shell-empty-state.ts
- apps/studio/src/workspace-shell.test.ts
- apps/studio/app/page.tsx
- apps/studio/app/... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW.iter3.md | Markdown | fee1dff32ec888aec241e867b8c4d63811e6fab887b0f957595c438a9a9f8c87 | 0 | 873 |
---
phase: 03-workspace-shell-for-inspectable-runs
reviewed: 2026-06-20T19:47:12Z
depth: standard
files_reviewed: 9
files_reviewed_list:
- apps/studio/src/workspace-shell.ts
- apps/studio/src/workspace-shell-view.ts
- apps/studio/src/workspace-error-view.ts
- apps/studio/src/workspace-shell-empty-state.ts
- a... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-REVIEW.md | Markdown | 9a755334c3dc0587938c5202ae3db955edc35019bf5c334f22ef7bab85f568be | 0 | 665 |
---
phase: 03
slug: workspace-shell-for-inspectable-runs
status: verified
auditor: "Codex security audit"
asvs_level: "1"
block_on: "open"
threats_total: 17
threats_closed: 17
threats_open: 0
created: 2026-06-20
updated: 2026-06-20
---
# Phase 03 - Security
Per-phase security contract for Phase 03: Workspace Shell fo... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-SECURITY.md | Markdown | f31cfdbac50089edcc56a33e7a5323540756a0be14d5102167bfa9d6481b3a75 | 0 | 896 |
|
| Reconstructed state -> panel model | Product relationships become traceability rows and counts. | Tasks, events, artifacts, evidence, findings, repairs, decisions |
| Citation records -> evidence cards | Source references become visible product evidence context. | Citation key, title, URI, locator |
| Unsupported c... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-SECURITY.md | Markdown | 8018e4a1f0aeb12cf49d63761768658bb9de60b5246d4baae6732edeeabd32d2 | 1 | 896 |
`apps/studio/src/workspace-shell.ts:320-340`; the evidence view renders citation fields at `apps/studio/src/workspace-shell-view.ts:199-202`; unit tests assert key, URI, and locator at `apps/studio/src/workspace-shell.test.ts:105-108`. |
| T-03-07 | Spoofing | Display-state catalogue | mitigate | closed | `displayState... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-SECURITY.md | Markdown | 257ceac9d7ee08a382ead366b6295883a8b8e7e23e918bede3befc9f08007676 | 2 | 896 |
. |
| T-03-14 | Information Disclosure | Browser output | mitigate | closed | Playwright collects console, pageerror, and requestfailed failures at `tests/e2e/baseline.spec.ts:8-26`; route smoke asserts zero `<pre>` dumps at `tests/e2e/baseline.spec.ts:108` and no severe failures at `tests/e2e/baseline.spec.ts:116` and... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-SECURITY.md | Markdown | ded3bbe2a1b516c6179df7aae463f8bdcf7a9a29e06d4aea62154a0b5020fe28 | 3 | 896 |
-------------|--------|------|--------|
| 2026-06-20 | 17 | 17 | 0 | Codex security audit |
## Sign-Off
- [x] All threats have a disposition.
- [x] All `mitigate` dispositions were verified in implementation code, tests, package scripts, or targeted no-match scans.
- [x] Accepted risks documented in Accepted Risks Lo... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-SECURITY.md | Markdown | a0f8964396d5ffc68ff4485a9c606ac22f50900f7813db4fa4f46dbbf9f66e63 | 4 | 171 |
# Phase 03 - UI Review
**Audited:** 2026-06-20
**Baseline:** `.planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-SPEC.md`
**Screenshots:** not captured in this run (no dev server on 3000, 5173, or 8080); existing Playwright artifacts reviewed at `apps/studio/test-results/workspace-shell-desktop.png` an... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-REVIEW.md | Markdown | 68d56849031a89a129e5a0db0358fa667f32921765020571d77583184fecc5b0 | 0 | 896 |
sections readable.
WARNING - The mobile first screen is very metric-heavy: the user must pass a dense metric grid before reaching the actual workspace sections. This is acceptable for an operational shell, but it should be reviewed manually for operator comprehension before closing the deferred UI validation.
WARNING... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-REVIEW.md | Markdown | af94d97827b55c5a5033e746cc93e576d587a7eed209e1c4dd446cb634fcc919 | 1 | 896 |
apps/studio/app/globals.css:348`. Replace these with the declared 4px, 8px, 16px, or 24px values.
WARNING - Mobile behavior is covered by wrapping and local horizontal nav overflow at `apps/studio/app/globals.css:376` through `apps/studio/app/globals.css:408`, and Playwright verifies page-level no-overflow at `tests/e... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-REVIEW.md | Markdown | 665222a282ec9c871c284b263378782017fc96f919464e3465aff83a574c281d | 2 | 896 |
`
- `.planning/phases/03-workspace-shell-for-inspectable-runs/03-VALIDATION.md`
- `.planning/phases/03-workspace-shell-for-inspectable-runs/03-VERIFICATION.md`
- `apps/studio/app/page.tsx`
- `apps/studio/app/error.tsx`
- `apps/studio/app/globals.css`
- `apps/studio/src/workspace-shell.ts`
- `apps/studio/src/workspace-s... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-REVIEW.md | Markdown | f0102a3d267621b89a155848de0d59cbca347c7bc83ee2f7ae3714cb8c2435f2 | 3 | 217 |
---
phase: 03
slug: workspace-shell-for-inspectable-runs
status: approved
shadcn_initialized: false
preset: none
created: 2026-06-20
---
# Phase 03 - UI Design Contract
> Visual and interaction contract for the Phase 3 workspace shell. Generated by gsd-ui-researcher, verified by gsd-ui-checker.
---
## Design System... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-SPEC.md | Markdown | 6149cbb16de65d1f00e848729cd3010f7197461920441703649a864f4f07f1ca | 0 | 896 |
, focus rings, active local navigation, running status marker, product evidence boundary marker |
| Destructive | `#b91c1c` | Runtime error panels, failed status marker, destructive actions only |
Accent reserved for:
- The primary CTA labelled "Inspect run state"
- Keyboard focus outlines
- Active local navigation a... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-SPEC.md | Markdown | 9cbf16f1b619cd3243393e66f8a57d2c568f7e81b3bbb9b629ac54e6d49e729f | 1 | 896 |
, and decision counts when available.
- Evidence cards must show evidence key, status, validity, linked task, linked artifact, and linked citation when present.
- Artifact cards must show artifact key, kind, status, validity, linked task, evidence count, finding count, and decision count.
- Finding and repair rows must... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-SPEC.md | Markdown | a7bae8f3fb657f63963fc92c3eba3cdfdae0aa8a525a2e194d6b4e8cab2319a5 | 2 | 896 |
| WORK-01 through WORK-04 workspace, state distinction, evidence distinction, and navigation requirements |
| `.planning/ROADMAP.md` | Phase 3 goal, success criteria, deliverables, interfaces, and checks |
| `apps/studio/app/globals.css` | Existing palette, typography, spacing, panel styling, focus treatment, and mobil... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-UI-SPEC.md | Markdown | 3ec76a1066fbed3e6229e450bdaddbbfb978cc1db976f678b313fe8623404f2f | 3 | 181 |
---
phase: 03
slug: workspace-shell-for-inspectable-runs
status: validated
nyquist_compliant: true
wave_0_complete: true
validated: 2026-06-20T22:20:42+02:00
scope:
- WORK-01
- WORK-02
- WORK-03
- WORK-04
manual_ui_validation: deferred
---
# Phase 03 - Validation Audit
Phase 03 has automated Nyquist coverage ... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VALIDATION.md | Markdown | 1d14ab60a03d648cb52299a8e43699313df0d344f46974d499c11d0d939a3452 | 0 | 896 |
, or baseline strings in runtime workspace files. | `bun --cwd apps/studio test:unit -- src/workspace-shell.test.ts`; `bun --cwd apps/studio test:e2e -- --grep "workspace shell|mobile"`; source-boundary scan | covered |
| WORK-04 | Overview navigation links to tasks, events, evidence, artifacts, findings, repairs, deci... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VALIDATION.md | Markdown | df513363a12fa0771a4408fba7b5f9fb7a544f334cde882ccacc24b70c77dae9 | 1 | 896 |
phases/03-workspace-shell-for-inspectable-runs`, 4 plans, verification present. |
| `node C:\Users\julia\.codex\gsd-core\bin\gsd-tools.cjs loop render-hooks verify:post --raw` | Passed; active hooks include step `skill:validate-phase` with `onError: halt`. |
| `bun --cwd apps/studio test:unit -- src/workspace-shell.tes... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VALIDATION.md | Markdown | 17795da852b0709d0a719df0c215ddfc6d13e7eb4c1aa407d61aaf0dd6710a33 | 2 | 896 |
config.ts`
## Manual-Only Verifications
| Behavior | Requirement | Why Manual | Status | Test Instructions |
|----------|-------------|------------|--------|-------------------|
| Final visual density, hierarchy, keyboard feel, and operator comprehension | WORK-01, WORK-02 | Automated tests prove signals, section rou... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VALIDATION.md | Markdown | f8c6d92361b00a511d2af0fc7e29ca18b93a7839d3baa139beb5b0bf3fd24470 | 3 | 433 |
---
phase: 03-workspace-shell-for-inspectable-runs
verified: 2026-06-20T19:58:20Z
status: passed
score: 13/13 must-haves verified
behavior_unverified: 0
overrides_applied: 0
human_accepted: 2026-06-28T15:51:43.1220549+02:00
re_verification:
previous_status: gaps_found
previous_score: 0/4
gaps_closed:
- "Phase... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VERIFICATION.md | Markdown | 21b334638505e7f87881e43da0cdeaa0ebdd3bc4cd8960d1ca33c2503026c836 | 0 | 896 |
-28 after reviewing `http://localhost:3000`. | VERIFIED |
## Goal Achievement
### Observable Truths
| # | Truth | Status | Evidence |
| --- | --- | --- | --- |
| 1 | Phase 03 MVP goal validates as a user story with an outcome clause. | VERIFIED | `phase.mvp-mode 03 --pick active` returned `true`; `user-story.validat... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VERIFICATION.md | Markdown | c633fc42fa6155125753616db5a303b10a2da0933cad4b9c474922f32cb17583 | 1 | 896 |
Artifact | Expected | Status | Details |
| --- | --- | --- | --- |
| `apps/studio/app/page.tsx` | Server route backed by deterministic product records. | VERIFIED | Imports fixture, reconstruction helper, model builder, and `WorkspaceShell`; no filesystem/planning/env reads. |
| `apps/studio/src/workspace-shell.ts` | T... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VERIFICATION.md | Markdown | bc391321b2a0ebee8ffe5f70d33f90464e225c1a545427f7fdf31316f3caf7ba | 2 | 896 |
-string check missed this because copy was factored into the imported module. |
| `tests/e2e/baseline.spec.ts` | `/` route and CSS | `page.goto("/")`, section assertions, screenshots, and `scrollWidth` check. | VERIFIED | `verify.key-links` passed for route and mobile CSS proof. |
### Data-Flow Trace (Level 4)
| Arti... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VERIFICATION.md | Markdown | 961fef7b7a5e225e6f89a2f794f79fe639db377c756d3ce24353a90f8676c7cf | 3 | 896 |
limitations, and errors. | SATISFIED | Route/view render all panels; E2E asserts headings and route signals. |
| WORK-02 | Roadmap, Requirements, plans 03-01 through 03-04 | User can inspect empty, pending, running, failed, stale, and complete states without raw logs. | SATISFIED | Display-state catalogue includes requ... | diplomarbeit-os | .planning/phases/03-workspace-shell-for-inspectable-runs/03-VERIFICATION.md | Markdown | 6a3fdaba4f8a27b9419bd45896d68260131399b781104a0361c7cfb7dba324ef | 4 | 667 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 01
type: execute
wave: 1
depends_on: []
files_modified:
- tests/e2e/intake.spec.ts
- apps/studio/app/intake/page.tsx
- apps/studio/app/intake/actions.ts
- apps/studio/src/domain/intake/index.ts
- apps/studio/src/domain/intake/types.ts
- apps/stud... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-PLAN.md | Markdown | 79d5b6e62fc7ba9a22942023f182d19bdfcdb40159b20d4039c5f10720cff474 | 0 | 896 |
\(projects\\)|insert\\(projectSpecs\\)"
- from: "apps/studio/src/domain/intake/service.test.ts"
to: "apps/studio/src/domain/intake/service.ts"
via: "Recording database proves project_specs reuse, version 1 creation, and version 2 revision without a live DB"
pattern: "project_specs|version"
- f... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-PLAN.md | Markdown | 4d0aa89bf65acff84e56223e63d7437a3bcf7f5def315f688daa474d36607301 | 1 | 896 |
local values, or reference-corpus as intake state.
</decision_trace>
<tasks>
<task type="auto" tdd="true">
<name>Task 1: Write the failing approved ProjectSpec route smoke</name>
<files>tests/e2e/intake.spec.ts</files>
<behavior>
- Test 1: /intake initial load exposes heading Structured intake, required for... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-PLAN.md | Markdown | e0b0fcab6d9fc4d94778279dc777db9d2df6f4175e1d63e33cd7257fad731db4 | 2 | 896 |
to top-level `status` and `validity`. The Server Action should parse FormData, call the intake service, and return visible state to the route. If a runtime database URL is unavailable, surface availability by env var name only and do not claim live persistence evidence. Keep the route product-owned per D-05 and do not ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-PLAN.md | Markdown | 404eea3720e5b8cbd684e806434959790806b4a6de8b96d32004f00e94a42dce | 3 | 896 |
in project_specs | 04-01 | COVERED | Task actions cite D-02.
CONTEXT | D-03 | Deterministic clarification | 04-02 | COVERED | Planned in next slice.
CONTEXT | D-04 | Feasibility boundaries and approved-only handoff | 04-01, 04-03 | COVERED | Initial feasible state in this plan.
CONTEXT | D-05 | Product runtime boundary... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-PLAN.md | Markdown | d6d675b4deb7e72645e2178a12cc48e1c2470957fd48432579a4489bc2d30b18 | 4 | 854 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 01
subsystem: intake
tags: [nextjs, server-actions, react, drizzle, postgres, vitest, playwright]
requires:
- phase: 02-durable-domain-model-and-event-core
provides: Durable projects and project_specs schema used by intake records.
- phase: 03-works... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-SUMMARY.md | Markdown | ce35e73262f66ae1d71b83b97bea9826661dfd8167346665fd52c7e173bed4c5 | 0 | 896 |
-rendered /intake route that derives a ProjectSpec preview from query-backed intake state.
- `apps/studio/src/domain/intake/types.ts` - Intake, ProjectSpec, feasibility, gap, and acceptance criteria payload types.
- `apps/studio/src/domain/intake/project-spec.ts` - Deterministic payload builder, status derivation, inse... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-SUMMARY.md | Markdown | c55d65f435cec74eef835b7d4ecf99f103c8019dfceca77b51308989a5c0b654 | 1 | 896 |
intake-timetable-planning-workspace`; the deterministic builder now removes common product suffixes so the fixture contract yields `intake-timetable-planning`.
- Multi-line acceptance criteria needed preservation through normalization so criteria remain separate after form submission.
- Lint reported a type-only import... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-01-SUMMARY.md | Markdown | 261f96ac1628a3b28e5b119c42a0fce386f7ef47de21ef0d22411b6087f81a61 | 2 | 414 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 02
type: execute
wave: 2
depends_on:
- 04-01
files_modified:
- apps/studio/src/domain/intake/index.ts
- apps/studio/src/domain/intake/validation.ts
- apps/studio/src/domain/intake/validation.test.ts
- apps/studio/src/intake-shell.ts
- apps/studio... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-PLAN.md | Markdown | 65f9a38229f41c3175596845d9b46641a23a523ac20b9afed9e4d2a3ef720624 | 0 | 896 |
-PATTERNS.md
@.planning/phases/04-structured-intake-and-acceptance-criteria/04-01-SUMMARY.md
@apps/studio/src/domain/intake/index.ts
@apps/studio/src/intake-shell.ts
@apps/studio/src/intake-shell-view.ts
@apps/studio/app/intake/actions.ts
@tests/e2e/intake.spec.ts
</context>
<decision_trace>
D-01 Intake Surface: produ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-PLAN.md | Markdown | a011c8bcd9a9c3644af36b6bab71eb1f13a6ffd1993b490c378ce22536cf2e66 | 1 | 896 |
automated>
<automated>bun --cwd apps/studio test:e2e -- --grep "clarification|ambiguous"</automated>
<automated>bun run typecheck</automated>
<automated>powershell -NoProfile -Command "$matches = rg -n 'generateText|streamText|experimental_generate|\\.planning|reference-corpus|gsd-core' apps/studio/app/inta... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-PLAN.md | Markdown | 2d3efa0a91a8cd36c3fe68f0a053dfc999209e511219d225272a2a397581f2ce | 2 | 896 |
or ambiguous signal so later phases can trace why a question or assumption exists. |
| T-04-08 | Information Disclosure | Clarification UI | mitigate | Render messages without stack traces, raw SQL, env values, GSD paths, command output, or corpus paths. |
| T-04-SC | Tampering | package installs | accept | No package ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-PLAN.md | Markdown | 1931dec88659013e27e4ecf5d1324cc00814508909988e0c16a04ea172af00ba | 3 | 279 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 02
subsystem: intake
tags: [nextjs, react, validation, vitest, playwright]
requires:
- phase: 04-structured-intake-and-acceptance-criteria
provides: Approved ProjectSpec creation slice from 04-01.
provides:
- Deterministic missing-field, ambiguity, ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-SUMMARY.md | Markdown | 9a20d95b1e1edecbf0a42343f839b83aed8c528ee7c2c6c61868c369d8d73e7a | 0 | 896 |
`apps/studio/src/domain/intake/index.ts` - Validation exports.
- `apps/studio/src/intake-shell.ts` - Clarification metrics for missing, ambiguous, field-limit, question, assumption, and research-flag counts.
- `apps/studio/src/intake-shell-view.ts` - Visible validation summary, field-linked messages, gap lists, and non... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-SUMMARY.md | Markdown | f08c8a9c55bc79761ff1cc07c2ac663791c7bdd6aab5873af31cdf130d73f60c | 1 | 896 |
add explicit feasibility rejection and revision boundaries. The current route now distinguishes complete approved input from missing, ambiguous, and research-needing input without hidden model behavior.
## Self-Check: PASSED
All required files exist, referenced commits are present, and verification evidence is record... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-02-SUMMARY.md | Markdown | 3fb77ffb5da600c2c048b56d71d7be80bfb0dd2a8fbd6574893aada1eddc1a36 | 2 | 82 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 03
type: execute
wave: 3
depends_on:
- 04-02
files_modified:
- apps/studio/src/domain/intake/index.ts
- apps/studio/src/domain/intake/feasibility.ts
- apps/studio/src/domain/intake/feasibility.test.ts
- apps/studio/src/intake-shell.ts
- apps/stud... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-03-PLAN.md | Markdown | faff29e9ef809891cef9ce4a032dfe043f1f8c5e3aa7a8bd4d9dfc4d31896f09 | 0 | 896 |
/domain/intake/index.ts
@apps/studio/src/intake-shell.ts
@apps/studio/src/intake-shell-view.ts
@tests/e2e/intake.spec.ts
</context>
<decision_trace>
D-01 Intake Surface: product /intake route and creation service, not CLI-only.
D-02 ProjectSpec Shape: reuse project_specs with typed payload sections and versioned recor... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-03-PLAN.md | Markdown | 1a7d9d251510bef453a551478c81d8287cf8fbade1a8aa38ab857e68244a7026 | 1 | 896 |
Run research|browser evidence captured|sandbox log|worker activity|retrieved citation' apps/studio/app/intake apps/studio/src/domain/intake apps/studio/src/intake-shell.ts apps/studio/src/intake-shell-view.ts; if ($LASTEXITCODE -eq 0) { $matches; exit 1 }; if ($LASTEXITCODE -gt 1) { exit $LASTEXITCODE }; exit 0"</autom... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-03-PLAN.md | Markdown | d1a5fac05dcd7df55020f727fc7c21212987ee61b11971f96eb8fecae887a88d | 2 | 896 |
Tampering | package installs | accept | No package installation is planned for Phase 04; use the installed stack only. |
</threat_model>
<verification>
Plan-level checks:
- `bun --cwd apps/studio test:unit -- src/intake-shell.test.ts`
- `bun --cwd apps/studio test:e2e -- --grep "unsupported|rejected|approved ProjectSp... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-03-PLAN.md | Markdown | f76a0978dedf1e996a5d94b95e5e2079b63f62d9fa7896fe359a6306199ef363 | 3 | 212 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 03
subsystem: intake
tags: [feasibility, validation, vitest, playwright]
requires:
- phase: 04-structured-intake-and-acceptance-criteria
provides: Clarification and ambiguity payload state from 04-02.
provides:
- Deterministic feasibility classifier... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-03-SUMMARY.md | Markdown | 74bf44a69545670b21f353d2e1e451a35d3c1b2c6119775939191fd04e6e8484 | 0 | 896 |
evidence capability, including physical device, app-store, external sandbox, or generated-project proof needs, as unsupported.
- Kept readiness as text-only metadata. No run, generation, AI, research, retrieval, worker, or artifact controls were added.
## Deviations from Plan
### Auto-fixed Issues
**1. Avoided claim... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-03-SUMMARY.md | Markdown | 2b48c72445bec065acafd0b015066b7d1ab9de4a0605335f3f15ddeca2faf4ee | 1 | 730 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 04
type: execute
wave: 4
depends_on:
- 04-03
files_modified:
- apps/studio/app/globals.css
- apps/studio/src/workspace-shell.ts
- apps/studio/src/workspace-shell-view.ts
- apps/studio/src/workspace-shell.test.ts
- apps/studio/src/intake-shell-vie... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-04-PLAN.md | Markdown | 882033d0d37737d3e9a40e6033f8d3b8f3a8d0ca17e19ef1e04ddedc0090f6ae | 0 | 896 |
04-03-SUMMARY.md
@.planning/phases/03-workspace-shell-for-inspectable-runs/03-04-SUMMARY.md
@apps/studio/app/globals.css
@apps/studio/src/workspace-shell.ts
@apps/studio/src/workspace-shell-view.ts
@apps/studio/src/workspace-shell.test.ts
@apps/studio/src/intake-shell-view.ts
@tests/e2e/baseline.spec.ts
@tests/e2e/inta... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-04-PLAN.md | Markdown | 6fef7dabbf8c9679054d4aba715639e865a38097dff48d57ea0f9ec45bd8c4a8 | 1 | 896 |
ts src/workspace-shell.test.ts</automated>
<automated>bun run format:check</automated>
<automated>bun run typecheck</automated>
<automated>powershell -NoProfile -Command "$matches = rg -n 'tailwind|shadcn|components\\.json|dangerouslySetInnerHTML' apps/studio/app/globals.css apps/studio/src/intake-shell-vie... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-04-PLAN.md | Markdown | 3b7ca64961f7be5427393141694f1bd8ef5fa8205773834aefba8792ec7d1847 | 2 | 896 |
Typed ProjectSpec payload | 04-01, 04-02, 04-03 | COVERED | Prior plans.
CONTEXT | D-03 | Deterministic clarification and ambiguity | 04-02, 04-04 | COVERED | Final route evidence.
CONTEXT | D-04 | Feasibility boundaries and approved-only handoff | 04-03, 04-04 | COVERED | Final route evidence.
CONTEXT | D-05 | Product... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-04-PLAN.md | Markdown | b7a8bcf40faade5fc3ed1a8eddf93adaca09e6fc0afe9c100d5f44c149a1b61f | 3 | 716 |
---
phase: 04-structured-intake-and-acceptance-criteria
plan: 04
subsystem: intake-ui
tags: [css, nextjs, playwright, screenshots, accessibility]
requires:
- phase: 04-structured-intake-and-acceptance-criteria
provides: Feasibility states and approved-only readiness from 04-03.
- phase: 03-workspace-shell-for-... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-04-SUMMARY.md | Markdown | e1edc282bdc10527d3d0ecb1040e607339c713e368b4f6bf0ada6a26c5da3fa3 | 0 | 896 |
class contract support.
- `apps/studio/src/intake-shell.test.ts` - Phase 04 copy and class contract tests.
- `tests/e2e/intake.spec.ts` - Final route smoke, screenshot capture, local anchor, no overflow, and product-boundary checks.
- `apps/studio/src/domain/intake/*` - Formatter-only cleanup for Phase 4 intake files.
... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-04-SUMMARY.md | Markdown | 6d6bc4eb9d1c88b2cb98da5f3d99223671e67fd6cdaaa64124d7afd7c142d21b | 1 | 779 |
# Phase 4: Structured Intake and Acceptance Criteria - Context
**Gathered:** 2026-06-20T22:40:43+02:00
**Status:** Ready for planning
<domain>
## Phase Boundary
This phase turns a project request into a durable, inspectable ProjectSpec that can drive later planning without hiding ambiguity. A project requester shoul... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-CONTEXT.md | Markdown | 159d435d121713b51fc52992bc57036d82a0e2d6d485f4bbec72ce8940a63417 | 0 | 896 |
`apps/studio/src/domain/state/fixtures.ts` and `apps/studio/src/domain/state/reconstruction-fixture.ts` already create deterministic ProjectSpec records with payload examples.
- `apps/studio/src/domain/state/repository.ts` already reads ProjectSpec records as part of `DurableRunRecords`.
- `apps/studio/app/page.tsx`, `... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-CONTEXT.md | Markdown | 5cfe7e94a3c7db01ac235d39eb18a272f551922653f01b173f424958e9e6747f | 1 | 696 |
# Phase 04: Structured Intake and Acceptance Criteria - Pattern Map
**Mapped:** 2026-06-20
**Files analyzed:** 16 planned new/modified files
**Analogs found:** 15 / 16 have local exact or role-match analogs
## File Classification
| New/Modified File | Role | Data Flow | Closest Analog | Match Quality |
|---|---|---|... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | 5b79f5ae5423d48f3fe81876d80944de140af4b3d0146e1bfc1a52a2e6b0c587 | 0 | 896 |
` | test | transform, request-response | `apps/studio/src/workspace-shell.test.ts`, `apps/studio/src/domain/state/repository.test.ts`, `apps/studio/src/domain/state/reconstruct.test.ts` | exact |
| `tests/e2e/intake.spec.ts` | test | request-response | `tests/e2e/baseline.spec.ts` | exact |
## Pattern Assignments
###... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | f8894d3ad1e0280e4211c12a66fcd6aafc28e25789b75f07a723f9eae6f14c0f | 1 | 896 |
await tx.insert(decisions).values(fixture.decision);
await tx.insert(decisionTasks).values([...fixture.decisionLinks.tasks]);
await tx.insert(decisionArtifacts).values([...fixture.decisionLinks.artifacts]);
await tx.insert(decisionEvidence).values([...fixture.decisionLinks.evidence]);
for (const event o... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | baf6a13d0f1648b3c0a48471607caf4d0bd4e12586ca4e1bbfbb0f34282d52a1 | 2 | 896 |
.ts`, lines 519-568):
```ts
function validateRecordScope(records: DurableRunRecords): void {
if (records.run.projectId !== records.project.id) {
throw new Error("Durable run project ID must match the project record");
}
if (records.run.projectSpecId !== records.projectSpec.id) {
throw new Error("Durable ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | f6aa2e53333a3862e590481cac2256b8ac3e403a18b6dd6729166086e5b94a4e | 3 | 896 |
}
if (status === "repairing") {
return makeDisplayState("running");
}
if (
status === "queued" ||
status === "paused" ||
status === "pending" ||
status === "planned" ||
status === "draft" ||
status === "open" ||
status === "triaged" ||
status === "blocked"
) {
return make... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | b355642dfc27c2498e41e71161ff9c8410a6fed3d18cb583fd3e564b335ff180 | 4 | 896 |
level insert values from normalized intake input. Use `project_specs.payload` for typed sections: scope, constraints, language rules, artifact expectations, acceptance criteria, assumptions, questions, research flags, feasibility, and definition of done.
**Hazards:**
- Do not create a parallel `intake_requests` table... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | fa5f77d386436ad3031f60ff14f3c79686586cd2a2ea4241888f247303c74c5c | 5 | 896 |
):
```ts
export const durableStateFixtureTimestamp = new Date("2026-06-20T10:00:00.000Z");
export const durableStateFixtureIds = {
project: "00000000-0000-4000-8000-000000000201",
projectSpec: "00000000-0000-4000-8000-000000000202",
run: "00000000-0000-4000-8000-000000000203",
intakeTask: "00000000-0000-4000-... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | cc560e10dd51194bb06d809aed5be65f0b85e2f3d7e715fb2f6f497264dcdbff | 6 | 896 |
const workspaceShellCopy = {
productLabel: "Diplomarbeit OS",
inspectRunStateCta: "Inspect run state",
productEvidenceLabel: "Product evidence",
nonProductEvidenceLabel: "Not product evidence yet",
emptyStateHeading: "No product records yet",
emptyStateBody:
"This area is reserved for product-owned reco... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | 3e34e77953cbf6c98e38775ab71ed910c5f82d3d7dac048e5d045257b9cd5b10 | 7 | 896 |
(${shell.runStatus.label})`),
createElement(
"p",
{ className: "summary-muted" },
`Project specification: ${shell.projectSpecTitle}`,
),
createElement(
"a",
{ className: "primary-action", href: "#overview" },
workspaceShellCopy.inspectRunStateCta,
... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | f7585013e2048307355be9223fa5821a161bcd54cfd1d76a4bdb6ee4e0307308 | 8 | 896 |
```css
.status-chip {
width: fit-content;
border: 1px solid var(--line);
border-radius: 6px;
padding: 4px 8px;
background: var(--soft-fill);
color: var(--ink);
text-transform: uppercase;
}
.state-empty {
border-style: dashed;
background: var(--soft-fill);
}
.state-running {
border-left: 4px solid ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | ca17ed9c5d5ec0dea3b3cad87c6d54393bed8d9346c6375f3576cbb67054d1b2 | 9 | 896 |
*.test.ts` and `apps/studio/src/intake-shell.test.ts` (test, transform + request-response)
**Analogs:** `apps/studio/src/workspace-shell.test.ts`, `apps/studio/src/domain/state/repository.test.ts`, `apps/studio/src/domain/state/reconstruct.test.ts`
**Exact copy and navigation test pattern** (from `workspace-shell.tes... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | ad7c44ae0d9733c3043b8a181ee7a1ab0c908e9073881d8b4aa65340a2be0ff9 | 10 | 896 |
async () => {
const db = createRecordingDatabase();
const fixture = buildDurableStateFixture();
await expect(
createDurableRunFixture(db, {
...fixture,
decision: {
...fixture.decision,
rationale: " ",
},
}),
).rejects.toThrow(/decision rationale/i);
await expect(
... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | 06b29b9d3ac9061f26b6f267364f80e01c8d0ddd703df3330d58cc42a9178d8a | 11 | 896 |
desktop.png",
fullPage: true,
});
expect(severeFailures).toEqual([]);
});
```
**Mobile overflow pattern** (lines 119-145):
```ts
test("workspace shell route anchors and mobile overflow", async ({ page }) => {
const severeFailures = attachRouteDiagnostics(page);
await page.setViewportSize({ width: 390, he... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | 68edc17596089f6e90f3a2aa34329f1dc8e6a47afef5206517425a6266412c3d | 12 | 896 |
-error-view";
export default function WorkspaceError() {
return <WorkspaceErrorPanel />;
}
```
```tsx
export const workspaceErrorCopy =
"Workspace state could not be reconstructed. Refresh the page, then run the product checks if the problem repeats.";
export function WorkspaceErrorPanel() {
return createEleme... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | a5521b786846ab0d49607cacaba204b4a41b9e888fc8b229235a03f0078cf27b | 13 | 896 |
line-height: 1.4;
letter-spacing: 0;
}
.primary-action {
display: inline-flex;
min-height: 44px;
align-items: center;
justify-content: center;
width: fit-content;
border: 1px solid var(--accent);
border-radius: 8px;
}
.workspace-nav a:focus-visible {
outline: 2px solid var(--accent);
outline-offse... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | c8270ecbd079f8dedf0730bcada8faa35f0161b42684fbec14eef1f5fce02404 | 14 | 896 |
no local exact analog. Treat Server Action mechanics as a researched framework pattern, while keeping parsing/adaptation thin and domain-owned.
- The default plan should not modify `apps/studio/src/db/schema.ts`; use existing `project_specs.payload` unless a real query/constraint need requires migration.
- Existing CSS... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-PATTERNS.md | Markdown | 32c9edb281b87a29067d884b74c2c69bad02104b2c637fb5f02105204255bbc1 | 15 | 92 |
# Phase 04: Structured Intake and Acceptance Criteria - Research
**Researched:** 2026-06-20
**Domain:** Deterministic intake, versioned ProjectSpec payloads, App Router mutation surface, durable specification evidence
**Confidence:** MEDIUM
<user_constraints>
## User Constraints (from CONTEXT.md)
Copied verbatim fro... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 6cec899439f283a5a93e35dd1d2be981f272b8dd0772666af644cf185e8ca49e | 0 | 896 |
-|
| INTAKE-01 | User can submit a project idea, constraints, target users, desired capabilities, artifact expectations, and optional technology preferences. [VERIFIED: .planning/REQUIREMENTS.md] | Use an App Router `/intake` product route with a Server Action-backed form and a pure intake service that normalizes those... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | c4eb76dac342364aecaa2e2315695d1171a106dd812de97b61ae010d036e2a69 | 1 | 896 |
/db/schema.ts; VERIFIED: 04-CONTEXT.md; ASSUMED]
## Architectural Responsibility Map
| Capability | Primary Tier | Secondary Tier | Rationale |
|------------|-------------|----------------|-----------|
| Intake form rendering | Frontend Server (SSR) | Browser / Client | The app already renders `/` as an App Router se... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | e992362cdd04c9719f0bbaadc50528cc395eca0d47b2c1d42a2f614809b005ca | 2 | 896 |
workspace code first and Context7 only for Next.js, Drizzle, Vitest, Playwright, and React framework behavior. [VERIFIED: local source reads; CITED: Context7 docs] |
| Treat `reference-corpus/` as read-only and out of scope unless a phase plan explicitly calls for it. [VERIFIED: AGENTS.md] | Phase 04 must not inspect, ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 62e1363b734fef7f9594a295a51e8b67c02a49a7c343239f9ddc65bb69f44e08 | 3 | 896 |
Strict typing is the fixed project baseline and current code already exports literal vocabulary arrays. [VERIFIED: AGENTS.md; VERIFIED: apps/studio/src/domain/state/types.ts] |
| Drizzle ORM | 0.45.2, modified 2026-06-17. [VERIFIED: npm registry; VERIFIED: apps/studio/package.json] | Persist `projects` and versioned `p... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | a78542a2f26c0a273558284f42adf5c4a81bae17977930767981a91cb1291241 | 4 | 896 |
parsing and validation surfaces. [CITED: Context7 /vercel/next.js/v16.2.9; ASSUMED] |
| Existing `project_specs.payload` | New `intake_requests` table | A separate table would duplicate locked ProjectSpec ownership and require migration/query work that current requirements do not need. [VERIFIED: 04-CONTEXT.md; VERIFIE... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | ac3787e729c39a80b1da40d224057bb931fb61e53b4e62356a92c4e886222a61 | 5 | 896 |
for all deterministic rules and payload output. [ASSUMED]
tests/e2e/
intake.spec.ts # Browser smoke for form, clarification, approved, unsupported states. [ASSUMED]
```
Keep the file split small; do not create a package outside `apps/studio` until a second product consumer exists. [VERIFIED: docs/technology... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 3f76868ee6f94dcdee802d93367b5cd8931b11e723804c77afc5877db56cb696 | 6 | 896 |
flag | Retrieval and corpus-backed research belong to later phases. [VERIFIED: 04-CONTEXT.md] |
| Request requires live sandbox/browser/generated-project evidence before those systems exist | `unsupported` or `needs_research`, with missing capability | Sandbox, generated repository, verification, and browser evidence a... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 4ab7eeb744c7a15ea91f956956312e9c505fcc7172056a9eaae426f99bf5ce19 | 7 | 896 |
`.planning` reads, or custom local storage | Existing Drizzle `project_specs` row and repository/service layer | Product runtime must not read GSD artifacts, and `project_specs` already has versioned durable payload storage. [VERIFIED: docs/product-runtime-boundary.md; VERIFIED: apps/studio/src/db/schema.ts] |
| Form m... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 2f0c8863c198f5d9e81cf3fbab36db456e65140b5b18e8ae90875e17359fe302 | 8 | 896 |
signs:** UI copy says a project can be generated, verified, or browser-tested during Phase 04. [VERIFIED: 04-CONTEXT.md]
### Pitfall 4: Unsafe Rendering Of User Text
**What goes wrong:** User-supplied intake text becomes executable HTML or script in the product surface. [CITED: Context7 /reactjs/react.dev]
**Why it ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 69b79116be6312d9550a640088fe734a3537382fbd8fcf460e1c076dbeff9cd2 | 9 | 896 |
the Art
| Old Approach | Current Approach | When Changed | Impact |
|--------------|------------------|--------------|--------|
| Chat or CLI-only intake | Product route plus durable ProjectSpec record | Phase 04 locked context on 2026-06-20 | Planning must include product UI and persistence, not only scripts. [VERIFI... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | ccc0972972b1df72f48cdf0e4b95a8d216196b50b3635783c7b014d529c4ce52 | 10 | 896 |
client. A Server Action plus service satisfies INTAKE-01 through INTAKE-04 while avoiding duplicate parsing and validation surfaces. [VERIFIED: 04-CONTEXT.md; CITED: Context7 /vercel/next.js/v16.2.9]
- Execution constraint: If an executor adds a Route Handler, it must call the same deterministic service and must be ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | e74e7374d63848fe77d4ddc3e730b8bf75e2c50b7705bc81f5dd741420cde70b | 11 | 896 |
bun --cwd apps/studio vitest --version`] | Use `bun run test:unit`. |
| Playwright Test | Browser route smoke | Yes | 1.61.0. [VERIFIED: `bun --cwd apps/studio playwright --version`] | Use `bun run test:e2e`. |
| Drizzle/Postgres driver | Optional persistence integration | Installed | `drizzle-orm` 0.45.2, `postgres` 3... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 31cf11f2995c30cec494089de8847b3fff8a03a79aca95a91b8bb0f3a5f06366 | 12 | 896 |
config.ts`, `vitest.config.ts`, and `playwright.config.ts`. [VERIFIED: local source reads] |
| Quick run command | `bun run test:unit` [VERIFIED: package.json] |
| Browser smoke command | `bun run test:e2e` [VERIFIED: package.json] |
| Full suite command | `bun run check` [VERIFIED: package.json] |
### Phase Requireme... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | a693bc892700ccc710de7f823a6e7376948999601cd6f3f80a0f45846acb66f4 | 13 | 896 |
/revision/status behavior without live DB. [ASSUMED]
- [ ] `apps/studio/app/intake/page.tsx` and `actions.ts` - product route and Server Action surface for INTAKE-01. [ASSUMED]
- [ ] `tests/e2e/intake.spec.ts` - browser route smoke, severe diagnostics, screenshots, and mobile overflow. [ASSUMED]
## Security Domain
Se... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 17970b29a0481772eb8c295e579f3728cc89b10f753aa10e53ba941606b68b6b | 14 | 896 |
| Tampering | Use existing Drizzle query builder and parameterized operations; avoid raw interpolated SQL. [CITED: Context7 /drizzle-team/drizzle-orm-docs; VERIFIED: apps/studio/src/domain/state/repository.ts] |
| Secret leakage in errors/screenshots | Information Disclosure | Report env var names only and keep `.env.l... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 98ce754e074a04fad15b8da6d7428a58104fd77c290888497236ffd887285ed4 | 15 | 896 |
- product/GSD boundary, deferred capabilities, and XSS guidance are sourced; exact ambiguity thresholds remain assumptions. [VERIFIED: 04-CONTEXT.md; VERIFIED: docs/product-runtime-boundary.md; CITED: Context7 /reactjs/react.dev; ASSUMED]
**Research date:** 2026-06-20
**Valid until:** 2026-07-20 for framework/package ... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-RESEARCH.md | Markdown | 02fe98eb5f65b4c5ea8832a1bd479ab267b2e437995e9d8e67668a27342f8338 | 16 | 130 |
---
phase: 04
slug: structured-intake-and-acceptance-criteria
status: approved
shadcn_initialized: false
preset: none
created: 2026-06-20
reviewed_at: 2026-06-20T23:10:17+02:00
---
# Phase 04 - UI Design Contract
> Visual and interaction contract for deterministic structured intake and ProjectSpec acceptance criteria... | diplomarbeit-os | .planning/phases/04-structured-intake-and-acceptance-criteria/04-UI-SPEC.md | Markdown | 309592ea1f2190fd34d9b728f1cf002f7877a35951175a8c5597bb04953071e1 | 0 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.