Skip to content

docs: add W4 runtime validation planning artifacts#3059

Open
bestvcboy wants to merge 4 commits into
nexu-io:mainfrom
bestvcboy:chore/w4-runtime-validation-design
Open

docs: add W4 runtime validation planning artifacts#3059
bestvcboy wants to merge 4 commits into
nexu-io:mainfrom
bestvcboy:chore/w4-runtime-validation-design

Conversation

@bestvcboy
Copy link
Copy Markdown

Summary\n- add W4 runtime validation foundation plan\n- retain local runtime validation design/spec artifacts merged onto latest upstream main\n- preserve local .worktrees ignore handling without deleting content\n\n## Validation\n- local main merged with upstream main and pushed to bestvcboy/open-design:chore/w4-runtime-validation-design

Copilot AI review requested due to automatic review settings May 26, 2026 17:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds W4 documentation for introducing contracts-first runtime validation at the daemon HTTP boundary, plus a small gitignore tweak.

Changes:

  • Added a W4 runtime validation design spec covering scope, rules, and error model for /api/chat and /api/proxy/*/stream.
  • Added a detailed, step-by-step implementation plan (contracts schemas, daemon helper, and route-level tests).
  • Updated .gitignore to ignore a local .worktrees/ directory.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
docs/superpowers/specs/2026-05-19-w4-runtime-validation-design.md Defines the intended validation architecture, rules, and error envelope.
docs/superpowers/plans/2026-05-19-w4-runtime-validation-foundation.md Provides the task checklist and example code/tests to implement the design.
.gitignore Ignores .worktrees/ directory artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +189 to +190
- `apiKey`: non-empty string, except only existing route behavior may decide defaults elsewhere
- `apiKey`: non-empty string
Comment on lines +257 to +258
git -C G:\AUDHOUSE\HOUSEDRAW\open-design add -- packages/contracts/src/api/comments.ts packages/contracts/src/api/chat.ts packages/contracts/src/index.ts packages/contracts/tests/api-validation.test.ts
git -C G:\AUDHOUSE\HOUSEDRAW\open-design commit -m "feat(contracts): add chat request schemas"

```ts
import { z } from 'zod';
import type { OkResponse } from '../common';
Comment on lines +184 to +189
import type { ProjectFile } from './files';
import type {
PreviewCommentMember,
PreviewCommentPosition,
PreviewCommentSelectionKind,
} from './comments';
Copy link
Copy Markdown
Contributor

@lefarcen lefarcen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bestvcboy! Thanks for pulling the W4 runtime-validation docs together — keeping the design artifact and implementation plan side by side should make the eventual daemon-boundary work easier to follow.

One PR-body item before this goes through pool review: could you fill in the new template details for Why, What users will see, Surface area, and Validation? For this docs/planning PR, Surface area can likely mark the docs/design-planning path rather than any runtime UI/API change, and Validation should say what you checked beyond rebasing/pushing the branch.

Once that context is in the description, reviewers will have a much quicker time scoping the change. 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants