Skip to content

fix(browser): deduplicate scenario coverage guidance - #7933

Merged
morluto merged 2 commits into
mainfrom
codex/scenario-coverage-reasons-7342
Oct 29, 2026
Merged

morluto merged 2 commits into
mainfrom
codex/scenario-coverage-reasons-7342

Conversation

@morluto

@morluto morluto commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes #7342. Browser scenario comparisons repeated identical coverage and recovery sentences when both captures had an unknown redirect predecessor or event-family and network-content selections both differed.

Problem and expected behavior

Each distinct coverage reason should appear once while preserving unknown status, alignment, digests and independent recovery instructions. The producer now deduplicates atomic reasons before joining them and consumers use that composed reason directly.

Change and scope

The shared browser scenario comparison owns the explanation. The family mismatch still independently gates whether ordinary event differences may be reported as changed. The generic artifact comparison no longer accepts an unused family reason. Other reason joins in the module were inspected for the same duplication.

Contract and boundary impact

  • Semantic owner and earliest changed stage: domain scenario comparison's event coverage construction.
  • Contribution scope fit and linked maintainer decision: existing comparison, no new authority.
  • CLI and MCP/tool-catalog contract: unchanged schema; duplicate explanation text is removed.
  • Provider, bridge, target-format, or platform compatibility: unchanged.
  • Evidence, artifact, provenance, or reconstruction contract: uncertainty, digests and alignment remain intact.
  • Target selection, authority, upstream behavior, and cleanup details: unchanged.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.

Evidence and regression coverage

Domain tests cover identical unknown redirect ancestry, matching root control, simultaneous family and content mismatches, and unchanged digest values. A public CLI regression checks that both independent recovery instructions occur once. These use synthetic retained captures; no live browser or MCP-specific regression was run.

Validation performed

  • npm run test:local -- src/domain/browserScenarioDiff.test.ts — 33 passed.
  • npm run test:focused -- tests/boundary/cli/browserCli.test.ts — 13 passed.
  • npm run check:fast — passed.
  • git diff --check — passed.

Compatibility, safety, and release

Only redundant text is removed. No real browser or MCP-specific verification was performed.

Author readiness

Human owner: @morluto

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

@morluto
morluto marked this pull request as ready for review October 28, 2026 21:45
@chatgpt-codex-connector

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 🔄 Running since 2026-10-28T21:45:22.302924Z a5f48a2 Draft marked ready
ℹ️ 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 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no blocking issues were found.

Summary

The PR removes repeated browser scenario coverage explanations at their shared source.

  • Browser scenario comparisons show each event coverage reason once.

Reviews (2) · Last reviewed commit: "style(tests): fix CI formatting" · Reviewed by Greptile

@morluto
morluto merged commit 611c30c into main Oct 29, 2026
41 checks passed
@morluto
morluto deleted the codex/scenario-coverage-reasons-7342 branch October 29, 2026 01:23
@morluto morluto mentioned this pull request Nov 11, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Scenario event comparison repeats identical coverage instructions

1 participant