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.tools in 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’s rest shard 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 move
      • idea_refinement and 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 offline IEngineDbContext
      • code_review: the reply returns 0.6.1’s AgentRunOutcome, and the optimisation plan draft is still stored by RecordAsync after scoring (StoresDraft = false, with a parse-only corrective check). Review: 0 Critical/Major
      • plan_generator: f0b0f86, CI 44934488218. All five staged agents are green, characterisation unchanged, rest shard 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 rest shard’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 keys build-fix-<check>-n, only the first reply checked as in 0.6.1; review clean; cb9a80f, CI 45014384362), then code_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 via TransformPromptAsync; review clean; 40d49cb, CI 45019672155). All bound with agents: (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.run may be shared);
        • the resolver checks binding tools;
        • redelivery calls the store override again;
        • SDLC and fixture hashes unchanged and pinned.

        Review: 1 Major fixed

      • 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

    • M62e Old runner removed (FR-320); the re-pin was done in M62d (FR-321):
      • AgentRunner and ArtifactAgentJob are deleted, and the helpers still in use moved unchanged to SdlcAgentRuns.
      • 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.
      • AgentCallBoundaryTests scans the IL; only SdlcAgentExtension may 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 a handlers: list on stages. Execution declares handlers: [sdlc.execution, sdlc.build-check] and stays manual. The moved loop code is unchanged.
      • Six reply-check guards via SdlcReplyCheckGuard; bindings get their own validate/on_invalid.
      • v3 hash a3079621…; FR-321 log and lifecycle-move tests added.

      Review: 1 Major fixed (resolver checks binding guards). d5e9659, CI 45032877150

    • 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 to docs/0.7.0/, and adds the CLAUDE.md row, docs/history/0.7.0.md and 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’s DbSets (jobs, events, notifications, deliveries, approval links) and Database. AideDbContext implements 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 ActivitySource and 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 log Category, which becomes Tevrin.Engine.Runtime.Jobs.JobWorker (no filter or test uses it).
    • Secrets: ISecretProtector moves to the engine as an interface. Its Data Protection implementation stays in Aide.Infrastructure/Security/SecretProtector.cs.
    • Rule: nothing that holds SDLC values moves (NotificationType, EventTypes, notification messages); those wait for M56.
  • D-0.7.0-21 (Build, M55, Claude, assumed): the LLM layer, PromptTemplate, AgentRunRules, Artifact/ArtifactRules/RestoreRules, ApprovalGate/GateRules/GateFollowUp/GateResolution and the AgentRun entity 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 resetStepIds in 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 in scripts/ci/check-snapshots-frozen.sh moves 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.Sdlc is the bottom of the SDLC side. It references only the engine, and Aide.* references it. The SDLC key constants live there: SdlcAgents, SdlcArtifacts, SdlcGates, SdlcJobTypes. The engine owns EngineGates.Escalation and EngineJobTypes. An architecture test checks that the pack references no Aide.*. Where the SDLC guards and handlers in M57 need Aide.Domain rules, 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 the REVIEW_STARTED/RELEASE_STARTED event payloads switching to stage_entered; they keep phase_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; SdlcApprovalLinkPolicy implements it.
    • NotificationOptions split: the engine’s NotificationChannelOptions binds the same section, so channel settings are configured as before. The SDLC sweep settings stay on the Aide side.
    • Dependency: Microsoft.Extensions.Http is added to Tevrin.Engine.Runtime, giving it IHttpClientFactory without 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.
  • M58 scope (from M56c): blocked by Phase: the AgentRun entity, RestoreRules, GateRules (RequiredGate, GuardedEntry, approve/reject/cancel) and SdlcArtifactRules (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, GateTimerService and NotificationSweeper. 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.Runtime only. 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 root Json namespace 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 carries sdlc.review-cycle-ready; and on_reject: { to, max_iterations }. agent.prompt is optional and defaults to the pack’s prompt for the agent key.
    • Artifact defaults (amends §4.49, which marks only schema as optional): format defaults to markdown, approval to required and cascade to downstream. 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 backward on_success is DEF_UNCAPPED_LOOP; schema $refs must resolve; escalation can’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.
  • 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 with LifecycleSnapshotLoader.
    • When requires: runs: only on advance and loop. Never at run start, rollback, fallback or a new version, because sdlc.start-only always fails.
    • Loops (M57b review):
      • A loop checks only loop.requires (sdlc.review-cycle-ready). It never checks the target stage’s requires: or its entry gate, so a strict-mode review cycle needs no plan_approval, as in 0.6.1.
      • The caller supplies the loop’s outcome. For the SDLC, the review loop also fires on escalation continue (GateFollowUp.StartReviewCycle) while the decision is escalation_required, so loop.on isn’t matched against the review decision alone.
      • The loop counter for the review_cycles cap is projects.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.
    • Inputs: stage inputs follow what the 0.6.1 handlers actually read. Refinement lists stack_profile, so the cascade reaches project_request.
    • Jobs on entering a stage: the model has no “job on entry” setting, and 0.6.1 enqueues release on entering the manual release stage while enqueuing nothing for refinement or analysis. M58 adds an optional stage field enqueue_on_enter: <job_type>; the SDLC definition sets it to match PhaseJobs, and the engine never assumes “agent stage means enqueue”.
    • Spec fix: in §4.54, approving an implementation plan falls back to execution, not review, as in 0.6.1 (corrected). The SDLC IInvalidationHook supplies the step reset.
    • Missing inputs: M59’s context builder must allow one (stack_profile doesn’t exist for versions that don’t infer their stack).
    • Testing: SdlcRunSettingsProvider needs an integration test.
  • 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_id columns 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.status holds only active, completed, failed or cancelled; waiting_on_gate and running are derived when a run is read (§4.57).
    • Links: pipeline_run_id on state_transitions, approval_gates, agent_runs and artifacts, and state_transitions.kind, stay nullable in 0.7.0 (tightening is a later contract step). kind maps Advance→advance, ReviewCycle→loop, Rollback→rollback, InvalidationFallback→fallback, ReleaseNoop→noop, the three release status moves→status_change, and NewVersion and project creation→start (the first transition of a run). Rows written before 0.7.0 keep kind null.
    • Backfill in the host, not the migration: the hash can’t be computed in SQL. PipelineRunBackfillService runs 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 versions completed at release/released (at their last transition checkpoint). It then links rows by release version. imported baselines get no run. Inserts use ON CONFLICT DO NOTHING and 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 raw UPDATE would bump xmin on gates and artifacts the unit of work may hold.
    • Dual write as a SaveChanges interceptor (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. Synchronous SaveChanges touching projects or linked rows throws NotSupportedException (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_SUPERSEDED lowest version first.
  • D-0.7.0-29 (Build, M58b, Claude, assumed): the engine state machine’s messages and the definition fields it needs.
    • Messages: TransitionMessages holds 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”), and status_changes.*.reason and error_message. Their defaults are written into the canonical JSON.
    • SDLC definition: sets title: Review cycle, the release status-change texts, and enqueue_on_enter on specification, planning, review and release (the same jobs as PhaseJobs). These change the SDLC hash before any run is pinned to it.
    • Engine error codes: PHASE_PRECONDITION_FAILED, GATE_PENDING, WRONG_PHASE and INVALID_TARGET_VERSION are added, with the same values as the host’s codes.
    • Cascade hook: IInvalidationHook gains FallbackStages; the real SDLC step-reset hook comes in M58d.
    • Not machine moves: entering analysis and starting a new version go through start, the start selector and the SDLC service.
    • For the parity test: keep the review iteration count below review_cycles, because the engine’s loop cap is a backstop 0.6.1 doesn’t have. Pass review_required as the review-cycle outcome.
  • 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_iterations cap 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 through SdlcReviewLoop) is max(maxReviewCycles + extraReviewCycles, review_cycle + 1), so the backstop never refuses a cycle 0.6.1 allows (e.g. after an Owner lowers maxReviewCycles below the current cycle). The review decision rules (escalation at the max) stay the real limit.
  • D-0.7.0-31 (Build, M58d, Claude, assumed): the switch-over.
    • Who decides: lifecycle decisions go only through the engine (SdlcLifecycle, using the pure SdlcMachine), and fail closed with no valid SDLC definition. LifecycleStateMachine, PhaseOrder, TransitionKind, the phase-keyed GateRules lookups, InvalidationCascade.Effect, PhaseJobs and the parity code are removed.
    • Reading state: decisions read stage, status and checkpoint from the current pipeline_runs row. 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 Phase enum stays as the SDLC’s typed stage id (DTOs and contract), and a test pins its order to the definition. Step resets stay in InvalidationCascade.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’s WRONG_PHASE text.
    • Tests: the transition tests were rewritten as SdlcLifecycleTransitionTests: 40 methods and 648 cases, with the same expected results.
  • D-0.7.0-32 (Build, M59a, Claude, assumed; amends SPEC §5): run logging data (FR-268, FR-297, FR-298).
    • No stage_id column on agent_runs: AgentRun moved to the engine with string Stage mapped to the existing phase column, which already holds the stage id (same values). DTOs keep their Phase type and wire values.
    • Migration RunLogging (expand only): agent_runs + input text, input_truncated boolean NOT NULL DEFAULT false, latency_ms bigint; new stage_executions (FK to pipeline_runs ON DELETE CASCADE, index (pipeline_run_id, entered_at)).
    • Input: [role] blocks for the system prompt and user message, redacted with SecretRedaction (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_ms is the time to the first streamed output (text, refusal or tool call) of the last attempt that streamed, via LlmFirstTokenProbe; null for the Fake provider and whole-JSON answers.
    • Stage executions: written by PipelineRunSyncInterceptor through the engine StageExecutionWriter, in the save of each new transition: a transition that changes stage, or a start/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 from projects.review_cycle after 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 by CloseEndedAsync (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) and PromptStatsForAllProjectsAsync (administrators only), aggregated in SQL; averages from RunLogStats (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.
  • D-0.7.0-33 (Build, M59b1, Claude, assumed; adds a §4.49 row): the engine agent stage runner (FR-295, FR-296).
    • Prompts: IPromptSource finds a stage’s prompt (agent.prompt, else the agent key) among the prompts its pack registered (PackPromptSource, replaceable by the host). New validator code DEF_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’s inputs or 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’s PromptLibrary until 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 with MISSING_INPUT before 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: AgentStageRunner works through IAgentStageStore (EF implementation on IEngineDbContext, which gains Artifacts and ApprovalGates; AideDbContext already has both). Everything is scoped to the run’s subject (AgentStageScope: the release version subject_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 take release_version_id from subject_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 and latency_ms (LlmFirstTokenProbe). A provider error is stored as <code>: <sanitized message> (SecretRedaction.SanitizeProviderError), the run failed, 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 run cancelled. Unlike the SDLC runner, a transient failure doesn’t leave the run running for the job’s retry: the retry records a new run. The trigger (validation_failed and 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 are pointer: 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 stays succeeded with error = validation_rejected: <findings>, and the prompt comparison (FR-298) counts it as a failure. With then: fail the last run becomes failed and AgentStageResult.ThrowIfFailed fails the job permanently with VALIDATION; with then: escalate the run’s own pending escalation gate is reused, else one is raised on the run. A stage with validate: but no on_invalid fails on the first invalid output.
    • Tools: a stage’s agent.tools are resolved by name from DI and run in LlmToolLoop; the model sees each tool’s Spec.Name. Calls are recorded in tool_calls as {tool, arguments, isError}.
  • Watch (flaky test): DeliveryTimeoutTests.FR49_An_SMTP_server_that_never_answers_times_out_as_a_transient_failure failed 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 a FakeTimeProvider or wider margins (the M58c review also flagged wall-clock tests in LlmStreamingTests, LlmKeyCheckTests and CheckFailureLogTests).

  • 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_FAILED and BUDGET_EXCEEDED.
    • Request options: MaxTokens (FR-160) and ContextTokens (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-plan block 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).
    • AgentToolExecutor parity with RepoToolSession:
      • LimitReached is always false, so TOOL_LIMIT doesn’t force the final answer;
      • FallbackContextAsync returns 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_calls format differs, and there is no SecretScanner.Redact or 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.OpenAsync from the extension’s CallOptionsAsync, then call Release() 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_unavailable warning (via CallOptionsAsync().Warnings) and the run’s tool_calls on failure paths.
    • Host prompt values: placeholders the engine path can’t fill come from host PromptValues (SdlcContextPromptTests.HostValues). USER_FEEDBACK goes through AppendFeedback = false plus AgentRunMetadata.UserFeedback.
    • Recorded stage: SDLC agent runs record project.CurrentPhase through AgentRunMetadata.Stage.
    • Bound agents (D-0.7.0-42), SDLC side:
      • SdlcAgentCall.ToStageRequest, also used by NextAttemptAsync, must set AgentKey, or a corrective attempt runs the primary.
      • SdlcStageLocator must find bindings as well as s.Agent?.Key.
      • The extension’s stage-keyed hooks check attempt.IsSecondaryAgent and attempt.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 planning stage gets validate: [{ guard: sdlc.plan-valid }] and on_invalid: { retry_with_feedback: true, max_attempts: 2, then: fail }.
      • The guard runs ParseAgentOutput(reply, project.MaxFilesPerStep, agents, deployFiles) then RenderChecked on the stage output content (trimmed; parsing doesn’t depend on the trim), and returns error.Message as 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 ValidateOutputAsync skips its planning check only when attempt.Stage.Validate declares sdlc.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.
    • YAML (FR-321): add agent.tools: [sdlc.list-files, sdlc.read-file, sdlc.search-code] and stages for repository_analyst, code_generator and build_fix.
  • 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 through IRunAccessPolicy, IGateDecisionService, IPipelineTransitionSource, IRunActivityPolicy and IEngineProblems (Aide.Api/Features/PipelineRuns).
    • Stage states: the current stage is active while the run isn’t final, and every later stage is pending, also after a rollback or a loop (e.g. review after looping back to execution); its earlier entries still count in iterations and timings and stay in the timeline. Earlier stages are completed when entered, else skipped. Stages with no stage_executions rows (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 PipelineTimelineIndexes adds (pipeline_run_id, created_at) on agent_runs, approval_gates, artifacts and state_transitions (expand only; the single-column foreign-key indexes stay).
  • 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 GateDecision dialog reuses gate-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 409 DEFINITION_UNAVAILABLE and 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.exclusive with scope: project (JobTypeRegistry.ExclusiveOf); the SDLC’s execution no longer sets the code flag, which stays as the fallback for job types no definition mentions. scope: run is refused by the validator with DEF_PARSE (“run-scoped concurrency is not supported in 0.7.0”), because jobs carry no run id. The engine fixture now declares scope: project.
    • Observability: the advance log appends PipelineRunId, TransitionKind and DefinitionHash to 0.6.1’s text. The engine has its own Tevrin.Engine activity 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 gains aide.pipeline_run_id and aide.stage. AgentStageCoordinator logs each validation retry with run, stage, attempt and finding count, never the findings.
    • Performance: an engine test gates Apply at < 1 ms average over 10,000 calls. The timeline target (300 ms for a run with 5,000 entries) is measured and logged by Performance_0_7_0_Tests but gated at 1,000 ms, so a slow CI runner doesn’t flake it.

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_cycles at least review_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_cycle stays the authoritative review counter. The review job counts it up and rollback restores it, as in 0.6.1, and it is mirrored into pipeline_runs.iterations. M58d must not derive it from the engine’s RunTransition.Iterations, which counts entries into review and 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.