Skip to content

feat(core)!: remove graphify as a mate capability - #188

Open
TornquistK wants to merge 1 commit into
mainfrom
workset/remove-graphify-from-core
Open

TornquistK wants to merge 1 commit into
mainfrom
workset/remove-graphify-from-core

Conversation

@TornquistK

Copy link
Copy Markdown
Collaborator

Summary

Graphify stops being a built-in Capability. A temporary retirement Capability cleans what it left in companions.

 packages/mate-core/src/
 ├── cli/commands/cap/
-│   └── graphify.ts                 # `mate cap graphify`, `--graphify`
 ├── tools/setup/
-│   ├── capabilities/graphify*.ts   # capability, secret gate, secrets region
+│   └── retire-graphify.ts          # never enabled; its teardown runs on every setup/sync
 ├── lib/orchestrator/
+│   └── published-graph-store.ts    # `.graphify/` stays a managed companion root
-└── wrappers/bin/graphify, wrappers/lib/graphify-gate.mjs
 apps/mate-container/
-├── locks/graphify.*                # image no longer carries graphify
 └── src/startup.ts                  # a companion still listing graphify starts

The first launch after upgrading:

launch
  inspectInstallPreflight          → repairable (framework.yaml changed)
  repairInstallState
    reconcileInstalledCompanion
      syncCompanionFiles
        retire-graphify teardown   → drops `graphify` from framework.yaml, prints notice once,
                                     removes skills, hooks, sections, marker blocks,
                                     OpenCode plugin, Mate's `.graphifyignore` region
+     re-resolve the context       → plan for the config the sync left
    save install state             → fingerprint matches; launch continues

Kept: .graphify/ (the Published Graph Store), companion .gitignore entries for its caches, user lines in .graphifyignore. GRAPHIFY_OUT and MATE_GRAPHIFY_ENABLED are no longer set; uv is no longer installed for it. The retirement module is deleted in the second minor release after this one.

Evidence

  • Before: first launch after the upgrade in an isolated HOME was refused with installation context has changed.
    After: the same fixture prints the notice once, repairs the state and reaches the agent; the companion is clean and .graphify/ is unchanged.
  • Tests (red without the fix, green with it):
    • repair records the companion config as its sync left it: framework.yaml without graphify, then inspectInstallPreflight(...).ok === true
    • a companion that still lists the retired graphify capability starts: container assertRequirementsCarried does not throw
    • a marker block without a heading goes with its content: user sections around the block stay
    • an ignore file without Mate's region and its exclude line stay: CRLF user file and exclude line unchanged
  • mate-core 6447 pass / 0 fail, mate-cli 155 pass, mate-container 254 pass; typecheck, lint, format, docs and image-lock checks pass.

Merge Danger

Door: two-way

Reverting restores the Capability. Files the retirement already removed from a companion come back on the next setup of a release that has graphify again; .graphify/ is never touched.

Blast Radius: companions

Any companion listing graphify is rewritten once on the next setup, install or launch. mate cap graphify and mate cap index --graphify now fail (breaking). An older container image still expects graphify; the new image accepts a companion that lists it.

@TornquistK
TornquistK force-pushed the workset/remove-graphify-from-core branch from 70d2b61 to 0ba6c14 Compare November 26, 2026 12:56
@TornquistK
TornquistK force-pushed the workset/remove-graphify-from-core branch 2 times, most recently from ae53975 to b67b83d Compare November 30, 2026 23:12
Mate no longer installs, configures or runs graphify. `mate cap graphify`
and the `--graphify` sync option are gone, launches no longer set
GRAPHIFY_OUT or MATE_GRAPHIFY_ENABLED, uv is no longer installed for it,
and the container image no longer carries graphify or its locks.

A temporary retirement capability cleans companions on the next setup,
install or launch: it drops `graphify` from framework.yaml with a one-time
notice, removes the skill trees, hooks, agent-file sections and marker
blocks, the OpenCode plugin, and Mate's `.graphifyignore` region. The
`.graphify/` published graph store and user lines stay.

Install-state repair and `mate install` now save the plan for the config
the sync left, so the first launch after retirement is not refused.

BREAKING CHANGE: the graphify capability, `mate cap graphify` and
`mate cap index --graphify` are removed.
@TornquistK
TornquistK force-pushed the workset/remove-graphify-from-core branch from b67b83d to 1204445 Compare December 1, 2026 23:16

This branch has not been deployed

No deployments
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