Build progress (0.7.0)
Spec: SPEC.md (0.7.0; 0.1.0–0.6.1 in docs/) · Research: docs/0.7.0/tevrin-engine-extraction.md · Stack: STACK.md · Branch: build/tevrin-0.7.0 (build PR #50, merged), then build/tevrin-0.7.0-sdlc-engine (§3.10, D-0.7.0-38) · Started: 2026-11-17
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 for every milestone after M54: the characterisation snapshots (FR-260/FR-261) are unchanged.
Environment
- Packs (STACK.md):
fe-nextjs,be-aspnet,data-efcore-postgres,vcs-github,deploy-railway,local-docker-desktop-k8s. All installed. - Local: Docker Desktop Kubernetes is manual checks only (Ben).
- VCS CLI auth: gh yes (BenFielder1). Railway deploys run only through
.github/workflows/deploy.yml.
Requirements
| ID | Summary | Spec § | Layer(s) | Phase | Status | Evidence |
| — | — | — | — | — | — | — |
| FR-260 | SDLC characterisation snapshots (Fake providers) | 3.1, 4.58 | backend | M54 | done | CI 44132705760 |
| FR-261 | Snapshot freeze: diff on change, CI check from M54 | 3.1 | backend + CI | M54 | done | CI 44132705760 |
| FR-262 | Tevrin.Engine.*, Tevrin.Pack.Sdlc, Tevrin.Engine.Tests projects | 3.2 | backend | M55 | done | CI 44132705760 |
| FR-263 | Architecture tests (engine never references Aide/Pack) | 3.2 | backend | M55 | done | CI 44132705760 |
| FR-264 | Job queue moved to the engine | 3.2 | backend | M55 | done | CI 44407552853 (SDLC-specific rules stay in the SDLC side by design: D-0.7.0-21, -25, -31) |
| FR-265 | LLM layer + Fake provider moved | 3.2 | backend | M55 | done | CI 44407552853 (SDLC-specific rules stay in the SDLC side by design: D-0.7.0-21, -25, -31) |
| FR-266 | Generic artifact rules moved | 3.2 | backend | M55 | done | CI 44407552853 (SDLC-specific rules stay in the SDLC side by design: D-0.7.0-21, -25, -31) |
| FR-267 | Gate mechanics, notifications, audit, redaction, prompt template moved | 3.2 | backend | M55 | done | CI 44407552853 (SDLC-specific rules stay in the SDLC side by design: D-0.7.0-21, -25, -31) |
| FR-268 | AgentRun and rules moved to run log | 3.2 | backend | M55 | done | CI 44407552853 (SDLC-specific rules stay in the SDLC side by design: D-0.7.0-21, -25, -31) |
| FR-269 | Agent string keys (SdlcAgents) | 3.3 | backend | M56 | done | CI 44160448308 |
| FR-270 | Artifact string keys (SdlcArtifacts) | 3.3 | backend | M56 | done | CI 44160448308 |
| FR-271 | Gate string keys (SdlcGates, engine escalation) | 3.3 | backend | M56 | done | CI 44160448308 |
| FR-272 | Engine job types + pack-registered types | 3.3 | backend | M56 | done | CI 44160448308 |
| FR-273 | Generic trigger strings, phase_entered alias | 3.3 | backend | M56 | done | CI 44160448308 |
| FR-274 | Same stored values, string columns, contract strings | 3.3 | backend + data + frontend | M56 | done | CI 44160448308 |
| FR-275 | Definition model + YAML loader | 3.4, 4.49 | backend | M57 | done | CI 44277530638 |
| FR-276 | Definition validator (all errors, codes, paths) | 3.4, 4.49 | backend | M57 | done | CI 44277530638 |
| FR-277 | Definition hash, pipeline_definitions, pinning | 3.4, 4.50 | backend + data | M57/M58 | done | CI 44573294302 (audit fixes ca9dc04, a0217a0) |
| FR-278 | IPipelinePack, IPackRegistry, extension points | 3.4 | backend | M57 | done | CI 44277530638 |
| FR-279 | Artifacts in the definition (format, schema, approval, cascade) | 3.4 | backend | M57 | done | CI 44277530638 |
| FR-280 | Stage kinds (agent, code, manual) | 3.4 | backend | M57 | done | CI 44277530638 |
| FR-281 | Transitions (next, on_success, on_reject, loop) | 3.4 | backend | M57 | done | CI 44277530638 |
| FR-282 | Guards (requires, validate, on_invalid) | 3.4 | backend | M57 | done | CI 44277530638 |
| FR-283 | Gates on stages by approval mode | 3.4, 4.53 | backend | M57 | done | CI 44277530638 |
| FR-284 | Triggers modelled; only manual runs | 3.4 | backend | M57 | done | CI 44277530638 |
| FR-285 | Stage statuses, custom statuses, status changes | 3.4, 4.57 | backend | M57 | done | CI 44277530638 |
| FR-286 | Concurrency block | 3.4, 4.59 | backend | M57 | done | CI 44573294302 (audit fixes ca9dc04, a0217a0) |
| FR-290 | sdlc.pipeline.yaml, SDLC guards, readiness check | 3.4, 4.51, 4.52 | backend | M57 | done | CI 44277530638 |
| FR-287 | PipelineStateMachine.Apply | 3.5, 4.51 | backend | M58 | done | CI 44303824125 |
| FR-288 | RequestAdvance parity (gate needed, GATE_PENDING, unmet reasons) | 3.5, 4.52 | backend | M58 | done | CI 44303824125 |
| FR-289 | Definition-driven cascade + SDLC invalidation hook | 3.5, 4.54 | backend | M58 | done | CI 44318219243 |
| FR-291 | Parity mode + combinatorial parity test | 3.5, 4.56 | backend | M58 | done | CI 44318219243 (6,271,314 combinations; integration suite with Throw=true) |
| FR-292 | Switch-over: run is source of truth, project columns copied | 3.5 | backend + data | M58 | done | CI 44364665535 |
| FR-293 | Old state machine removed, transition tests rewritten | 3.5 | backend | M58 | done | CI 44364665535 |
| FR-294 | pipeline_runs + backfill | 3.5, 5 | backend + data | M58 | done | CI 44303824125 |
| FR-295 | AgentStageRunner, context providers, tools | 3.6 | backend | M59 | done | engine runner CI 44490362504; SDLC keeps its runner (D-0.7.0-34) |
| FR-296 | Validate / retry with feedback / escalate | 3.6, 4.55 | backend | M59 | done | engine CI 44490362504; SDLC plan validation unchanged (D-0.7.0-34) |
| FR-297 | Run logging: input, latency, stage executions, totals | 3.6, 5 | backend + data | M59 | done | CI 44407552853 |
| FR-298 | Prompt comparison stats | 3.6, 6 | backend | M59 | done | CI 44524585557 |
| FR-299 | Definition endpoints | 3.7, 6 | backend | M60 | done | CI 44524585557 |
| FR-300 | Run, stages, timeline endpoints | 3.7, 6 | backend | M60 | done | CI 44524585557 |
| FR-301 | Run artifacts, diff, gates, gate decisions | 3.7, 6 | backend | M60 | done | CI 44524585557 |
| FR-302 | Gate inbox endpoint + hub events | 3.7, 6 | backend | M60 | done | CI 44573294302 (audit fixes ca9dc04, a0217a0) |
| FR-303 | Replay endpoint | 3.7, 6 | backend | M60 | done | CI 44524585557 |
| FR-304 | src/engine/ + lint boundary | 3.8 | frontend | M61 | done | CI 44532306906 |
| FR-305 | Definition-driven components | 3.8 | frontend | M61 | done | CI 44532306906 |
| FR-306 | Pipeline tab + replay | 3.8, 7 | frontend | M61 | done | CI 44532306906 |
| FR-307 | Gate inbox page | 3.8, 7 | frontend | M61 | done | CI 44545934349 |
| FR-308 | SDLC stepper reads the definition | 3.8 | frontend | M61 | done | CI 44545934349 |
| FR-309 | Version 0.7.0, changelog, CLAUDE.md, STACK.md, docs guide, history | 3.9 | frontend + docs | M54, M62 | done | bump, CLAUDE.md, STACK.md, guide and ops page (1ea2d98, 9fdb73b); changelog date 2026-11-23, history page, SPEC/PROGRESS to docs/0.7.0 in the release PR (M64) |
| FR-310 | Host run ids and redelivery | 3.10, 4.60 | backend | M62a | done | hooks CI 44890972776 (ba361b3); SDLC implementations with the moves; SDLC implementations with the moves (7fb025b–40d49cb) |
| FR-311 | Run events hooks | 3.10, 4.60 | backend | M62a | done | hooks CI 44890972776 (ba361b3); SDLC implementations with the moves; SDLC implementations with the moves (7fb025b–40d49cb) |
| FR-312 | Request options and run metadata | 3.10, 4.60 | backend | M62a | done | hooks CI 44890972776 (ba361b3); SDLC implementations with the moves; SDLC implementations with the moves (7fb025b–40d49cb) |
| FR-313 | Content transform hook | 3.10, 4.60 | backend | M62a | done | hooks CI 44890972776 (ba361b3); SDLC implementations with the moves; SDLC implementations with the moves (7fb025b–40d49cb) |
| FR-314 | Corrective input; plan validation in validate: | 3.10, 4.55 | backend | M62a, M62c | done | every output check as validate: in v3: d5e9659 (CI 45032877150) |
| FR-315 | Transactions and failure handling | 3.10, 4.60 | backend | M62a | done | hooks CI 44890972776 (ba361b3); SDLC implementations with the moves; SDLC implementations with the moves (7fb025b–40d49cb) |
| FR-316 | Pre-run and post-store host checks | 3.10, 4.60 | backend | M62a | done | hooks CI 44890972776 (ba361b3); SDLC implementations with the moves; SDLC implementations with the moves (7fb025b–40d49cb) |
| FR-317 | SDLC context providers and tools | 3.10 | backend | M62b | done | providers, tools, pack names (M62b, 473c13f, CI 44893342872); agent.tools in the YAML with FR-321; agent.tools in v2 (5b99e27) |
| FR-318 | Document agents on the engine runner (repository_analyst moves with the bound agents in M62d) | 3.10, 4.61 | backend | M62c | done | five agents on the engine: 7fb025b, bd61f3a, 2f1588c, 18331756, f0b0f86 (CI 44934488218) |
| FR-319 | build_fix and code_generator on the engine runner | 3.10 | backend | M62d | done | bound agents (40d49cb); stage handlers in v3: d5e9659 (CI 45032877150) |
| FR-320 | Old runner removed, architecture test, docs | 3.10 | backend + docs | M62e | done | 98d021e (CI 45028066508) |
| FR-321 | SDLC definition version bump and start-up re-pin | 3.10, 5 | backend | M62e | done | v2 and re-pin 5b99e27, 75de158 (CI 45007169435) |
| FR-322 | Retire the CLI, with a rebuild guide | 3.11 | backend + frontend + docs + CI | M63 | done | 209c964 (CI 45039801909) |
Phases
- M54 Version and characterisation (FR-260, FR-261, FR-309 bump): snapshots 8dce91a, re-sorted d4d84f8 (D-0.7.0-22); freeze step in CI
- M55 Engine projects and the lift (FR-262–FR-268): a483584, 2312ec8, CI green CI 44132705760. Types keyed by SDLC enums finish in M56/M58 (D-0.7.0-21)
- M56 String keys (FR-269–FR-274) and the remaining lift: 39b7f24, efb38aa, ade145d, CI 44170479903. FR-264–FR-268 finish in M58 for the types that still need
Phase - M57 Definitions and packs (FR-275–FR-286, FR-290): 13f282d, 15d4ff7, CI 44277530638
- M58 Generic state machine (FR-287–FR-289, FR-291–FR-294): M58a runs, dual write and backfill; M58b engine machine; M58c parity (6,271,314 combinations); M58d switch-over and removal (9213cafb, a725469, 2012cf2, ac894a2, 7f479da, CI 44364665535). Build note: CA1859 only fires in Release builds, so briefs ask for
dotnet build -c Release -warnaserror - M59 Stage execution and run logging (FR-295–FR-298): run logging (cd28064), engine agent runner (34d9fd0), SDLC golden prompt tests with the SDLC keeping its runner (b593268, D-0.7.0-34), CI 44495561155. The FR-298 endpoint comes in M60
- M60 Generic API (FR-299–FR-303, FR-298 endpoint): 8b28f8d, CI 44524585557
- M61 Engine UI (FR-304–FR-308): M61a 6f82a51 (CI 44532306906), M61b d7a8f59 (CI 44545934349)
- M62 SDLC on the engine runner (FR-310–FR-321, D-0.7.0-38), branch
build/tevrin-0.7.0-sdlc-engine; snapshots and golden prompt files unchanged at every commit- M62a Hooks (FR-310–FR-316) with fixture tests and the §4.60 order test: ba361b3, CI 44890972776. Two review rounds; §4.60 amended (commit with the verdict after validation, store veto)
- M62b SDLC context providers and tools (FR-317): 473c13f, CI 44893342872, two review rounds. Live path unchanged;
agent.toolsin the YAML waits for FR-321 - M62c Document agents, one commit each in §4.61 order (FR-318, FR-314). §4.61 reordered: agents with stages first; stageless agents bind via
agents:(D-0.7.0-42)spec_generator+SdlcAgentExtension: 7fb025b, CI 44897521699 (attempt 2). Characterisation unchanged. Attempt 1’srestshard hit the 18-minute step timeout, and the re-run took about 18 minutes against about 14.5 before. Watch the shard time as more agents move. The review found 0 Critical/Major; its 7 Minor items are queued for the next moveidea_refinementand the spec_generator review fixes:- per-attempt log scope and span;
- fallback only when there is no pipeline run;
- pinned definitions resolved as for lifecycle moves (registered, or stored and runnable), else
DEFINITION_UNAVAILABLE; - store override;
- 2 project reads per attempt.
bd61f3a, CI 44929383412, characterisation unchanged. Three review rounds, 0 Critical/Major open
stack_analyst(review clean); unit harness uses an offlineIEngineDbContextcode_review: the reply returns 0.6.1’sAgentRunOutcome, and the optimisation plan draft is still stored byRecordAsyncafter scoring (StoresDraft = false, with a parse-only corrective check). Review: 0 Critical/Majorplan_generator: f0b0f86, CI 44934488218. All five staged agents are green, characterisation unchanged,restshard 15 min. Plan validation through the host hooks until FR-321. The draft Markdown is byte-identical. Review: 0 Critical/Major- CI: the integration test step limit was raised from 18 to 22 minutes (job limit 25). The
restshard’s trx durations rose about 30% evenly across unrelated tests (Bitbucket, release flows; 765 s → 983 s), which points to runner speed, not the agent moves. Rebalancing the shards is a later follow-up.
- M62d
repository_analyst(done, bound on refinement; review clean),build_fix(done, bound on execution; run keysbuild-fix-<check>-n, only the first reply checked as in 0.6.1; review clean; cb9a80f, CI 45014384362), thencode_generator(done, bound on execution: the step loop stays in the SDLC job handler, with no IStageHandler, so the execution queueing and the run timeline are unchanged; FR-121 viaTransformPromptAsync; review clean; 40d49cb, CI 45019672155). All bound withagents:(D-0.7.0-42) (FR-319)- Engine
agents:bindings:- secondary agent bindings on a stage, selected by
AgentStageRequest.AgentKey; - validator rules, including duplicate primary keys and job types (the default
agent.runmay be shared); - the resolver checks binding tools;
- redelivery calls the store override again;
- SDLC and fixture hashes unchanged and pinned.
Review: 1 Major fixed
- secondary agent bindings on a stage, selected by
- Engine tool session and prompt transform: 159c983, CI 44937314434
- SDLC definition v2 (hash
d2f1c98b…):- repo tools on every agent;
- planning
validate: sdlc.plan-valid; agents:bindings;- FR-321 start-up re-pin from
90f1f065….
Review: 0 Critical/Major. Rollback and deploy-overlap notes are in the ops page and D-0.7.0-41. 5b99e27; the re-pin tests’ seeding was fixed in 75de158; green with
repository_analyst(67cebeb) on CI 45007169435
- Engine
- M62e Old runner removed (FR-320); the re-pin was done in M62d (FR-321):
AgentRunnerandArtifactAgentJobare deleted, and the helpers still in use moved unchanged toSdlcAgentRuns.- No legacy fallback: a project with no pipeline run gets one created on demand (the interceptor’s lazy backfill steps). A 0.6.1 run left unlinked is linked, so it resumes. Otherwise the job fails permanently (
INVALID_STATE/DEFINITION_UNAVAILABLE). - Retargeted tests keep every assertion; none was deleted.
AgentCallBoundaryTestsscans the IL; onlySdlcAgentExtensionmay call providers.- Docs updated.
Review: 0 Critical/Major. 98d021e, CI 45028066508
- M62f Stage handlers and validate: guards (FR-319, FR-314, D-0.7.0-43/-44), definition v3, re-pin of v1+v2; freeze check extended to the golden prompt files (audit gap).
- Engine
StageHandlerRunner, plus ahandlers:list on stages. Execution declareshandlers: [sdlc.execution, sdlc.build-check]and staysmanual. The moved loop code is unchanged. - Six reply-check guards via
SdlcReplyCheckGuard; bindings get their ownvalidate/on_invalid. - v3 hash
a3079621…; FR-321 log and lifecycle-move tests added.
Review: 1 Major fixed (resolver checks binding guards). d5e9659, CI 45032877150
- Engine
- Acceptance audit (2026-11-22, on 98d021e): 8 Done, 4 Partial, 0 Missing. Golden files, snapshots and api.json are byte-identical to 5e44622; no assertion weakened. Ben chose to build FR-319 and FR-314 as written (M62f). Still to do: assert the FR-321 log entry and a review cycle after the re-pin
- M63 Retire the CLI (FR-322, D-0.7.0-45), branch
build/tevrin-0.7.0-remove-cli; snapshot = docs/reference/retired-cli.md + commit e8c3990. Open questions resolved: Q1 keep licence (D-0.7.0-46), Q2 keep 1 MB (D-0.7.0-47), Q4 stay on JsonSchema.Net 8.0.5 (D-0.7.0-48). 209c964, CI 45039801909; review 0 Critical, 1 Major fixed (the earlier CLI requirements marked retired in §3.0) - M64 Release 0.7.0 (FR-309), after Ben confirms on preview: the release PR (
release/0.7.0; preview deploy fixed first in PR #62, because the preview deploys after #59 and #60 had failed) sets the changelog date (2026-11-23), moves SPEC and PROGRESS todocs/0.7.0/, and adds the CLAUDE.md row,docs/history/0.7.0.mdand the guide updates
Acceptance audit (2026-11-19)
41 Done, 9 Partial, 0 Missing on 1d2ed57. Three partials are agreed deferrals: FR-295/FR-296 SDLC side (D-0.7.0-34) and FR-309 release-time docs (M64). The FR-295/FR-296 SDLC side is now §3.10 (D-0.7.0-38). The rest were closed in ca9dc04 and a0217a0:
- pinning for SDLC moves (FR-277);
- concurrency taken from the definition (FR-286, D-0.7.0-37);
- the hub-events test (FR-302);
- the §8 observability and performance items;
- a SPEC amendment for FR-265–FR-267.
CI is green on head a0217a0: CI 44573294302. Build PR #50 was merged with every check green. M62 (§3.10, D-0.7.0-38) is done on build/tevrin-0.7.0-sdlc-engine: second build PR #59, CI green on d5e9659. #59 merged. Next: M63 (retire the CLI) as a third build PR, then the preview test, then M64 release prep after Ben confirms.
Decisions
See SPEC §10 (D-0.7.0-1 … D-0.7.0-19). Build-time decisions are added below.
-
M54 build note (orchestrator): the snapshots were produced by CI run 44108300811 on 645bc4f (every other job green; the characterisation shard failed only because no snapshots were committed yet) and committed in 8dce91a. That commit also swept in 21 renames M55 had staged with
git mv, so its CI run (44111802972) fails to build. No amend or force-push (CLAUDE.md): the M55 commit repairs it, and its CI run is the first to compare against the snapshots. From now on the orchestrator commits with explicit pathspecs while an agent is working. - D-0.7.0-20 (Build, M55, Claude, assumed): seams for moving the job worker, enqueuer, sweeper and channel senders into
Tevrin.Engine.Runtime(M55 part 2):- DbContext: the engine defines
IEngineDbContext, which exposes the engine’sDbSets (jobs, events, notifications, deliveries, approval links) andDatabase.AideDbContextimplements it, and DI registers it as the same scoped instance. - Job failure classification:
IJobExceptionClassifier, which returns a deferral or retry hint for an exception. The Aide side registers one for the GitHub, GitLab and Bitbucket rate-limit exceptions. - Telemetry and log scopes: the engine takes an
ActivitySourceand a scope factory through DI. The Aide registrations pass the existing source name and scope keys, so traces, tags and log messages stay the same. The one visible difference is the worker’s logCategory, which becomesTevrin.Engine.Runtime.Jobs.JobWorker(no filter or test uses it). - Secrets:
ISecretProtectormoves to the engine as an interface. Its Data Protection implementation stays inAide.Infrastructure/Security/SecretProtector.cs. - Rule: nothing that holds SDLC values moves (
NotificationType,EventTypes, notification messages); those wait for M56.
- DbContext: the engine defines
-
D-0.7.0-21 (Build, M55, Claude, assumed): the LLM layer,
PromptTemplate,AgentRunRules,Artifact/ArtifactRules/RestoreRules,ApprovalGate/GateRules/GateFollowUp/GateResolutionand theAgentRunentity are keyed by SDLC enums. They move in M56 (string keys) or M58 (Phase), not M55. FR-264–FR-268 are completed across M55–M56. -
D-0.7.0-22 (Build, M55, Claude, assumed): the characterisation recorder now treats arrays made only of id labels as sets, sorted by kind and then number. CI run 44125867549 on the namespace-only commit a483584 returned
resetStepIdsin a different order (an unordered query), with no behaviour change. This is a one-time normalisation change: those arrays in the committed snapshots are re-sorted, nothing else in them changes, and the freeze base inscripts/ci/check-snapshots-frozen.shmoves to that commit. This is the only allowed snapshot edit in 0.7.0. - D-0.7.0-23 (Build, M56, Claude, assumed):
Tevrin.Pack.Sdlcis the bottom of the SDLC side. It references only the engine, andAide.*references it. The SDLC key constants live there:SdlcAgents,SdlcArtifacts,SdlcGates,SdlcJobTypes. The engine ownsEngineGates.EscalationandEngineJobTypes. An architecture test checks that the pack references noAide.*. Where the SDLC guards and handlers in M57 needAide.Domainrules, the host composes them. -
D-0.7.0-24 (Build, M56, Claude, assumed; amends D-0.7.0-7): the OpenAPI contract stays byte-identical. DTO fields become strings, but a schema transformer still emits the SDLC enum values, so the generated client and the frontend’s types don’t change. Config keyed by agent keeps binding as it does today.
-
M56 build notes (orchestrator): M56 was split into M56a (agent, artifact and gate keys), M56b (job types and triggers) and M56c (the remaining lift) after an agent stalled. CI run 44152885599 on 39b7f24 failed on two things. Test seeds that printed enum names now use
KeyNames.ToPascalCase; an audit found that no production text had changed. The snapshot normaliser missed an all-digit SHA prefix, and now labels it. Review also caught theREVIEW_STARTED/RELEASE_STARTEDevent payloads switching tostage_entered; they keepphase_entered. Logs keep the 0.6.1 PascalCase values (LoggedKey). Unknown stored key values now load instead of throwing, which only matters for corrupt data. - D-0.7.0-25 (Build, M56c, Claude, assumed): more seams and a dependency for the engine lift.
- New seams:
ILlmCatalog, the engine’s view of the SDLC provider catalogue, registered as the same singleton.IApprovalLinkPolicy, which says which gates get one-click links;SdlcApprovalLinkPolicyimplements it. NotificationOptionssplit: the engine’sNotificationChannelOptionsbinds the same section, so channel settings are configured as before. The SDLC sweep settings stay on the Aide side.- Dependency:
Microsoft.Extensions.Httpis added toTevrin.Engine.Runtime, giving itIHttpClientFactorywithout ASP.NET Core. - Log categories: they now follow the moved types (
ApprovalLinkService,EmailChannelSender,AnthropicModelInfo), as with the worker in D-0.7.0-20. - Architecture test: a new test fails if an engine source file contains an SDLC key literal.
- New seams:
-
M58 scope (from M56c): blocked by
Phase: theAgentRunentity,RestoreRules,GateRules(RequiredGate,GuardedEntry, approve/reject/cancel) andSdlcArtifactRules(producing phase,CanCreateDraft). Staying on the SDLC side because they hold SDLC values or project rules:AgentModelRules,PromptLibrary, the fake responders,LlmOptionsValidator,LlmProviderCatalog,LlmResolver,NotificationDispatcher,NotificationComposer,NotificationJobHandler,GateTimerServiceandNotificationSweeper. The sweeper’s single loop mixes delivery retries with the SDLC sweeps; splitting it would change timing. - D-0.7.0-26 (Build, M57a, Claude, assumed): definition packages and model details.
- Packages: YamlDotNet 18.1.0 (MIT) and JsonSchema.Net 8.0.5 go in
Tevrin.Engine.Runtimeonly. 8.0.5 is the last MIT release; 9.x moved to the commercial OSMF EULA. JsonSchema.Net’s compile assets are private (PrivateAssets) because its rootJsonnamespace clashed with Aide’s helpers. Upgrading past 8.x needs a decision (open question Q4). - Model additions to §4.49:
rollback_status;loop.requires, which carriessdlc.review-cycle-ready; andon_reject: { to, max_iterations }.agent.promptis optional and defaults to the pack’s prompt for the agent key. - Artifact defaults (amends §4.49, which marks only
schemaas optional):formatdefaults tomarkdown,approvaltorequiredandcascadetodownstream. Defaults are written into the canonical JSON, so writing one out explicitly doesn’t change the hash. - Deferred to M59: checking prompt names against the prompts the pack registers (a readiness check).
- Validator: values that fit no specific code are
DEF_PARSE. M57a review fixes: a backwardon_successisDEF_UNCAPPED_LOOP; schema$refs must resolve;escalationcan’t be an entry gate; canonical JSON escapes only the quote, backslash and C0 controls (so the hash doesn’t depend on the .NET version); M58 must read stored canonical JSON back with a JSON reader, not the YAML loader, because YAML treats U+2028 as a line break. Previously:",\and C0 controls. The loader reads YAML through the event parser only, with no tags, alias expansion capped at 1 MB, a nesting depth of 64 and one document.
- Packages: YamlDotNet 18.1.0 (MIT) and JsonSchema.Net 8.0.5 go in
- D-0.7.0-27 (Build, M57b, Claude, assumed): how the SDLC definition and guards are put together.
- Facts: guards read an
SdlcLifecycleFacts(LifecycleState, LifecycleSnapshot)fact, which M58 loads withLifecycleSnapshotLoader. - When
requires:runs: only onadvanceandloop. Never at run start, rollback, fallback or a new version, becausesdlc.start-onlyalways fails. - Loops (M57b review):
- A
loopchecks onlyloop.requires(sdlc.review-cycle-ready). It never checks the target stage’srequires:or its entry gate, so a strict-mode review cycle needs noplan_approval, as in 0.6.1. - The caller supplies the loop’s outcome. For the SDLC, the
reviewloop also fires on escalationcontinue(GateFollowUp.StartReviewCycle) while the decision isescalation_required, soloop.onisn’t matched against the review decision alone. - The loop counter for the
review_cyclescap isprojects.review_cycle, which rollback restores and a new version resets to 0. The run’s iteration count must follow the same rules, not count up forever.
- A
- Inputs: stage
inputsfollow what the 0.6.1 handlers actually read. Refinement listsstack_profile, so the cascade reachesproject_request. - Jobs on entering a stage: the model has no “job on entry” setting, and 0.6.1 enqueues
releaseon entering the manual release stage while enqueuing nothing for refinement or analysis. M58 adds an optional stage fieldenqueue_on_enter: <job_type>; the SDLC definition sets it to matchPhaseJobs, and the engine never assumes “agent stage means enqueue”. - Spec fix: in §4.54, approving an implementation plan falls back to
execution, notreview, as in 0.6.1 (corrected). The SDLCIInvalidationHooksupplies the step reset. - Missing inputs: M59’s context builder must allow one (
stack_profiledoesn’t exist for versions that don’t infer their stack). - Testing:
SdlcRunSettingsProviderneeds an integration test.
- Facts: guards read an
- D-0.7.0-28 (Build, M58a, Claude, assumed): pipeline runs, the backfill and the dual write (FR-277, FR-292, FR-294).
- No SDLC definition (M58a review, accepted): if the registry has no valid SDLC definition, every save that touches a project or adds a transition, gate, agent run or artifact throws. That includes saves from the job worker. Readiness (
/api/health/ready) fails in the same case, so Railway and Kubernetes keep traffic off the pod. This fails closed on purpose. - Contract step: making the
pipeline_run_idcolumns NOT NULL in a later version must first re-run the link pass, because rows written by 0.6.1 replicas during an overlapping deploy are linked only on the next start. - Stored status:
pipeline_runs.statusholds onlyactive,completed,failedorcancelled;waiting_on_gateandrunningare derived when a run is read (§4.57). - Links:
pipeline_run_idonstate_transitions,approval_gates,agent_runsandartifacts, andstate_transitions.kind, stay nullable in 0.7.0 (tightening is a later contract step).kindmapsAdvance→advance,ReviewCycle→loop,Rollback→rollback,InvalidationFallback→fallback,ReleaseNoop→noop, the three release status moves→status_change, andNewVersionand project creation→start(the first transition of a run). Rows written before 0.7.0 keepkindnull. - Backfill in the host, not the migration: the hash can’t be computed in SQL.
PipelineRunBackfillServiceruns at start-up before the job worker (skipped while migrations are pending). It stores the SDLC definition and creates one run per release version that lacks one: the current version from the project’s phase, status, checkpoint, approval mode and review cycle, and earlier versionscompletedatrelease/released(at their last transition checkpoint). It then links rows by release version.importedbaselines get no run. Inserts useON CONFLICT DO NOTHINGand links fill only nulls, so it is idempotent and safe on several replicas. The lazy path creates missing runs but doesn’t link old rows, because a rawUPDATEwould bumpxminon gates and artifacts the unit of work may hold. - Dual write as a
SaveChangesinterceptor (PipelineRunSyncInterceptor, after release-version stamping): every added or changed project copies its state onto its current version’s run, in the same transaction as the project update, and new linked rows get their run. This covers every writer (lifecycle, rollback, release, review cycle, approval mode, seed) with no per-writer calls. The run is always loaded fresh for the save, and links read run ids without tracking, so the dual write never adds a concurrency failure of its own. Storing the definition, closing superseded runs and the lazy backfill run as their own idempotent statements before EF’s transaction. A new version’s run is pinned to the registry hash computed at runtime. SynchronousSaveChangestouching projects or linked rows throwsNotSupportedException(no caller uses one). - Catching up after a 0.6.1 build ran against the data (deploy rollback, then redeploy): the start-up pass closes open runs of superseded versions with their released final state, creates missing runs, re-syncs current runs from their project, and links every unlinked row of every version. The lazy path also closes superseded runs before creating a new one.
- Event order (CI run 44294566932): per-row events written in one save share a timestamp and took their order from unordered queries, so it depended on physical row order, which the new column writes changed. The order is now explicit (
EventOrder) and reproduces the snapshots:ARTIFACT_INVALIDATED(cascade and rollback) newest artifact first, then highest version;GATE_CANCELLED(artifact approval, rollback, review start) oldest gate first;ARTIFACT_SUPERSEDEDlowest version first.
- No SDLC definition (M58a review, accepted): if the registry has no valid SDLC definition, every save that touches a project or adds a transition, gate, agent run or artifact throws. That includes saves from the job worker. Readiness (
- D-0.7.0-29 (Build, M58b, Claude, assumed): the engine state machine’s messages and the definition fields it needs.
- Messages:
TransitionMessagesholds 0.6.1’s exact texts (they still say “phase”), with stage ids and titles filled in. - New optional definition fields:
loop.title(default “Loop”), andstatus_changes.*.reasonanderror_message. Their defaults are written into the canonical JSON. - SDLC definition: sets
title: Review cycle, the release status-change texts, andenqueue_on_enteron specification, planning, review and release (the same jobs asPhaseJobs). These change the SDLC hash before any run is pinned to it. - Engine error codes:
PHASE_PRECONDITION_FAILED,GATE_PENDING,WRONG_PHASEandINVALID_TARGET_VERSIONare added, with the same values as the host’s codes. - Cascade hook:
IInvalidationHookgainsFallbackStages; the real SDLC step-reset hook comes in M58d. - Not machine moves: entering
analysisand starting a new version go throughstart, the start selector and the SDLC service. - For the parity test: keep the
reviewiteration count belowreview_cycles, because the engine’s loop cap is a backstop 0.6.1 doesn’t have. Passreview_requiredas the review-cycle outcome.
- Messages:
- D-0.7.0-30 (Build, M58c, Claude, assumed): the review loop’s cap never refuses what 0.6.1 allows (FR-291, FR-292).
- Engine: a loop’s
max_iterationscap refuses only a loop that would otherwise be allowed. A loop already refused (outcome,loop.requires) gets no extra “limit reached” reason, so a refused SDLC review cycle reports exactly 0.6.1’s reasons (e.g. approving the cycle-3 optimisation plan before the max-cycles escalation is decided). - SDLC:
review_cycles(SdlcRunSettingsProvider, and the parity mapper throughSdlcReviewLoop) ismax(maxReviewCycles + extraReviewCycles, review_cycle + 1), so the backstop never refuses a cycle 0.6.1 allows (e.g. after an Owner lowersmaxReviewCyclesbelow the current cycle). The review decision rules (escalation at the max) stay the real limit.
- Engine: a loop’s
- D-0.7.0-31 (Build, M58d, Claude, assumed): the switch-over.
- Who decides: lifecycle decisions go only through the engine (
SdlcLifecycle, using the pureSdlcMachine), and fail closed with no valid SDLC definition.LifecycleStateMachine,PhaseOrder,TransitionKind, the phase-keyedGateRuleslookups,InvalidationCascade.Effect,PhaseJobsand the parity code are removed. - Reading state: decisions read stage, status and checkpoint from the current
pipeline_runsrow. Writers still write the project columns, and the interceptor copies them onto the run in the same save. When the run and the project disagree, the project copy wins and the disagreement is logged at Information level. That happens when a concurrent request has committed, or a write bypassed EF (an overlapping 0.6.1 replica, or raw SQL in test seeds). There is no eager re-sync, which the M58d review found could write stale state; the interceptor re-syncs the run on the next save that changes the project. - What stays: the
Phaseenum stays as the SDLC’s typed stage id (DTOs and contract), and a test pins its order to the definition. Step resets stay inInvalidationCascade.Plan, because the hook context doesn’t carry the steps. - Status changes: a status change naming another stage is refused with the definition’s
wrong_stage_message, which reproduces 0.6.1’sWRONG_PHASEtext. - Tests: the transition tests were rewritten as
SdlcLifecycleTransitionTests: 40 methods and 648 cases, with the same expected results.
- Who decides: lifecycle decisions go only through the engine (
- D-0.7.0-32 (Build, M59a, Claude, assumed; amends SPEC §5): run logging data (FR-268, FR-297, FR-298).
- No
stage_idcolumn onagent_runs:AgentRunmoved to the engine withstring Stagemapped to the existingphasecolumn, which already holds the stage id (same values). DTOs keep theirPhasetype and wire values. - Migration
RunLogging(expand only):agent_runs+inputtext,input_truncatedboolean NOT NULL DEFAULT false,latency_msbigint; newstage_executions(FK topipeline_runsON DELETE CASCADE, index (pipeline_run_id,entered_at)). - Input:
[role]blocks for the system prompt and user message, redacted withSecretRedaction(the bound key too), capped at 1 MB of UTF-8 on a character boundary. Text past 2 M characters is dropped before redaction (flagged truncated). A redaction timeout leaves the input null and never fails the run.latency_msis the time to the first streamed output (text, refusal or tool call) of the last attempt that streamed, viaLlmFirstTokenProbe; null for the Fake provider and whole-JSON answers. - Stage executions: written by
PipelineRunSyncInterceptorthrough the engineStageExecutionWriter, in the save of each new transition: a transition that changes stage, or astart/loop/rollback/fallback(re-entering the same stage), closes the open row with its kind and opens a new one (iteration = entries into that stage in the run + 1, checkpoint = the transition’s). The iteration counts entries, so it differs fromprojects.review_cycleafter a rollback (rollback restores the review cycle; a re-entered review gets the next iteration); FR-300’s iteration count shows entries. A run that ends closes its row with its final status (completed). Superseded runs closed by SQL have their rows closed byCloseEndedAsync(lazy path and start-up backfill). - No history backfill: runs started before M59 have no rows for earlier stages, and the stage they are in when this deploys gets no row (its entry time is unknown); their next transition opens the first row.
- Queries:
RunLogQueries(engine runtime, scoped):RunTotalsAsync,PromptStatsAsync(pipelineId, projectIds)(fail closed: the project set is required, an empty set returns nothing) andPromptStatsForAllProjectsAsync(administrators only), aggregated in SQL; averages fromRunLogStats(cost rounded to 6 places, latency averaged over runs that recorded one). Failure rate = failed / finished, where finished = succeeded + failed (queued, running and cancelled runs are left out; 0 when none finished). The endpoint is M60. - Reads skip the input: list, detail, refinement, stack-analysis and job-ended reads project the columns they need (
AgentRunProjections.WithoutInput); the runner and the job-ended hook attach the projected row, so only changed columns are written and the stored input stays.
- No
- D-0.7.0-33 (Build, M59b1, Claude, assumed; adds a §4.49 row): the engine agent stage runner (FR-295, FR-296).
- Prompts:
IPromptSourcefinds a stage’s prompt (agent.prompt, else the agent key) among the prompts its pack registered (PackPromptSource, replaceable by the host). New validator codeDEF_UNKNOWN_PROMPT(§4.49): the prompt must be registered and parse,{{FEEDBACK}}must be optional, and every required placeholder must be one of the stage’sinputsor a context name the pack registers (IPackRegistry.AddContextName). It is checked only for a pack that registers at least one prompt: the SDLC pack registers none (its prompts stay in Aide’sPromptLibraryuntil M59b2), so the SDLC definition stays ready. - Rendering: each input artifact fills
{{KEY}}(upper case,-and.→_), each context section{{NAME}}, and the feedback{{FEEDBACK}}. A missing input is absent (D-0.7.0-27): an optional placeholder renders empty, a required one fails the job withMISSING_INPUTbefore any agent run is recorded. Feedback for a template without{{FEEDBACK}}is appended to the user message under a fixed heading. A JSON answer in one fenced block is unwrapped before validation. - Scope:
AgentStageRunnerworks throughIAgentStageStore(EF implementation onIEngineDbContext, which gainsArtifactsandApprovalGates;AideDbContextalready has both). Everything is scoped to the run’s subject (AgentStageScope: the release versionsubject_id, or the run itself without one): inputs are the latest locked version in the subject, and a corrupted one (hash mismatch, FR-20) is absent rather than replaced by an older version. Version numbers stay project-wide (FR-58); only the subject’s open drafts are superseded. Artifacts and gates takerelease_version_idfromsubject_id; a pipeline without a subject needs that column relaxed before it can store artifacts (follow-up). - Agent runs: each attempt is its own agent run with
output({text, stopReason, warnings?, continuations}), tokens, cost, duration, tool calls andlatency_ms(LlmFirstTokenProbe). A provider error is stored as<code>: <sanitized message>(SecretRedaction.SanitizeProviderError), the runfailed, and the job fails transiently or not as the provider classified it (a 401 is never retried). Any other exception is stored by type only (transient for network, timeout and IO errors); cancellation stores the runcancelled. Unlike the SDLC runner, a transient failure doesn’t leave the runrunningfor the job’s retry: the retry records a new run. The trigger (validation_failedand others) isn’t stored on the agent run. - Hooks:
IAgentStageHooks(default no-op) lets the host check the FR-26 budget before the call (refusal:BUDGET_EXCEEDED, no agent run), count tokens used (also for paid tool turns of a failed call), and add audit events for created and superseded artifacts and a raised gate (with the findings). M59b2 plugs the SDLC’s existing behaviour in. - Validate/retry (
AgentStageCoordinator): schema errors arepointer: message(/for the root, including output that isn’t JSON), after the guards’ reasons, capped at 8,000 characters with an ellipsis. The next attempt’s feedback is the request’s own feedback (e.g. a rejection comment) with the findings appended. A rejected attempt’s agent run stayssucceededwitherror=validation_rejected: <findings>, and the prompt comparison (FR-298) counts it as a failure. Withthen: failthe last run becomesfailedandAgentStageResult.ThrowIfFailedfails the job permanently withVALIDATION; withthen: escalatethe run’s own pendingescalationgate is reused, else one is raised on the run. A stage withvalidate:but noon_invalidfails on the first invalid output. - Tools: a stage’s
agent.toolsare resolved by name from DI and run inLlmToolLoop; the model sees each tool’sSpec.Name. Calls are recorded intool_callsas{tool, arguments, isError}.
- Prompts:
-
Watch (flaky test):
DeliveryTimeoutTests.FR49_An_SMTP_server_that_never_answers_times_out_as_a_transient_failurefailed twice in local unit runs on this memory-starved machine and passes on its own. It is green on CI so far; if it fails there, give it aFakeTimeProvideror wider margins (the M58c review also flagged wall-clock tests inLlmStreamingTests,LlmKeyCheckTestsandCheckFailureLogTests). - D-0.7.0-34 (Ben, 2026-11-19, agreed): the SDLC agents keep their own runner in 0.7.0 (
AgentRunner,ArtifactAgentJob). M59b2 moved no agent, because each move would change the characterisation snapshots. Golden prompt tests (backend/tests/Aide.UnitTests/Agents/GoldenPromptTests.cs,Golden/*.txt) pin all eight agents’ templates and rendered prompts. Superseded by D-0.7.0-38 (2026-11-21): these hooks are now FR-310–FR-316. Before the SDLC can move onto the engine runner, the engine needs:- Run ids: supplied by the host, with redelivery that returns the stored reply.
- Run events: lifecycle hooks for
RUN_STARTED,RUN_COMPLETED,RUN_FAILEDandBUDGET_EXCEEDED. - Request options:
MaxTokens(FR-160) andContextTokens(FR-162). - Run metadata: catalogue version, packs and agent key, plus the full input-artifact list.
- Content transform hook: the SDLC renders the plan into Markdown with an
aide-planblock and adds deploy-file steps. - Corrective-input hook: previous output in
PREVIOUS_*, with SDLC feedback wording and host error codes (INVALID_PLAN,MISSING_SECTIONS). - Transactions and failures: a separate run and token transaction; a transient failure keeps the run running.
- Host checks: credential invalidation (FR-78), the provider-disabled check (FR-157), the source-items budget (FR-172), and the corruption alert and regeneration (FR-20).
- M62 open engine gaps (from the M62a/M62b reviews, to close in M62c/M62d before the agents that need them move):
- Prompt transform after render: FR-121
StackPrompt.Compose(specialist steps,code_generator). AgentToolExecutorparity withRepoToolSession:LimitReachedis always false, soTOOL_LIMITdoesn’t force the final answer;FallbackContextAsyncreturns null (no repo listing);- malformed-JSON arguments never reach the session (different message, no budget, no log);
- a tool exception becomes an error result instead of
PROVIDER_ERROR; - the “Unknown tool” text differs;
- the
tool_callsformat differs, and there is noSecretScanner.Redactor length cap on the arguments.
- Tools without a snapshot: 0.6.1 offered none; the engine path offers them and returns errors.
- Snapshot open: M62c/d must open it explicitly through
SdlcRepoToolScope.OpenAsyncfrom the extension’sCallOptionsAsync, then callRelease()after the call. A lazy open that throws on the first tool call is swallowed as a tool error, where 0.6.1 failed the run (SdlcRepoToolScope.cs:83-90). - Not wired yet: the
snapshot_unavailablewarning (viaCallOptionsAsync().Warnings) and the run’stool_callson failure paths. - Host prompt values: placeholders the engine path can’t fill come from host
PromptValues(SdlcContextPromptTests.HostValues).USER_FEEDBACKgoes throughAppendFeedback = falseplusAgentRunMetadata.UserFeedback. - Recorded stage: SDLC agent runs record
project.CurrentPhasethroughAgentRunMetadata.Stage. - Bound agents (D-0.7.0-42), SDLC side:
SdlcAgentCall.ToStageRequest, also used byNextAttemptAsync, must setAgentKey, or a corrective attempt runs the primary.SdlcStageLocatormust find bindings as well ass.Agent?.Key.- The extension’s stage-keyed hooks check
attempt.IsSecondaryAgentandattempt.Agent.Key. - A bound agent’s job type is unique and registered.
- The store override is idempotent, because redelivery calls it again.
- Plan validation in YAML (FR-321, M62e): the
planningstage getsvalidate: [{ guard: sdlc.plan-valid }]andon_invalid: { retry_with_feedback: true, max_attempts: 2, then: fail }.- The guard runs
ParseAgentOutput(reply, project.MaxFilesPerStep, agents, deployFiles)thenRenderCheckedon the stage output content (trimmed; parsing doesn’t depend on the trim), and returnserror.Messageas its one reason. It needs max files, and the agents and deploy-file check from the version’s stack (heavier than a fact lookup). - The host’s
ValidateOutputAsyncskips its planning check only whenattempt.Stage.Validatedeclaressdlc.plan-valid. Otherwise each reason appears twice, and runs pinned to the earlier hash would lose the check. - The corrective-input hook (
PREVIOUS_PLAN),RejectedErrorAsync(null on a retry,INVALID_PLAN: …on the final failure),AttemptsExhaustedAsync(INVALID_PLAN) and the content transform stay.
- The guard runs
- YAML (FR-321): add
agent.tools: [sdlc.list-files, sdlc.read-file, sdlc.search-code]and stages forrepository_analyst,code_generatorandbuild_fix.
- Prompt transform after render: FR-121
- D-0.7.0-35 (Build, M60, Claude, assumed): the generic API (FR-298–FR-303).
- Where: endpoints, DTOs and readers live in
Tevrin.Engine.Api(no SDLC types); the host plugs in project permissions, the gate service, the transitions table, job filtering and ProblemDetails throughIRunAccessPolicy,IGateDecisionService,IPipelineTransitionSource,IRunActivityPolicyandIEngineProblems(Aide.Api/Features/PipelineRuns). - Stage states: the current stage is
activewhile the run isn’t final, and every later stage ispending, also after a rollback or a loop (e.g.reviewafter looping back toexecution); its earlier entries still count in iterations and timings and stay in the timeline. Earlier stages arecompletedwhen entered, elseskipped. Stages with nostage_executionsrows (runs before M59) take their entries from the run’s transitions. - Running: a queued or running job of the run’s project makes a non-final run
running, except job types the host ignores (SDLC:notification, as the rollback’s active-job check). - Availability (
DEFINITION_UNAVAILABLE): a pinned hash is available when it is registered, or when its stored definition (checked against its hash) names only guards, handlers and tools this build registers. - Timeline: one flat item type with a
kind; ties at the same time are broken by a fixed kind rank, then the row id in uuid order; the cursor is (time, kind, id). The replay caps each agent run’s input and output at 200,000 characters (inputTruncated,outputTruncated). Gate decisions go through the same checks in the project route’s order, then the definition check. - Indexes: migration
PipelineTimelineIndexesadds (pipeline_run_id,created_at) onagent_runs,approval_gates,artifactsandstate_transitions(expand only; the single-column foreign-key indexes stay).
- Where: endpoints, DTOs and readers live in
- D-0.7.0-36 (Build, M61b, Claude, assumed): Gate inbox details (FR-307).
- Reject comment: optional, as today (0.1.0 FR-13). This corrects FR-307’s wording.
- Dialog: the engine
GateDecisiondialog reusesgate-dialogs’ copy, but not its code, because of the engine import boundary. - Escalation gates: a gate whose type isn’t declared on any stage of its pipeline is treated as an escalation and shows “Open project”. While the definition is loading or unavailable, every row shows that link.
- Live updates: the page joins the live groups of at most 10 listed projects.
- Lifecycle list: the sidebar’s Lifecycle list still comes from the hard-coded phases. FR-308 covers the stepper and the Previous/Next stage buttons, which read the definition and fall back to the hard-coded list while it loads or on error.
- D-0.7.0-37 (Build, audit fixes, Claude, assumed): pinning for SDLC moves, concurrency from the definition, observability and performance checks (FR-277, FR-286, FR-302, §8).
- Pinning: every SDLC move (advance, rollback, gate approve and reject, review cycle, cascade fallback on artifact approval, release status changes) decides with the definition the project’s current run is pinned to, resolved registry first, then the stored canonical JSON (
SdlcLifecycle.PinnedAsync). A pinned definition this build can’t run refuses the move with 409DEFINITION_UNAVAILABLEand logs the missing names (guard:,handler:,tool:); reads don’t resolve it. New runs (project creation, new version) pin to the current hash. The run sync still maps a run’s stored status with the registered definition, falling back to the current one for a stored-only hash (the status map is the same in every SDLC hash so far). - Concurrency: one-per-project exclusivity comes from the registered definitions’
concurrency.exclusivewithscope: project(JobTypeRegistry.ExclusiveOf); the SDLC’sexecutionno longer sets the code flag, which stays as the fallback for job types no definition mentions.scope: runis refused by the validator withDEF_PARSE(“run-scoped concurrency is not supported in 0.7.0”), because jobs carry no run id. The engine fixture now declaresscope: project. - Observability: the advance log appends
PipelineRunId,TransitionKindandDefinitionHashto 0.6.1’s text. The engine has its ownTevrin.Engineactivity source (added to the host’s tracer, no new exporter): one span per stage execution, recorded when it closes with its real entered and exited times (run, stage, iteration, outcome), and one per agent stage attempt (run, stage, agent, attempt). The SDLC agent-run span gainsaide.pipeline_run_idandaide.stage.AgentStageCoordinatorlogs each validation retry with run, stage, attempt and finding count, never the findings. - Performance: an engine test gates
Applyat < 1 ms average over 10,000 calls. The timeline target (300 ms for a run with 5,000 entries) is measured and logged byPerformance_0_7_0_Testsbut gated at 1,000 ms, so a slow CI runner doesn’t flake it.
- Pinning: every SDLC move (advance, rollback, gate approve and reject, review cycle, cascade fallback on artifact approval, release status changes) decides with the definition the project’s current run is pinned to, resolved registry first, then the stored canonical JSON (
Manual checks (Ben)
- A full SDLC project on preview behaves as on 0.6.1 (strict and advisory).
- An existing 0.6.1 project mid-review continues after the 0.7.0 deploy.
- Pipeline tab and replay on a real run; gate inbox.
- Docker Desktop redeploy and smoke test.
- After the second build PR (§3.10, the SDLC on the engine runner):
- A project mid-review when it deploys continues: the start-up re-pin moves it to v3, and the log shows
re-pinned. - The execution of a specialist-stack project: repo tool calls and the composed stack prompt.
- A build check that fails once and is fixed.
- A rejected spec draft rerun with feedback.
- Don’t roll back to the PR #50 build after this deploys (D-0.7.0-41); 0.6.1 is fine.
- M58c review notes for M58d:
- With
review_cyclesat leastreview_cycle + 1, the engine’s loop cap never binds for the SDLC, so the backstop is effectively off there. The SDLC review decision rules remain the only limit, as in 0.6.1. projects.review_cyclestays the authoritative review counter. The review job counts it up and rollback restores it, as in 0.6.1, and it is mirrored intopipeline_runs.iterations. M58d must not derive it from the engine’sRunTransition.Iterations, which counts entries intoreviewand isn’t compared by parity.- Accepted exception to FR-291’s “every lifecycle move”: the dev seed (
DevSeeder.cs) writes phase and status directly. It is dev-only and predates 0.7.0.
- With
- A project mid-review when it deploys continues: the start-up re-pin moves it to v3, and the log shows