Skip to content

test: agent-skills migration fixture holds the legacy deployment receipt (#4049) - #4359

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-agent-skills-migration-receipts
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
mainfrom
danielmeppiel-agent-skills-migration-receipts

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

tests/integration/test_agent_skills_target.py::test_auto_migration_removes_legacy_skill_paths and ::test_auto_migration_updates_lockfile_paths fail on main (pre-RC validation 44749031804). Under the #4049 deletion-evidence rule (req-lk-024, steward ruling), skill path migration keeps the legacy .github/skills/test-skill/SKILL.md, because the fixture's local-bundle install holds no deployment receipt for it and a bundle can't be rendered.

Fix (test only; no product change, no skip): after the legacy install, each test seeds the deployment receipt the installing machine holds for the legacy file. It uses tests/utils/deployment_evidence.seed_receipts, which landed in #4250. Migration then proves and removes the legacy copy, as the tests expect.

The product-side fix is #4302 (#4223): local bundle installs record those receipts themselves, and with it these two tests already pass unmodified. Once #4302 lands, the seeded receipt is redundant but harmless, since it covers the same bytes.

Issue and approved scope

Issue: Refs #4049

Human scope-approval comment: #3701 (comment). The 0.37 Hardening PM requested this fix as RC-blocking.

Does this PR complete the issue, or what remains? It fixes the two failing tests only. #4302 carries the product fix.

Type of change

  • Bug fix

Testing

  • Tested locally. Static only (ruff); this host has no test guard. Full integration runs in CI.

Changelog

  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

…ipt (#4049)

Skill path migration deletes the legacy copy only with deployment
evidence (req-lk-024). The fixture now seeds the receipt the installing
machine holds for the legacy SKILL.md; no product change. #4302 makes
local bundle installs record it themselves (#4223).

Refs #4049

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the test-only migration receipt updates.

No open issues 🎉

What changed in this PR

This test-only PR updates two agent-skills migration tests to supply the deployment receipts required by #4049’s deletion-evidence rule. Product behavior is unchanged; automatic receipt recording for local bundles is handled separately in #4302.

Changes:

  • Seeds a receipt for the legacy SKILL.md after installation in both migration tests.
  • Preserves coverage of legacy-path removal and lockfile-path updates without weakening deletion checks.
File Description
tests/​integration/​test_agent_skills_target.py Adds legacy deployment receipts to the two migration test setups.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 30d67c7 into main Nov 20, 2026
42 of 51 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-agent-skills-migration-receipts branch November 20, 2026 15:23
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.

2 participants