Skip to content

refactor(grok): install via subdirectory, drop the mirror fallback - #10

Merged
prathamesh-sonpatki merged 2 commits into
masterfrom
ci/grok-subdir-install
Aug 24, 2026
Merged

refactor(grok): install via subdirectory, drop the mirror fallback#10
prathamesh-sonpatki merged 2 commits into
masterfrom
ci/grok-subdir-install

Conversation

@prathamesh-sonpatki

@prathamesh-sonpatki prathamesh-sonpatki commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

Live testing against Grok Build v1.0.5 found a simpler path than the sanctioned mirror: its CLI installs plugins straight from a git repo subdirectory.

grok plugin install --trust "last9/ai-toolkit#plugins/last9"

Verified end-to-end from GitHub (fresh install → all skills in the installed-plugins cache). That makes the R5 fallback machinery unnecessary: this PR deletes .grok-plugin/marketplace.json, plugins/last9/, the mirror-parity gate legs, SKIP_MIRROR_PARITY, and the master-push refresh bot — whose direct push was blocked by branch protection anyway. The gate now forbids all committed plugin skill copies unconditionally, with a new selftest case pinning that invariant.

Also fixes from the same review round: fail closed on missing consumer manifests, require ≥1 plugin entry, reject string-typed skills (jq iterates strings as characters — "./" false-passed directory checks), require declared paths to contain SKILL.md, exact-set tarball comparison via tar -tzf both directions, and recursive skill-file assembly with count assertion in the OpenCode prepack.

Test plan

  • Gate + 9-case selftest green locally; opencode plugin 11/11 tests + typecheck clean
  • Live: fresh Grok install from this pattern verified above
  • Post-merge: master CI green; next Grok release unaffected

Related to FDE-311.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…irely

Live testing: grok plugin install supports GitHub shorthand with a
#subdir suffix, so Grok users install last9 directly from
plugins/last9 without any marketplace manifest or committed mirror.
This removes the R5 fallback machinery wholesale: .grok-plugin/,
plugins/last9/, the mirror-parity gate legs, the SKIP_MIRROR_PARITY
env, and the master-push refresh bot (whose direct push was blocked by
branch protection anyway). Gate now forbids ALL committed plugin skill
copies unconditionally; release-please drops the removed package.
@prathamesh-sonpatki
prathamesh-sonpatki merged commit 826380b into master Aug 24, 2026
5 checks passed
@prathamesh-sonpatki
prathamesh-sonpatki deleted the ci/grok-subdir-install branch August 24, 2026 17:58
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