2.2 KiB
2.2 KiB
Harness Foundation
- Status:
completed - Owner:
codex - Date:
2026-03-23
Goal
Introduce the first harness-engineering layer for Cadence UI so the repository becomes easier for agents to understand, plan against, and validate mechanically.
Scope
- In scope:
- document the harness workflow
- add execution-plan conventions
- expose shared validation suites from one entrypoint
- add a pull request workflow that runs the PR validation suite
- Out of scope:
- full worktree orchestration
- change-aware suite selection
- fixing pre-existing lint and Storybook smoke issues discovered during baseline review
Constraints
- Keep the existing package, registry, and Storybook workflows intact.
- Avoid introducing a hard dependency on a specific coding-agent CLI.
- Preserve the current release scripts while adding a richer harness path alongside them.
Affected Surfaces
AGENTS.mdCONTRIBUTING.mdREADME.mddocs/harness-engineering.mddocs/exec-plans/*package.json.github/workflows/harness-validate.ymlscripts/harness/validate.mjs
Plan
- Document what harness engineering means for this repository.
- Add versioned execution-plan guidance and a real example plan.
- Expose reusable validation suites behind a single script.
- Run the new PR suite from GitHub Actions.
Validation
pnpm harness:suitespnpm harness:validate:pr -- --dry-run
Baseline findings captured during rollout:
pnpm testpassedpnpm typecheckpassedpnpm lintfailed on pre-existing story/test lint issues plus React Compiler hook lintpnpm test:e2e:smokereached a real Storybook drift failure in the button playground flow once browser launch permissions were provided
Status Log
2026-03-23 12:18inspected repo structure, QA stack, CI workflows, and agent guidance2026-03-23 12:24confirmedtestandtypecheckpass; found pre-existinglintfailures2026-03-23 12:26reran Playwright smoke outside the sandbox and confirmed one real Storybook smoke failure instead of a harness-only environment failure2026-03-23 12:31added harness docs, execution-plan conventions, validation script, and PR workflow