engine-adapters: store-config-repo-docs — matrix, backup policy and the operator-key ledger as config-repo commits #166
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#166
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 rebuild-surviving documents land as config-repo commits through the clan adapter's single-writer path (ADR 0103 §2): the access matrix + per-komiti role mappings (ADR 0078 §2), backup policy (ADR 0082 §1), and the operator-key ledger (ADR 0089 — public material + bookkeeping only, replica-safe; enforcement truth stays in recipient sets / principals / mesh admission).
Acceptance criteria
Blocked by
Task manifest
Done in
abf4009(onorigin/main).ADR 0103 §2 config-repo half: the three rebuild-surviving documents get their real backings over the clan single writer (
clan.ConfigRepo.Mutate), via a new genericclan.RepoDoc[T](internal/clan/repodoc.go) that mirrors thejsonstore.Filecontract (absent→(zero,false,nil); corrupt→refused through a newly-exportedjsonstore.Decode) but commits instead of an atomic rename. Reads are straight off the working tree / a replica clone.Port adapters, contracts unchanged:
member.ConfigRepoMatrix—ourcloud/access-matrix.json(ADR 0078 §2;SetPolicyupserts one service + commits)backup.ConfigRepoPolicyStore—ourcloud/backup-policy.json(ADR 0082 §1; per-datasetCommit/Load, edit = new revision)rescue.ConfigRepoKeyLedger—ourcloud/operator-keys.json(ADR 0089; whole-docLoad/Save; public material + bookkeeping only, no private key)Evidence:
control-plane/cmd/control-plane/configrepo_docs_integration_test.go— a policy confirm + matrix change + key mint/revoke land as four commits, a freshgit clonereads all three back, and the key doc holdshine.mesh/hine@ourcloudbut nothing matchingPRIVATE KEY/BEGIN OPENSSH.internal/member/matrixstore_test.go,internal/backup/policystore_configrepo_test.go,internal/rescue/keys_configrepo_test.go.go build/vet/golangci-lint/full suite clean. Not wired intomain.go— whichConfigRepohandle each store gets rides the compose root (#181).