Skip to content

test(clients): verify unrelated launcher preservation - #3399

Closed
wunianze666-netizen wants to merge 1 commit into
morluto:mainfrom
wunianze666-netizen:codex/client-lifecycle-launcher-identity
Closed

wunianze666-netizen wants to merge 1 commit into
morluto:mainfrom
wunianze666-netizen:codex/client-lifecycle-launcher-identity

Conversation

@wunianze666-netizen

@wunianze666-netizen wunianze666-netizen commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Verify that JSON/TOML client configurations with an unrelated absolute executable named rea retain their exact original bytes, create no backup and leave that executable untouched. Also make the existing directory-link protection executable on Windows by declaring a junction explicitly.

Problem and expected behavior

A basename alone does not prove launcher ownership. These real-filesystem negative controls catch an accidental broadening of the existing identity rule. No executable is launched. No linked issue: the controls arose while checking obsolete positive launcher fixtures; main subsequently corrected those positives, which were removed from this PR.

Change and scope

One test-file change, within the existing lifecycle scope. Production ownership, configuration removal and cleanup assertions are unchanged. The explicit directory link uses junction on Windows and directory symlink elsewhere. No new provider or execution authority; a separate maintainer scope decision is not applicable.

Contract and boundary impact

  • Semantic owner/earliest stage: existing client registration identity at the configuration-filesystem boundary; only its regression coverage changes.
  • Scope/maintainer decision: existing lifecycle controls; no authority expansion.
  • CLI/MCP/tool-catalog: unchanged; representative new output is not applicable.
  • Provider/bridge/format/platform: JSON and TOML launcher configurations; test fixture declares the directory-link type.
  • Evidence/artifact/provenance: tests assert original configuration and unrelated executable bytes plus absence of a backup.
  • Target selection/authority/cleanup: only owned test-temporary files; unrelated executable is not run or removed.
  • Generated metadata/package/install: none.

Expected effects of verification:

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

The checked write effect is confined to self-owned test-temporary configurations and directory links; this PR adds no production mutation.

Evidence and regression coverage

  • Tests: JSON/TOML foreign absolute launcher preservation and existing directory-link control.

  • Base evidence: initial obsolete owned-launcher positive fixtures failed on unchanged 7c962cc7; main corrected them before this final delta. They are not claimed as this PR's repair.

  • External negative control: CassieFox23's report reports Linux main 89faa863e 56 passing, applied diff 58 passing, and two new failures when ownership was deliberately weakened. This is their execution, not ours or proof of adoption.

  • Remaining gaps: local Windows ran only four lifecycle and four cache-policy controls; the other 52 local lifecycle and two shell-cache controls were not executed. No installed-client/provider compatibility claim.

  • Observed, derived, and inferred claims remain distinguishable.

  • Artifact identity, source provenance, and failed attempts remain preserved.

  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

Head remains ede9901d2c559e2501fce90bbf06baabe119d7be, based on cbc0e97; no new source push or local test rerun in this body-only follow-up.

  • Historical Windows focused lifecycle selection recorded in this PR — four passed (two positives and two foreign-launcher negatives); not the complete local file.
  • Historical npm run check — passed typecheck/lint/format/metadata/module/architecture checks.
  • Current-head code CI 38562523349 — selected lanes passed; raw Linux shard 4 logged all 56 lifecycle controls passing. Not complete platform/provider qualification.
  • An external verification note below reports 56/56 on macOS and check:fast; it is preserved verbatim, not represented as a new local run.

Compatibility, safety, and release

  • Breaking changes/migrations/package/release: none; test-only change.
  • Real tool/OS: historical Windows selection, hosted Linux file and external macOS report. Windows file-symlink privilege coverage remains unavailable locally.
  • Security/privacy/containment: no customer configuration modified, no unrelated launcher executed, no provider installed. Old unrelated JavaScript/Hopper/cache CI failures and their upstream repairs remain attributed to upstream.
  • Maintainer morluto converted this PR to draft on 2026-10-21 22:05 UTC. That state is preserved. The body note and green CI do not attest to the human owner's readiness.

Author readiness

Human owner: @wunianze666-netizen

AI-assisted preparation. The human owner's initial declaration remains pending.

  • 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 within the existing boundary; no new execution/provider authority.
  • The PR has one focused outcome and a Conventional Commit title.
  • The reason for not linking an issue is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs and contracts are updated where needed.
  • Representative CLI/MCP behavior or its non-applicability is described.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

Maintainer blocker verification

Fresh verification on this exact head, macOS arm64, Node 24.18.0/npm 11.16.0: npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts passed 56/56, including the JSON/TOML foreign absolute-launcher cases; npm run check:fast passed. Windows execution was not rerun in this pass. Human author-readiness declarations remain for the owner to complete; these checks do not attest to human review.

Withdrawal — 2026-10-22

The human owner has explicitly chosen to withdraw this test-only proposal and prioritize a different contribution. The existing branch, verification evidence and external reports are preserved. This is a prioritization decision: it does not mean the tests were merged, superseded by an equivalent upstream change, or proven incorrect. No author-readiness declaration is made. #3293 and #3425 remain separate open proposals.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Adds JSON and TOML tests proving that uninstall preserves an unrelated absolute launcher named rea.

  • Uninstall tests now cover unrelated launchers in JSON and TOML configs.
  • The cache-link test creates the right directory link on each platform.

No actionable issues or rule violations were found. Tests were not run during this review. Live supersession status could not be checked because GitHub access was unavailable; the supplied description says #3410 was superseded, not this PR.

Reviews (3) · Last reviewed commit: "test(clients): verify unrelated launcher..." · Reviewed by Greptile

@morluto morluto added the area: tests Test suite and verification label Oct 14, 2026
@wunianze666-netizen wunianze666-netizen changed the title test(clients): align lifecycle fixtures with launcher identity test(clients): verify unrelated launcher preservation Oct 14, 2026
@wunianze666-netizen
wunianze666-netizen force-pushed the codex/client-lifecycle-launcher-identity branch from 0d3f230 to 3226bf3 Compare October 14, 2026 09:37
@wunianze666-netizen
wunianze666-netizen marked this pull request as draft October 14, 2026 09:58
@wunianze666-netizen
wunianze666-netizen force-pushed the codex/client-lifecycle-launcher-identity branch from 3226bf3 to 8a68d07 Compare October 14, 2026 11:57
@wunianze666-netizen
wunianze666-netizen force-pushed the codex/client-lifecycle-launcher-identity branch from 8a68d07 to ede9901 Compare October 14, 2026 12:15
@kaoru0822-kitauji
kaoru0822-kitauji marked this pull request as ready for review October 15, 2026 06:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T06:18:44.566187Z ede9901 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.

@CassieFox23

Copy link
Copy Markdown
Contributor

TL;DR: I ran the new tests on Linux. Both new cases pass on main's source. They also fail when I break the ownership check on purpose, so they do guard it.

Results

I used Node 24.18.0 and one file, clientLifecycle.test.ts. This PR only adds tests, so there is no bug to reproduce.

Run Tests Result
main 89faa86, file as it is 56 all pass
main 89faa86 plus this PR (head ede9901) 58 all pass, 2 new cases (JSON and TOML)
same, with the ownership check broken on purpose 58 2 fail (the new cases), 56 pass

The break was one line. It sat in the identity check for client entries. It made any absolute path ending in the rea binary name count as owned. Without that line the new cases pass, so they catch exactly that mistake.

The checks on GitHub for this head ran. I read them from the checks list and did not run them. Test shards 1 to 5, Source tests, Static checks, Portable tests and CI required all show success. The Windows and native lanes show skipped, as this PR only touches a test.

Not run

  • The Windows junction change. This box is Linux.
  • The Windows CI lane. It was skipped on this PR.
  • The whole test suite. I ran only the one named file.
  • The PR's own claims about Windows results. I have no way to check them here.

Thanks, wunianze666-netizen, for all of the work on this PR.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB DDR4-3600
  • Node: 24.18.0
  • Head: ede9901
  • Base: 89faa86
  • Other: the box was shared with three other test agents during the runs
Commands
git -C ~/code/rea-mirror/rea.git archive 89faa863ed472d8a13a826014331d3b81cfc5de3 | tar -x -C /tmp/t10-1015/main
git -C ~/code/rea-mirror/rea.git diff 89faa863e...refs/pull/3399/head > /tmp/t10-1015/3399.diff
npm ci && npm run build && npm run test:prepare
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts            # main, 56 pass
git apply /tmp/t10-1015/3399.diff
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts            # patched, 58 pass
# one line in ClientRegistrationIdentity.ts changed so an absolute path ending in the rea name counts as owned
npm run test:focused -- tests/boundary/filesystem/clientLifecycle.test.ts            # 2 fail, 56 pass

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

wunianze666-netizen commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Current validation follow-up, 2026-10-22:

  • feat(analysis-view): select HAR MIME types in capture previews #3293 a2084311: code CI 39714832942 passed. Raw source and all eight portable-shard logs executed merge 8e755fe90ee30ef5a60e447af6b96297dddbfb08 / main 63fe0eb5dbd4f4f8b12a7d6c7d8c51effe4673f3; 61 capture-view, 23 CLI and 23 SDK MCP checks passed.
  • feat(analysis-view): locate unavailable response facts by record #3425 266e059e: code CI 39715665100 passed. Raw logs executed merge ad4b3f9ca2eda7b424dd33718473bbb4572d2ed0 / main 292fd532c9e62d0654a5277889f2a25acc96d5f3; 22 API-view, 15 accumulator, 23 CLI and 23 SDK MCP checks passed.
  • Both passed source/static/docs/build, all eight portable shards, the bundled Windows-native artifact build, selected Linux package baseline and required gates. Optional provider/platform execution skips remain unqualified; an artifact build is not a full Windows capability run.
  • Template feedback and missing MIME controls are addressed. Full/compact SDK selection controls pass, retaining full-profile nested negative controls. Previously recorded local 110/86 checks and production stdio parity retain their exact frozen local revision; remote CLI additions are not represented as new local tests.
  • test(clients): verify unrelated launcher preservation #3399 remains ede9901d, draft as set by the maintainer. Its external macOS verification note is preserved verbatim and is not a new local run or human-author declaration.

Three PRs remain open and unmerged. Author readiness declarations remain unchanged for the human owner; code CI does not attest to human review or authorize merging. No replacement PR, close/reopen refresh or target capture/replay was performed.

@morluto
morluto marked this pull request as draft October 21, 2026 22:05
@morluto morluto added the area: setup Setup, packaging, upgrade, install, Doctor, and client registration label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants