Skip to content

feat: package linked multi-harness skills - #11

Merged
kossoy merged 4 commits into
mainfrom
issue-4-multiharness-package
Aug 31, 2026
Merged

kossoy merged 4 commits into
mainfrom
issue-4-multiharness-package

Conversation

@kossoy

@kossoy kossoy commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • build one deterministic portable bundle for Codex, Claude Code, and OpenCode from a central harness registry
  • retain pinned upstream MIT attribution and record SHA-256 plus size for every payload file
  • add explicit --harness selective install/uninstall with dependency closure and receipt-owned rollback that preserves unrelated skills and harness ancestors
  • bind uninstall to the canonical dependency closure and complete generated-file inventory; reject symlink and special portable entries
  • use a deterministic quarantine transaction so interrupted moves or staged deletions resume safely while the receipt remains authoritative
  • pin exact upstream caller blobs and invocation metadata without bundling caller-owned or sibling skills
  • extend the clean-checkout outcome verifier across all generators, validators, deterministic artifacts, adversarial fixtures, and isolated install roots

Verification

  • ./scripts/verify-outcome.sh (75 tests passed)
  • focused adversarial multi-harness and caller matrix (18 tests passed)
  • shellcheck scripts/verify-outcome.sh
  • python3 -m compileall -q dev_workflow scripts tests
  • git diff --check
  • GitHub API confirmation of all five pinned upstream blob SHAs

No live harness installation, deployment, release archive, or tag was performed.

Closes #4

Greptile Summary

This change adds deterministic, dependency-aware workflow-skill bundles for Codex, Claude Code, and OpenCode, with isolated installation and receipt-owned removal. The earlier concern that a forged receipt could delete an unrelated sibling skill was disproved: removal rejects a modified dependency closure before changing any files.

Confidence Score: 5/5

No blocking failure remains.

Focused installation and removal checks preserved unrelated skills, and a forged receipt was rejected before any owned or unrelated files were removed.

T-Rex T-Rex Logs

What T-Rex did

  • Forged a valid Codex grill-me selection receipt and attempted uninstall, then observed a ValueError: install receipt dependency closure is not canonical and found that the unrelated sibling, installed skill, and receipt remained present.
  • Generated and verified a portable bundle, created an isolated Codex target containing an unrelated skill, installed grill-me (bringing in grilling), and then removed the selection to validate isolation behavior.
  • Observed that installation resolved to grilling and grill-me; the forged receipt added unrelated-sibling and a valid SKILL.md record, and uninstall was rejected before deletion with assertions that the sibling and owned skill still exist and the receipt remains.
  • Before uninstall state was empty of managed items; after uninstall, installed_skills_removed and receipt_removed were true and the unrelated content remained byte-identical, as validated by the post-uninstall checks.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (3): Last reviewed commit: "fix: make selective uninstall retryable" | Re-trigger Greptile

Comment thread dev_workflow/bundle.py Resolved
Comment thread dev_workflow/bundle.py Resolved
Comment thread dev_workflow/bundle.py Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7bca8f4. Configure here.

Comment thread dev_workflow/bundle.py
install_root = _safe_relative(spec.install_subdir)
for name in canonical_resolved:
_remove_empty_owned_tree(_target_path(target_root, install_root / name))
_remove_empty_owned_tree(metadata_root)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Uninstall can wedge metadata root

Medium Severity

Uninstall unlinks install-receipt.json before it finishes pruning the new uninstall-quarantine tree and .dev-workflow/<harness>. An interrupt or a swallowed rmdir failure after that unlink leaves metadata without a receipt, so retry cannot run and install_selection rejects the leftover directory.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7bca8f4. Configure here.

@kossoy
kossoy merged commit 9b35827 into main Aug 31, 2026
4 checks passed
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.

Package the linked skills and verify upstream caller compatibility

1 participant