Skip to content

test(cli): preserve literal heading regression coverage - #7062

Closed
ShuaixinHuang wants to merge 13 commits into
morluto:mainfrom
ShuaixinHuang:codex/fix-cli-heading-text
Closed

ShuaixinHuang wants to merge 13 commits into
morluto:mainfrom
ShuaixinHuang:codex/fix-cli-heading-text

Conversation

@ShuaixinHuang

@ShuaixinHuang ShuaixinHuang commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #7779 at the author's request. The replacement retains only the regression still absent from current upstream; this PR's branch and validation history are preserved.

Latest-head CI completed successfully

Verified at 2026-10-27T14:44:47.3206867Z, head 7fd6b2312a8262776535ee07fffe0ce12744c708: complete CI workflow 40518816354 and its CI required gate both finished success. This is evidence for this exact current head. Title and human author-declaration checks were also successful before this evidence-only body update; their fresh metadata checks may run again. Earlier queued/failed stages below are retained as historical records, not the current result. Local validation limitations remain disclosed. CI success does not establish maintainer approval or permission to merge.

Earlier Hermes preview verification (2026-10-27)

Current head 7fd6b2312a8262776535ee07fffe0ce12744c708 corrects the two Hermes preview assertions exposed by run 40515325267, executed as merge 361c8e0c into fixed main 79d2fc05. Upstream ddb53376 resolves existing ancestors even when the final home does not yet exist. The preview fixture now expects native sticky routing for a symlinked default root and external routing for an escaping prefix in both existence states. The test still checks both missing/existing iterations, exact configuration and skill targets, unchanged config/profile bytes, no backups and no setup writes. Relative to fixed main, this file has exactly one changed expectation line.

Windows, Node 24.22.1 / npm 11.16.0: the complete acceptance file passed 22 tests / 1 existing Windows named-user skip, including both formerly failing preview cases and all five nested-home cases. The combined two-file command recorded 52 passed / 5 existing skips / 3 failed, and is not all green: the unchanged boundary file uses three POSIX path spellings on Windows. No production identity logic or timeouts were changed to suppress these failures.

Changing the newly added upstream test block produced a real content conflict, so this branch required a normal merge of the same pinned upstream 79d2fc05; it does not follow later main changes. The resulting PR diff is five test files plus five behavior-equivalent lint normalizations required by normal hooks (duplicate imports, an array spread and redundant regex escaping). The latter were inspected; no provider capability or runtime policy is added. Normal pre-commit and pre-push typecheck/lint 2/2 passed (33.384 s), and GitHub reports no merge conflict. Latest-head CI 40518816354 has been created and was queued at verification; title and readiness succeeded. Earlier runs below are historical.

Earlier CI repair (075fbbe)

Head 075fbbe41e279701b0d9a7019984309cf851728c repairs the three failures from historical run 40503239155 without changing production behavior. The Hermes positive fixtures now use the existing admitted, pinned npx launcher; anchors, aliases, comments, environment and refusal controls remain covered. The JavaScript regression validates both literal/nested entry paths within each identity namespace and follows existing application-node links with artifact digest, module and source-range provenance, instead of equating two intentionally different hash namespaces. The one upstream conflict was resolved using the maintainer-reviewed launcher assertion from fixed main 79d2fc05.

Windows / Node 24.22.1 / npm 11.16.0: complete Hermes file 12/12 passed and complete JavaScript file 25/25 passed. Normal pre-commit and pre-push typecheck/lint 2/2 passed (33.097 s). Read-only merge-tree against fixed main exited 0. These are local focused results, not a full-suite claim. Latest-head CI 40515325267 was running at verification; title and readiness succeeded. Earlier-head results below are historical.

Summary

Retain regression coverage for literal Markdown heading keys through the real CLI result-output owner after upstream 6d7e6277 implemented the production fix. Frozen input, JSON round-trip, seven exact headings, CRLF/CR injection, table output and the no-fallback path remain explicit controls.

The PR also aligns affected regression fixtures with current admission and cleanup contracts so they reach their intended failure boundaries: proven-owned stale launchers, exact retained-root paths, semantic WASM hash/format identity, the actual archive digest, and Java's standard property framing. Refusal, malformed-input, cleanup-retry and isolation assertions remain intact. The formatter itself is not overridden.

The only non-test producer correction is the existing public mobile-graph example: directory kind now drives both the root occurrence ID and its record. No provider or target-execution capability is added.

Earlier shared fixture corrections (2026-10-27)

Earlier head ad7a1db808fd39bc38f3e23021d95cf39665dc56 changes five test files only, 23 insertions / 6 deletions: a current-date PR fixture within the rolling selection window; the real ps prerequisite while retaining the empty PATH component; admitted Mach-O input for MCP inventory coverage; exact unknown-launcher diagnostics and configuration provenance; and explicit complete delivery for Android inline Evidence. Named-operation, advertised-schema/Ajv, raw Evidence, cleanup, refusal and read-only controls remain enforced. No production change or new skip is introduced.

The complete four-file Windows focused command recorded 18 passed / 15 existing POSIX skips / 1 failed. The remaining public-CLI fixture requires a POSIX fake-gh shebang; on Windows it produced gh-calls ENOENT. This command is not green. A separate probe through the real collectPrCiHealth owner with a fixed observation time confirmed old-date selection yields 0 PRs and the current-date fixture yields 1 with CI missing, complete inventories and exactly two GET calls. Ghidra, MCP inventory and launcher POSIX cases still require Linux CI.

Shared Android checks on actual failed merge 423db9e0: the existing JNI MCP owner test passed 1 selected / 4 unselected (35.66 s); that merge plus the exact four-line patch passed the complete source typecheck (17.157 s). This is shared isolated evidence; the complete POSIX Android process file was not run locally on Windows, and no real JADX engine was run.

Normal pre-commit checks for all five files and normal pre-push typecheck/lint 2/2 passed (31.057 s). As of 2026-10-27 12:23:18 UTC, this exact head's main CI 40503239155 is queued / pending, with no conclusion. Earlier green runs remain historical.

Earlier upstream compatibility

The native artifact tests now use the three canonical test/fixture files from already-merged upstream #7479 (740c0f56, inspected in main 570abe95). The inert PE bytes and manifest remain independent of the production producer. The verifier copies its relative module dependency graph while asserting that installed dependencies and packed-source inputs remain absent. Only these conflicting tests and their shared fixture were synchronized; no production parser or broad main merge was introduced.

Earlier Electron and ZCode fixture correction

Earlier head 08caf22e changed two test files only (12 insertions / 4 deletions). ZCode refresh and malformed-environment fixtures now establish owned launchers before exercising their intended admission boundary. The Electron fixture retains unresolved IPC pairing exactly: 0 paired, 7 ambiguous, 0 unpaired transmissions. Ownership, malformed-input, backup, unchanged-byte, progress and Evidence controls remain intact; this follow-up changes no production code.

Windows, Node 24.22.1 / npm 11.16.0: the complete ZCode file passed 27 tests / 1 existing Windows FIFO skip (8.23 s), and the complete Electron MCP file passed 8 tests / 2 existing Windows skips (54.01 s). Normal pre-commit checks, pre-push typecheck/lint 2/2 (34.288 s), git diff --check, and independent read-only review passed.

Historical CI run for 08caf22e used merge f8811806f2ceec7e909836d1a92f902e0310ef4a into fixed main 570abe95. Its shard 5 failed 8 cases across 4 files (2,184 passed, 30 skipped); that run's Windows lane succeeded. These earlier results do not qualify the current head.

Earlier model identity correction (5cf98e2c)

Historical head 5cf98e2c corrected one portable model-view regression fixture: delivery display paths may rebound while semantic artifact identity remains bound to the digest. Wrong-digest and alias-plus-wrong-digest refusals remain explicit; valid rebound paths, parent Evidence links, and cold/warm cache paths are checked.

Windows, Node 24.22.1 / npm 11.16.0: the complete focused model-identity file passed 1/1 (7.88 s). Normal pre-commit checks and pre-push typecheck/lint 2/2 passed (27.653 s).

Historical CI run for 5cf98e2c failed shard 1 on the Electron and ZCode fixture expectations corrected above (6 failed, 2,114 passed, 26 skipped). That result is superseded by the current head; it is not a current-head pass.

Earlier validation (a2161f78)

The preceding stage recorded 118 passed, 5 existing Windows platform skips across these unchanged boundaries:

  • Cleanup/WASM/TOML/output-close four-file focused command: 21 passed, 5 existing Windows platform skips. POSIX-only close-failure behavior still requires hosted Linux verification.
  • Complete client-environment and Java-probe files: 73 passed.
  • Canonical native-loader and isolated verifier files after the upstream synchronization: 24 passed.
  • Normal pre-commit checks and that stage's pre-push typecheck/lint 2/2 passed (25.797 s), independent read-only review, and git diff --check passed. Read-only merge-tree against fixed main 570abe95 exited 0.

Earlier validation of unchanged boundaries at the 132ec89a stage includes 66 source tests and all 9 public graph-example CLI positive/negative controls. Earlier broader local commands were not all green: a CLI command recorded a Windows temporary-directory EBUSY, another command retained an unchanged Kimi POSIX-path/Windows-separator expectation, and a full static command stopped at three upstream unused exports. These limitations are not waived or presented as successful full-suite runs. No external engine or actual Windows addon loading is claimed by the inert fixtures.

Historical hosted CI run for a2161f78 passed Source tests and the Windows lane. Shard 7 exposed the model fixture mismatch corrected above (1 failed, 2,074 passed, 34 skipped); the other seven shards were cancelled.

Author readiness

Human owner: @ShuaixinHuang

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

The human owner explicitly confirmed review and responsibility for this PR and requested formal maintainer review in this session on 2026-10-25.

Before merge

  • Concrete problem and focused conventional title.
  • Ordinary fix within existing scope.
  • Regression covers changed output and unchanged JSON/source.
  • No generated artifacts, secrets or unrelated cleanup.
  • Latest-head required CI and human readiness confirmed.

@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes appear safe to merge.

Summary

This PR preserves regression coverage for literal Markdown headings after the production fix landed upstream.

  • CLI Markdown tests keep source keys literal in headings.
  • Electron bridge tests distinguish literal keys from nested paths.
  • Android and Hermes checks keep their current results with smaller edits.

No actionable new issues were found. The heading fix is already in the base, but the added regression coverage is not superseded. Hosted PR status could not be checked because GitHub authentication was unavailable. No tests were run during this review.

Reviews (13) · Last reviewed commit: "merge: resolve Hermes preview fixture ov..." · Reviewed by Greptile

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review October 25, 2026 03:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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 ⚠️ Failed 2026-10-25T03:59:41.691295Z
We couldn’t complete this review. Comment @codex review to try again.
d36d9ac 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.

@ShuaixinHuang ShuaixinHuang changed the title fix(cli): preserve literal keys in Markdown headings test(cli): preserve literal heading regression coverage Oct 27, 2026
@greptile-apps

greptile-apps Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings could not be posted inline.

  • P1 Mapped inventories stall REA src/domain/android/proguardMapping.ts:926 ▶

    A full inspect_android_class call resolves every observed method separately, but each lookup scans every mapping candidate with the same raw name. N same-name methods therefore repeat N² prototype comparisons. The byte limits admit thousands of such methods without limiting this work. An isolated lookup probe took 1.87 seconds for 1,000 methods and 7.60 seconds for 2,000 methods, with 100 shared parameters. During those comparisons, Node cannot handle cancellation or other requests.

    Index checked residual identities once and reuse them across the class inventory, while preserving ambiguity and candidate counts. Add a whole-inventory regression. This also satisfies AGENTS.md’s directive to “Reuse validated results and shared work.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants