Report an issue: mint the broker's tracker identity (idss-broker, write:issue), deploy the broker, run the live proof — DDR 0276 plan 3 Task 11 #1819

Closed
opened 2026-09-24 13:18:42 +00:00 by ben · 2 comments
Owner

The control panel's Report an issue (DDR 0276, plan 3 of the ADR 0267 arc) is code-complete on main as of 59de2aa4: the rail-foot button, the dialog, GET/POST /api/v1/reports on the control plane, and the broker's POST /v1/reports that files the issue here with the broker's OWN token and applies landing-pr with a read-back. Nothing can be filed until the broker holds a tracker credential — and minting one is a personal-credential one-way door (ADR 0174), so it is yours.

Why human

A Forgejo token is a standing credential on this tracker. Whoever mints it decides which identity every App report is attributed to and what that identity may touch. An agent must not create tracker identities or tokens.

Proposed default (do this unless you want otherwise)

  1. Create a dedicated Forgejo user idss-broker — not your PAT, not the swarm bot's — and add it to Matou/idss with write on issues only (no code, no PRs, no admin).
  2. Mint a token for that user scoped to write:issue and nothing else.
  3. Put it on the broker host the way IDSS_DO_TOKEN_FILE is carried (systemd credential file; see broker/README.md § Deploy, the drop-in under /etc/systemd/system/ourcloud-broker.service.d/), and set IDSS_FORGEJO_TOKEN_FILE=<path>. Defaults already point at https://git.matou.nz/api/v1 and Matou/idss (IDSS_FORGEJO_API / IDSS_REPORTS_REPO if you ever need to change them).

Why a separate identity: every App report is then attributable to the relay at a glance in the tracker, and revoking it breaks only reports.

Then (the deploy and the proof — plan 3 Task 11 steps 2–3)

  • CI publishes the broker on the green main; dispatch broker-deploy (.forgejo/workflows/broker-deploy.yml, workflow_dispatch input sha) with the published sha. Label THIS ticket deploy-pending — the deploy rail closes it once the installed sha carries the route; don't close it by hand.
  • Until the broker is deployed with the token, no fleet release should carry the control-plane half to a community: on an .idss.nz community the button would draw and every send would land on "nothing was sent" (the broker 404s → "Mātou's broker could not be reached"; nothing is filed). Honest, but pointless.
  • Live proof, once, by hand, from a community holding a Mātou-issued name (the Whakatōhea Demo when it is back up): Report an issue → title Plan-3 live proof — please close, description Filed by hand to prove DDR 0276 end to end. → Send. Check: the dialog shows Report sent with a #N; issue #N here has title exactly App report from <slug>, line 1 <!-- origin: app-report -->, three bullets, one fence, nothing after it; labels exactly landing-pr (never ready-for-agent); at the next intake tick the gate parses it as well-formed (out-of-scope or parked — either passes; "malformed → ready-for-human" is a FAIL of the golden contract); five more within the hour → the sixth shows "5 reports in the last hour". Close the proof issues afterwards.

Relates to ADR 0267, DDR 0276, ADR 0219, ADR 0174. GOTCHAS #330 names the one alarm to watch in the broker log.

The control panel's **Report an issue** (DDR 0276, plan 3 of the ADR 0267 arc) is code-complete on `main` as of `59de2aa4`: the rail-foot button, the dialog, `GET/POST /api/v1/reports` on the control plane, and the broker's `POST /v1/reports` that files the issue here with the broker's OWN token and applies `landing-pr` with a read-back. Nothing can be filed until the broker holds a tracker credential — and minting one is a personal-credential one-way door (ADR 0174), so it is yours. ## Why human A Forgejo token is a standing credential on this tracker. Whoever mints it decides which identity every App report is attributed to and what that identity may touch. An agent must not create tracker identities or tokens. ## Proposed default (do this unless you want otherwise) 1. Create a dedicated Forgejo user **`idss-broker`** — not your PAT, not the swarm bot's — and add it to `Matou/idss` with **write on issues only** (no code, no PRs, no admin). 2. Mint a token for that user scoped to **`write:issue`** and nothing else. 3. Put it on the broker host the way `IDSS_DO_TOKEN_FILE` is carried (systemd credential file; see `broker/README.md` § Deploy, the drop-in under `/etc/systemd/system/ourcloud-broker.service.d/`), and set **`IDSS_FORGEJO_TOKEN_FILE=<path>`**. Defaults already point at `https://git.matou.nz/api/v1` and `Matou/idss` (`IDSS_FORGEJO_API` / `IDSS_REPORTS_REPO` if you ever need to change them). Why a separate identity: every App report is then attributable to the relay at a glance in the tracker, and revoking it breaks only reports. ## Then (the deploy and the proof — plan 3 Task 11 steps 2–3) - CI publishes the broker on the green `main`; dispatch **`broker-deploy`** (`.forgejo/workflows/broker-deploy.yml`, `workflow_dispatch` input `sha`) with the published sha. Label THIS ticket `deploy-pending` — the deploy rail closes it once the installed sha carries the route; don't close it by hand. - **Until the broker is deployed with the token, no fleet release should carry the control-plane half** to a community: on an `.idss.nz` community the button would draw and every send would land on "nothing was sent" (the broker 404s → "Mātou's broker could not be reached"; nothing is filed). Honest, but pointless. - Live proof, once, by hand, from a community holding a Mātou-issued name (the Whakatōhea Demo when it is back up): Report an issue → title `Plan-3 live proof — please close`, description `Filed by hand to prove DDR 0276 end to end.` → Send. Check: the dialog shows **Report sent** with a `#N`; issue `#N` here has title exactly `App report from <slug>`, line 1 `<!-- origin: app-report -->`, three bullets, one fence, nothing after it; labels exactly `landing-pr` (never `ready-for-agent`); at the next intake tick the gate parses it as well-formed (out-of-scope or parked — either passes; "malformed → ready-for-human" is a FAIL of the golden contract); five more within the hour → the sixth shows "5 reports in the last hour". Close the proof issues afterwards. Relates to ADR 0267, DDR 0276, ADR 0219, ADR 0174. GOTCHAS #330 names the one alarm to watch in the broker log.

This was generated by AI during triage.

Relevance gate: not read — the report body is not in the shape the broker files (line 1 is not the origin marker). Its words were NOT shown to any agent.

Why human

A body that is not the broker's exact shape may be an escaped fence or an edit after filing; deciding whether to trust it is a security-posture call, not a revertible one.

Proposed default ruling: close as out-of-scope unless you recognise the report as genuine — then restore the body to the contract shape (one fenced block under the words heading, nothing after it) and remove ready-for-human.

> *This was generated by AI during triage.* <!-- app-report-gate: borderline malformed --> **Relevance gate: not read — the report body is not in the shape the broker files (line 1 is not the origin marker).** Its words were NOT shown to any agent. ## Why human A body that is not the broker's exact shape may be an escaped fence or an edit after filing; deciding whether to trust it is a security-posture call, not a revertible one. **Proposed default ruling:** close as `out-of-scope` unless you recognise the report as genuine — then restore the body to the contract shape (one fenced block under the words heading, nothing after it) and remove `ready-for-human`.
Author
Owner

Live proof done 2026-10-09 18:06Z: Ben pressed Report an issue on the Whakatōhea Demo control panel (release 2026.10.3201 9a9a378f, Fleet tab, kind improvement) and idss-broker filed #2046 with landing-pr + the <!-- origin: app-report --> marker. The broker's POST /v1/reports route is registered (answers 401 without a community secret, 404 for unknown routes), so the Forgejo token is installed on the broker host. Control panel → gateway → broker → tracker proven end to end. Closing.

Live proof done 2026-10-09 18:06Z: Ben pressed Report an issue on the Whakatōhea Demo control panel (release 2026.10.3201 `9a9a378f`, Fleet tab, kind improvement) and `idss-broker` filed #2046 with `landing-pr` + the `<!-- origin: app-report -->` marker. The broker's `POST /v1/reports` route is registered (answers 401 without a community secret, 404 for unknown routes), so the Forgejo token is installed on the broker host. Control panel → gateway → broker → tracker proven end to end. Closing.
ben 2026-10-09 18:08:12 +00:00
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1819
No description provided.