Apply installed Archie package contributions without restart #252

Closed
opened 2026-10-27 13:35:34 +00:00 by sam · 0 comments
Owner

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, main 7b982b1a). 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

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, main 7b982b1a). 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_
sam added the hightask labels 2026-10-27 13:35:34 +00:00
sam self-assigned this 2026-10-27 13:35:34 +00:00
sam closed this issue 2026-10-27 13:35:34 +00:00
sam added a new dependency 2026-10-27 13:41:49 +00:00
sam added a new dependency 2026-10-27 13:41:50 +00:00
sam added a new dependency 2026-11-14 14:45:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#252