Skip to content

fix(ci): preserve Git reads and simplify boundary fixtures - #1603

Closed
N0zoM1z0 wants to merge 19 commits into
mainfrom
fix/main-maintenance-ci-20261010
Closed

N0zoM1z0 wants to merge 19 commits into
mainfrom
fix/main-maintenance-ci-20261010

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Preserve Git read failures and maintenance inputs, and repair the shared CI duplication failure reproduced on main 5100a1a1.

Git reads validate encodings at the adapter boundary and keep unreadable loose refs unknown instead of falling back to packed refs. The CLI and Evidence boundary checks distinguish malformed oversized JSON from a typed string-assembly resource constraint. Noninteractive maintenance retains the existing owned skill destination and its bytes. Electron computed access preserves an explicit empty requested-members list and dynamic-access facts; a literal * remains a literal member.

The ASAR boundary tests now share eight identical archive setups and nine fully enumerated member selections. All existing cases and assertions remain, including cancellation, identity changes, retained handles after failed cleanup, combined handle/snapshot recovery, and streaming allocation checks. No duplication threshold or excluded-test configuration changes.

Validation on this source combined with frozen main 5100a1a1: fresh six-step runtime/metadata build, 19 ASAR cases before and after the fixture refactor, two actual Git/worktree/read-failure cases, seven Electron cases, and all eight static/documentation/architecture/discovery checks passed. Main alone reproduces the jscpd failure at 2.52%; the refactor removes 99 duplicated lines and passes at 2.49% with the unchanged 2.5% threshold. Fresh compiled public CLI/pinned-SDK MCP controls for 63-byte computed access and 45-byte literal-member targets verify complete normalized-result and Evidence-ID parity, unchanged JavaScript inputs and subsequent ping.

Earlier independent validation remains tied to its recorded revisions: 193 affected tests across 16 files, an 18-byte public Git import, and the bounded-heap JSON readers. The current native-addon controls are static and use an opaque three-byte .node fixture; they do not establish native export verification, Electron runtime behavior, or Hopper/Ghidra behavior. Final-source CI is pending. Original source and contributor history are retained.

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

@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Independent review of 3b66532e: the failures in #1600 match this current-main lifecycle/test repair, so I will validate this existing PR first rather than duplicate the fixes. An additional unchanged Electron composition test still expects requested_members: ["*"] for a computed member. Actual CLI and pinned SDK MCP controls confirm the new exact representation: computed binding has no literal members and explicit dynamic access, while a literal "*" remains a real member. I will verify the frozen source and add that missing assertion follow-up, preserving the failure receipts and native verification scope (not performed).

@N0zoM1z0 N0zoM1z0 changed the title fix(browser): detach cancelled sessions and repair lifecycle checks fix: restore Git metadata and cancelled browser cleanup Oct 10, 2026
Preserve failed event finalization across retries and current capture ownership checks. Retain Git unreadable-ref and bounded-heap Evidence coverage, pinned maintenance destinations, and explicit native binding facts.
@N0zoM1z0 N0zoM1z0 changed the title fix: restore Git metadata and cancelled browser cleanup fix(ci): preserve Git reads and verify maintenance boundaries Oct 10, 2026
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Linux verification update: the six native Qwen/Pi/Hermes/DeepSeek scenarios passed at 87b7bf8d (full 170-tool catalog; actual MCP calls, skills/Evidence, Hermes sticky profile, DeepSeek plain chat; loopback model fixtures, no live API/Windows claim). All owned process lineages were verified empty and a run-token scan found no survivors.

The remaining shard 1/3 hang reproduced locally in Android snapshot cleanup. A small Node 24.18.0 control confirms a non-auto-closing FileHandle write stream prevents the final close() from settling. Main now fixes this in 0d899783; cace19ca still has the preceding snapshot implementation, so it needs that main fix before final CI. The alternative auto-closing output control passed all 33 Jadx protocol-fixture scenarios plus 24 process/Evidence checks on Linux; I am also verifying main’s stream-destruction implementation. No real Jadx engine verification is claimed.

@N0zoM1z0

N0zoM1z0 commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

Linux verification at main 0d899783: all 33 Jadx protocol-fixture scenarios plus 24 process/Evidence checks passed (one Windows-only skip). The snapshot cleanup hang is resolved with Node 24.18.0; real Jadx engine execution remains unverified.

All six native client scenarios passed on the same frozen source: Qwen 0.25.0, Pi 1.1.0, Hermes normal/sticky, and DeepSeek Harness 0.2.0-rc.2 chat/call. Full 170-tool catalogs, skills, actual MCP calls/Evidence, verified empty process lineages and a run-token scan with no survivors. SDK-advertised regex and real Git/worktree checks also passed. These use loopback model fixtures; no live model-provider or native Windows claim. PR/main CI is still pending.

@N0zoM1z0 N0zoM1z0 changed the title fix(ci): preserve Git reads and verify maintenance boundaries fix(ci): preserve Git reads and simplify boundary fixtures Oct 10, 2026
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

@greptileai review

@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, with the previously noted non-blocking test-path issue still present.

Findings

  1. P2 Wrong skill directory checked ▶
Fix with agent prompt
### Issue 1
tests/process-global/updateMaintenance.test.ts:undefined-361
This test sets `CLAUDE_CONFIG_DIR` to `home`, so Claude Code uses `home/skills`, not `home/.claude/skills`. The new absence check would miss a stray write to the configured destination during a dry run. Derive the checked path from `supportedClients(home)` or use `join(home, "skills", PRODUCT_IDENTITY.skillName)`.

```suggestion
      access(join(home, "skills", PRODUCT_IDENTITY.skillName)),
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

The PR validates Git text encodings and adds checks for unreadable refs, bounded-memory Evidence reads, computed Electron member access, and maintenance of an existing skill.

  • Git refs stay unknown when their metadata cannot be read.
  • JSON boundary tests distinguish malformed input from oversized strings.
  • Electron analysis keeps computed member access marked as dynamic.
  • Maintenance dry runs include an existing shared skill in the plan.

Reviews (8) · Last reviewed commit: "Merge branch 'main' into fix/main-mainte..." · Reviewed by Greptile

@morluto morluto added bug Something isn't working area: build Build, CI, packaging, and publishing area: domain Domain logic, errors, and pure functions P2: medium Medium priority issue labels Oct 13, 2026
skydavil and others added 2 commits October 13, 2026 23:02
* fix(comparison): preserve incomplete function call evidence

Keep missing, unknown, partial and unresolved call relationships unknown in function comparisons and reconstruction claims. Aggregate IDA caller and callee coverage without overwriting uncertainty.

Validate with 144 focused tests, typecheck/lint, docs checks and test discovery. Real providers were not verified; the full headless IDA session suite requires unavailable Windows native controls.

* fix(comparison): recheck historical calls-only changes

---------

Co-authored-by: morluto <[email protected]>
(cherry picked from commit 688defc)
morluto and others added 4 commits October 14, 2026 01:15
* fix: repair the static-check failures on the default branch

The default branch fails its own required `Static checks` job three ways, so
every pull request reports that job as failed regardless of its own change.

- `npm run format:check` reports `src/domain/functionComparison.test.ts` and
  `src/ida/IdaOperationRunner.ts`.
- `npm run lint` reports a duplicate `import { join } from "node:path"` in
  `tests/boundary/mcp/ghidraInventoryMcp.test.ts` (lines 4 and 17).
- `npm run typecheck` reports `format: "devin"` missing from the client format
  union in `src/application/SupportedClients.ts`, and an unchecked index in
  `tests/boundary/cli/clientProfileLifecycle.test.ts`, whose pair array is
  inferred as `string[][]`.

Apply the pinned formatter, drop the duplicate import, list the `"devin"` format
that its own definition already uses, and mark the pair array `as const`.

Validation: `npm run check:fast` and `npm run format:check` pass.

* fix(setup): keep Devin on the JSON configuration dialect

---------

Co-authored-by: 吴佳浩 <[email protected]>
Co-authored-by: morluto <[email protected]>
(cherry picked from commit df3d96d)
});
await expect(
access(join(home, ".agents", "skills", PRODUCT_IDENTITY.skillName)),
access(join(home, ".claude", "skills", PRODUCT_IDENTITY.skillName)),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Wrong skill directory checked

This test sets CLAUDE_CONFIG_DIR to home, so Claude Code uses home/skills, not home/.claude/skills. The new absence check would miss a stray write to the configured destination during a dry run. Derive the checked path from supportedClients(home) or use join(home, "skills", PRODUCT_IDENTITY.skillName).

Suggested change
access(join(home, ".claude", "skills", PRODUCT_IDENTITY.skillName)),
access(join(home, "skills", PRODUCT_IDENTITY.skillName)),
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/process-global/updateMaintenance.test.ts
Line: 361

Comment:
**Wrong skill directory checked**

This test sets `CLAUDE_CONFIG_DIR` to `home`, so Claude Code uses `home/skills`, not `home/.claude/skills`. The new absence check would miss a stray write to the configured destination during a dry run. Derive the checked path from `supportedClients(home)` or use `join(home, "skills", PRODUCT_IDENTITY.skillName)`.

```suggestion
      access(join(home, "skills", PRODUCT_IDENTITY.skillName)),
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@N0zoM1z0 N0zoM1z0 closed this Oct 14, 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: domain Domain logic, errors, and pure functions bug Something isn't working P2: medium Medium priority issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants