Repository navigation
feat(native): retain LLDB source coordinates and verify Pascal calls - #2800
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
[Medium impact] The changes reach native-call observations and two MCP process workflows. Fix the failed-command output mismatch before merging; it breaks the existing Apple verification workflow.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4c342eca1
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open. The timeout sent SIGTERM, which a selected compiler wrapper could ignore. Both compiler probes and compilation now request SIGKILL at their existing finite deadlines, so the direct compiler process cannot ignore timeout termination and the existing finally owns temporary cleanup. No directly related source cleanup remains. Validation: inspected the producer and affected consumers; targeted formatting applied where applicable. Tests and automated checks were not run at the user’s explicit request. Real-provider/platform execution remains unverified. Commit: b4c342e Expected caller coordinates duplicated physical fixture line numbers. The Pascal fixture now carries unique loop/call markers, and the verifier derives both expected lines from the selected source while requiring each marker exactly once. Source-coordinate comparison remains strict without coupling it to preceding whitespace. No directly related source cleanup remains. Validation: inspected the producer and affected consumers; targeted formatting applied where applicable. Tests and automated checks were not run at the user’s explicit request. Real-provider/platform execution remains unverified. Commit: b4c342e The aggregate location budget regression used only absent line entries. It now covers both that case and valid line entries with a large Unicode source path, counts serialized source metadata in the retained-byte budget, and asserts the path survives in retained locations. No directly related source cleanup remains. Validation: inspected the producer and affected consumers; targeted formatting applied where applicable. Tests and automated checks were not run at the user’s explicit request. Real-provider/platform execution remains unverified. Commit: b4c342e |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 976c3990d6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. Fixed publicly in 976c399. The verification page presented earlier checks as current evidence even though later assertions, timeout termination, and Unicode budget changes were not run. It now labels those records historical and states exactly which final behavior remains unverified. Source and documentation inspection plus git diff --check passed; automated checks and provider execution were skipped at the user request. No related source cleanup remains. The verification record now explicitly says repeated paths expand serialized payloads and that no equivalent cold or warm measurements exist for agent tokens, elapsed time, CPU time, or peak process-family memory. Those measurements require completed representative workflows, which the current user instruction forbids running. This is an honest hold: do not integrate the repeated source-location expansion until the requested measurements are completed. The limitation is documented in 976c399; source review and git diff --check passed, but no execution or performance proof is claimed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ac8ab8771
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The LLDB source_location field now advertises the caveat and every observe_native_calls result includes it in limitations: paths/lines are LLDB line-table attribution, not proof that REA read or verified those source bytes. This is live at 1ac8ab8. Pinned formatting and git diff --check passed; tests and provider runs were not performed. The verifier now launches each caller-selected FPC invocation in an owned detached process group; timeout kills the group, and execFile completion is awaited before the finally block removes temporary output. This is live at 1ac8ab8. Pinned formatting and git diff --check passed; the verifier/provider workload was not run. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d3e0a87ef
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
0d3e0a8 to
856ea92
Compare
…ntries Preserve partial line-table attribution for native locations and historical evidence compatibility. Verify owned Free Pascal call entries through CLI/MCP. Refs #2382, #2372, #2397 Co-Authored-By: Codex <[email protected]>
Use stable descriptive paths instead of numeric prefixes to avoid parallel contribution collisions. Co-Authored-By: Codex <[email protected]>
Address review findings at their producing boundaries and preserve directly affected consumers. Source inspection and git diff --check completed. Tests and automated checks were not run at the user’s explicit request.
856ea92 to
4a9883b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca7e980d49
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # bridge/native/test_rea_lldb_tracer.py
|
Merged latest |
Main now typechecks this boundary test, which imports the untyped canonical-temporary-directory helper and reads an unknown catch value. Add the helper's declaration file and narrow the caught error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CLI and MCP artifact runs observe the verifier abort signal, and a failed Pascal verifier test stops the compiler group before deleting its directory. Repeated source locations grow by measured UTF-8 JSON bytes; workflow tokens, CPU and peak memory stay unmeasured.
| const owner = commands ?? (await createVerifierCommands()); | ||
| const execute = () => | ||
| owner.exec( | ||
| process.execPath, |
There was a problem hiding this comment.
Apple verification loses failed output
Switching to owner.exec breaks verify:apple-dispatch. VerifierCommandExitError keeps output in snapshot.stdout.text, but scripts/verify/apple/dispatch.mjs still reads cause.stdout. Its malformed-metadata checks now call JSON.parse(undefined) and stop before the MCP comparison.
Update that caller to use the new error shape, or preserve the helper’s previous output fields.
Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/lib/artifact-e2e.mjs
Line: 131-134
Comment:
**Apple verification loses failed output**
Switching to `owner.exec` breaks `verify:apple-dispatch`. `VerifierCommandExitError` keeps output in `snapshot.stdout.text`, but `scripts/verify/apple/dispatch.mjs` still reads `cause.stdout`. Its malformed-metadata checks now call `JSON.parse(undefined)` and stop before the MCP comparison.
Update that caller to use the new error shape, or preserve the helper’s previous output fields.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Native call observations retain compiler-provided source file, line and column coordinates. The Pascal CLI/MCP verifier checks the expected caller frame and compares its source coordinates as well as call-entry facts; compiler invocations have finite deadlines.
The verifier now supervises CLI and MCP process families under the workspace owner. Cancellation waits for process cleanup before removing the workspace, retains failed cleanup for retry, and preserves a prior work failure. Shared MCP transport supervision joins late startup and concurrent close while retaining the existing JADX exit behavior.
Original implementation by @matbrgz in #2400. The original fork rejected the maintainer push with HTTP 403, so this branch provides the requested replacement.
Validation on Node 24.22.1:
npm run build:cached,npm run check:fast, and four focused process/MCP/transport suites passed (25 tests), including real subprocess-family cleanup, cancellation during final MCP cleanup, and work-failure precedence. These ran before a subsequent clean merge of unrelated main changes. An initial build attempt under Node 26 failed because its TypeScript loader rejects transform mode; the pinned Node 24 build passed. Real LLDB/Free Pascal and native Windows runs were not performed; existing provider verification is historical.Author readiness
Human owner: @morluto