feat: Verification Protocol — auto quality gate via POST /v1/sessions/:id/verify (#740)#982
Merged
OneStepAt4time merged 1 commit intomainfrom Apr 3, 2026
Merged
Conversation
- Add POST /v1/sessions/:id/verify endpoint that runs tsc + npm build + npm test on the session's workDir - Add VerificationResult SSE event type (event: 'verification') - Add verificationProtocol config option (autoVerifyOnStop, criticalOnly) - Emit 'working' status while verifying, SSE 'verification' event with full result on completion - 2174 tests pass
7 tasks
Contributor
|
Self-rebase failed — conflicts with merged PRs across config.ts, events.ts, server.ts. Please rebase onto current main and push. Approved — will merge immediately on green CI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement Verification Protocol (Issue #740) — automated quality gate execution after CC sessions.
What's included
New endpoint:
POST /v1/sessions/:id/verifyRuns quality gate on the session's workDir:
npx tsc --noEmit(type check)npm run build(build)npm test(full test suite, unlesscriticalOnly: true)SSE event:
event: 'verification'Emitted when verification completes, with full result:
{ "event": "verification", "data": { "ok": true, "steps": [{ "name": "tsc", "ok": true, "durationMs": 2340 }, ...], "totalDurationMs": 45230, "summary": "Verification passed: tsc ✅, build ✅, test ✅ (45230ms)" } }Config:
verificationProtocol{ "verificationProtocol": { "autoVerifyOnStop": false, "criticalOnly": false } }Usage
Quality Gate
Developed with: v2.9.3
Tested with: v2.9.3