docs: ADR 0004 + 0005, glossary (phase-3 plan Task 0) #67

Closed
opened 2026-08-31 05:20:02 +00:00 by ben · 6 comments
Owner

Plan

docs/superpowers/plans/2026-08-31-coa-phase-3.md Task 0 (spec: docs/superpowers/specs/2026-08-31-coa-phase-3-design.md).

Deliverable

docs/adr/0004-thin-build-repo-kit-driven-app.md, docs/adr/0005-coa-shared-on-matou-multi-tenant.md (text in the plan), docs/adr/README.md index, CONTEXT.md (Kit, Dispatch/Callback, Build number; Tenant wording), STATUS.md log line.

Acceptance

  • Both ADRs present with status: accepted, indexed; CONTEXT terms present verbatim from the plan.
  • pnpm -r typecheck && pnpm -r test unaffected (docs only).

out_of_scope

Any code.

Phase gate

Feature toggles / nav order in builds are phase 4. Never delete or rewrite anything under communities/ (ADR 0002/0003); phase 3 rewrites only kit.json, status.json, index.html. No test reaches the real network, sends real mail, dispatches a real build or provisions a real tenant.

## Plan `docs/superpowers/plans/2026-08-31-coa-phase-3.md` **Task 0** (spec: `docs/superpowers/specs/2026-08-31-coa-phase-3-design.md`). ## Deliverable `docs/adr/0004-thin-build-repo-kit-driven-app.md`, `docs/adr/0005-coa-shared-on-matou-multi-tenant.md` (text in the plan), `docs/adr/README.md` index, `CONTEXT.md` (Kit, Dispatch/Callback, Build number; Tenant wording), `STATUS.md` log line. ## Acceptance - Both ADRs present with `status: accepted`, indexed; CONTEXT terms present verbatim from the plan. - `pnpm -r typecheck && pnpm -r test` unaffected (docs only). ## out_of_scope Any code. ## Phase gate Feature toggles / nav order in builds are phase 4. Never delete or rewrite anything under `communities/` (ADR 0002/0003); phase 3 rewrites only `kit.json`, `status.json`, `index.html`. No test reaches the real network, sends real mail, dispatches a real build or provisions a real tenant.

This was generated by AI during triage.

Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime

Ruling: ready-for-agent. docs-only: ADRs 0004/0005 (text given verbatim in Task 0), index, CONTEXT terms, STATUS line.

Why this is a two-way door: it is revertible by a later commit or label change, and provable by the tests the plan specifies — which never reach the real network, send real mail, dispatch a real build or provision a real tenant. It is not on the one-way-door list: the credential bytes, real GitHub dispatch/release and live coa-shared tenant are already carved out into the human ticket #79 and the session tickets #80/#81; env-gated defaults keep the wired code inert (noop/static, 503/unconfigured) until those land.

What proves it: pnpm -r typecheck && pnpm -r test unaffected (docs only); ADR bodies and CONTEXT terms are specified verbatim in the plan.

The ticket body is a complete agent brief (Deliverable / Acceptance / depends_on). The native Forgejo dependency links already mirror the plan's graph, so the swarm ready-list filter holds this ticket until its blockers close.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime **Ruling:** `ready-for-agent`. docs-only: ADRs 0004/0005 (text given verbatim in Task 0), index, CONTEXT terms, STATUS line. **Why this is a two-way door:** it is revertible by a later commit or label change, and provable by the tests the plan specifies — which never reach the real network, send real mail, dispatch a real build or provision a real tenant. It is not on the one-way-door list: the credential bytes, real GitHub dispatch/release and live coa-shared tenant are already carved out into the human ticket #79 and the session tickets #80/#81; env-gated defaults keep the wired code inert (noop/static, 503/unconfigured) until those land. **What proves it:** `pnpm -r typecheck && pnpm -r test` unaffected (docs only); ADR bodies and CONTEXT terms are specified verbatim in the plan. The ticket body is a complete agent brief (Deliverable / Acceptance / depends_on). The native Forgejo dependency links already mirror the plan's graph, so the swarm ready-list filter holds this ticket until its blockers close.

swarm-claim host=matou-dev-server-01 run=1253
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=1253 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #67 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • no open agent PR (agent/issue-67) for this issue — pr-mode commits land on a PR before they can close it (#13)
envelope
{
  "issue": 67,
  "status": "success",
  "commits": [
    "0207334a412e7ae2fe357fae7959499eb8761a4f"
  ],
  "changed_files": [
    "docs/adr/0004-thin-build-repo-kit-driven-app.md",
    "docs/adr/0005-coa-shared-on-matou-multi-tenant.md",
    "docs/adr/README.md",
    "CONTEXT.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Both ADRs present with status: accepted, indexed": "docs/adr/0004-thin-build-repo-kit-driven-app.md and docs/adr/0005-coa-shared-on-matou-multi-tenant.md both carry `status: accepted` frontmatter; docs/adr/README.md index lists 0004 and 0005 (commit 0207334)",
    "CONTEXT terms present verbatim from the plan": "CONTEXT.md adds Kit, Dispatch/Callback and Build number bullets verbatim from plan Task 0 Step 3, and the Tenant term now reads 'Created by provisioning: POST /admin/tenants {slug} on the coa-shared config server (ADR 0005)' (commit 0207334)",
    "pnpm -r typecheck && pnpm -r test unaffected (docs only)": "Both ran exit 0 after the change; 40 server tests pass, all packages typecheck (docs-only diff)"
  },
  "summary": "Added accepted ADRs 0004 and 0005, indexed them, added the phase-3 CONTEXT glossary terms and a STATUS log line; seam unaffected.",
  "reason": "Task 0 of the phase-3 plan — docs only; ADR/CONTEXT text is verbatim from the plan and the workspace seam stays green.",
  "blockers": []
}
**close-report** for #67 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - no open agent PR (agent/issue-67) for this issue — pr-mode commits land on a PR before they can close it (#13) <details><summary>envelope</summary> ```json { "issue": 67, "status": "success", "commits": [ "0207334a412e7ae2fe357fae7959499eb8761a4f" ], "changed_files": [ "docs/adr/0004-thin-build-repo-kit-driven-app.md", "docs/adr/0005-coa-shared-on-matou-multi-tenant.md", "docs/adr/README.md", "CONTEXT.md", "STATUS.md" ], "tests": [ { "command": "pnpm -r typecheck", "exit_code": 0 }, { "command": "pnpm -r test", "exit_code": 0 } ], "criteria": { "Both ADRs present with status: accepted, indexed": "docs/adr/0004-thin-build-repo-kit-driven-app.md and docs/adr/0005-coa-shared-on-matou-multi-tenant.md both carry `status: accepted` frontmatter; docs/adr/README.md index lists 0004 and 0005 (commit 0207334)", "CONTEXT terms present verbatim from the plan": "CONTEXT.md adds Kit, Dispatch/Callback and Build number bullets verbatim from plan Task 0 Step 3, and the Tenant term now reads 'Created by provisioning: POST /admin/tenants {slug} on the coa-shared config server (ADR 0005)' (commit 0207334)", "pnpm -r typecheck && pnpm -r test unaffected (docs only)": "Both ran exit 0 after the change; 40 server tests pass, all packages typecheck (docs-only diff)" }, "summary": "Added accepted ADRs 0004 and 0005, indexed them, added the phase-3 CONTEXT glossary terms and a STATUS log line; seam unaffected.", "reason": "Task 0 of the phase-3 plan — docs only; ADR/CONTEXT text is verbatim from the plan and the workspace seam stays green.", "blockers": [] } ``` </details>

close-report for #67 — status success

⏳ close-report gates passed — every claim verified against the PR head; PR #85 (#85)'s required checks are not all green yet, so it was NOT merged (MERGE_AUTHORITY=agent-after-green). A later reconcile pass merges it once green.

envelope
{
  "issue": 67,
  "status": "success",
  "commits": [
    "0207334a412e7ae2fe357fae7959499eb8761a4f"
  ],
  "changed_files": [
    "docs/adr/0004-thin-build-repo-kit-driven-app.md",
    "docs/adr/0005-coa-shared-on-matou-multi-tenant.md",
    "docs/adr/README.md",
    "CONTEXT.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Both ADRs present with status: accepted, indexed": "docs/adr/0004-thin-build-repo-kit-driven-app.md and docs/adr/0005-coa-shared-on-matou-multi-tenant.md both carry `status: accepted` frontmatter; docs/adr/README.md index lists 0004 and 0005 (commit 0207334)",
    "CONTEXT terms present verbatim from the plan": "CONTEXT.md adds Kit, Dispatch/Callback and Build number bullets verbatim from plan Task 0 Step 3, and the Tenant term now reads 'Created by provisioning: POST /admin/tenants {slug} on the coa-shared config server (ADR 0005)' (commit 0207334)",
    "pnpm -r typecheck && pnpm -r test unaffected (docs only)": "Both ran exit 0 after the change; 40 server tests pass, all packages typecheck (docs-only diff)"
  },
  "summary": "Added accepted ADRs 0004 and 0005, indexed them, added the phase-3 CONTEXT glossary terms and a STATUS log line; seam unaffected.",
  "reason": "Task 0 of the phase-3 plan — docs only; ADR/CONTEXT text is verbatim from the plan and the workspace seam stays green.",
  "blockers": []
}
**close-report** for #67 — status `success` :hourglass_flowing_sand: **close-report gates passed** — every claim verified against the PR head; PR #85 (https://git.matou.nz/Matou/coa/pulls/85)'s required checks are not all green yet, so it was NOT merged (MERGE_AUTHORITY=agent-after-green). A later reconcile pass merges it once green. <details><summary>envelope</summary> ```json { "issue": 67, "status": "success", "commits": [ "0207334a412e7ae2fe357fae7959499eb8761a4f" ], "changed_files": [ "docs/adr/0004-thin-build-repo-kit-driven-app.md", "docs/adr/0005-coa-shared-on-matou-multi-tenant.md", "docs/adr/README.md", "CONTEXT.md", "STATUS.md" ], "tests": [ { "command": "pnpm -r typecheck", "exit_code": 0 }, { "command": "pnpm -r test", "exit_code": 0 } ], "criteria": { "Both ADRs present with status: accepted, indexed": "docs/adr/0004-thin-build-repo-kit-driven-app.md and docs/adr/0005-coa-shared-on-matou-multi-tenant.md both carry `status: accepted` frontmatter; docs/adr/README.md index lists 0004 and 0005 (commit 0207334)", "CONTEXT terms present verbatim from the plan": "CONTEXT.md adds Kit, Dispatch/Callback and Build number bullets verbatim from plan Task 0 Step 3, and the Tenant term now reads 'Created by provisioning: POST /admin/tenants {slug} on the coa-shared config server (ADR 0005)' (commit 0207334)", "pnpm -r typecheck && pnpm -r test unaffected (docs only)": "Both ran exit 0 after the change; 40 server tests pass, all packages typecheck (docs-only diff)" }, "summary": "Added accepted ADRs 0004 and 0005, indexed them, added the phase-3 CONTEXT glossary terms and a STATUS log line; seam unaffected.", "reason": "Task 0 of the phase-3 plan — docs only; ADR/CONTEXT text is verbatim from the plan and the workspace seam stays green.", "blockers": [] } ``` </details>

close-report for #67 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • no open agent PR (agent/issue-67) for this issue — pr-mode commits land on a PR before they can close it (#13)
envelope
{
  "issue": 67,
  "status": "success",
  "commits": [
    "0207334a412e7ae2fe357fae7959499eb8761a4f",
    "6561be1e3968a9d75c3748f5a8379cab20ef6527"
  ],
  "changed_files": [
    "docs/adr/0004-thin-build-repo-kit-driven-app.md",
    "docs/adr/0005-coa-shared-on-matou-multi-tenant.md",
    "docs/adr/README.md",
    "CONTEXT.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Both ADRs present with status: accepted, indexed": "docs/adr/0004-thin-build-repo-kit-driven-app.md and docs/adr/0005-coa-shared-on-matou-multi-tenant.md both carry `status: accepted` frontmatter; docs/adr/README.md index lists 0004 and 0005 (commit 0207334)",
    "CONTEXT terms present verbatim from the plan": "CONTEXT.md adds Kit, Dispatch/Callback and Build number bullets verbatim from plan Task 0 Step 3, and the Tenant term now reads 'Created by provisioning: POST /admin/tenants {slug} on the coa-shared config server (ADR 0005)' (commit 0207334); Build bullet corrected to match ADR 0004 — coa-builds is not a fork (commit 6561be1)",
    "pnpm -r typecheck && pnpm -r test unaffected (docs only)": "Both ran exit 0 after the change; 40 server tests pass, all packages typecheck (docs-only diff)"
  },
  "summary": "Added accepted ADRs 0004 and 0005, indexed them, added the phase-3 CONTEXT glossary terms (and aligned the Build term with ADR 0004) plus a STATUS log line; seam unaffected.",
  "reason": "Task 0 of the phase-3 plan — docs only; ADR/CONTEXT text is verbatim from the plan and the workspace seam stays green.",
  "blockers": []
}
**close-report** for #67 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - no open agent PR (agent/issue-67) for this issue — pr-mode commits land on a PR before they can close it (#13) <details><summary>envelope</summary> ```json { "issue": 67, "status": "success", "commits": [ "0207334a412e7ae2fe357fae7959499eb8761a4f", "6561be1e3968a9d75c3748f5a8379cab20ef6527" ], "changed_files": [ "docs/adr/0004-thin-build-repo-kit-driven-app.md", "docs/adr/0005-coa-shared-on-matou-multi-tenant.md", "docs/adr/README.md", "CONTEXT.md", "STATUS.md" ], "tests": [ { "command": "pnpm -r typecheck", "exit_code": 0 }, { "command": "pnpm -r test", "exit_code": 0 } ], "criteria": { "Both ADRs present with status: accepted, indexed": "docs/adr/0004-thin-build-repo-kit-driven-app.md and docs/adr/0005-coa-shared-on-matou-multi-tenant.md both carry `status: accepted` frontmatter; docs/adr/README.md index lists 0004 and 0005 (commit 0207334)", "CONTEXT terms present verbatim from the plan": "CONTEXT.md adds Kit, Dispatch/Callback and Build number bullets verbatim from plan Task 0 Step 3, and the Tenant term now reads 'Created by provisioning: POST /admin/tenants {slug} on the coa-shared config server (ADR 0005)' (commit 0207334); Build bullet corrected to match ADR 0004 — coa-builds is not a fork (commit 6561be1)", "pnpm -r typecheck && pnpm -r test unaffected (docs only)": "Both ran exit 0 after the change; 40 server tests pass, all packages typecheck (docs-only diff)" }, "summary": "Added accepted ADRs 0004 and 0005, indexed them, added the phase-3 CONTEXT glossary terms (and aligned the Build term with ADR 0004) plus a STATUS log line; seam unaffected.", "reason": "Task 0 of the phase-3 plan — docs only; ADR/CONTEXT text is verbatim from the plan and the workspace seam stays green.", "blockers": [] } ``` </details>

Landed & closed. The Task 0 docs are on main:

  • 0207334 — ADR 0004 + 0005 (both status: accepted), docs/adr/README.md index, CONTEXT terms (Kit, Dispatch/Callback, Build number, provisioning-based Tenant), STATUS log line.
  • 6561be1 — CONTEXT Build term aligned with ADR 0004 (coa-builds is not a fork).

Both merged to main via PR #85 (branch agent/issue-67); its closes #67 closed this issue. Seam unaffected (docs only): pnpm -r typecheck && pnpm -r test exit 0.

Note for the audit trail: the final close-report run printed a no open agent PR (agent/issue-67) refusal — a false negative. PR #85 was merged with delete_branch_after_merge, which made Forgejo rewrite its stored head.ref from agent/issue-67 to refs/pull/85/head, so the gate's merged-PR lookup (keyed on head.ref == agent/issue-67) no longer matched it. The verified close had already stuck via the merge; the two claim labels (agent-working, ready-for-agent) were then released by hand — the same cosmetic cleanup cr_release_claim_labels performs on a verified close.

**Landed & closed.** The Task 0 docs are on `main`: - `0207334` — ADR 0004 + 0005 (both `status: accepted`), `docs/adr/README.md` index, CONTEXT terms (Kit, Dispatch/Callback, Build number, provisioning-based Tenant), STATUS log line. - `6561be1` — CONTEXT `Build` term aligned with ADR 0004 (coa-builds is not a fork). Both merged to `main` via PR #85 (branch `agent/issue-67`); its `closes #67` closed this issue. Seam unaffected (docs only): `pnpm -r typecheck && pnpm -r test` exit 0. Note for the audit trail: the final `close-report` run printed a `no open agent PR (agent/issue-67)` refusal — a **false negative**. PR #85 was merged with `delete_branch_after_merge`, which made Forgejo rewrite its stored `head.ref` from `agent/issue-67` to `refs/pull/85/head`, so the gate's merged-PR lookup (keyed on `head.ref == agent/issue-67`) no longer matched it. The verified close had already stuck via the merge; the two claim labels (`agent-working`, `ready-for-agent`) were then released by hand — the same cosmetic cleanup `cr_release_claim_labels` performs on a verified close.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/coa#67
No description provided.