spec: P4 catalogue browses as two tiers — S2 tabs, candidate tier, broker-relayed service request (child of #1073; DDR 0220 / ADR 0219) #1116
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1116
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
presentation half only (note on the map, 2026-08-31); ports remain
IDSS-side engineering through the update channel.
(the demand signal rides the broker), flow
docs/ux/flows/p4-provisioning.mermaid(nodes P4-S2 / S2b / S2b-req /S2bx + the updates→activity arrival edges), wireframes
docs/ux/wireframes/p4-provisioning/(p4-s2-select-role-and-services.htmlamended;
p4-s2b-browse-catalogue.html,p4-s2b-req-request-confirm.html,p4-s2bx-request-nothing-sent.html— commit3d800e99). Standinginherited contracts: ADR 0062 (three-part port), ADR 0064 (single floor
source), DDR 0166 / DDR 0156 / DDR 0146 (cards, accent flood, gating).
Problem Statement
An operator provisioning a device sees nine unadorned service names and has
no way to see what their community could host beyond them, learn what each
service honestly is, or tell anyone what's missing. The catalogue reads as a
checklist, not a catalogue; community wants die in conversation because
there is nowhere for them to land.
Solution
The P4-S2 Select screen grows a second tab. For this device stays the
honest-fit picker over the installable tier, now dressed with tiles,
one-line descriptions and category groups. Browse catalogue shows the
whole catalogue — installable services with where they already run, and a
curated, never-deployable candidate tier with a Request action:
one explicit, broker-relayed send that files an issue on
Matou/idssandemails ben@matou.nz, recorded community-wide as "Requested on ‹date›". A
Suggest something else card catches everything curation missed. When a
requested port later ships through the update channel, the entry moves
tiers wearing its history and the activity feed says so. Vocabulary:
Catalogue / candidate / service request — never store, marketplace, app
store (CONTEXT.md).
User Stories
Browse catalogue), so that fit-picking and catalogue-browsing stay one
screen without polluting each other.
catalogue and back, Then my ticks are exactly as I left them and
Review impact remains reachable from either tab.
for deploy — candidates never appear where a tick could be mistaken
for a promise.
one-line description in domain vocabulary, and its product named and
linked (DDR 0166), so that I can learn what I'd actually be running.
curated category headings (Work together · Reach people · Build ·
Protect · Foundations) and a category with nothing available is
absent; RECOMMENDED stays ungrouped, ordered by the gap it fills.
numbers and all DDR 0146 / #411 / #413 gating is unchanged.
category, so that I can see what exists and what could.
RUNNING pill with where it runs ("running on karaka · second copy on
tōtara") or an INSTALLABLE pill with the plain reason it doesn't yet.
CANDIDATE pill, "would run ‹product›") and carries Request where the
tick would be.
description, so that I can find a service by any handle I know.
query, offers clear-search, and the Suggest something else card stays,
pre-filled with my search text — the tab never dead-ends (P4-S2b).
logos), remembered per operator and honoured on both tabs, so that I
can choose recognisability over kit consistency.
Then its tile falls back to the glyph — never a broken image.
what is sent and to whom, so that the send is a deliberate act I can
stand behind (P4-S2b-req).
git.matou.nz/Matou/idss and an email to ben@matou.nz), SAYING (my
community's name + the service + my optional note), FROM (the
community's name only — no member data, no device facts, no
addresses), VIA (Mātou's broker).
(ADR 0219), so that the state never lies.
card reads "Requested on ‹date›" — and every other operator of this
community sees the same.
operator sends again, Then the broker's dedupe returns the existing
acceptance and the card shows the original date — never an error,
never a second issue.
(P4-S2bx), so that I know nothing half-happened.
request couldn't reach Mātou — nothing was sent" with the reason it
has (never a stack trace), keeps my note, and offers Try again /
Leave it for now; the card is still a plain candidate and the ledger
records nothing.
optional, why required), so that curation never silences a real want.
confirmation and my community's suggestions list as dated plain lines
under the Suggest card — visible to every operator, not re-sendable
by accident.
me, so that the loop visibly closes.
community requested, Then the entry moves to the installable tier
wearing "Requested ‹date› · now installable", and an ops-event lands
in the P12 activity feed naming the service and that this community
requested it.
ever — there is no declined state; that conversation lives on the
filed issue.
requesting are operator-only in v1 (DDR 0220).
prefilled
Matou/idssissue plus one email, sent with the broker's owncredentials, so that demand is actionable and no community holds a
tracker token (ADR 0219).
centrally, so that the tracker cannot be spammed from community
installs.
data compiled in beside the catalogue and shipped through the update
channel, so that browsing works offline and the list grows by commit.
kit tokens (ADR 0122), so that my community's re-skin covers the
catalogue too.
Implementation Decisions
Servicegrowsdisplay facts only: category, one-line description, glyph, logo asset
reference. A new
Candidatetype andCandidates()listing live in thesame package: slug, name, product + product URL, category, one-liner,
glyph, optional logo. Candidates carry no floor, no roles, no health
check and can never reach the deploy path. The curated category taxonomy
is data in this package; it is never free-tagged.
single-writer JSON document (the ADR 0050 jsonstore pattern the member
and rescue ledgers use) mapping service slug → requested-on date, plus
the community's sent suggestions (name, product, date) — and the send
orchestration: call the broker, record only on accept.
RequestService), the sameADR 0100 port pattern as ClaimSubdomain/Rent, carrying: community name,
kind (candidate | suggestion), service slug or suggested name + optional
product, optional note. The response is accept (with the canonical
requested-on date — the original date on dedupe) or a refusal with a
human-readable reason. The broker-side endpoint (issue filing with its
token, the email, rate limiting, dedupe) is companion work in the
broker's own codebase, not this repo — the contract above is what this
repo pins with its fake.
a catalogue read returning both tiers, categories, per-service
running-where (from fleet state), request states and the suggestions
list — the one read the Browse tab renders from; and a request POST
(kind, slug/name, product, note) implementing send-then-record. The
existing assessment/selection/impact/deploy routes are untouched.
confirm and failed dialogs are built to the wireframe contract
(
data-field/data-action/data-statusnames in the four files arethe literal element contract). The tile-face preference is a
per-operator remembered view preference. Wireframe samples (Outline,
Jellyfin, Listmonk, Mobilizon, Vaultwarden, Uptime Kuma, Immich) are
illustrative; the shipped candidate list is the output of the seed
research pass.
diffs the incoming catalogue's installable slugs against the request
ledger; a match stamps the entry's request history and emits an
ops-event through the update module's existing RecentEvents projection
(the #824 ops-event contract). No new notification machinery.
request, Mātou / the IDSS maintainers. Never store, marketplace, app
store, vote, pending, declined.
Testing Decisions
fake broker behind it (the ADR 0100 fake pattern founding uses) — no
new seam. Good tests here assert what an operator or the broker
observes: the catalogue read's two tiers and states, requested-only-on-
accept, the dedupe date, the fail-loud refusal leaving the ledger
untouched, the suggestion listing, the arrival stamping + ops-event.
every candidate has product + URL; taxonomy closed) get plain table
tests in the catalogue package, prior art: the existing floor tests.
tests): load-mutate-save, schema guard, empty-file first run.
(projection over records, windowed).
strip, card states, confirm's four facts, failed dialog) — prior art:
the app's existing P4 picker tests;
design-verifycloses the loopagainst the wireframes.
Out of Scope
/researchpass; this spec ships the machinery and the taxonomy).
Further Notes
community's name + the service + the note, nothing else. The confirm's
FROM line is the operator-facing face of that promise; widening the
payload is a new ruling, not a ticket-level call.
HealthCheck.Summary, ADR 0062): human words, never a stack trace.
per-entry curation duty. Glyph fallback is mandatory.
Ticketed: #1119–#1128 — one ticket per slice of docs/slices/catalogue.yaml,
ready-for-agent, dependency edges native (cross-feature: #23 bootstrap:skeleton, #73 provision-active-and-partial — both closed). Frontier: #1119 (display facts), #1121 (request ledger), #1122 (broker client) can start immediately. Not ticketed here by design: the candidate seed list (/research pass) and the broker-side endpoint (broker codebase).Closed 2026-10-21 (Ben's ruling in the stale sweep): the two-tier catalogue spec was ticketed as #1119–#1128 and the arc is delivered (four-axis review 2026-09-02 on parent #1073, closed with it).