Daily triage stuff

This commit is contained in:
2026-06-05 13:11:41 +02:00
parent 5ceb771a8f
commit 9a03677475
8 changed files with 356 additions and 39 deletions

View File

@@ -43,22 +43,22 @@ editing canonical workplans.
## Runner Status
This definition is intentionally `enabled: false`.
This definition is `enabled: true` and is the active owned runner for the daily
WSJF triage loop.
Current active runner:
- Codex app automation: `daily-state-hub-wsjf-triage`
- activity-core Temporal schedule from this ActivityDefinition
- Prompt source:
`/home/worsch/the-custodian/runtime/prompts/daily_statehub_wsgi_triage.md`
Durable target runner:
Deprecated fallback runner:
- activity-core Temporal schedule using this ActivityDefinition
- Codex app automation: `daily-state-hub-wsjf-triage`
Enable this definition only after activity-core has a reviewed action path for
running a Custodian agent/report instruction and writing the resulting working
memory note/progress event. Until then, activity-core is the target substrate
and the Codex automation is the active runner. Do not run both at the same time.
Do not run both substrates at the same time. If activity-core is disabled for a
recovery drill or incident, record the operator decision before re-enabling any
Codex app fallback.
## Trigger
@@ -92,7 +92,7 @@ trusted_fields:
- context.daily_triage_digest
model: custodian-triage-balanced
temperature: 0.2
max_tokens: 1400
max_tokens: 1800
max_depth: 2
model_params:
reasoning_effort: medium
@@ -105,6 +105,12 @@ prompt: |
canon, workplans, deployments, secrets, money/legal commitments, or external
publication.
Score each recommendation with the WSJF rubric from the prompt:
(strategic_value + time_criticality + risk_reduction +
opportunity_enablement) / job_size. Use integer factor values from 1 to 5,
round score to one decimal place, sort recommendations by rank, and return at
most 10 recommendations.
Curated digest:
{context.daily_triage_digest}
@@ -115,10 +121,19 @@ prompt: |
"summary": "short operator-facing summary",
"recommendations": [
{
"rank": 1,
"candidate": "workplan or task id/slug",
"action": "work-next|revisit|split|park|close-out|needs-human|needs-cross-agent|needs-consistency-sync",
"why": "brief reason",
"confidence": "high|medium|low"
"confidence": "high|medium|low",
"wsjf": {
"score": 8.5,
"strategic_value": 5,
"time_criticality": 4,
"risk_reduction": 4,
"opportunity_enablement": 4,
"job_size": 2
}
}
]
}