Repository navigation
Conversation
Preserve the twenty-entry diagnostic prefix and report the full count, omitted count and truncation fact at the owning report projection. Document the recovery limitation and cover the public HAR-to-comparison workflow. Fixes morluto#7621 Validation: 121 source tests; three selected CLI regressions (five other cases unselected); nine README conformance cases; full --noEmit typecheck; documentation facts/metadata/schema/licenses; module boundaries and architecture guards. VitePress rendering is blocked by Windows EPERM on its worktree-local Vue symlink. Full aggregate coverage remains for Draft CI. Independent code review: APPROVE, relayed by parent task 01a17716-6299-75fe-87e9-b0398b8c9019. Trigger: >=50 changed lines / >=3 files. Reviewed tree: ba964ef Reviewed full-index patch SHA256: 972dcfc219dd7b9606175b1848068f92210fa3f7d0a8a244c1ac7ce296ae32d9
[Medium impact] The code appears safe to merge; no actionable issues were found. Summary
Review used source inspection; tests were not rerun. Whether another PR supersedes this one could not be checked because GitHub access was unavailable. Reviews (1) · Last reviewed commit: "fix(environment): disclose truncated com..." · Reviewed by Greptile |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Summary
Fixes #7621.
environment-comparereturned the same 20 diagnostic entries for steps with 20, 21 or 25 differences, leaving callers unable to identify omitted entries. Each step now includesdifferences_total,differences_omittedanddifferences_truncated.Problem and expected behavior
Equality and category counts already use all computed differences. The defect is the loss of coverage information when the report keeps its first 20 entries. A bounded result should disclose that omission.
Change and scope
stepOfowns the bounded report and derives the new fields from its complete difference list and returned prefix. The existing 20-entry ceiling, ordering, comparison rules, equality and category calculations remain unchanged. The guide and fidelity specification explain the fields and the recovery limitation: omitted entries are not retained, and--full-outputcannot restore them; further investigation uses the original capture and probe Evidence.This is an ordinary correction within the existing contribution scope; an advance maintainer capability decision is not applicable. It does not change the diff engine addressed by #7161.
Contract and boundary impact
src/application/environment/environmentCompare.ts, before CLI result formatting.Evidence and regression coverage
Executed on Windows x64 with pinned Node 24.22.1/npm 11.16.0 and the existing unchanged-lockfile dependency installation, against base
40b9c03f996270e944ff07cafb63be15ce903708:--full-outputcontrol. On the base, 20/21/25 differences each returned 20 entries without coverage fields. After the change:differences_totaldifferences_omitteddifferences_truncatedApplicable boundary coverage: bounded projection facts, zero/ceiling/over-ceiling distinctions, retained source identity and public success/error delivery. No lifecycle behavior changes.
Validation performed
environmentCompare.test.tsandenvironmentCompareDiff.test.ts— 121 passed, no skips.scripts/rea.mjssynthetic workflow before and after — all five commands in each completed workflow exited 0.git diff --check— passed.node scripts/run-typescript.mjs --noEmit— passed (291 seconds); this was not a--noCheckrun.docs:check:built— passed: package/skill/catalog/completion metadata, documentation facts, error schema and dependency-license inventory. README conformance — 9 passed, no skips.Runtime preparation used the pinned compiler with
--noCheck, followed by catalog recording and bundling; the separate full typecheck above subsequently passed. Checks used the already installed, matching ancestor dependencies without another installation. The normal discovery script hardcodes checkout-localnode_modulesand fails in this arrangement. Its canonicalcompareTestDiscovery, using the existing Vitest installation, found all 2,687 files exactly once, with no missing or unexpected files.VitePress rendering was attempted with one rendering worker but failed before page generation: Windows returned EPERM when VitePress tried to symlink the existing Vue dependency into this worktree. Rendered-page/link coverage was unavailable locally; the hosted result is recorded below. No permission or dependency changes were made to work around it. Full local
npm run checkand aggregate suites were not run. MCP, live applications and real analysis providers were not exercised. The completed hosted CI result is recorded below.Hosted CI
Run 40611771298 passed on
0916d35592dd1abd5680770e955f83ab617c8576. Its checkout was mergef8ae065347c62a7a87e9105013bbffd911a55a03, whose tree exactly matches the reviewed tree. Source tests: 20,985 passed, 15 skipped. All eight built-test shards passed (16,132 passed, 229 skipped); the Linux CLI comparison file ran all eight tests, including the new coverage regression. Standardnpm run docs:checkandnpm run docs:buildpassed in the hosted Documentation job. Static checks, package builds, agentenv, Linux package validation, Portable tests and the required CI gate passed. Nineteen optional jobs were skipped; this does not establish coverage of those provider/platform lanes.Compatibility, safety, and release
JSON consumers gain three coverage fields. No paging or retained complete diagnostic list is introduced. Existing comparison behavior and resource ceiling remain in place. No credentials, network target interactions or release metadata changes are part of the patch.
Author readiness
Human owner: @WenyuChiou
Before merge
The human owner confirmed readiness for initial maintainer review. Merge requires separate explicit approval.