Repository navigation
test: enforce critical scenario and protocol evidence (stage 2) - #1672
Merged
Merged
Conversation
Add real local child and approval HTTP regressions, assertion-level gates and CI receipts. Drain terminal dispatch persistence during shutdown and reject incomplete desktop acceptance receipts.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
The scenario/contract catalog now has executable evidence for a bounded critical local set, and source CI fails when its required assertions do not actually pass. The new shutdown journey also reproduces a real lifecycle bug: child termination previously allowed
dispose()to return before terminal task/conversation/Issue/delivery persistence finished. Shutdown now drains those continuations, shares completion across concurrent disposal calls and rejects new dispatches.Builds on merged #1667 and targets current
devate024be3. This PR contains only Stage 2 (one commit, 37 changed files), rather than a stacked Stage 1 diff. Keep it open for maintainer review.Changes
critical-localfrom five reviewed, bounded coverage rows. Fourteen required assertion references must appear uniquely and pass. Skipped/omitted/ambiguous evidence, narrowing the gate, empty execution, report/spawn errors and hook/cleanup failures cannot produce acceptance. Existingpnpm testand side-effect lanes retain their scopes.pnpm test:criticalinside the existing dev PR and master/manual source jobs and always upload its receipt. Keep the existing job topology, build/release authority and dedicated platform/paper runners.External agent executables use controlled real Node children; venue behavior uses MockBroker behind real loopback HTTP. These tests prove local affected layers, not paid native CLI authentication or real brokerage execution.
Validation
2c13e8058aa750036ffae1aac9cc208da0fd810dThe bounded gate measured 22.23 seconds in the initial verified run. The final published tree is identical to the locally verified tree. This host used the documented prebuilt native subprocess dependencies and inherited
pnpm_config_verify_deps_before_run=falseto avoid pnpm implicitly reinstalling a modified manifest.Full hermetic run is not green: all 873 files ran; 869 passed, 3 failed and 1 skipped; 7,450 cases passed, 4 failed and 5 skipped. Connector unlink timed out and passed the isolated two-file rerun. The Office Session action failure also reproduces on unmodified dev and matches existing #1440; the other Office carry failure passes isolated rerun (on both baseline and this branch), while the two-file rerun failed a different replay transition. The unchanged PTY recovery test observed five probes instead of its exact expected four, then passed isolated rerun; tracked separately as #1671. These UI/CLI files are untouched, and their failures are retained as failed evidence rather than reclassified as acceptance.
Review order and limits
tests/helpers/workspace-journey.ts: real layers, controlled boundaries and failure/recovery assertions.src/workspaces/service.ts: dispatch admission/completion tracking and terminal persistence during shutdown.scripts/test-results.mjs, runner/receipt guards,tests/gates.jsonand the existing source CI jobs.docs/testing.mdandplans/test-system-grouping.md: execution receipts and remaining gaps.Try
pnpm test:critical --receipt artifacts/tests/critical-local.jsonor inspect withpnpm test:select --gate critical-local --json. Required gates reject selector/test-name narrowing.Native macOS/Windows desktop close/reopen/explicit quit, browser onboarding/PTY reconnect, Docker/SSH, external-provider and real paper-account acceptance were not run. Their broader matrix rows remain partial; native/artifact consumers retain their own acceptance receipts. No release operation or merge is included.