Skip to content

fix(acp-registry): map reads the pinned submodule, fails closed when empty - #3361

Merged
POWERFULMOVES merged 3 commits into
mainfrom
fix/acp-registry-map-submodule
Oct 21, 2026
Merged

POWERFULMOVES merged 3 commits into
mainfrom
fix/acp-registry-map-submodule

Conversation

@POWERFULMOVES

Copy link
Copy Markdown
Owner

Summary

acp_registry_map.py built the ACP↔PMOVES map from a repo-root sibling clone and accepted an empty registry directory as valid. An uninitialized PMOVES-registry submodule is an existing empty directory, so the generator wrote acp_entries: {} with exit 0. On z890 the sibling clone was stale and had no crush-acp. That is the mechanism behind PR #3347's regeneration deleting the crush-acp entry.

Changes

  • Default registry = the pinned PMOVES-registry submodule (DEFAULT_REGISTRY, and infra.mk ACP_REGISTRY_PATH ?= ../PMOVES-registry). acp-launcher-probe shares the variable and follows.
  • Fails closed on zero entries (exit 2), not only on a missing directory.
  • registry_commit stamped 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.
  • Writes LF explicitly; the Windows default would have rewritten the whole artifact as CRLF.
  • Artifact regenerated from the pin a1ec4237:
  • TAC_ACP_REGISTRY.md: the submodule replaces the sibling-clone convention.

Testing

  • New 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 → ok on z890 after the regen.
  • test_no_bare_bash_argv.py passes.

Not in this PR

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: POWERFULMOVES/PMOVES.AI/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f88e42fe-ad5c-46c8-8c5c-aad02fbf1257

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added docs Documentation config pmoves/config(s)/ changes governance AGNOTE register / agent definitions / damage-control hooks labels Oct 12, 2026
Comment thread pmoves/tools/acp_registry_map.py Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

Reviewed /review/kilo-review.diff (6 files: generator, make targets, artifact regen, docs, agent-log, new tests).

1. CORRECTNESS

  • _registry_commit (acp_registry_map.py:151): git -C <path> rev-parse HEAD walks up to an ancestor repo when the registry dir is not itself a checkout (e.g. uninitialized submodule, or a registry nested under any git repo) and stamps the parent's HEAD. Guard with rev-parse --show-toplevel == registry or read the gitlink.
  • Stamp is silently omitted when _registry_commit returns None — a write from a non-git registry drops registry_commit with exit 0; consider warning or failing so the audit stamp can't quietly disappear.
  • --check reads via read_text() (universal newlines) so a CRLF-contaminated artifact passes check while --write would rewrite every line — lenient/by-design? If strict LF matters, compare read_bytes().
  • infra.mk:99/102 — --registry $(ACP_REGISTRY_PATH) unquoted; breaks on paths with spaces. Quote it ("$(ACP_REGISTRY_PATH)").
  • Diff contains no .gitmodules/gitlink addition — confirm the PMOVES-registry submodule already exists on main, and that no existing CI job invokes acp-registry-map/acp-launcher-probe (both now fail closed, exit 2, on runners without git submodule update --init — PR admits CI wiring is deferred).
  • Artifact: crush-acp version 0.91.2-pmoves.2 → 0.91.2 — confirm no consumer matches on the fork suffix.
  • Exit 2 collides with argparse's usage exit 2 (cosmetic; callers can't distinguish).
  • Tests are sound; no scope creep — AGNOTE CLAIM row matches existing repo convention.

2. SECURITY / TOPOLOGY

  • Leak (added lines, public repo): internal node identifiers z890 (TAC_ACP_REGISTRY.md:53) and Z890-CLAUDE (AGNOTE4482PHI.t1.md:43). Pre-existing pattern in that file's older rows, but these are new additions — genericize to "a fleet node".
  • No IPs, ports, tokens, or credentials in added lines. subprocess.run uses list-argv with timeout, no shell — clean.

3. VERDICT

REQUEST_CHANGES — core fix and fail-closed logic are correct, but strip the internal hostname from public doc lines and guard _registry_commit against ancestor-repo mis-stamping.

reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

@kilo-code-bot

kilo-code-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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 finding

The previous round's two active inline comments (both already outdated, line: null) are fully resolved at HEAD 860b0a415. The new commit closes the last remaining loophole in the registry_commit stamp:

  • _registry_commit now verifies rev-parse --show-toplevel resolves to the registry directory itself before stamping. git -C <dir> walks UP to the enclosing repo, so a plain registry directory inside this repo (uninitialized submodule, copied tree) would have stamped the PARENT repo's HEAD — a provenance stamp that lied about its own identity, stamped onto every regeneration from any checkout of anything. Now it refuses. Every failure path (bare repo, timeout, missing git) returns None conservatively.
  • test_commit_not_stamped_from_an_enclosing_repo pins the reject case: a real parent repo, a real commit, stamp still refused.
  • test_commit_stamped_when_registry_is_its_own_checkout pins the accept case, so the guard can't over-correct into never stamping.
  • Regenerated artifact's registry_commit (a1ec4237c4e1...) matches the actual submodule pin in HEAD (git ls-tree — same SHA), and every newly-linked bridge target (claude_code, codex_cli, opencode) verifies as a real row in agent_registry.yaml. The stamp is evidence now, not decoration.

📊 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)
  • pmoves/tools/acp_registry_map.py - reviewed, no issues (stamp guard sound, fail-closed on all error paths)
  • pmoves/tools/tests/test_acp_registry_map.py - reviewed, no issues (both new stamp tests pin opposing cases)
  • pmoves/configs/acp_registry_map.json - reviewed, no issues (stamp matches submodule pin; bridge targets verified in agent_registry.yaml)
  • pmoves/mk/infra.mk - reviewed, no issues (unchanged since prior review)
  • pmoves/docs/TAC/TAC_ACP_REGISTRY.md - reviewed, no issues
  • pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md - reviewed, no issues
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 finding

The previous round's suggestion (--check compares bytes so line endings can't be laundered) was not taken as written — and that's the right call. Byte comparison would make --check report DRIFT on a working tree git considers clean (autocrlf checkout), producing CI-vs-local disagreement on Windows nodes. Instead, commit d63047ffa makes the normalisation explicit and deliberate:

  • --check now reads bytes and normalises \r\n → \n visibly, documented in a comment that cites .gitattributes (*.json text eol=lf — verified present at HEAD, so the committed blob is LF by construction; a CRLF blob can't even reach the index).
  • test_check_passes_a_crlf_working_copy pins the accept case (exit 0).
  • test_check_still_detects_content_drift_in_a_crlf_copy pins the guard case — a real content edit inside a CRLF copy still exits 1, so the normalisation can't be used as a laundering loophole.

The old implicit behavior (invisible via read_text's universal-newline default) is exactly what the original comment criticized; that defect no longer exists in any form. Line-ending policy now lives where it belongs — one layer, explicitly, tested from both sides.

📊 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)
  • pmoves/tools/acp_registry_map.py - resolved (carried finding verified fixed at HEAD d63047ffa); no new issues
  • pmoves/tools/tests/test_acp_registry_map.py - reviewed, no issues (both new CRLF tests sound)
  • pmoves/configs/acp_registry_map.json - reviewed, no issues
  • pmoves/mk/infra.mk - reviewed, no issues
  • pmoves/docs/TAC/TAC_ACP_REGISTRY.md - reviewed, no issues
  • pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md - reviewed, no issues

Previous review (commit dc645ce)

Verdict: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
🚨 critical 0
⚠️ warning 0
💡 suggestion 1
🤏 nitpick 0
Issue Details (click to expand)
File Line Roast
pmoves/tools/acp_registry_map.py 197 (re-verified at HEAD dc645ce43, still open — matches the existing inline comment) The --check drift detector reads the artifact with read_text in universal-newline mode, which silently translates \r\n → \n — so a legacy CRLF artifact (the exact corruption class the write-side newline="\n" fix exists to prevent) passes --check as clean. Compare bytes (read_bytes() vs rendered.encode("utf-8")) and add a test hand-writing a CRLF artifact that asserts exit 1.

🏆 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 crush-acp in #3347), and the registry_commit stamp that rats out a regeneration from a stale checkout. The test suite targets failure modes with real asserts, not vibes. I came for a roast and left muttering "okay, fine, this is competent."

💀 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. read_text is a newline laundromat: whatever CRLF is in the committed artifact becomes LF before comparison, so "ok: matches the registry" keeps its blind spot exactly the width of the Windows bug this PR documents. One hole, in the one tool whose job is zero holes.

📊 Overall: World-class new deadbolt, door frame still unpinned — the front is solid, the verification mirror just needs silvering.

Files Reviewed (6 files)
  • pmoves/tools/acp_registry_map.py - 1 issue (carried forward, verified at HEAD dc645ce43)
  • pmoves/tools/tests/test_acp_registry_map.py - reviewed, no issues
  • pmoves/mk/infra.mk - reviewed, no issues
  • pmoves/configs/acp_registry_map.json - reviewed, no issues
  • pmoves/docs/TAC/TAC_ACP_REGISTRY.md - reviewed, no issues
  • pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md - reviewed, no issues

Fix these issues in Kilo Cloud

Previous review (commit ac5b2b3)

Verdict: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
🚨 critical 0
⚠️ warning 0
💡 suggestion 1
🤏 nitpick 0
Issue Details (click to expand)
File Line Roast
pmoves/tools/acp_registry_map.py 197 (re-verified at HEAD ac5b2b34, still open — matches the existing inline comment) The --check drift detector reads the artifact with read_text in universal-newline mode, which silently translates \r\n → \n — so a legacy CRLF artifact (the exact corruption class the write-side newline="\n" fix exists to prevent) passes --check as clean. Compare bytes (read_bytes() vs rendered.encode("utf-8")) and add a test hand-writing a CRLF artifact that asserts exit 1.

🏆 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 crush-acp in #3347), and the registry_commit stamp that rats out a regeneration from a stale checkout. The test suite targets failure modes with real asserts, not vibes. I came for a roast and left muttering "okay, fine, this is competent."

💀 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. read_text is a newline laundromat: whatever CRLF is in the committed artifact becomes LF before comparison, so "ok: matches the registry" keeps its blind spot exactly the width of the Windows bug this PR documents. One hole, in the one tool whose job is zero holes.

📊 Overall: World-class new deadbolt, door frame still unpinned — the front is solid, the verification mirror just needs silvering.

Files Reviewed (6 files)
  • pmoves/tools/acp_registry_map.py - 1 issue (carried forward, verified at HEAD)
  • pmoves/tools/tests/test_acp_registry_map.py - reviewed, no issues
  • pmoves/mk/infra.mk - reviewed, no issues
  • pmoves/configs/acp_registry_map.json - reviewed, no issues
  • pmoves/docs/TAC/TAC_ACP_REGISTRY.md - reviewed, no issues
  • pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md - reviewed, no issues

Note: the previous review SHA c5f2dd04 is absent from history (the branch was rewritten), so this pass used the full gh pr diff 3361 fallback as specified.

Fix these issues in Kilo Cloud

Previous review (commit c5f2dd0)

Verdict: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
🚨 critical 0
⚠️ warning 0
💡 suggestion 1
🤏 nitpick 0
Issue Details (click to expand)
File Line Roast
pmoves/tools/acp_registry_map.py 197 The --check drift detector reads the artifact with read_text in universal-newline mode, which silently translates \r\n → \n — so the legacy CRLF artifact the write-side newline="\n" fix exists to prevent passes --check as clean. Compare bytes (read_bytes() vs rendered.encode("utf-8"), both lines together) and add a test hand-writing a CRLF artifact that asserts exit 1.

🏆 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 registry_commit so a regeneration from a stale checkout rats itself out in the diff — I came in with the flamethrower warmed up and mostly found myself nodding. The zero-entry fail-closed guard is a genuinely good trap for the "uninitialized submodule is an empty dir" footgun that dropped crush-acp in #3347. And the test file targets the failure mode with precision, including a real drift case rather than the usual smoke-and-vibes "assert nothing crashed."

💀 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. read_text is a newline-laundromat: whatever CRLF is in the committed artifact gets converted to LF before the comparison, so "ok: matches the registry" has a blind spot exactly the width of the Windows bug this PR documents. Small hole, but it's in the one tool whose job is to have no holes.

📊 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)
  • pmoves/tools/acp_registry_map.py - 1 issue
  • pmoves/tools/tests/test_acp_registry_map.py - reviewed, no issues
  • pmoves/mk/infra.mk - reviewed, no issues
  • pmoves/configs/acp_registry_map.json - reviewed, no issues (verified registry_commit a1ec4237 matches the .gitmodules submodule pin and the checked-out submodule)
  • pmoves/docs/TAC/TAC_ACP_REGISTRY.md - reviewed, no issues
  • pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md - reviewed, no issues (claim row)

Reviewed by glm-5.3-flash · Input: 87.3K · Output: 14.3K · Cached: 1.5M

@POWERFULMOVES
POWERFULMOVES force-pushed the fix/acp-registry-map-submodule branch from c5f2dd0 to ac5b2b3 Compare October 14, 2026 06:15
@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

  1. CORRECTNESS
  • --check is not byte-exact: args.out.read_text(encoding="utf-8") uses universal-newline mode, so a CRLF-committed artifact compares equal to the LF render — the drift gate passes despite the exact line-ending corruption this PR says it prevents. Compare read_bytes() (or newline="") instead (acp_registry_map.py, new lines 216-223).
  • Path.write_text(..., newline="\n") requires Python ≥3.10; --write raises TypeError on older interpreters. OK if uv pins ≥3.10, but nothing in the diff enforces it.
  • Exit code 2 for missing/empty registry collides with argparse's usage-error exit 2; CI can't distinguish "bad registry" from "bad CLI invocation".
  • --check false-drifts when git is unavailable or the registry isn't a checkout (_registry_commit → None → key omitted vs committed artifact stamped with a1ec4237…).
  • Diff contains no .gitmodules/gitlink change — the ../PMOVES-registry default and registry_commit stamp presuppose the submodule pin already exists on main; if this PR is meant to introduce it, it's missing.
  • crush-acp version drops the -pmoves.2 suffix (data change, explained by registry PR fix: avoid blocking Jellyfin autolink loop #10) — any consumer pinning/matching 0.91.2-pmoves.2 breaks silently.
  • --registry $(ACP_REGISTRY_PATH) unquoted in both make targets (pre-existing pattern; breaks on paths with spaces).
  • Tests are solid: cover default path, missing/empty fail-closed, LF bytes, drift, mode exclusivity.
  1. SECURITY / TOPOLOGY
  • No IPs, ports, tokens, or credentials in added lines.
  • Low severity: new lines add internal node identifiers Z890-CLAUDE (AGNOTE claim line) and z890 (TAC doc). Consistent with identifiers already public elsewhere in these docs, but they are hostnames/node names in a public repo — confirm that's accepted convention.
  1. VERDICT: REQUEST_CHANGES
    Core fix is sound, but the drift check masks CRLF (undermining the gate's stated purpose), exit 2 is ambiguous, and the submodule pin the whole change depends on isn't shown in this diff.
reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

@POWERFULMOVES
POWERFULMOVES force-pushed the fix/acp-registry-map-submodule branch from ac5b2b3 to dc645ce Compare October 15, 2026 15:29
@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

  1. CORRECTNESS
  • Path.write_text(..., newline="\n") (acp_registry_map.py:229) requires Python ≥3.10; on a 3.9 runner the write path TypeErrors. Confirm the repo's Python floor or use open(..., newline="\n").
  • _registry_commit silently returns None for a non-git registry dir → --write omits the stamp (loses provenance) and --check false-DRIFTs vs the committed artifact (which has the key). Fail closed here too; it contradicts the PR's own guarantee.
  • Diff contains no .gitmodules/gitlink hunk — verify the submodule is already pinned at repo-root PMOVES-registry at a1ec4237; otherwise DEFAULT_REGISTRY and ACP_REGISTRY_PATH ?= ../PMOVES-registry both dangle.
  • infra.mk: $(ACP_REGISTRY_PATH) unquoted in recipes; breaks on paths with spaces (pre-existing pattern, but you touched both lines).
  • Artifact regen is internally consistent (registry_commit sorts last under sort_keys; version/new entry match the stated pin); --check exit-code split (1 drift / 2 empty) and mutual-exclusion group are correct.
  • AGNOTE4482PHI.t1.md append is out of chronological order (a 2026-10-12 entry appended after 2026-10-14 entries) and its TTL expired 2026-10-13 — reads as a backdated provenance claim.
  • CI: acp-registry-map-check is not wired into CI (admitted in PR body); when wired it needs git submodule update --init, uv, and network for --with pyyaml.
  1. SECURITY / TOPOLOGY
  • No IPs, ports, tokens, or secrets in added lines.
  • Not clean: internal node identifier "z890" added in TAC_ACP_REGISTRY.md:53 and agent identity Z890-CLAUDE in the AGENTS note — fleet host/agent names leaked into a public repo; genericize.
  1. VERDICT: REQUEST_CHANGES — z890/Z890-CLAUDE identifiers in a public repo plus the backdated, expired-TTL AGENTS log append and the silent registry_commit=None hole undermine an otherwise sound fail-closed fix.
reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

POWERFULMOVES added a commit that referenced this pull request Oct 15, 2026
…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>
@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

  1. CORRECTNESS
  • pmoves/tools/acp_registry_map.py _registry_commit: git -C <registry> rev-parse HEAD walks up to any enclosing repo — a populated non-git registry dir (tarball copy, or submodule with .git removed) nested under the repo gets the parent repo's HEAD stamped as registry_commit. Verify the resolved git-dir is inside the registry.
  • No .gitmodules/submodule-pointer change in this diff, yet DEFAULT_REGISTRY = REPO_ROOT/PMOVES-registry and ACP_REGISTRY_PATH ?= ../PMOVES-registry assume the submodule exists at repo root. If it isn't already on main, every target fails — confirm.
  • _registry_commit returning None (no git binary / non-repo path) silently omits the key, so --check reports DRIFT vs the committed artifact even when content matches. Warn or fail instead.
  • Exit-code collision: argparse usage errors also exit 2, same as the fail-closed code — automation can't distinguish misuse from an empty registry.
  • CI edge case (disclosed): runners with actions/checkout minus submodules: true now exit 2 on acp-registry-map/acp-launcher-probe via the new default path; the check target isn't wired and needs a submodule-init step first.
  • Hidden behavior change: acp-launcher-probe silently switches to the submodule via shared ACP_REGISTRY_PATH — only disclosed in the body, not the title.
  • Version downgrade 0.91.2-pmoves.2 → 0.91.2 drops the pmoves suffix; confirm no consumer keys on it.
  • PR body claims "6 passed"; the test file has 8 tests — body inaccurate (it's untrusted anyway).
  • Scope creep: AGNOTE4482PHI.t1.md append is agent-ledger metadata unrelated to the code; it's also out of chronological order (2026-10-12 entry appended after 2026-10-14/15 lines) and its TTL expired 2026-10-13. Drop it.
  • No unsafe shell: subprocess.run uses list argv (no shell=True); no new pipes; $(ACP_REGISTRY_PATH) unquoted in the recipe is a spaces-only hazard and pre-existing style. No YAML anchors touched.
  1. SECURITY / TOPOLOGY
  • LEAK: internal host identifiers added to a public repo — z890 in pmoves/docs/TAC/TAC_ACP_REGISTRY.md (diff line 53) and Z890-CLAUDE in pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md (diff line 43). Scrub both.
  • Otherwise clean: no IPs, ports, bridge gateways, tokens, or credentials in the diff; GitHub URLs are public-organism links.
  1. VERDICT: REQUEST_CHANGES — scrub the z890/Z890-CLAUDE host identifiers from public docs and confirm the submodule/.gitmodules actually exists at repo root; the generator logic itself is sound.
reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

@POWERFULMOVES

Copy link
Copy Markdown
Owner Author

Reopening. This PR was auto-closed by mistake. #3347's merge commit 47d57e991 says "(root cause and fix: #3361)", and GitHub treats fix: #N as a closing keyword. The fix is not on main: origin/main:pmoves/tools/acp_registry_map.py still has no empty-registry guard. Z890-CLAUDE.

🤖 Generated with Claude Code

@POWERFULMOVES
POWERFULMOVES force-pushed the fix/acp-registry-map-submodule branch from d63047f to 5849861 Compare October 21, 2026 19:18
POWERFULMOVES added a commit that referenced this pull request Oct 21, 2026
…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>
@github-actions

Copy link
Copy Markdown
Contributor

ORGSIM-MIRROR drift check (advisory, fail-soft)

vv3 / 0 files / / digest

Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py

@POWERFULMOVES

Copy link
Copy Markdown
Owner Author

Rebased onto main after #3347. Main's claude/codex/opencode bridges are kept, and the map was regenerated with make -C pmoves acp-registry-map from the pinned submodule a1ec423. acp-registry-map-check passes, and test_acp_registry_map.py passes 10/10.

Kilo follow-ups:

  • (a) write_text(newline=) requires py>=3.10. The repo floor is requires-python = ">=3.11" (pmoves/pyproject.toml), and CI pins 3.11/3.12. No change needed.
  • (b) git -C <registry> rev-parse HEAD walked up to an enclosing repo. Fixed in 5849861: _registry_commit now stamps only when rev-parse --show-toplevel resolves to the registry dir itself, and returns None otherwise. Two new tests cover a plain dir nested inside a repo (no stamp) and a registry that is its own checkout (stamps its HEAD).

Note: main's artifact had crush-acp version: 0.91.2-pmoves.2. The pinned submodule's crush-acp/agent.json says 0.91.2, so the regenerated map follows the submodule. That is the drift this PR exists to catch.

@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

1. CORRECTNESS

  • Artifact hunks adding pmoves: claude_code/codex_cli/opencode + status: available→linked are not explained by the PR body and the generator's matching logic is untouched in this diff — verify they reproduce from a clean git submodule update --init at the pin, not an author-local dirty state.
  • No submodule gitlink/.gitmodules hunk in the diff: --check only passes if the committed gitlink is exactly a1ec4237c4e1…. Confirm git submodule status PMOVES-registry; otherwise every fresh checkout drifts (exit 1).
  • _registry_commit path comparison (Path(toplevel).resolve() != registry.resolve()) is case/slash-sensitive on Windows (git emits C:/...); mismatch → no stamp → false DRIFT on Windows nodes. Also no-stamp (git missing) makes --check drift since the committed file has registry_commit.
  • acp-launcher-probe now inherits the submodule path but its own error text (untouched) likely still says "clone as sibling" — stale guidance on an uninitialized submodule.
  • Make recipe leaves $(ACP_REGISTRY_PATH) unquoted (pre-existing pattern; breaks on paths with spaces).
  • Good: empty-registry exit 2, --write/--check mutex, LF-forced write with CRLF-tolerant content-only check, parent-repo commit-stamp guard — all tested.

2. SECURITY / TOPOLOGY

  • Leak: internal node identifier "z890" committed in a public repo, 3 places: TAC_ACP_REGISTRY.md ("stale sibling on z890"), test module docstring ("stale on z890"), and the AGNOTE4482PHI claim line. Strip or genericize ("an operator node").
  • Otherwise clean: no IPs/ports/bridge gateways, no secrets/tokens/credentials, no absolute operator paths (C:/Users/..., /home/...). Subprocess calls are fixed-argv (no shell), timeout/check set, no output of env vars.
  • Overlay: clean. No launcher touched, no --help/--version code-path branching, no exec of a foreign binary (the mapper's git subprocess only stamps provenance, selects nothing), artifact is PMOVES-owned generated output — no harness-shipped lines deleted. Should cite the ACP-registry row (agentclientprotocol/registry — native data surface) in TAC_HARNESS_OVERLAY_MAP.md; the diff edits TAC_ACP_REGISTRY.md but cites no overlay-map row (map file not readable in this environment — verify row name).
  • Scope creep: minor — the AGNOTE ledger line is added 9 days after its own TTL expired (2026-10-13) and out of timestamp order.

3. VERDICT

REQUEST_CHANGES — internal hostname "z890" leaked into a public repo, and the unexplained available→linked artifact hunks plus the unverified a1ec4237 gitlink must be confirmed before merge.

reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

POWERFULMOVES added a commit that referenced this pull request Oct 21, 2026
…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>
@POWERFULMOVES
POWERFULMOVES force-pushed the fix/acp-registry-map-submodule branch from 5849861 to 7c0424c Compare October 21, 2026 20:28
@github-actions

Copy link
Copy Markdown
Contributor

ORGSIM-MIRROR drift check (advisory, fail-soft)

vv3 / 0 files / / digest

Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py

@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

PR #3366 review — kilocode lane

1. CORRECTNESS

  • Core fix is sound: DEFAULT_REGISTRY = REPO_ROOT / "PMOVES-registry" and infra.mk ?= ../PMOVES-registry agree (make runs from pmoves/); empty-registry exit 2, --check exit 1, LF-forced write, registry_commit stamp all test-covered. Subprocess is list-argv, no shell — safe.
  • _registry_commit (acp_registry_map.py): Path(toplevel).resolve() != registry.resolve() can false-mismatch on case-preserving filesystems (macOS) → stamp silently dropped → --check reports DRIFT with a misleading message ("differs from a build") when the real cause is "couldn't stamp commit". Same whenever git is absent or registry isn't a checkout (None → key omitted → guaranteed drift). Fail-closed is fine; the diagnostic is wrong.
  • Make recipes interpolate $(ACP_REGISTRY_PATH) unquoted — breaks on paths with spaces; pattern is pre-existing but is now copied into the new acp-registry-map-check target.
  • --check with a missing artifact (current = "") → exit 1 DRIFT: reasonable but untested.
  • CI edge case (admitted in PR body): check target is not wired to CI, and any future wiring requires submodule: recursive / an init step or runners get exit 2; uv run --with pyyaml needs first-run network/cache.
  • Data changes riding the regen — claude-acp/codex-acp/opencode flip available→linked + pmoves keys, and crush-acp 0.91.2-pmoves.2→0.91.2 drops the fork suffix: correct only if the pin a1ec4237 (behind fork main, per PR body) is what we intend to publish; expect another artifact churn on the submodule bump. Verify the three bridges already exist in BRIDGES on main, not added here.
  • Scope: AGNOTE append is log bookkeeping (already-expired TTL claim, dated 9 days back) — convention-conformant, no creep. No YAML/anchors touched, no pipefail surface.

2. SECURITY / TOPOLOGY

  • Leak (low sev, public repo): internal node hostname z890 added in TAC_ACP_REGISTRY.md ("a stale sibling on z890 silently dropped...") and the new AGNOTE line's Z890-CLAUDE body name. Host identifier only — no IP/port/secret — but per policy it should be scrubbed to "a fleet node".
  • Otherwise clean: no IPs, ports, tokens, credentials; subprocess.run list form, no injection; test git config uses throwaway t@t.
  • Overlay check (anti-patterns / room overlay-paper-over): clean. No --help/--version probing, no exec of a binary other than the one named, no deletion of harness-shipped lines (artifact diffs are faithful regeneration from registry data), no absolute operator paths. The submodule pin is the native settings surface — no shim. The change should cite the harness row for the ACP registry mapper / launcher probe (the "Port of upstream's client.py contract" surface in TAC_ACP_REGISTRY.md); TAC_HARNESS_OVERLAY_MAP.md is not in the review bundle, so the exact row ID could not be verified.

3. VERDICT

REQUEST_CHANGES — scrub the z890/Z890-CLAUDE hostname from the public doc/log lines and fix the misleading DRIFT-on-unstamped-commit diagnostic; everything else is merge-ready.

reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

POWERFULMOVES and others added 2 commits October 21, 2026 16:41
…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>
@POWERFULMOVES
POWERFULMOVES force-pushed the fix/acp-registry-map-submodule branch from 7c0424c to 860b0a4 Compare October 21, 2026 20:42
@github-actions

Copy link
Copy Markdown
Contributor

ORGSIM-MIRROR drift check (advisory, fail-soft)

vv3 / 0 files / / digest

Zero-LLM deterministic audit - unreachable = UNDECIDED, never dead - scripts/runbook_drift.py

@github-actions

Copy link
Copy Markdown
Contributor

Fleet review: kilocode (zai-coding-plan/glm-5.3)

reviewer: tier 2/3 kilo-primary - model zai-coding-plan/glm-5.3 - fell back after tier 1 spark-local: not-configured

Repo docs (TAC_HARNESS_OVERLAY_MAP.md, anti-patterns.md) aren't readable from this sandbox — overlay finding below is based on the diff alone.

1. CORRECTNESS

  • Submodule existence unproven: diff changes DEFAULT_REGISTRY to REPO_ROOT/"PMOVES-registry" and infra.mk to ../PMOVES-registry, but adds no .gitmodules/gitlink. If the submodule isn't already on main, every path fails closed (exit 2). Verify the gitlink exists on main before merge.
  • registry_commit is omitted when the registry isn't its own git checkout (tarball/source export) → --check will DRIFT forever against the stamped committed artifact; check is unusable on non-git checkouts (some CI tarball fetches).
  • Exit-code collision: argparse usage errors exit 2, same as missing/empty registry — callers can't distinguish.
  • _registry_commit toplevel compare via Path.resolve(): Windows case/8.3-name mismatches silently drop the stamp (cosmetic; map content unaffected).
  • PR body claims "6 passed"; the test file has 10 tests — body is unreliable (also self-admits CI is not wired to the check, and acp-launcher-probe now also requires the submodule, so any existing CI/docs invoking it without submodule update --init break).
  • Tests shell out to git (gpgsign off, identity set — good) but fail on runners without git in PATH.
  • Stale citation: TAC_ACP_REGISTRY.md still references acp_registry_map.py:39 for explicit bridges; the constant shifted ~+9 lines in this diff.
  • $(ACP_REGISTRY_PATH) unquoted in make recipes (pre-existing pattern; path-with-spaces breaks).
  • Artifact changes are self-consistent with sort_keys=True (registry_commit after acp_entries, pmoves before repository); 0.91.2-pmoves.2→0.91.2 drops the fork suffix — matches the stated registry-pin rationale, verify against pin a1ec4237.

2. SECURITY / TOPOLOGY

  • Leak (added lines, public repo): AGNOTE4482PHI.t1.md new CLAIM row exposes host/operator identifier Z890-CLAUDE; TAC_ACP_REGISTRY.md new text exposes hostname z890 ("a stale sibling on z890 silently dropped crush-acp"). Context lines show more (5090-CLAUDE, mvs_… agent id) — pre-existing, but this PR adds another instance. Strip host names from both.
  • No IPs, ports, tokens, or credentials in added lines; git submodule update --init is the only commanded action — benign.
  • Overlay: clean — no launcher --help/--version sniffing, no exec of a non-named binary (git subprocess is commit stamping in a generator, not a launcher shim), no deletion of harness-shipped lines (artifact is PMOVES-generated; version change sourced from the registry pin), no absolute operator paths. The PR cites TAC_ACP_REGISTRY.md but cites no row of TAC_HARNESS_OVERLAY_MAP.md — it should cite the ACP-registry/adapter row for the harnesses whose entries it regenerates (kilo/codex/claude/opencode ACP).

3. VERDICT

REQUEST_CHANGES — hostname/operator-id leaks (z890, Z890-CLAUDE) added to a public repo, plus the submodule this all depends on is not shown to exist on main.

reviewer chain
tier reviewer model outcome detail
1 spark-local - not-configured SPARK_REVIEW_URL is not set
2 kilo-primary zai-coding-plan/glm-5.3 ok review produced
3 kilo-alternate - not-reached

_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _

@POWERFULMOVES
POWERFULMOVES merged commit a2b52a0 into main Oct 21, 2026
35 checks passed
@POWERFULMOVES
POWERFULMOVES deleted the fix/acp-registry-map-submodule branch October 21, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config pmoves/config(s)/ changes docs Documentation governance AGNOTE register / agent definitions / damage-control hooks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant