115 Commits
Author SHA1 Message Date
alex 33bf16ef2f Wiki: 0.4.0 released 2026-12-01 12:14:48 +00:00
alex 8dd5fb0fad Release 0.4.0: run state, supervisor seam, and bounded observation 2026-12-01 12:14:43 +00:00
alex d6a11b32e5 Wiki: merged to main, spec #20 closed 2026-12-01 12:09:25 +00:00
alex e25f733dce Merge architecture-deepening: run state, the supervisor seam, bounded observation (spec #20) 2026-12-01 12:08:24 +00:00
alex af420e818c Retro: architecture-deepening pipeline findings and follow-ups 2026-12-01 12:02:07 +00:00
alex c5df57dda1 Wiki: review and fix pass complete, pipeline closed pending merge 2026-12-01 12:01:40 +00:00
alex 5cc066052b Merge ticket/arch-review-fixes: two-axis review fixes (restored-run wait, start-plan rename, FIFO-cancel pin) 2026-12-01 12:00:20 +00:00
alex 628fcb2ff4 Scope the presentation rulebook comment to task rows 2026-12-01 11:57:00 +00:00
alex 3c8712eb4b Record the pre-terminal loop death in ADR 0004 2026-12-01 11:56:58 +00:00
alex dcc66a4b26 Thread the load-time child environment into the runner 2026-12-01 11:56:55 +00:00
alex e623dae30c Store the bare skip reason and own its format in present 2026-12-01 11:56:52 +00:00
alex b4090c22d7 Tag wait results with a job-or-run discriminant 2026-12-01 11:56:49 +00:00
alex 5a44640ef3 Pin single finalization when a run is cancelled in the FIFO 2026-12-01 11:56:46 +00:00
alex 6f7f9d2a3b Keep a reloaded run's bounded answer and cover the wait fallback 2026-12-01 11:56:43 +00:00
alex 55752dd3bb Drop the unused expansion validator import from prepare 2026-12-01 11:56:40 +00:00
alex b442cf0ebf Finish the start-plan rename in identifiers and docs 2026-12-01 11:56:37 +00:00
alex 9ba089a545 Wiki: wave 4 complete (#25, #26 merged); frontier is the review pass 2026-12-01 11:46:43 +00:00
alex 79f9df84a0 Merge ticket/t6-presentation: presentation rulebook in present.ts (#26) 2026-12-01 11:42:52 +00:00
alex 78e13dcb1b Merge ticket/t5-observation: job event seam, terminal checkpoints, bounded run wait (#25) 2026-12-01 11:41:29 +00:00
alex d94c2795a7 Guard the observation seam at 256 children and across crash restore 2026-12-01 11:39:54 +00:00
alex df929590e8 Emit job events, checkpoint at terminal, and bound the run wait 2026-12-01 11:39:54 +00:00
alex 466915b13d Delete the unreachable workflow result renderer 2026-12-01 11:35:46 +00:00
alex 3781f0e041 Own task and start presentation rules in present.ts 2026-12-01 11:35:45 +00:00
alex bf70be5729 Wiki: wave 3 complete (#23, #24 merged) 2026-12-01 11:29:13 +00:00
alex e15c86f007 Merge ticket/t4-step-mirrors: step schemas, whole-plan hash v2, record schemas (#24)
# Conflicts:
#	test/workflow-journal.test.ts
2026-12-01 11:26:53 +00:00
alex c48e25b26f Merge ticket/t3-run-module: project the workflow journal from run state (#23) 2026-12-01 11:23:19 +00:00
alex ed59a748cb Own persisted record shapes with TypeBox schemas
TaskSnapshot, JobSnapshot, the workflow journal record, and their entry
envelopes are TypeBox schemas whose Static types are the persisted types.
persistence.ts restores with Value.Check, so the hand-written validators
(and their drift: validTask skipped step, validJob skipped timings and
errors) are gone. A fast-check property holds persist -> restore equal
over generated records.
2026-12-01 11:21:40 +00:00
alex fa747145ce Hash whole plan steps under payload version 2
workflowStepInputHash and workflowItemInputHash feed the canonical
serializer the plan with provenance stripped, so every step field is
hashed by default and a new one cannot vanish from the replay contract.
The payload marker moves 1 -> 2 to separate hash eras; nothing replays
today (ADR 0004).
2026-12-01 11:19:33 +00:00
alex 1fcc6130c7 Make the step schema the one field list
Parse steps with Value.Check against a TypeBox WorkflowStepSchema, derive
the allowed field names from it, and keep full steps in the start plan:
model and cwd ride along, so ExpandedWorkflowStep has no shape to copy.
PreparedWorkflowStep projects the canonical step type instead of
re-declaring id, needs, and each.
2026-12-01 11:19:33 +00:00
alex 8bc08bd08a Project the workflow journal from run state
The journal rebuilt the step/item graph from the flat job record: rows
were grouped by stepId, an each-step's coordinator row was picked out of
the collision with its item children, and a positional fallback covered
rows without step ids. After the seam (#22) the supervisor owns the DAG
index, so the record is a projection of that state instead.

- WorkflowSupervisor.journal(execution) projects the record from its
  stepTasks/itemTasks index and the run spec while the run is live.
- journal.ts keeps the pure row builders, now over the shared InternalTask
  record, and builds the record from plan order plus the index; itemsByStep,
  the byStep collision handling, and the positional fallback are gone.
- The manager calls the run's projection at finalize and passes it to
  onWorkflowJournal; interrupted runs project at shutdown as before.
- jobUsage() moves the usage summation into job-state.ts so the snapshot
  and the journal read one number.

Journal tests that hand-built flat snapshots to exercise the
reverse-engineering are replaced by run-state-driven ones; a cancelled
run's journal is now covered too.

Part of #23.
2026-12-01 11:18:13 +00:00
alex a3fc182cb5 Wiki: wave 2 complete (#22 merged) 2026-12-01 11:12:36 +00:00
alex 437ac3da68 Merge ticket/t2-seam: make the workflow supervisor host seam real (#22) 2026-12-01 11:10:08 +00:00
alex 1176537b32 Test the workflow supervisor through a fake host
Add a second WorkflowSupervisorHost adapter and drive release order, transitive skips, fail-soft items, zero-item failure, cancellation with pending items, stall detection, and injected cap limits without a manager or temp agent directories.
2026-12-01 11:09:26 +00:00
alex 621f6e2579 Make the workflow supervisor host seam real
Move Execution, InternalTask, and the status predicates into job-state.ts; the supervisor now creates, schedules, and settles shared rows only through its host. Concentrate cancellation and shutdown settlement in one supervisor policy, make restored rows honest (no fabricated AgentConfig), and thread load-time cap limits through WorkflowRunSpec so release enforcement and the review card share one value. Agent discovery is memoized per cwd within a prepare call.
2026-12-01 11:09:26 +00:00
alex 23c9f84650 Wiki: wave 1 complete (#21 merged) 2026-12-01 10:59:29 +00:00
alex 1b48b726e8 Merge ticket/t1-file-split: split workflow modules by concern and rename the start plan (#21) 2026-12-01 10:57:27 +00:00
alex 4cadd04680 Rename ExpandedWorkflowPlan to StartPlan 2026-12-01 10:56:01 +00:00
alex 7114650aed Split workflow modules by concern: plan, run, command 2026-12-01 10:55:35 +00:00
alex cfec14e515 Wiki: open the architecture-deepening goal (spec #20, tickets #21-#26) 2026-12-01 10:51:18 +00:00
alex e1dc44225e Wiki: 0.3.0 released 2026-11-30 20:16:04 +00:00
alex bd1fccfdc3 Release 0.3.0: live dashboard and the ultra layer 2026-11-30 20:15:02 +00:00
alex fd10ef93f1 Retro: ultra-layer pipeline findings and rule promotions 2026-11-30 20:03:47 +00:00
alex 2b382eb842 Ignore node_modules symlinks in worktrees 2026-11-30 20:03:24 +00:00
alex 298cb39847 Merge ultra-layer: the ultra layer — inline plans, ultra mode, keyword trigger, completion notices (#14) 2026-11-30 20:01:42 +00:00
alex 2c66fd0c61 Wiki: review and fix pass complete, pipeline closed pending merge 2026-11-30 17:46:35 +00:00
alex 6db0fd8c75 Merge ticket/ultra-review-fixes: two-axis review fixes for the ultra layer 2026-11-30 17:43:44 +00:00
alex ee53b7ef18 Cover the mode/no-UI cell, start cwd resolution, and the over-cap warning 2026-11-30 17:42:25 +00:00
alex 90297c9229 Thread load-time ultra config through the formatters and rename advisory targets 2026-11-30 17:42:25 +00:00
alex e77e783737 Replace dead keyword helpers with property coverage of the matcher 2026-11-30 17:42:25 +00:00
alex d830733e91 Extract the shared ultra on/off config cascade 2026-11-30 17:42:24 +00:00