Repository navigation
Description
Status
PARTIAL / IN-FLIGHT. Reopened after PR #15 prematurely closed the broader issue. The deterministic comparator core is already on main; the next extraction-portability/snapshot-identity package is now implemented in open green PR #17 and must not be rediscovered as future backlog. Remaining acceptance is real-build comparison evidence plus the lightweight Changes viewer/report. Partial implementation PRs must use Refs #13; do not close this umbrella until the remaining criteria below are satisfied.
Landed comparator core — PR #15
Merged into main@c64abd05ba5c1ce4efd54e2ee7e5e0e26db63589.
The landed compare_api.py consumes normalized lua_api.json rather than reparsing Java and provides stable canonical JSON for:
- class add/remove plus inheritance/interface/exposure changes;
- field add/remove/type/tag changes;
- method add/remove/return/tag changes;
- unambiguous parameter-signature changes while preserving added overloads as additions;
- global-function add/remove/structural changes;
- explicit
--old-id/--new-ididentities rather than timestamp/path guessing; - deterministic ordering +
schema_version.
Do not recreate this comparator or couple the core to the browser viewer.
In-flight completed package — PR #17: explicit extraction invocation + snapshot identity
PR #17 (feat/extractor-explicit-snapshot-identity @ 859b9d485340dd5713d4e5fe1d35496da2643fd8) implements the coherent portability/identity package that this issue previously described as “next work”. It is open, mergeable, independently default-destined, and does not touch the active #10/#16 LuaLS seam.
Implemented contract in #17:
- replaces hard-coded local Windows Steam source/output paths with required explicit
--src-root,--output, and--build-idinputs; - validates source root,
zombie/Lua/LuaManager.java, output target, and build identity and fails closed instead of probing/falling back; - embeds deterministic snapshot identity in generated
lua_api.json(schema_version, explicitbuild_id, stable extractor name/version) without timestamps or machine-local paths; - preserves the existing
classes,global_functions, source/inheritance indexes, unresolved data, and_metamodel; - proves the additive identity object remains consumable by the landed
compare_api.pycontract rather than creating a sidecar/second snapshot model; - keeps extraction a local read-tree → explicit JSON output effect with no shell construction, network/game mutation, dynamic evaluation, credentials, or path guessing.
Exact-head deterministic evidence already carried by #17:
- push workflow
33968588581: success; - PR workflow
33968590608: success; - 7/7 hosted deterministic/negative/integration tests with pinned
javalang==0.13.0; - non-Windows temporary source-tree fixtures prove explicit invocation, byte-identical repeated output, build-ID-only identity changes, JSON round-trip identity, comparator compatibility, and missing-root/LuaManager/output/build-ID negatives;
- GitHub reports Make API extraction portable and snapshots self-identifying #17 mergeable with no submitted reviews or review threads at this recorded head.
Default authority boundary: #17 remains for Gerome/coding-agent final review. Fleet must never merge it into main. Until it lands, treat the portability/identity package as implemented-but-not-default-landed, not as missing work.
Remaining package 1 — real-build proof
After #17 lands or from its exact proved contract where a safe corpus is available:
- run the extractor/comparator against two real extracted Project Zomboid builds using explicit build IDs;
- record source build identities, class/global counts, diff counts and report size;
- spot-check representative added/removed/changed records against the generated
lua_api.jsonsnapshots; - retain a reproducible sanitized fixture/report summary where licensing/size permits;
- do not claim Java binary/runtime compatibility from this structural report.
If real build trees are not safely obtainable in the agent environment, prepare/retain the exact evidence command and deterministic harness first. Unavailable external corpus proof is the empirical dependency; it is not permission to invent evidence or duplicate #17.
Remaining package 2 — lightweight Changes viewer/report
Only after the artifact/identity contract is default-landed/proven:
- reuse existing navigation/search patterns;
- Added / Removed / Changed filters plus search;
- current entities may navigate into the existing class/global viewer;
- removed entities must be historical/non-link targets rather than broken navigation;
- render the same canonical JSON diff rather than inventing a UI-only change model.
Relationship to #10/#16
#10/#16 and #13/#17 are sibling consumers/producers around normalized extraction truth. #16 owns LuaLS/LuaCATS export and currently has a separate live real-LuaLS rescue claim. #13 owns extraction identity + structural build deltas. Do not touch #16’s branch/files from this package or introduce a generic exporter/comparator framework unless concrete duplication survives both implementations.
Evidence
- Portability/identity: Make API extraction portable and snapshots self-identifying #17 exact-head hosted proof above; do not re-queue it while Make API extraction portable and snapshots self-identifying #17 remains the live review surface.
- Real-build proof: exact explicit build IDs and reproducible commands/results; synthetic fixtures do not satisfy the empirical claim.
- Viewer work: deterministic browser/component proof appropriate to the existing static viewer stack.
Done when
- Make API extraction portable and snapshots self-identifying #17’s explicit portable extraction + durable non-guessed snapshot identity is accepted on default or equivalently superseded;
- two real Project Zomboid builds have been compared and spot-checked with reproducible structural-diff evidence;
- a lightweight Changes viewer/report presents that same canonical deterministic diff without duplicating extraction, comparator, or navigation logic.
Activity