Skip to content

test(javascript): give the worker checkpoint fixture the coverage its producer always writes - #11093

Merged
morluto merged 1 commit into
mainfrom
fix/js-worker-checkpoint-fixture-coverage
Nov 15, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/js-worker-checkpoint-fixture-coverage

Conversation

@morluto

@morluto morluto commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

Since #10990 (15de1d4) the JavaScript worker's static checkpoint schema requires analysis_coverage, which the producer always writes. The shared test fixture tests/fixtures/javascriptWorkerCheckpoint.ts still omitted it, so every worker-protocol test that hands that fixture to the real worker parser fails on main with AnalysisOutputError (analysis_coverage: expected object, received undefined) instead of reaching the behaviour under test. #10990 was merged by the local gate, which runs typecheck/lint/guards but not tests, so this did not surface before merge.

Problem and expected behavior

On main, npm run test:focused -- tests/boundary/javascript/workerOrderAudit.test.ts tests/boundary/javascript/workerFailureComposition.test.ts fails 9 tests (4 + 5). Expected: the fixture is a valid "minimal complete static checkpoint", so those tests exercise frame ordering, cancellation and checkpoint-read failures rather than a schema refusal.

Change and scope

  • Adds a complete analysis_coverage record (syntax complete with 0 errors, no unknown findings or uncertainty, complete examination, Electron applicability unknown) to the shared fixture. No production code changes.
  • Not included: other fixtures touched by feat(evidence)!: require JavaScript, browser, managed and reference-source facts their producers always write #10990's newly required browser, managed and reference-source facts were not swept beyond grepping the JavaScript static-fact fixtures (the other matches use producer output, not hand-written records).
  • Contribution scope: not applicable (test fixture fix).

Contract and boundary impact

  • Semantic owner and earliest changed stage: the worker static-analysis schema (javaScriptWorkerStaticAnalysisSchema) is unchanged; only the test fixture now matches it.
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
  • Generated metadata, package, or installation impact: none.

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: the shared fixture used by workerOrderAudit.test.ts and workerFailureComposition.test.ts.
  • Base reproduction: on origin/main (29dd58c), workerOrderAudit.test.ts fails 4 of 35 and workerFailureComposition.test.ts fails 5 of 13, each with the analysis_coverage schema refusal.
  • Remaining proof gaps: none known for these two files.

Validation performed

  • npm run test:focused -- tests/boundary/javascript/workerOrderAudit.test.ts tests/boundary/javascript/workerFailureComposition.test.ts on main without the fix: 9 failed (4 + 5).
  • Same command with the fix: 48 passed.
  • Pre-push hook (typecheck, lint).

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable; macOS host.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

  • 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.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T12:12:09.598966Z
We couldn’t complete this review. Comment @codex review to try again.
be7b97e 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This fixture-only change appears safe to merge.

Summary

Adds the required analysis_coverage record to the shared JavaScript worker checkpoint fixture.

  • The shared worker checkpoint fixture now includes its required coverage record.

Reviews (1) · Last reviewed commit: "test(javascript): give the worker checkp..." · Reviewed by Greptile

@morluto
morluto merged commit 0a5df9f into main Nov 15, 2026
7 checks passed
@morluto
morluto deleted the fix/js-worker-checkpoint-fixture-coverage branch November 15, 2026 12:18
@morluto morluto added the area: tests Test suite and verification label Nov 22, 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.

1 participant