Skip to content

Pin guard: cover the 2 vendored id-label test files (culturebotai-claw#6)#64

Merged
realmarcin merged 2 commits into
mainfrom
followup/pin-vendored-tests
Jun 15, 2026
Merged

Pin guard: cover the 2 vendored id-label test files (culturebotai-claw#6)#64
realmarcin merged 2 commits into
mainfrom
followup/pin-vendored-tests

Conversation

@realmarcin

Copy link
Copy Markdown
Contributor

What

Closes the CultureMech side of culturebotai-claw#6 (NEXT_TASKS item 3). verify-validator-pin pinned only validate_id_label_correspondence.py, leaving the two byte-identical-across-Mechs vendored test files unguarded — a one-copy edit would pass CI everywhere while breaking the invariant.

Fix (issue's Option 1)

Extend the sha256 manifest + refresh-validator-pin to cover all three vendored files via a VENDORED_IDLABEL_FILES list:

  • scripts/validate_id_label_correspondence.py
  • tests/test_id_label_empty_adapter.py
  • tests/test_id_label_unknown_prefix.py

conf/id_label_targets.yaml stays unpinned — it's intentionally per-repo (different adapters/targets/exceptions), per the issue.

Verified

  • Guard passes on the pinned set (3× OK).
  • Editing a vendored test now fails verify-validator-pin (exit 1).
  • The 3 files are byte-identical to MIM's copies (same hashes) — a matching MIM PR keeps the cross-repo invariant; CommunityMech's checkout doesn't currently vendor them.

🤖 Generated with Claude Code

realmarcin and others added 2 commits June 14, 2026 20:56
Closes the CultureMech side of culturebotai-claw#6 (NEXT_TASKS item 3). The
verify-validator-pin guard pinned only validate_id_label_correspondence.py, so
the two byte-identical-across-Mechs test files (test_id_label_empty_adapter.py,
test_id_label_unknown_prefix.py) could silently drift. Extend the sha256 manifest
+ refresh-validator-pin to cover all three via a VENDORED_IDLABEL_FILES list.
conf/id_label_targets.yaml stays UNpinned — it's intentionally per-repo.

Verified: guard passes on the pinned set; editing a vendored test now fails it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@realmarcin realmarcin merged commit 5ad7ef7 into main Jun 15, 2026
3 checks passed
@realmarcin realmarcin deleted the followup/pin-vendored-tests branch June 15, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant