Resolve the t4/t6 overlap in index.ts by keeping the trust-gated workflow
start path and adding the journal persistence hook and entry renderer.
Adapt journal step lookup to the item engine: an each-step's item children
share their step's id, so the run journal records one row per plan step from
the coordinator's aggregate status and joined output. Per-item journal rows
remain a follow-up. Adds a regression test for the seam.
Generalizes the chain predecessor to needs sets, adds skipped as a terminal
step status with a transitive cascade, encodes each-step items (fail-soft,
zero items fail the step, failed items fail the run), and reserves at most
min(MaxWorkers - 1, 4) concurrent steps per workflow run inside the global
pool. Commits a run's outcome only after every step settled, so skip
propagation completes before a run is called failed.
Move the extension from ~/.pi/agent/extensions/subagent into this repo
and package it for pi install:
- Sources under src/, entry exposed via the pi manifest in package.json
- Host packages (@earendil-works/*, typebox) stay peer dependencies
- Tests, TLA+ spec, and research notes move along unchanged in behavior
- Gates (.pi/verify.json): typecheck, tests, tlc, smoke — all green
- Install: pi install git:git.rwiesner.com/alex/pi-subagent or local path
Scaffold the per-repo configuration the engineering skills read:
- docs/agents/issue-tracker.md: Gitea (git.rwiesner.com/alex/pi-subagent)
driven by the `gt` CLI, including Gitea's native issue dependencies and
the absence of sub-issues
- docs/agents/triage-labels.md: the five canonical triage roles at their
default label strings
- docs/agents/domain.md: single-context layout (root GLOSSARY.md + docs/adr/)
- AGENTS.md: the `## Agent skills` block pointing at each of the above