Skip to content

feat(add-orchestrator): install-time divergence detection (--check + overwrite-prompt wiring) (#8) - #11

Closed
vybe wants to merge 2 commits into
mainfrom
fix/8-install-divergence-check
Closed

vybe wants to merge 2 commits into
mainfrom
fix/8-install-divergence-check

Conversation

@vybe

@vybe vybe commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Closes #8 (add-orchestrator-scoped version; framework-wide follow-up filed separately).

Problem

Re-running /add-orchestrator offered overwrite / skip / cancel per skill with no version comparison, no diff, and no detection that a local copy was customized. Two real failures this week:

What this adds

A read-only --check mode on /add-orchestrator that, per installed runtime skill, reports the three states — and wires the same comparison into Step 4's overwrite prompt so the warning arrives at the moment of decision, not after:

State Verdict Meaning
installed < bundled WARN upgrade available
installed > bundled FAIL back-port candidate — installed copy is ahead of the bundle; overwrite = silent downgrade (the signal #5 went weeks without)
installed == bundled, content differs WARN local customization — diff surfaced before overwrite
installed == bundled, identical PASS in sync

Reported in the canon-doctor PASS/WARN/FAIL shape with a one-line fleet-readable verdict (orchestrators dispatch it fleet-wide and read only that line). Version compare is numeric-per-component (1.9 < 1.13), tested against all four states end-to-end.

Deliberately left out (minimal scope, per Eugene's ruling)

  • The plugin-framework-wide version — every plugin that copies skills into agent repos has this same gap, but that is a larger framework-surface call. Filed as a follow-up; this PR is add-orchestrator-only.
  • No new on-disk state / skill-registry inventory — the check is stateless: the bundle is the reference, the installed copy is the subject, compared live.
  • No cross-version historical diff — the bundle only carries the current template, so a clean local-customization diff is only possible at equal version; the behind case leads with the version gap. Documented as a caveat rather than built around.

Overlap with PR #9 (issue #7) — still OPEN, not yet merged

#9 also bumps this skill and agent-dev/plugin.json. To avoid a version collision I skip 1.21 / 1.14.1 (reserved for #9): add-orchestrator 1.20 -> 1.22, agent-dev plugin 1.14.0 -> 1.14.2. Whichever merges second will hit a mechanical conflict on the SKILL.md frontmatter (changelog prepend) and plugin.json version line — both trivial to reconcile. No template files (orchestrate.md, discover-agents.md) touched here, so #9's body changes don't overlap.

Files changed: plugins/agent-dev/skills/add-orchestrator/SKILL.md, plugins/agent-dev/.claude-plugin/plugin.json.

🤖 Generated with Claude Code

Trinity Agent (trinity-pm) and others added 2 commits August 17, 2026 08:03
…ing (#5)

Back-ports the generalizable v1.1–1.4 deltas from the production
orchestrator's deployed copy (Abilityai/corbin-internal@c8dfad4) into the
add-orchestrator bundle template:
- v1.1 get_git_sync_state post-pull cache-lag note
- v1.2 two 409 subtypes (unstaged vs unmerged files)
- v1.3 400 submodule-fetch Error Recovery row
- v1.4 --autonomous run mode (per-skill; convention tracked in #6)

Universalized/dropped the corbin-specific scaffolding: the Step 0
refresh_workspace.sh call, the o.nikitin/k.sivak teammate names, the
corbin fleet example table, the ref:-only trinity_name narrowing, and the
corbin-20 self-reference. Changelog is append-only.

Refs #5

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ode + overwrite-prompt wiring (#8)

Re-running /add-orchestrator offered overwrite/skip/cancel per skill with no
version comparison, no diff, and no detection of local customization. Two real
failures came from that: a hand-written routing directive that a plain overwrite
would have silently destroyed, and two skills sitting ahead of the bundle for
weeks with nothing comparing the two directions (#5).

Add a read-only `--check` mode that, per installed runtime skill, reports the
three states — installed < bundled (upgrade available), installed > bundled
(back-port candidate), installed == bundled but content differs (local
customization) — in the canon-doctor PASS/WARN/FAIL shape with a one-line
fleet-readable verdict. Step 4's per-skill overwrite prompt calls the same
comparison, so the warning arrives at the moment of decision, not after.

Deliberately scoped to add-orchestrator's own bundle and stateless (no new
on-disk registry). Plugin-framework-wide version filed as a follow-up.

add-orchestrator 1.20 -> 1.22 (skips 1.21, reserved for open PR #9); agent-dev
plugin 1.14.0 -> 1.14.2 (skips 1.14.1, reserved for #9).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@vybe

vybe commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

Framework-wide follow-up filed as #12 (deferred per Eugene's minimal-scope ruling).

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.

Install path has no upgrade/divergence detection — add a --check/doctor mode (likely plugin-framework level)

1 participant