Skip to content

fix(test): honest registry version gate, binary-faithful CLI cwd, README field - #206

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
fix/pr190-harness-findings
Sep 1, 2026
Merged

fix(test): honest registry version gate, binary-faithful CLI cwd, README field#206
ScriptedAlchemy merged 2 commits into
mainfrom
fix/pr190-harness-findings

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Fixes the three unaddressed Codex post-merge findings on #190:

  • P2 (src/test/registry.ts, flagged at manifest.ts:104)AGENT_TEST_REGISTRY_VERSION stayed 1 while feat(test): projection-contract proof levels for the consumer harness (#103 stage 2) #190 added required cliCommands/plugin manifest fields, so mixed-version installs passed the version gate and crashed later in invokeCli/MCP helpers. Bumped to 2; stale registries now fail the existing gate with the recoverable AgentTestError ("found 1, expected 2" + install-one-version recovery) before any helper reads missing fields.
  • P2 (src/test/cli.ts:193)invokeCli resolved the request workspace from manifest.projectRoot, but the generated binary resolves from process.cwd() (verified in entry-shell.ts generated code). The harness now matches the shipped artifact.
  • P2 (README.md:235) — example read call.result.structuredContent; the real McpToolInvocation field is call.structuredContent.

Tests

Regression tests: version-1 registry refusal with the honest error (test-harness-manifest.test.ts) and workspace-from-invocation-cwd (projection/cli-dispatch.test.ts). Both verified to fail without the src fixes. Unit (28) + projection (23) tests, tsc --noEmit, rslint all green after rebase onto latest main.

…DME field

Post-merge review findings from #190: bump AGENT_TEST_REGISTRY_VERSION to 2
so registries missing the required cliCommands/plugin manifest fields fail
the existing version gate with a recoverable AgentTestError instead of
crashing inside invokeCli or the MCP helpers; derive the invokeCli request
workspace from process.cwd() to match the generated executable's semantics
instead of manifest.projectRoot; correct the README example to read
call.structuredContent (the McpToolInvocation field) rather than
call.result.
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4294388

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T21:05:28.963387Z 29b0ce0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Sep 1, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@206
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/create-agent-bundle@206
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/runtime@206

commit: 4294388

@ScriptedAlchemy
ScriptedAlchemy merged commit 7dbfacf into main Sep 1, 2026
10 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/pr190-harness-findings branch September 3, 2026 05:27
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.

1 participant