Skip to content

fix(package-verifier): reject overview responses without a procedure count - #2936

Merged
morluto merged 2 commits into
morluto:mainfrom
CodeAlex52:fix/package-platform-overview-count
Oct 13, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
CodeAlex52:fix/package-platform-overview-count

Conversation

@CodeAlex52

Copy link
Copy Markdown

Summary

Fixes #2518.

The packaged platform smoke check now rejects an analyze or inspect response whose binary_overview result is missing or null, instead of reporting a false success.

Problem and expected behavior

scripts/verify-package-platform.mjs:17-18,27-28 compared normalized_result?.procedure_count < 1. An absent or null normalized_result makes that comparison false in JavaScript, so a malformed overview passed the check.

Expected (per the issue's restoration check): a response with the expected operation and a positive procedure count passes; a response without the result, with normalized_result: null, with a zero count, or with a wrong operation is rejected.

Change and scope

scripts/verify-package-platform.mjs: both overview checks now require Number.isInteger(normalized_result?.procedure_count) before the existing positive-count comparison. The positive-count, wrong-operation and other lane assertions are unchanged.

Verification

I ran a fixture-driven harness against the modified script (the issue's fixture CLI, with the assertion executed from the exported production verifier):

positive control: accepted ✓
analyze/missing: rejected ✓      analyze/null: rejected ✓
analyze: zero-count and wrong-operation rejected ✓
inspect/missing: rejected ✓      inspect/null: rejected ✓
inspect: zero-count and wrong-operation rejected ✓
ALL EXPECTATIONS MET

As a control, the same harness against the unmodified script fails at analyze/missing with AssertionError: Missing expected rejection, which is the reported false acceptance. The harness stubs scripts/lib/verify-package-core.mjs's run/runWithStatus/json helpers with equivalent implementations (the original module additionally validates schemas with Ajv); the code under test is the unmodified verifier. I did not run the packaged platform lane or the repository's static checks here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T18:48:34.174723Z 23f2500 New commits
ℹ️ 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 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the stricter checks match the expected response format.

Summary

The packaged verifier now requires a positive integer procedure_count for both analyze and inspect.

  • Packaged analysis rejects overview results without positive integer counts.

Reviews (5) · Last reviewed commit: "test(package-verifier): cover malformed ..." · Reviewed by Greptile

Comment thread scripts/verify-package-platform.mjs Resolved
@morluto
morluto force-pushed the fix/package-platform-overview-count branch 2 times, most recently from afd6497 to 83769fd Compare October 13, 2026 18:23
CodeAlex52 and others added 2 commits October 14, 2026 02:46
…count

The analyze and inspect checks compared procedure_count with `< 1`, and an absent
or null normalized_result makes that comparison false, so a binary_overview
response without its required result passed the platform smoke check. Require an
integer procedure count before the positive-count comparison.
@morluto
morluto force-pushed the fix/package-platform-overview-count branch from 83769fd to 23f2500 Compare October 13, 2026 18:46
@morluto
morluto merged commit 4758ba3 into morluto:main Oct 13, 2026
1 check passed
@morluto morluto added bug Something isn't working area: build Build, CI, packaging, and publishing labels Oct 14, 2026
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Welcome to REA, @CodeAlex52. Thanks for catching the package verifier's false pass when an overview has no procedure count, and for adding the malformed-response cases.

@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: build Build, CI, packaging, and publishing area: tests Test suite and verification bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(package): platform verification accepts missing overview results

2 participants