Repository navigation
fix(acp-registry): map reads the pinned submodule, fails closed when empty - #3361
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 Reviewed 1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTREQUEST_CHANGES — core fix and fail-closed logic are correct, but strip the internal hostname from public doc lines and guard reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge Oh wait, this incremental fix is actually clean. I need to sit down. I had my flamethrower warmed up and everything — it just kept pointing at a resolved finding. Follow-up on the carried findingThe previous round's two active inline comments (both already outdated,
📊 Overall: Second round in a row resolving a disputed finding with evidence and two opposing tests — this lane keeps fixing mirrors by proving which way the smoke detector faces. It's getting hard to stay cranky. Files Reviewed (6 files)
Previous Review Summaries (4 snapshots, latest commit d63047f)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit d63047f)Verdict: No Issues Found | Recommendation: Merge Oh wait, this incremental fix is actually clean. I need to sit down. I had my flamethrower warmed up and everything — it just kept pointing at a resolved finding. Follow-up on the carried findingThe previous round's suggestion (
The old implicit behavior (invisible via 📊 Overall: The rarest sight in review archaeology — a disputed finding resolved by evidence and two opposing tests rather than by capitulation or stubbornness. Like watching someone not only fix the mirror but prove which direction the smoke detector must face. Files Reviewed (6 files)
Previous review (commit dc645ce)Verdict: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)
🏆 Best part: Still the rare fix that actually fixes the root cause — the pinned-submodule default, fail-closed exit 2 on the empty/uninitialized submodule (the exact footgun that dropped 💀 Worst part: The drift check — the PR's crown jewel — still can't see the one byte-class of corruption its own diff message warns about. 📊 Overall: World-class new deadbolt, door frame still unpinned — the front is solid, the verification mirror just needs silvering. Files Reviewed (6 files)
Fix these issues in Kilo Cloud Previous review (commit ac5b2b3)Verdict: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)
🏆 Best part: Still the rare fix that actually fixes the root cause — the pinned-submodule default, fail-closed exit 2 on the empty/uninitialized submodule (the exact footgun that dropped 💀 Worst part: The drift check — the PR's crown jewel — still can't see the one byte-class of corruption its own diff message warns about. 📊 Overall: World-class new deadbolt, door frame still unpinned — the front is solid, the verification mirror just needs silvering. Files Reviewed (6 files)
Note: the previous review SHA Fix these issues in Kilo Cloud Previous review (commit c5f2dd0)Verdict: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)
🏆 Best part: Honestly? This is the rare fix that actually fixes the root cause. Defaulting to the pinned submodule, failing closed on an empty/uninitialized registry (exit 2), stamping 💀 Worst part: The drift check is the PR's crown jewel of safety — and it can't see the single byte-class of corruption its own diff message calls out. 📊 Overall: Like a locksmith who installed a world-class new deadbolt and then left the old door unpinned — the front is genuinely solid, it's just the verification mirror that needs silvering. Files Reviewed (6 files)
Reviewed by glm-5.3-flash · Input: 87.3K · Output: 14.3K · Cached: 1.5M |
c5f2dd0 to
ac5b2b3
Compare
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3
reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
ac5b2b3 to
dc645ce
Compare
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3
reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
…rmalisation Review of #3361. --check now normalises CRLF->LF explicitly instead of relying on read_text()'s universal-newline default, and two tests pin the rule: a CRLF working copy of an up-to-date artifact passes --check, and a real content change in a CRLF copy is still DRIFT. Line endings stay out of --check on purpose. The committed blob is LF by construction (.gitattributes `*.json text eol=lf`), so a CRLF working copy from an autocrlf checkout or an old Windows regeneration is not drift in what gets committed. Comparing bytes would report DRIFT on a tree git considers clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3
reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
|
Reopening. This PR was auto-closed by mistake. #3347's merge commit 🤖 Generated with Claude Code |
d63047f to
5849861
Compare
…rmalisation Review of #3361. --check now normalises CRLF->LF explicitly instead of relying on read_text()'s universal-newline default, and two tests pin the rule: a CRLF working copy of an up-to-date artifact passes --check, and a real content change in a CRLF copy is still DRIFT. Line endings stay out of --check on purpose. The committed blob is LF by construction (.gitattributes `*.json text eol=lf`), so a CRLF working copy from an autocrlf checkout or an old Windows regeneration is not drift in what gets committed. Comparing bytes would report DRIFT on a tree git considers clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 0 files / / digest Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
|
Rebased onto main after #3347. Main's claude/codex/opencode bridges are kept, and the map was regenerated with Kilo follow-ups:
Note: main's artifact had crush-acp |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTREQUEST_CHANGES — internal hostname "z890" leaked into a public repo, and the unexplained reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
…rmalisation Review of #3361. --check now normalises CRLF->LF explicitly instead of relying on read_text()'s universal-newline default, and two tests pin the rule: a CRLF working copy of an up-to-date artifact passes --check, and a real content change in a CRLF copy is still DRIFT. Line endings stay out of --check on purpose. The committed blob is LF by construction (.gitattributes `*.json text eol=lf`), so a CRLF working copy from an autocrlf checkout or an old Windows regeneration is not drift in what gets committed. Comparing bytes would report DRIFT on a tree git considers clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5849861 to
7c0424c
Compare
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 0 files / / digest Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 PR #3366 review — kilocode lane1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTREQUEST_CHANGES — scrub the reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
…empty
acp_registry_map.py defaulted to a repo-root SIBLING clone and treated an
existing-but-empty directory (an uninitialized submodule) as a registry
with zero entries, writing `acp_entries: {}` with exit 0. On z890 the
sibling was stale (no crush-acp), which is how PR #3347's regeneration
dropped the crush-acp entry.
- default registry = the PMOVES-registry submodule (infra.mk
ACP_REGISTRY_PATH ?= ../PMOVES-registry)
- exit 2 on zero entries, not just a missing directory
- artifact stamps registry_commit, so a regen from the wrong checkout
shows in the diff
- --check / `make -C pmoves acp-registry-map-check`: exit 1 on drift
- write LF explicitly (Windows default would rewrite every line as CRLF)
- regenerate from the pin a1ec4237: +hyperagint-acp; crush-acp root
version 0.91.2 (registry PR #10 made it plain semver for the schema)
- TAC_ACP_REGISTRY.md: submodule replaces the sibling-clone convention
Tests: test_acp_registry_map.py 6 passed; 5 of 6 fail against main's
generator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rmalisation Review of #3361. --check now normalises CRLF->LF explicitly instead of relying on read_text()'s universal-newline default, and two tests pin the rule: a CRLF working copy of an up-to-date artifact passes --check, and a real content change in a CRLF copy is still DRIFT. Line endings stay out of --check on purpose. The committed blob is LF by construction (.gitattributes `*.json text eol=lf`), so a CRLF working copy from an autocrlf checkout or an old Windows regeneration is not drift in what gets committed. Comparing bytes would report DRIFT on a tree git considers clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on main `git -C <registry> rev-parse HEAD` walks up to the nearest enclosing repo, so a plain registry directory inside this repo (uninitialized submodule, copied tree) stamped the PARENT repo's HEAD as registry_commit. Stamp only when `rev-parse --show-toplevel` resolves to the registry dir itself; tests cover both the nested-plain-dir and own-checkout cases. Map regenerated via `make -C pmoves acp-registry-map` from the pinned submodule (a1ec423) after rebasing onto #3347: keeps main's claude/codex/ opencode bridges (now linked) and adds hyperagint-acp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7c0424c to
860b0a4
Compare
ORGSIM-MIRROR drift check (advisory, fail-soft)vv3 / 0 files / / digest Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 Repo docs ( 1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTREQUEST_CHANGES — hostname/operator-id leaks ( reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
Summary
acp_registry_map.pybuilt the ACP↔PMOVES map from a repo-root sibling clone and accepted an empty registry directory as valid. An uninitializedPMOVES-registrysubmodule is an existing empty directory, so the generator wroteacp_entries: {}with exit 0. On z890 the sibling clone was stale and had nocrush-acp. That is the mechanism behind PR #3347's regeneration deleting thecrush-acpentry.Changes
PMOVES-registrysubmodule (DEFAULT_REGISTRY, andinfra.mkACP_REGISTRY_PATH ?= ../PMOVES-registry).acp-launcher-probeshares the variable and follows.registry_commitstamped in the artifact, so a regeneration from the wrong checkout shows up in review.--check/make -C pmoves acp-registry-map-check: exit 1 on drift.a1ec4237:hyperagint-acpcrush-acproot version is now0.91.2; registry PR fix: avoid blocking Jellyfin autolink loop #10 made it plain semver for the schemacrush-acpis keptTAC_ACP_REGISTRY.md: the submodule replaces the sibling-clone convention.Testing
pmoves/tools/tests/test_acp_registry_map.py: 6 passed. Against main's generator, 5 of 6 fail.make -C pmoves acp-registry-map-check→okon z890 after the regen.test_no_bare_bash_argv.pypasses.Not in this PR
acp-registry-map-check. CI would need to init the submodule first; that is a follow-up.a1ec4237is behind the registry fork'smain(2c8737a). Bumping it is a separate submodule PR.acp_registry_map.jsonhunk and rebase onto this.🤖 Generated with Claude Code