fix-consistency registered the workstream and tasks and wrote their UUIDs into the workplan frontmatter/task blocks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7.4 KiB
id, type, title, domain, repo, status, owner, topic_slug, created, updated, state_hub_workstream_id
| id | type | title | domain | repo | status | owner | topic_slug | created | updated | state_hub_workstream_id |
|---|---|---|---|---|---|---|---|---|---|---|
| STATE-WP-0061 | workplan | Demand-weighted suggestion backlog (relevance-fed WSJF) | custodian | state-hub | proposed | codex | custodian | 2026-06-18 | 2026-06-18 | 34b446d2-bcd3-4fe3-85e9-32b293839770 |
STATE-WP-0061 — Demand-weighted suggestion backlog (relevance-fed WSJF)
Origin: ops-warden WP-0012 triage (2026-06-18). Most WP-0012 tasks are gated
on external owners shipping paths that do not exist yet. They should not sit as
inert todo tasks, nor be fabricated as active entries. They should live as
suggestions that accrue demand pressure every time they are needed-but-unmet,
so in-demand work is promoted to real tasks first.
Problem
The hub today cannot represent "a need that has been raised but not yet vetted or scheduled, whose urgency grows with repeated demand." Concretely:
NextStepsuggestions are derived on the fly and never persisted (api/schemas/state.py), so they cannot accumulate anything.- There is no relevance/demand counter on any entity.
- There is no suggestion → vetted requirement → task promotion pipeline.
CapabilityRequestis the closest analog but models cross-domain brokering, and a repeat need spawns a new request rather than bumping demand on an existing one. - The WSJF triage is advisory (activity-core
daily-statehub-wsjf-triage, CUST-WP-0044) and consumes current summary/workplan/progress state — no persisted demand signal feeds it, and the hub holds no Cost-of-Delay / Job-Size data model.
Approach (decided)
- New
Suggestionentity (not an extension ofCapabilityRequest/TechnicalDebt). Stages:suggestion→requirement(vetted + structured) →promoted(became a Task); plus terminaldeclined. Append-onlySuggestionNotetrail (mirrorsTDNote) records vetting.promoted_task_idlinks the resultingTask. - Relevance is a persisted demand counter. It increments whenever the
suggestion is needed but not yet done (defined in T3).
relevance+last_requested_at+ arelevance_eventscount drive ranking. - WSJF is computed in the hub as a read-model projection and exposed via a
ranked endpoint; the existing activity-core daily triage consumes it.
wsjf = cost_of_delay / job_size, wherecost_of_delay = base_value + (relevance_weight × relevance)so repeated demand raises priority. Job size is an operator-set estimate (default medium). - Promotion keeps the active task backlog clean: gated needs (the WP-0012 case)
live as relevance-accruing suggestions, not as inert
todotasks or fabricated active catalog entries.
Read-model boundary (ADR-001 / hub design): suggestion writes are a new sanctioned write surface alongside
resolve_decisionandget_next_steps.bump_relevance,promote_suggestion_to_task, and vetting transitions are the only writes; ranking/WSJF are pure projections. T6 records the ADR amendment.
Open questions (resolve during T1/T4, do not block proposal)
- Exact WSJF cost-of-delay decomposition (single
base_valuevs SAFe triple of business-value / time-criticality / risk-reduction). Start withbase_value- relevance; leave room to split later.
relevance_weightdefault and whether relevance should decay over time (staleness) — model the field now, tune in T4.
Tasks
T1 — Suggestion data model + migration
id: STATE-WP-0061-T01
status: todo
priority: high
state_hub_task_id: "5cb4d6df-47c1-46c7-af88-4e7db02b2b33"
api/models/suggestion.py:Suggestion(id, domain_id, topic_id?, workstream_id?, title, description, origin, stage, relevance, relevance_events, last_requested_at, base_value, job_size, relevance_weight, promoted_task_id) +SuggestionNote(append-only trail).SuggestionStageenum:suggestion | requirement | promoted | declined.- Alembic migration; register model in
api/models/__init__.py.
T2 — API + MCP sanctioned write layer
id: STATE-WP-0061-T02
status: todo
priority: high
state_hub_task_id: "ebc5238c-0714-4413-99ca-37bb2468ac58"
- REST + MCP:
create_suggestion,vet_suggestion(→ requirement, with structured fields + note),decline_suggestion,promote_suggestion_to_task(creates aTask, setspromoted_task_id, stage→promoted), andlist/get. bump_relevance(id, reason)— sanctioned write; appends a relevance event, increments counter, setslast_requested_at.- Document these as sanctioned writes (alongside
resolve_decision).
T3 — Relevance emission wiring ("needed but not done")
id: STATE-WP-0061-T03
status: todo
priority: high
state_hub_task_id: "e7e87595-8af8-43f3-8372-0ddde44a5b82"
- Define the demand events that bump relevance: (a)
get_next_steps/ dependency lookup resolves to an open suggestion/requirement; (b) aCapabilityRequestmatches an unfulfilled suggestion; (c) an explicit agent bump when it hits a gap (the WP-0012 routing-scenario case). - Wire (a) and (b) in-hub; expose (c) via the MCP write from T2.
- Idempotency/debounce so a single lookup does not double-count.
T4 — WSJF projection + ranked endpoint
id: STATE-WP-0061-T04
status: todo
priority: high
state_hub_task_id: "f6fccd58-5c47-4509-ba0b-9f606dfb53de"
- Pure projection:
wsjf = (base_value + relevance_weight × relevance) / job_size. GET /suggestions?rank=wsjfreturns suggestions/requirements ordered by score (promoted/declined excluded by default).- Feed the activity-core daily triage: include the ranked suggestion list in
the
daily_triagereport input (coordinate with CUST-WP-0044 runner).
T5 — Dashboard surface
id: STATE-WP-0061-T05
status: todo
priority: medium
state_hub_task_id: "4dcca789-3c63-46fb-a1ec-9ae9a68d1a4b"
/suggestionspage: ranked table (stage, relevance, WSJF, last requested), with vet/promote/decline actions guarded to the sanctioned write layer.- Link from
/wsjf-triage; shortsrc/docs/suggestions.md.
T6 — Tests, docs, ADR amendment
id: STATE-WP-0061-T06
status: todo
priority: medium
state_hub_task_id: "a7832268-fa2b-4531-b91f-dc31f92830af"
- Tests: model + migration, relevance bump idempotency, WSJF ordering, promotion creates a linked task, stage transitions reject illegal moves.
- SCOPE/INTENT note; amend the read-model ADR to list the new sanctioned writes.
- Backfill example: register the gated WP-0012 routing scenarios as suggestions.
Acceptance
- A need can be recorded as a
suggestion, vetted into arequirement, and promoted into a realTask— with the demand trail preserved. - Each unmet lookup increments
relevance; higher relevance raises WSJF, andGET /suggestions?rank=wsjfreflects the new order. - The daily WSJF triage report includes the ranked suggestion backlog.
- Gated work (WP-0012-style) lives as a relevance-accruing suggestion, never as an
inert
todotask or a fabricated active catalog entry.
See also
STATE-WP-0053— WSJF triage review page (consumer surface)CUST-WP-0044— activity-core daily triage runner (producer; cross-repo seam)api/models/capability_request.py,api/models/technical_debt.py— prior art- ops-warden
WARDEN-WP-0012— the gated-backlog case that motivated this