engine-adapters: clan-adapter-core — the real clan.Clan drives the pinned CLI; single-writer config repo #162
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.
What to build
The production
clan.Clancore (ADR 0102): a Go adapter driving the pinned clan CLI headlessly — Deploy / Rollback / Readiness — with the control plane as the community config repo's single writer. Commit-then-apply-exact-revision; a tree with conflict markers is refused before commit; the layered outcome classifier is contract (connectivity before secrets, signal-kills by exit code, disk tokens only once disko runs — S13 + Q2.2). Nothing outside the adapter knows CLI shapes (DDR 0010).Acceptance criteria
Blocked by
Task manifest
clanpackage + fake adapter behind DDR 0010Done in
2781757(onorigin/main).ADR 0102's production
clan.Clanadapter lands asinternal/clan'sAdapter(New(repo, cli, log)overcli.go/configrepo.go/adapter.go): the real clan-seam driving the pinned CLI headlessly through aCLIport (ExecCLInever inherits stdin/TTY; signal-kills carried as rc 128+signal), withConfigRepoas the community config repo's single writer.git+file://<dir>?rev=<rev>flake ref (commit-then-apply-exact-revision), per-node eval preflight (exclude-and-report, or fail underStrict), then a layered classification into*DeployResult/*DeployError. (AC1)config_eval/missing_var/connectivity(connectivity before secrets),disk, and a zero exit over a failing log asmasked_exit— legible, never a masked success. (AC2)nix eval …drvPathgate.Enrollment (#163) and Config/Vars/Supply (#164) are later arc slices and fail loud here (ADR 0100). Seam: adapter contract tests over a scripted clan-CLI double + a real single-writer git repo (
internal/clan/adapter_test.go) — S13 verdict corpus per class incl. masked-exit, exact-revision rollback with no revert, 8 concurrent mutations → 8 clean commits. The adapter's real-hardware proof is the family-1 clan-lab smoke (#166).go build/go vet/golangci-lint/ clan tests (incl.-race) clean.Unblocks #163 (enroll) and #164 (config/vars/supply).