Skip to content

fix(opencode): adopt legacy artifact receipts safely - #96

Merged
pacphi merged 1 commit into
mainfrom
codex/issue92
Jul 30, 2026
Merged

fix(opencode): adopt legacy artifact receipts safely#96
pacphi merged 1 commit into
mainfrom
codex/issue92

Conversation

@pacphi

@pacphi pacphi commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Closes #92.

What changed

  • adopts exact marker-bearing OpenCode plugin, agent, stamp, and skill artifacts when legacy ownership receipts are absent
  • preserves edited, stale, foreign, or non-null mismatched receipt state without laundering ownership on a later pass
  • fails closed on malformed receipt containers and leaves all artifact slots untouched, including absent directories
  • surfaces read-only adoption and malformed-ledger status with actionable remediation
  • keeps receipt-only adoption idempotent while reporting marker persistence accurately

Safety contract

Adoption occurs only when the receipt is absent/null, the artifact carries the agentic-kit marker where applicable, and its bytes exactly equal the current desired bytes. The marker-free agent stamp is adopted only when its canonical bytes and every independently accepted agent file match.

Verification

  • pnpm run check
  • pnpm audit --audit-level high
  • pnpm run test:surface
  • pnpm run lint:links:internal
  • focused OpenCode/status suite: 75/75 passing
  • independent reconciliation review: no blockers

@pacphi
pacphi merged commit 31880ab into main Jul 30, 2026
11 checks passed
@pacphi
pacphi deleted the codex/issue92 branch July 30, 2026 22:43
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.

Receipts-model migration gap: pre-receipts kit.json leaves ak-authored opencode artifacts permanently 'user-owned' with no self-heal

1 participant