#7 schema: brand, features and onboarding schemas (@coa/schema, plan Task 3) #20

Merged
matou-build-agent merged 2 commits from agent/issue-7 into main 2026-08-28 16:40:02 +00:00

closes #7

Plan Task 3 — new @coa/schema package: brand, features and onboarding schemas + types. Slug .min(2) guard added atop the pinned regex (two-way-door ruling on #7). pnpm -r typecheck && pnpm -r test exit 0 (22/22).

closes #7 Plan Task 3 — new @coa/schema package: brand, features and onboarding schemas + types. Slug .min(2) guard added atop the pinned regex (two-way-door ruling on #7). pnpm -r typecheck && pnpm -r test exit 0 (22/22).
sandcastle: @coa/schema brand, features and onboarding schemas (#7)
All checks were successful
ci / seam (pull_request) Successful in 19s
9d33e54aec
Plan Task 3 (docs/superpowers/plans/2026-08-27-coa-phase-0-1.md). New workspace
package packages/schema (@coa/schema) — the single source of truth for what a
submission is:

- brand.ts: BrandSchema/Brand, SLUG_RE, HEX_RE
- features.ts: FeaturesSchema/Features, TOGGLEABLE_FEATURES; identity forced true,
  .strict() rejects unknown keys
- onboarding.ts: OnboardingSchema/Onboarding, ApprovalSchema/Approval,
  APPROVAL_MODES; endorsements modes require required 1–20; info pages capped at 3
- index.ts re-exports all three

Decision: the pinned slug regex accepts a 1-char slug but the plan's pinned test
rejects "a". Kept SLUG_RE byte-for-byte as pinned and added a .min(2) length guard
on the slug field so both the "regex is exactly X" clause and the test pass; aligns
with the spec's "2–40 chars". Ruled two-way-door on #7.

Verify: pnpm -r typecheck && pnpm -r test exit 0 (22/22 schema tests green);
pnpm-lock.yaml updated in the same commit. STATUS.md advanced to "Phase 1 started".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merge remote-tracking branch 'origin/main' into pr-issue-7
All checks were successful
ci / seam (pull_request) Successful in 19s
ed37d5b2b3
# Conflicts:
#	STATUS.md
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!20
No description provided.