feat(native): retain LLDB source coordinates and verify Pascal call entries

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 <noreply@openai.com>
This commit is contained in:
Matheus Breguêz
2026-10-14 02:40:36 +08:00
committed by morluto
co-authored by Codex
parent 0bc422d7be
commit 8b0e330c25
15 changed files with 371 additions and 2 deletions
@@ -50,6 +50,25 @@ const observation = (
};
describe("LLDB retained observations", () => {
it("preserves partial source coordinates while accepting historical omission", () => {
const attributed = {
...event,
source_location: {
file_path: "/missing/fixture.pas",
line: 23,
column: null,
},
};
const journal =
[event, attributed]
.map((entry) => JSON.stringify({ kind: "event", event: entry }))
.join("\n") + "\n";
expect(observation("cancelled", journal).events).toEqual([
event,
attributed,
]);
});
it.each([
["cancellation", "cancelled"],
["bridge failure", "tracer-failure"],