server: GitPublisher — commit+push communities/<slug> to main (phase-2 plan Task 3, ADR 0003) #30
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#30
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?
Plan
docs/superpowers/plans/2026-08-28-coa-phase-2.mdTask 3. Decision:docs/adr/0003-communities-committed-to-main.md.Deliverable
server/src/git-publisher.ts:Exectype,nodeExec(execFile wrapper),GitPublisher { publish(slug) → {ok:true} | {ok:false,error} },gitPublisher({repoDir, exec, remote?, branch?, attempts?}),noopPublisher(). Sequenceadd -A communities/<slug>→commit -m "community: <slug>"→ up to 3 × (pull --rebase origin main→push origin main); promise-chain mutex; never throws.AppDeps.publisher;defaultDeps()usesgitPublisheronly whenCOA_GIT_PUSH=1(COA_REPO_DIR, default.), elsenoopPublisher..env.exampleentries.Acceptance (plan's four tests)
{ok:false, error:'…rejected…'}.publishcalls never overlap (max active exec = 1).community: ngati-examplelands on the baremain.depends_on
out_of_scope
Wiring into
/api/submit(Task 6); credentials/identity (ticket "push credentials", human).Phase gate
No build dispatch, no
coa-sharedprovisioning, no status transitions beyondpage-ready(phase 3). Never delete or rewrite anything undercommunities/(ADR 0002/0003).Claimed by the interactive session — working plan Task 3 next (after #29 merges); branch agent/issue-30.