Apply installed Archie package contributions without restart #252
Notifications
Due Date
No due date set.
Blocks
Depends on
#1204 project the remaining package contribution kinds: prompts, skills, MCP servers, defaults
sam/archie
#1305 Store
sam/archie
Reference: sam/archie#252
Reference in new issue
Block a user
Installed package records and layer bytes are available through the State Store, but runtime consumers do not yet project workflow, prompt, skill, MCP server or default-setting contributions into org resources. Add live projection and removal so installing makes capabilities usable and removing stops them without restarting processes. See docs/prds/store.md.
Notes
Merged and gated (
783c0cfc, main7b982b1a). DELIVERED: the workflow kind, live BOTH ways -- install projects a contributed workflow into the per-org workflow-definitions resource, remove withdraws it, proven by TestPackageContributionsLiveRoundTrip driving the State Store's OWN composition (stateStoreDeps projections + the real staterpc Install/Remove RPCs over bufconn + real postgres), with the wiring pinned by an AST parse of stateStoreDeps. Machinery: storepkg.FamilyProjector/ProjectionLedger/ProjectionEntry, FilesFromLayer (gunzip by magic sniff + untar, since Installed already holds the layer bytes from the registry fetch), migration 0023 (installed_package_contributions), controlplane.WorkflowProjector with a 3-attempt idempotent version-conflict retry, and per-dispatch reads on the daemon side so no restart is involved. MERGE POLICY, deliberately conservative: a contributed workflow id is REFUSED if an existing entry with that id is not the package's own (storepkg.ErrContributionCollision, InvalidArgument on the wire, refused before any write) -- never a silent replace; that also refuses a package overriding a SHIPPED id, which is the dashboard's model rather than a package's. STOPPED, four kinds, each with a reason: prompts (store.md says 'prompts' while the tree models personas -- a mapping decision), skills (skills live on host disk via SkillsDir, not as org resources, so projecting means writing host files -- surface unsettled), MCP server definitions (ToolSettingsKind is ApplyMode restart-required, which contradicts this bead's own live requirement), defaults (no format anywhere -- what they default, keyed how, and against which seed are all unstated).Close reason
Closed
Imported from beads
archie-core-em7s.9· GitHub #1181 · type task · priority P1 · created 2026-09-26 · closed 2026-09-29