Skip to content

test(verifiers): assert shared command diagnostics and identity - #7002

Merged
gensokyo-dev merged 1 commit into
mainfrom
test/package-verifier-contracts-20261024
Oct 24, 2026
Merged

gensokyo-dev merged 1 commit into
mainfrom
test/package-verifier-contracts-20261024

Conversation

@gensokyo-dev

@gensokyo-dev gensokyo-dev commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Problem and outcome

The shared command-owner refactor changed failure diagnostics and command identities, but package fixtures still read Node execFile's former top-level stderr and require the retired rea-package-command- prefix. This causes ten packed-Python failures on Windows and Linux, plus three packaged-Wasm ownership failures.

Read the canonical VerifierCommandExitError tag, numeric exit code and snapshot.stderr.text. In Wasm lifecycle fixtures, record the nonce allocated at the real launcher boundary and require the leader and descendant to receive that exact nonce, distinct from the inherited parent nonce. Share those checks across normal cleanup, permission denial/retry and harness failure. Record authority before process acquisition so a fixture log failure cannot strand a process. Remove the obsolete prefix checks; production contracts and implementations are unchanged.

Executed validation

Pinned Node 24.22.1 / npm 11.16.0, Linux x64, two CPUs:

  • Unchanged production/test files at 2250e67bc, identical to base 73320bb2c: 13 failed / 14 passed (36.03 s wall / 31.07 s CPU / 754.1 MiB sampled process-family RSS).
  • Changed pair: 27 passed. Final related command-ownership/semantics suite: four files, 38 passed (33.25 / 26.38 s / 738.0 MiB).
  • Negative controls: bypassing the actual Python AST parse fails the invalid-syntax assertion; a real descendant reporting a forged nonce fails identity matching. Both fail with assertions (2.34 s / 336.4 MiB; 5.87 s / 568.1 MiB), and both mutations were restored. No production diff remains.
  • Final npm run check and git diff --check: passed (23.70 / 43.69 s / 2927.9 MiB; 2/6 static tasks cached).

Real Python parsing, Node processes, private roots, ownership observation and cleanup ran. Packaging/install/WABT boundaries remain authored fixtures; this does not qualify a real WABT engine. The Windows failures are executed CI evidence; local execution was Linux, and current-head CI passed, including Windows, Source, all eight built shards, selected native-package baselines and the final required gate. The merged report contains 32066 passed / 0 failed / 233 conditionally skipped. Codex and Greptile completed without findings at exact head 14551085e (no inline threads). Main advanced independently with firmware-budget remediation 2e86294c8; this PR result does not qualify that combined tree. Existing malformed input, ambient-import isolation, source non-execution, capacity, denied cleanup, cleanup retry and child-before-root-release assertions remain.

RSS sums descendants every 100 ms and may double-count shared pages or miss brief/reparented children; it is not a hard aggregate cap. Focused tests used a 3 GiB sampled stop, static checks an 8 GiB stop, and commands had elapsed guards. No OOM occurred. These are validation costs, not a speedup claim; runtime agent tokens were not measured. The independent agentenv descendant-lifecycle failure remains tracked; main CI is not yet green.

Author readiness

Human owner: @gensokyo-dev

The owner explicitly delegated readiness declarations and agent-managed review. Inspection and execution were performed by Codex; no separate human inspection is claimed.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 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-10-24T12:31:05.671220Z 1455108 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.

@greptile-apps

greptile-apps Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The changes appear safe to merge; no actionable defects were found.

Summary

This PR repairs tests after the shared command-owner refactor. Production code is unchanged.

  • Packed Python tests check the shared command error details.
  • Wasm ownership tests match process IDs to the real command launch.

Reviews (1) · Last reviewed commit: "test(verifiers): assert shared command d..." · Reviewed by Greptile

@gensokyo-dev
gensokyo-dev merged commit 347b6e4 into main Oct 24, 2026
44 checks passed
@gensokyo-dev
gensokyo-dev deleted the test/package-verifier-contracts-20261024 branch October 24, 2026 12:51
@morluto morluto added the area: tests Test suite and verification label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants