You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FORJAMIE.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@
24
24
| --- | --- | --- |
25
25
| Build / CI | Yellow | Focused policy, token, matrix, docs, guidance, whitespace, browser, widget a11y, and aggregate build gates pass for the Agent Design Engine slice |
26
26
| Tests | Yellow | Agent-design and release-readiness gates pass (`agent-design-engine`, `cli`, `design-system-guidance`, web E2E, widget a11y, and root build), including fixture-backed CLI JSON/recovery/migration coverage |
27
-
| Agent Design Prepare plan | Review green; merge-blocked pending required checks | Reviewer loop is green after wrapper/read-only classification, JSON-safe wrapper, matrix evidence, machine locators, and resolved-vs-deferred spec decisions were tightened; PR #160 remains under heartbeat monitoring until required checks pass|
27
+
| Agent Design Prepare plan | Review green; merge-blocked pending required checks | Reviewer loop is green after wrapper/read-only classification, JSON-safe wrapper, matrix evidence, machine locators, and resolved-vs-deferred spec decisions were tightened; PR #159 now carries the prepare contract plus changed-surface evidence gate|
| Open PRs | 1 | PR #160 carries the agent-design prepare contract hardening slice |
29
+
| Open PRs | 1 | PR #159 carries the agent-design prepare north-star and changed-surface gate slice |
30
30
| Blockers | None ||
31
31
<!-- STATUS_END -->
32
32
@@ -212,12 +212,17 @@ See also: `~/.codex/instructions/Learnings.md`
212
212
-`pnpm agent-design:proposals` now blocks silent enforced-route and uncovered lifecycle promotion, but the first waiver registry intentionally grandfathered existing ProductComposition and ChatShell gaps. Those waivers should be replaced by accepted proposal records or per-export coverage before expiry.
213
213
-`@brainwav/design-system-guidance` imports the public `@brainwav/agent-design-engine` package export, whose package types resolve through `dist`. Its build and type-check scripts must build the sibling engine package first, or clean CI installs can fail before the guidance checks run.
214
214
-`pnpm --silent agent-design:prepare --surface <path>` depends on built `packages/agent-design-engine`, `packages/design-system-guidance`, and `packages/skill-ingestion` artifacts because the CLI imports those workspace packages through package exports. Keep it aligned with `pnpm agent-design:lint` by building those packages before building the CLI. The wrapper appends `--json` itself and does not include a default surface; callers provide `--surface` explicitly. The wrapper is build-backed convenience; the read-only contract belongs to the underlying `astudio design prepare` operation once the CLI is available. Use `--silent` whenever an agent or script captures JSON, because plain `pnpm` writes lifecycle banners to stdout.
215
+
-`pnpm agent-design:prepare:changed` is the agent-first PR/local evidence gate. It builds the prepare dependencies, discovers changed `.tsx`/`.jsx` UI surfaces under the protected app/widget trees, runs the read-only CLI prepare operation for each surface, and fails closed when a payload is unsafe, incomplete, unparseable, or points outside the repository. Use `-- --surface <path>` to force a single-surface check. GitHub Actions also runs this gate on pull requests in the web platform lane with `AGENT_DESIGN_PREPARE_BASE` pointed at the PR base ref.
215
216
-`pnpm quality-debt:report` is warn-first by design. Amber/red radar posture is release-owner evidence, not a new hard-fail gate, until explicit thresholds are approved.
216
217
- Quality-debt radar CLI output now includes `service:"quality-debt-radar"` on status/error lines, and flag parsing fails fast when `--output`, `--date`, or `--week` are missing values.
217
218
- The next agent-native design-system hardening lane is specified broadly in `docs/specs/2026-04-28-agent-native-design-system-spec.md` and narrowed by `docs/specs/2026-04-30-agent-design-prepare-north-star-spec.md`. The north-star rule is that no protected UI change is ready until `astudio design prepare --surface <path> --json` returns `safeForAutomaticImplementation: true`, or the PR explains the proposal/manual decision required. The focused execution source for this lane is now `docs/plans/2026-04-30-agent-design-prepare-north-star-plan.md`; use the older `docs/plans/2026-04-28-agent-native-design-system-plan.md` only for broader historical context and adjacent non-prepare slices.
218
219
219
220
## Recent changes
220
221
222
+
### 2026-05-02
223
+
224
+
-**PR #159 merge conflict resolution**: rebased the changed-surface evidence gate onto the merged Agent Design Prepare hardening from `main`. The branch now keeps the newer prepare parser/schema/token-contract behavior from `main`, while preserving `pnpm agent-design:cli:prebuild`, `pnpm agent-design:prepare:changed`, the web CI evidence step, PR template checklist, README/workflow docs, and CLI tests that prove the gate builds the prepare stack before checking changed protected UI surfaces.
225
+
221
226
### 2026-04-30
222
227
223
228
- **Agent Design Prepare north-star spec**: added `docs/specs/2026-04-30-agent-design-prepare-north-star-spec.md` as the focused HE standard spec for making `astudio design prepare --surface <path> --json` the project front door before AI agents edit UI. The spec keeps the current engine/CLI/guidance package boundaries, requires `designTokenContract` in the prepare payload, adds deterministic design error codes, tightens `astudio.design.prepare.v1` schema expectations, keeps returned validation commands read-only by default, and defers the human Design Prepare Inspector to a companion UI spec before implementation. The spec was then deepened with interface alternatives, selected Shape A (`prepare` in place), token source priority from runtime theme slots and token aliases, additional failure classes, observability fields, and a first-plan sequence. Follow-ups clarified that `pnpm --silent agent-design:prepare --surface <path> --json` is the JSON-safe build-backed wrapper, while `astudio design prepare` is the read-only contract; updated the wrapper to build engine, guidance, and skill-ingestion workspace dependencies before the CLI without baking in a colliding default surface; and moved wrapper reliability/classification to the first recommended planning step so future planning does not defer that gate.
That wrapper may build local workspace packages before invoking the CLI. The read-only operation contract belongs to `astudio design prepare` itself once the CLI is available. Use `pnpm --silent` when a script or agent needs to capture the JSON payload, because plain `pnpm` adds lifecycle banners to stdout. Supporting commands such as `astudio design lint`, `export`, `components`, `coverage`, and `propose-abstraction` are diagnostics rather than the normal pre-edit happy path.
130
130
131
+
Before PR handoff for protected UI changes, run the changed-surface evidence gate:
132
+
133
+
```bash
134
+
pnpm agent-design:prepare:changed
135
+
```
136
+
137
+
For a targeted local check, pass one or more explicit surfaces through the gate:
CI runs the changed-surface gate on pull requests in the web platform lane, using the PR base ref as the comparison point. That makes the prepare evidence rule automatic for UI changes while keeping the direct `astudio design prepare` operation read-only.
The wrapper is build-backed setup. It may build `packages/agent-design-engine`, `packages/design-system-guidance`, `packages/skill-ingestion`, and `packages/cli` before invoking the CLI. The read-only operation contract belongs to `astudio design prepare` itself once the CLI is available. Use `pnpm --silent` for JSON capture, because plain `pnpm` prints lifecycle banners before script output.
@@ -37,6 +37,8 @@ The wrapper is build-backed setup. It may build `packages/agent-design-engine`,
37
37
1. If implementation is safe, use the returned `recommendedRoutes`, `designTokenContract`, `requiredStates`, `relevantExamples`, `forbiddenPatterns`, and `validationCommands` as the implementation brief.
38
38
1. Edit the UI.
39
39
1. Run the returned read-only validation commands that apply to the changed surface.
40
+
1. Before PR handoff, run `pnpm agent-design:prepare:changed`. It builds the local CLI dependencies, checks changed `.tsx`/`.jsx` UI surfaces with the read-only prepare command, and fails if any surface is unsafe or missing prepare evidence. Use `pnpm agent-design:prepare:changed -- --surface <path>` for a single surface.
41
+
1. CI reruns the changed-surface gate on pull requests in the web platform lane. If it fails, treat that as a missing or unsafe prepare contract, not as a generic CI failure.
40
42
1. If validation fails or a proposal-required stop appears, fix the underlying design-system evidence or open the proposal/manual decision path.
41
43
42
44
Supporting commands such as `astudio design lint`, `astudio design export`, `astudio design components`, `astudio design coverage`, and `astudio design propose-abstraction` are diagnostics. They are not the normal happy path before UI edits.
0 commit comments