Build progress (0.8.0)
Spec: SPEC.md (0.8.0; 0.1.0–0.7.0 in docs/) · Build notes: docs/0.8.0/session-notes.md · Stack: STACK.md · Branch: build/tevrin-0.8.0 · Started: 2026-11-23
Gate: GitHub Actions CI on the pushed head commit, after a static stack-reviewer pass (CLAUDE.md “Commit gate”).
Agents never run the full gate, Docker, Testcontainers or E2E locally.
Invariant: the SDLC behaves as in 0.7.0. The characterisation snapshots change only once, in the FR-328 rename re-baseline; after it, they are frozen again.
Environment
- Packs (STACK.md):
fe-nextjs,be-aspnet,data-efcore-postgres,vcs-github,deploy-railway,local-docker-desktop-k8s. All installed. - Tools: .NET SDK 10.0.402, Node 24.14.1.
- Local: Docker Desktop Kubernetes is manual checks only (Ben).
- VCS CLI auth: gh yes (BenFielder1). Railway CLI logged in; Railway deploys run only through
.github/workflows/deploy.yml.
Requirements
| ID | Summary | Spec § | Layer(s) | Phase | Status | Evidence |
| — | — | — | — | — | — | — |
| FR-323 | Projects, namespaces and Aide* types renamed to Tevrin; architecture tests list host assemblies | 3.1 | backend | M65 | done | 2f43ed3, CI |
| FR-324 | Migrations change only by mechanical substitutions (CI check); EF drift empty | 3.1 | backend + data + CI | M65 | done | 2f43ed3 (+ 4865d26), CI |
| FR-325 | Config/env/auth scheme/telemetry renamed, old names read with a warning | 3.1, 4.77 | backend + deploy | M65 | done | a9ca935, CI |
| FR-326 | Wire and stored identifiers, read both (tokens, cookie, plan block, merge strategy, others) | 3.1, 4.77 | backend + frontend + data | M65 | done | 4865d26, CI |
| FR-327 | Images, k8s, Railway IaC, smoke scripts renamed; rename runbook | 3.1 | deploy + docs | M65 | done | 3f04ef7, CI |
| FR-328 | One snapshot re-baseline with a mapped-equality CI check; freeze base moves | 3.1 | backend + CI | M65 | done | 4865d26 + 62c5ce1, CI |
| FR-329 | Leftover-name scan test with scripts/ci/aide-allowlist.txt; docs updated | 3.1 | backend + docs + CI | M65 | done | 49b6412, CI |
| FR-330 | RunControl.Engine/Host per pipeline; SDLC is Host | 3.2 | backend | M66 | done | 7a4f6da, CI |
| FR-331 | Start a run endpoint (inputs, one-active rule) | 3.2 | backend + data | M66 | done | 63c8601, CI |
| FR-332 | Run driver stage.run (idempotent) | 3.2, 4.62 | backend | M66 | done | 63c8601, CI |
| FR-333 | Cancel, roll back, retry endpoints | 3.2 | backend | M66 | done | 63c8601, CI |
| FR-334 | Runs without a subject | 3.2 | backend + data | M66 | done | 7a4f6da + 50ccb98, CI |
| FR-335 | Submit an input; waiting_on_input | 3.2 | backend + data | M66 | done | 63c8601, CI |
| FR-336 | Schedule trigger (cron, timezone, skip when active) | 3.2, 4.71 | backend + data | M66 | done | c9b6a15 + 88a87d0, CI |
| FR-337 | Webhook trigger (signature, replay, rotation, deliveries) | 3.2, 4.72 | backend + data | M66 | done | c9b6a15 + 88a87d0, CI |
| FR-338 | Tevrin.Pack.Coach project + architecture tests + test project | 3.3 | backend | M67 | done | 38d9c65, CI |
| FR-339 | impulse-coach pipeline definition | 3.3 | backend | M67 | done | 38d9c65 + e13bbc7 + 07f4ade, CI |
| FR-340 | velocity.load-rules guard (R1–R5) | 3.3, 4.63 | backend | M67 | done | 38d9c65, CI |
| FR-341 | Coach uses default agent policy; budget/audit hooks apply to every pipeline | 3.3 | backend | M67 | done | e13bbc7 + 2968049, CI |
| FR-342 | Impulse coaching pack docs guide | 3.3 | docs | M67 | done | 07f4ade, CI |
| FR-343 | Parallel stages (fixture-parallel) | 3.4, 4.64 | backend | M68 | done | ab601ee + 68818af, CI |
| FR-344 | Veto (fixture-veto) | 3.4 | backend | M68 | done | ccf1b19, CI |
| FR-345 | Fan-out with isolated context (fixture-forecast) | 3.4, 4.65 | backend | M68 | done | fe72383, CI |
| FR-346 | Aggregation stage | 3.4 | backend | M68 | done | fe72383, CI |
| FR-347 | Route back to an earlier stage (fixture-editorial) | 3.4 | backend | M68 | done | ccf1b19, CI |
| FR-348 | Revision cap across the run | 3.4, 4.66 | backend | M68 | done | ccf1b19, CI |
| FR-349 | Multiple output variants | 3.4, 4.67 | backend | M68 | done | 1c5bbb8, CI |
| FR-350 | Validator agent (fixture-factcheck) | 3.5 | backend | M69 | done | 328ea74 + 7a64b19, CI |
| FR-351 | Agent feedback store (fixture-postmortem) | 3.5, 4.75 | backend + data | M69 | done | 7a64b19 + 03d8a13, CI |
| FR-352 | Source-of-truth artifacts pinned per run (fixture-cv) | 3.5, 4.76 | backend + data | M67 | done | 9372e8b, CI |
| FR-353 | External outcome scoring, Brier | 3.5, 4.74 | backend + data | M69 | done | 328ea74, CI |
| FR-354 | Follow-up stages (delayed jobs) | 3.5, 4.70 | backend + data | M69 | done | 3addd12, CI |
| FR-355 | Map-reduce (fixture-qa) | 3.6, 4.68 | backend + data | M70 | done | 0f53d58 + 8f4349c + 2c81628 + c08549f, CI |
| FR-356 | Conversation stage (fixture-callsim) | 3.6, 4.69 | backend | M70 | done | 0f53d58 + 8f4349c + ab94bbb + ec16b5b, CI |
| FR-357 | Windowed inputs over runs (fixture-trends) | 3.6 | backend | M70 | done | 0f53d58 + 5ce5414, CI |
| FR-358 | Tool permission tiers | 3.7 | backend | M71 | done | 93fbd35 + d4b7410, CI |
| FR-359 | Mid-stage approval for destructive tools (fixture-oncall) | 3.7, 4.73 | backend + data | M71 | done | b67b366 + 93fbd35 + 3d410b2, CI |
| FR-360 | Human gate before an external action | 3.7 | backend | M71 | done | 93fbd35 + 9ea5306 + e695642, CI |
| FR-361 | Webhook triggers and tools on agents (on-call fixture) | 3.7 | backend | M71 | done | 93fbd35 + e695642, CI |
| FR-362 | Start run / Submit input dialogs | 3.8 | frontend | M72 | done | 04b940b + f441ee1 + a767ea4, CI |
| FR-363 | New constructs in stage list and timeline | 3.8 | frontend | M72 | done | 04b940b + f441ee1 + ba0e2db, CI |
| FR-364 | New gate cards | 3.8 | frontend | M72 | done | 04b940b + f441ee1, CI |
| FR-365 | Scores and feedback UI | 3.8 | frontend | M72 | done | 04b940b + f441ee1 + a767ea4, CI |
| FR-366 | Triggers UI | 3.8 | frontend | M72 | done | 04b940b + f441ee1, CI |
| FR-367 | Version 0.8.0, changelog, guides, release docs | 3.9 | frontend + docs | M65 (bump) / M73 | done | build part: version 0.8.0 in the three sources, changelog date: null (9a79474); release part in the release PR (M73): changelog date 2026-11-28, docs/history/0.8.0.md, Triggers and webhooks guide, construct reference, error codes, SPEC/PROGRESS to docs/0.8.0 |
Phases
- M65 Rename (base: d1301d2) — FR-323–FR-329; version bump to 0.8.0 (FR-367)
- a. Version bump + PROGRESS (CI 45272691359)
- b. Projects, namespaces and types (mechanical) + migration-check script (FR-323, FR-324) (CI 45278720358)
- c. Config and telemetry fallbacks (FR-325) (CI 45312651121)
- d. Wire and stored identifiers, read both; contract + client (FR-326) (CI 45365150480, with f)
- e. Images, k8s, IaC, smoke scripts, runbook (FR-327) (CI 45371572456)
- f. Snapshot re-baseline + mapped-equality check (FR-328): re-baseline 4865d26 (snapshots from scratch-branch CI run 45361838017), freeze pinned in 62c5ce1 (CI 45365150480)
- g. Leftover-name scan + allowlist, CLAUDE.md/STACK.md/README/docs (FR-329) (CI 45374604868)
- M66 Run control and triggers — FR-330–FR-337
- a. Run control, definition fields,
waiting_on_input, runs without a subject, trigger tables, error codes (FR-330, FR-334) — 7a4f6da + fix 50ccb98 (CI 45394797913) - b.
stage.rundriver; start, cancel, rollback, retry and input endpoints; engine gate decisions;fixture-linear(FR-331–FR-333, FR-335) — 63c8601 (CI 45412232128) - c. Schedules and webhooks (FR-336, FR-337) — c9b6a15 + test fix 88a87d0 (CI 45452701300)
- a. Run control, definition fields,
- M67 Coach pack — FR-338–FR-342, FR-352
- a. Source-of-truth artifacts pinned per run,
fixture-cv(FR-352) — 9372e8b (CI 45467772497) - b1.
Tevrin.Pack.Coach: definition, schemas, prompts,coach.velocity-load-rulesguard,triggers:list, architecture tests, test project (FR-338–FR-340) — 38d9c65 (CI 45475257880) - b2. Token budget and audit hooks for every pipeline, pack registration, Fake outputs, worked-example integration tests (FR-341, FR-339 acceptance) — e13bbc7 + fix 2968049 (CI 45578882959)
- c. Pipeline tab render check (Vitest) and the Impulse coaching pack guide (FR-339 acceptance, FR-342) — 07f4ade (CI 45578882959)
- a. Source-of-truth artifacts pinned per run,
- M68 Flow constructs — FR-343–FR-349
- a. Definition syntax, validator and hash for parallel, veto, fan-out, aggregate, routes, limits and variants; fixtures (FR-343–FR-349) — 46e1adf (CI 45608493696)
- b. Data:
pipeline_runs.revisions/outcome, branch, variant and veto columns,variant_selectgates with payload — 81944dc (CI 45616618135) - c. Driver: parallel (c2 ab601ee + fix 68818af), veto, routes, revision cap (c1 ccf1b19) (FR-343, FR-344, FR-347, FR-348) (CI 45668753073)
- d. Driver: fan-out with isolation, aggregate with disagreement (d1 fe72383), variants with gate or agent selection (d2 1c5bbb8) (FR-345, FR-346, FR-349) (CI 45668753073)
- M69 Quality and learning — FR-350, FR-351, FR-353, FR-354
- a. Data:
agent_runs.validator_findings/feedback_ids,agent_feedback,outcome_scores— c1da188 - b. Validator agents (FR-350) — 328ea74
- c. Agent feedback store and injection (FR-351) — 7a64b19 + fix 03d8a13
- d. Outcome scores, Brier, prompt-comparison means (FR-353) — 328ea74
- e. Follow-up stages (FR-354) — 3addd12 (CI 45787248789, after splitting the
restintegration shard in 5d048d7: Pipelines, Stages and Projects now run aspipelines-projects)
- a. Data:
- M70 Scale and conversation — FR-355–FR-357
- a. Definition syntax, validator and hash for map/reduce, conversation and
from_runs; fixturesfixture-qa,fixture-callsim,fixture-trends(D-0.8.0-23) — 0f53d58 (CI 45789843317) - M70a review minors for later steps: validator error paths
inputs[{j}]skipfrom_runsentries (wrong YAML index); map/conversation stages read asManualuntil c/d land;from_runsnot yet in prompt placeholders orAgentStageRunnerinputs;DEF_MAP_SOURCEchecks list order, not reachability. - b. Data:
stage_executions.parent_execution_id,item_indexon agent runs and artifacts,agent_runs.turn_index/turn_role;MAP_TOO_MANY_ITEMS(D-0.8.0-24). Review minor for c: a child execution must always have anitem_index(the unique index treats null as distinct) — 8f4349c (CI 45793183265) - c. Driver: map-reduce (FR-355), D-0.8.0-25 — 2c81628 + fix c08549f (CI 45821499223)
- d. Driver: conversation (FR-356), D-0.8.0-26 — ab94bbb + fix ec16b5b (CI 45830714380)
- e.
from_runsinput resolution (FR-357), D-0.8.0-27; FR-20 integrity filter onfrom_runsand FR-346 aggregate lists — 5ce5414 (CI 45849216582)
- a. Definition syntax, validator and hash for map/reduce, conversation and
- M71 Tools and safety — FR-358–FR-361 (security: destructive tools stay on fixtures)
- a1. Definition and registration: tool
tier, handler/toolexternal,tool_policy: { max_tier },DEF_TOOL_TIER; fixturefixture-oncall(FR-358, FR-359, FR-360 syntax), D-0.8.0-28 — 93fbd35 (CI 45871148485) Blocker until c and d land: resolved by 3d410b2 (destructive) and 9ea5306 (external). The gate payload blocker is resolved too: 04b940b (DTO) + f441ee1 (cards), tested byfr364-gates.- For b–e: link
fixture-oncall.pipeline.yamlin the IntegrationTests csproj and register its prompts and tools (with tiers) in the integrationFlowFixturePackcopy (M70c 404 lesson). Pack-author docs: the tier is only as honest as the pack’s registration (an unclassified tool iswrite). - a2. Data:
agent_runs.tool_loop_state(jsonb); error codesTOOL_STATE_TOO_LARGE,EXTERNAL_ACTION_REJECTED. No other schema needed: the tool-call tier goes in eachagent_runs.tool_callselement (AgentToolCallRecord, optional for old rows), gatetypeis a free string, and the §4.73 call state is derived fromtool_loop_state+ the run’stool_approvalgate (cleared on resume) — b67b366 (CI 45867346886) - b. Runner: tier enforcement and recording at call time (FR-358), D-0.8.0-29; destructive and external tools are refused (not run) until c/d; startup warning for DI-only tools with no tier — d4b7410 (CI 45875442063)
- c. Destructive tool approval mid-stage, saved loop state, resume (FR-359, §4.73), D-0.8.0-30 — 3d410b2 (CI 45885330729)
- d. External action gate before external handlers and tools (FR-360),
fixture-cvsubmit, D-0.8.0-31 — 9ea5306 + test fix e695642 - e. On-call end to end: signed webhook → investigator (read) → executor (destructive) (FR-361); bad signatures, replay and rotation are covered by FR-337’s
TriggerTests— e695642 (CI 45955212466)
- a1. Definition and registration: tool
- M72 Engine UI — FR-362–FR-366
- a. Backend: additive DTO fields and read endpoints the engine UI needs (gate payload, timeline labels, map progress, input schemas, follow-ups, next fire times; map items and schedule preview endpoints); contract + client regenerated, D-0.8.0-32. Feedback, mean scores, pinned artifacts, scope and trigger CRUD already existed. Gate payloads are now on the DTO, which clears the M71 build-PR blocker once the UI shows them (b2) — 04b940b (CI 46062120341)
- b1. Frontend: Start run / Submit input dialogs (FR-362), Feedback and scores (FR-365), Triggers (FR-366); host page passes
access— f441ee1 + fixes a767ea4 (CI 46136578515) - Carry-overs from M67–M71 (gate payloads, timeline labels, pinned artifacts,
{artifact}, scores and feedback) are all closed by a and b;DEF_*codes keep no copy. - c. Live hub events
stageBranchUpdatedandmapProgress(§6, FR-363), D-0.8.0-33 — found by the pre-PR audit — ba0e2db (CI 46138735113) - d. Spec and docs cleanup from the audit: §6 routes, acceptance headings, §10 order, CLAUDE.md/STACK.md coach pack, coach guide “From the UI”; release-PR docs (Triggers and webhooks guide, construct reference, error-codes reference) stay in M73
- b2. Frontend: lanes, map progress, variants, transcripts, follow-ups, veto/route entries (FR-363); gate cards with payloads (FR-364);
{artifact}inSOURCE_ARTIFACT_MISSING.DEF_*codes have no copy (none do; the parity test readsErrorCodes.csonly)
- Build PR #66 opened 2026-11-28 after Ben ran the rename runbook steps 1–3 on preview; all CI checks green on d50098b (test credential vectors assembled at run time after GitGuardian flagged two fake values in 9ea5306).
- M73 Release 0.8.0 — FR-367, after Ben confirmed on preview (2026-11-28): the release PR (
release/0.8.0) sets the changelog date (2026-11-28), moves SPEC and PROGRESS todocs/0.8.0/, and adds the CLAUDE.md row,docs/history/0.8.0.md, the Triggers and webhooks guide, the construct reference in Pipelines and packs, and the new error codes; the root-SPEC.mdentry leaves the FR-329 allowlist
Decisions
-
2026-11-23 — The 0.8.0 spec moved from
docs/0.8.0/to the rootSPEC.mdafter 0.7.0 was released (PR #63) — CLAUDE.md version workflow — SPEC updated: yes (header) -
2026-11-24 — D-0.8.0-16:
AIDE_RUN_MIGRATIONS, the data-protection application nameaideand theAide.Secrets.*purposes keep their names (generated-project contract; decryption of stored secrets) — FR-325 acceptance corrected — SPEC updated: yes - 2026-11-24 — M65 steps d and f land together: the merge-strategy value (
aide_merges) and the system actor (aide-system) are captured by the characterisation snapshots, so the commit that changes what they write is the FR-328 re-baseline commit. Readers of every old name land first in that same commit; writers whose values the snapshots or golden prompts capture are flipped there. The new snapshots come from a CI run on a scratch build branch, then are checked by the mapped-equality script before they’re committed — Claude — SPEC updated: no - 2026-11-24 — FR-326 keeps these
aidenames (all go on FR-329’s allowlist):- short-lived data-protection purposes for OAuth state and the GitHub App manifest state (
Aide.GitHub.*,Aide.Bitbucket.*,Aide.GitLab.*), so in-flight sign-ins survive the deploy (the sign-in properties are written astevrin.*and theaide.*ones are still read); - the Supabase migration lock
aide_supabase_migrations, shared by old and new deploys; - the bundled catalog’s pack versions (
+aide.<n>, read either way), until each pack’s next version; - the dev seed admin
admin@aide.localand the local data folders beside the data-protection keys.
The system actor (
aide-system), the plan block and stack-profile fence tags, and the fake failure markers are read both ways now and written astevrinin the FR-328 commit — Claude — SPEC updated: no - short-lived data-protection purposes for OAuth state and the GitHub App manifest state (
-
2026-11-24 — The
aide_mergesmigration rewrites onlyprojects.merge_strategy(and the column default); stored event and job payloads keep the old value, since events are the audit trail and every reader accepts both — Claude — SPEC updated: no - 2026-11-24 — D-0.8.0-17: the generic workload, service and job names (
api,web,db,db-migrate; Railwayapi,web,postgres) stay; FR-327 renames the namespace, images, data PVC, labels, Railway project, variables and database — Claude (M65e review) — SPEC updated: yes (FR-327 row and acceptance, §10) -
2026-11-24 — The dev loop (
docker-compose.yml,.env.example) keeps itsaideproject, volume, database and user, so an existing dev database keeps working (“Unchanged: dev loop”, §11); FR-329 allowlists them..railway/railway.tsignoresConnectionStrings__Aidefor 0.8.x sorailway config applynever removes the variable a 0.7.0 deployment reads — Claude — SPEC updated: no -
2026-11-24 — FR-329’s allowlist allows any
aidename under the test folders (backend tests, e2e, Vitest files, mocks) with removal 0.9.0, rather than one entry per name: tests exercise the old names still read, the FR-197–FR-201 product-name rules and pre-rename fixtures. Outside tests, every entry names its tokens and files. The scanner isscripts/ci/check-aide-names.py(Python for per-entry path and token regexes) — Claude — SPEC updated: no - 2026-11-24 — Engine-run gates (M66): approval-link emails, gate reminders and timers,
NotificationComposerand the Home “awaiting gates” count stay SDLC-only in 0.8.0; engine gates show in the engine gate inbox and the livegateUpdatedpush, and have their own decision path — Claude — SPEC updated: no
Known issues
- An SDLC rollback is refused (
ROLLBACK_BLOCKED) while any agent run in the project is in progress, including an engine run’s agent (M66): conservative, SDLC behaviour unchanged; revisit when engine and SDLC runs commonly share a project. - Non-SDLC agent runs (coach, fixtures) record
ARTIFACT_CREATED/GATE_CREATEDand token use (FR-341), but notRUN_STARTED/RUN_COMPLETEDevents: the engine hook interface has no slot for them. Their payloads carry ids and counts only, never content (M67). - Parallel groups with
on_branch_failure: continue: a branch whose job is dead-lettered after its transient retries waits for a manual retry instead of being marked failed (M68). - A follow-up stage whose job is dead-lettered leaves its stage execution open (the reconcile skips follow-up rows); like the parallel
continuecase, it needs a job-ended hook (M69). - A map item whose job is dead-lettered after its transient retries stays open: it doesn’t count toward
max_failed, and the map waits for a manual retry (same job-ended-hook gap as parallelcontinueand follow-ups) (M70). - Map item and fan-out variant artifacts on a run with a subject would collide on
ix_artifacts_project_id_type_version(noitem_index/variant). Not reachable: engine-started runs have no subject, and the SDLC has no map stage (M70c review). - Map job reads filter
jobs.payload->>'stageExecutionId'with no expression index yet; add one in a later migration if map stages get large or job history grows (M70c). - The map item isolation check loads every sibling output of the current map entry on each item start (O(n²) rows at
max_items1000); push the probe into SQL if large maps get slow (M70c review). - Conversation (M70d review minors, left as is): a redelivered escalated turn job after approval raises a fresh escalation (same as plain stages); the stop guard re-runs on already-checked turns at each new turn job.
- A map stage plans its entry twice (
EnterMapAsync): an input arriving in between fails the job with a misleadingDEFINITION_UNAVAILABLE; the run stays active and a manual retry recovers. Use the one-plan pattern from the conversation turn 1 (M70d re-review). - No index on
pipeline_runs(project_id, pipeline_id, status, completed_at)forfrom_runs; add one in a later migration if it gets slow. Conversation stop guards don’t getRunsInputFact. A map item handler on a stage withfrom_runsreloads the lists per item (up to 1,000 identical queries); load once per map entry if that combination is used (M70e). - Tool approval (M71c review minors, left as is): if the last attempt is dead-lettered by lease expiry while the old worker still runs an approved, claimed tool, the hook fails the run and the old worker may later save it
Succeeded(agent_runshas no xmin); the tool still runs once. Runs pinned to definitions from beforeDEF_FOLLOWUP_STAGErefuses destructive follow-ups can raise an undecidable gate; the 24 h timer rejects it. A waiting gate costs one model-free delivery every 2 minutes. The denial names the reviewer by user id, not name. StartPipelineRunRequest.inputs(and scheduleinputs) are generated asRecord<string, never>because the contract has noadditionalProperties; the frontend casts. EmitadditionalProperties: {}from the API in a later contract change (M72b review).- Local Vitest is flaky on this machine (first full-route render times out at 20 s under memory pressure, same on HEAD); CI is the gate.
- Construct hub events (M72c review, left as is): the engine job’s save awaits the hub send (at most once a second per map); throttling and groups are per API process (no backplane, as for every hub event).
- Integration shards:
resthit its 22-min step timeout in M69 and was split (5d048d7,pipelines-projects); watch shard times as tests grow.
Manual checks (Ben)
- FR-327: run
docs/operations/rename-to-tevrin.mdsteps 1–3 on preview before the 0.8.0 build PR merges (otherwise the preview deploy’s drift check fails until they’re done), and on production before publishing 0.8.0; step 4 after 0.8.0 runs there. - FR-327 local: free localhost:8080 from the old
aidenamespace, updatesecrets.envtoConnectionStrings__Tevrin/Database=tevrin;Username=tevrin, thendeploy-local.shand the smoke test (runbook §7). - Delete the scratch branch
build/tevrin-0.8.0-snapshots(used only to produce the FR-328 snapshots, CI run 45361838017) when convenient. - M66: the API image now installs
tzdata(schedules use IANA zones); confirm a schedule in a non-UTC zone fires at the right local time on the Docker Desktop deploy. - (more as milestones land; see SPEC §12 M73)