On this page
Decision 027 · Vendor dist lanes, filtered append-only publish, and the flow manifest
Superseded by decision-030 (2026-08-03): the dist-lane design (Decisions 1–3 — tracked
dist/<target>/trees, the filtered lift-and-assemble publish payload, the roster-enum residency) is replaced by pointer-based distribution. Decision 4 (flow.yaml+check_flow.pyas the standing structural guard) remains in force (task-7 revisits its scope). The publish governance (dev integrates, main publishes) was never this ADR's to change and stays with ADR 0007; the publish payload under the new architecture is open as backlog task-5.
_Owner-ruled 2026-07-22 ("proceed as proposed"). Old-desk ADR 0014 carries a matching
amendment (same date): its §3 already specified main as "rebuilt clean — marketplace file
- plugin folders"; the whole-tree force push was the interim implementation's deviation, so this ADR restores 0014 §3's intent and extends it with parentage and vendor lanes._
Context
The repo is about to serve a second vendor: the same primitives shaped for opencode,
which was always the intent (targets: field, the dropped Phase-3 translation surface at
4e8a05b, restorable precedent on dev-legacy, both now in hsb3/dotfiles-agents-archive). Three structural facts force a decision:
- The Claude Code dist squats at the repo root (
plugins/,.claude-plugin/,PLUGINS.md) because consumers resolve the default branch's root.claude-plugin/marketplace.json(ADR 0007). Fine for one vendor; with two, generated lanes need a common, named home. - Publish is a whole-tree force push (
publish.yml):maintoday is a byte-identical snapshot ofdev— ~24 MB of which only ~3.3 MB is consumer surface;evals/alone is 16 MB and grows with every weekly campaign. Every installer clones the workbench. - opencode has no marketplace. Its distribution shape is a laydown tree plus one
mergeable config fragment plus an installer (per the
opencode-expertisereferences and the live harness adapter). Skills translate near-verbatim (stricter name regex); agents need a mechanical frontmatter remap; MCP is a JSON reshape; hooks require real rework (TS-on-Bun plugin wrappers) and are excluded until that codegen exists.
Decision
- Vendor dist lanes under
dist/. Generated, committed, drift-guarded trees per target:dist/claude-code/(the current root artifacts, relocated) anddist/opencode/(laydown: skills verbatim + name-regex guard, agents remapped per the mapping table, oneopencode-fragment.jsonc, aninstall.sh, and an exclusions manifest — subset, never silently break; hooks stay Claude-Code-only until TS wrapper codegen is built). mainbecomes a filtered, parented assembly. The publish workflow assembles the publish tree —dist/claude-code/contents lifted to the root (preserving the ADR 0007 consumer contract) plusdist/opencode/published asopencode/— and commits it with the previousmainas parent. No more force push:mainis append-only, its history a release ledger (one commit per publish recording the sourcedevSHA and bumped versions), and the workbench (harness/,evals/,_meta/,.claude/,.agents/) never publishes. One published branch serves both vendors: Claude Code installs via the marketplace root; opencode consumers run the laydown installer from a clone.- The roster's
targets:field gets a real enum ({claude-code, opencode}, enforced bycheck_roster.py) and a revived capability matrix (translation.yaml: per primitive type × target: native / transform / render / unsupported), reusing the droppedtranslate.pydesign. flow.yaml+scripts/check_flow.py(makeflow, inmake ci) are the standing structural guard: every top-level path homed exactly once, planned paths must not exist until flipped, generated nodes must name generator + guard, automated edges must be acyclic (only manual owner edges close loops), and thedocs/FLOW.mdDAG is generated from the manifest under drift guard.
Sequencing (deliverables and gates, no timelines)
- W1 — flow guard (this ADR's PR):
flow.yaml,check_flow.py,docs/FLOW.md, wired intomake ci. Gate:make cigreen with the new check. - W2 — filtered parented publish: rewrite
publish.ymlto assemble from the CURRENT root layout; verify a publish produces an append-onlymainwhose root shape consumers already expect. Gate:claude plugin marketplace addagainst the newmainresolves;mainhistory gains exactly one parented commit per publish. - W3 — dist relocation: move root artifacts to
dist/claude-code/; update generators, drift guards, publish lift map, and flip the flow.yaml nodes. Gate:make ci+ a publish round-trip. - W4 — opencode lane MVP:
translation.yaml,gen_opencode.py(skills + agents + fragment + installer + exclusions),targetsenum enforcement. Gate: laydown verified against a live opencode (the harness adapter's mechanics are the reference), exclusions explicit,make cigreen. - W5 — externals clone-at-build joins the dist lanes (existing scope: #36/#122).
Consequences
- Consumer clones shrink to the consumer surface; the eval corpus grows without taxing
installers.
mainhistory becomes meaningful. The workbench stays private todev. - Two generated lanes mean two drift guards and a bigger
make build; the flow guard keeps the growing structure honest (a new top-level path with no declared home fails CI). - Hooks do not reach opencode users until wrapper codegen exists — recorded per lane in the exclusions manifest rather than silently absent.
- ADR 0007's mirror rule: 0007 mirrors old-desk ADR 0014, which "remains the authority of record" for branch governance. This ADR changes the publish payload and parentage, not the dev-integrates/main-publishes governance — but 0014 must be updated desk-side before W2 lands (owner action), per 0007's own precedence rule.
Affects
publish.yml · gen_marketplace.py / new gen_opencode.py · check_roster.py (targets
enum) · root layout (W3) · flow.yaml / docs/FLOW.md (node flips per wave) ·
.agents/skills/publish-to-main (runbook rewrite at W2) · README.md layout table ·
old-desk ADR 0014 (update-first rule).