Skip to content

test(T6) + refactor(T5): golden snapshot protection & distribution cleanup#46

Merged
Li-Sanze merged 3 commits into
mainfrom
t6/golden-snapshot-protection
May 27, 2026
Merged

test(T6) + refactor(T5): golden snapshot protection & distribution cleanup#46
Li-Sanze merged 3 commits into
mainfrom
t6/golden-snapshot-protection

Conversation

@Li-Sanze
Copy link
Copy Markdown
Collaborator

T6: Golden Snapshot Protection

8 sha256 snapshots covering all host install products:

Key What it protects
codex:{locale}:header Rendered AGENTS.md (path\0content)
claude:{locale}:header Rendered CLAUDE.md (path\0content)
copilot:{locale}:managed_block_payload render_single_file() output
skills:{locale}:tree Skill tree files (sorted posix_path\0raw_bytes)

On drift: test prints expected vs actual hash. Manual update of tests/golden-snapshots.json required.

T5: Distribution Cleanup

  • Delete scripts/check-skills-sync.sh (superseded by golden snapshot tests)
  • CI: remove sync/diff/check-skills-sync steps from sync-and-version-guard
  • sync-skills.sh + render-host-skills.py: marked as local maintainer helpers
  • CONTRIBUTING: clarify Codex/Claude dirs are gitignored, manual-only

639 tests pass.

Li-Sanze added 3 commits May 27, 2026 16:14
8 snapshots covering 3 hosts × 2 languages:
- codex/claude headers: path\0rendered_content sha256
- copilot managed block payload: render_single_file() sha256
- skill trees: sorted path\0content sha256

Fails with expected/actual hash on drift. Manual update required
to confirm intentional changes.
…pt roles

- Delete scripts/check-skills-sync.sh (superseded by golden snapshot tests)
- CI: remove sync/diff/check-skills-sync steps from sync-and-version-guard
- pre-commit: remove check-skills-sync from is_release_relevant
- sync-skills.sh, render-host-skills.py: add 'local maintainer helper' notice
- CONTRIBUTING: clarify Codex/Claude dirs are gitignored, manual-only
- test fixture: remove check-skills-sync.sh reference
- git rm Copilot/Skills/CN/COPILOT.md
- .gitignore: add Copilot/Skills/
@Li-Sanze Li-Sanze merged commit 0fea087 into main May 27, 2026
4 checks passed
@Li-Sanze Li-Sanze deleted the t6/golden-snapshot-protection branch May 27, 2026 08:36
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