@@ -10,53 +10,39 @@ verification, launch-folder updates, commit, push, and RelayForge update.
1010
1111## Last Completed Slice
1212
13- Slice 39 added manual cloud run start .
13+ Slice 40 added hosted terminal run events .
1414
1515Implemented:
1616
1717- hosted worktree at
1818 ` /Users/rohan/.config/superpowers/worktrees/usealmanac/hosted-baseline-convergence `
1919- hosted branch ` codex/workos-authkit-api-foundation `
20- - hosted CLI-token run start route:
21- ` POST /v1/repositories/{repo_id}/runs `
22- - hosted ` ManualBranchRuns ` service
23- - hosted manual-start semantics:
24- ` Action.APPROVE_UPDATE ` , GitHub-resolved branch head, branch delivery policy
25- when present, default ` commit ` delivery otherwise, duplicate-head idempotency
26- - CodeAlmanac cloud runs service/client start method
27- - CodeAlmanac ` CloudRunsWorkflow.start `
28- - public CLI command:
29- ` codealmanac runs start --branch <branch> `
20+ - hosted ` RunFailed ` domain event
21+ - hosted ` RunStale ` domain event
22+ - ` UpdateCompletion ` dispatches ` RunFailed ` after failed or blocked worker
23+ completion
24+ - ` UpdateCompletion ` dispatches ` RunStale ` after delivery detects that the
25+ expected branch head moved
26+ - failed/stale run events carry repo id, account id, repo full name, source
27+ head sha, and reason; stale events also carry expected and actual head shas
3028- pushed hosted commit
31- ` 14caf8b feat: start cloud runs from CLI `
32- - pushed CodeAlmanac commit
33- ` 0e3879e1 feat: start cloud runs from CLI `
29+ ` 8795849 feat: emit terminal run events `
30+ - CodeAlmanac product code was unchanged; local launch docs record this slice
31+ in a follow-up docs commit.
3432
3533Verified:
3634
3735``` text
3836cd /Users/rohan/.config/superpowers/worktrees/usealmanac/hosted-baseline-convergence/backend
39- uv run pytest tests/test_updates_contract.py tests/test_cli_runs_api_contract .py -q
37+ uv run pytest tests/test_events_contract.py tests/ test_updates_contract.py tests/test_architecture_contract .py -q
4038uv run ruff check .
4139uv run python -m compileall src modal_app -q
4240uv run pytest -q
43-
44- cd /Users/rohan/.config/superpowers/worktrees/usealmanac/hosted-baseline-convergence/frontend
45- npm run test:routes
46- npm run lint
47-
48- cd /Users/rohan/Desktop/Projects/codealmanac
49- uv run pytest tests/test_cloud_runs_service.py tests/test_cloud_runs_workflow.py tests/test_cli.py tests/test_architecture.py -q
50- uv run ruff check .
51- uv run python -m compileall src -q
52- uv run pytest -q
5341git diff --check
5442```
5543
56- Counts so far: hosted backend focused ` 37 passed, 1 warning ` ; hosted
57- backend full ` 333 passed, 1 warning ` ; hosted frontend route tests ` 27 passed ` ;
58- hosted frontend lint passed; CodeAlmanac focused ` 123 passed ` ; CodeAlmanac
59- full ` 496 passed ` .
44+ Counts so far: hosted backend focused ` 108 passed ` ; hosted backend full
45+ ` 334 passed, 1 warning ` ; hosted ruff, compileall, and diff-check passed.
6046
6147## Next Pressure Test
6248
@@ -67,7 +53,7 @@ deployment/provider rename checks.
6753Pressure points:
6854
6955- terminal failed/stale runs still do not have a dedicated ` RunFailed ` or
70- ` RunStale ` domain-event fanout for GitHub check updates
56+ ` RunStale ` GitHub Check subscriber
7157- CLI commands list/show/log/start cloud runs, but do not cancel/retry them
7258- ` runs cancel ` needs a real Modal/provider cancellation primitive before it
7359 should be public
@@ -100,7 +86,8 @@ origin at `1b00b63 feat: add repository trigger policies`; Slice 36 is pushed
10086to origin at ` fbf8b5a feat: add CLI repository trigger routes ` ; Slice 37 is
10187pushed to origin at ` 168f9b2 feat: add CLI run read routes ` ; Slice 38 is
10288pushed to origin at ` ed7e765 feat: add cloud route handoff ` ; Slice 39 is
103- pushed to origin at ` 14caf8b feat: start cloud runs from CLI ` .
89+ pushed to origin at ` 14caf8b feat: start cloud runs from CLI ` ; Slice 40 is
90+ pushed to origin at ` 8795849 feat: emit terminal run events ` .
10491
10592The local wiki command currently fails on this checkout with:
10693
0 commit comments