0.8.0: coaching pack and engine features

Spec: SPEC. Build log: PROGRESS. Build notes: session notes. A feature release on 0.7.0, released on 28 November 2026.

0.8.0 shipped in one build PR (#66). It retires the last Aide names, lets the engine run pipelines itself, adds the first new pack (Impulse coaching) and builds the engine features the other candidate packs need. The SDLC behaves as in 0.7.0. The release PR adds the docs and the release date.

What changed

  • The rename (M65). Every Aide project, namespace, type, config key, image and infrastructure name is now Tevrin: Tevrin.Api, Tevrin.Domain, Tevrin.Infrastructure, ConnectionStrings:Tevrin, TEVRIN_* variables, tevrin-api and tevrin-web images, and the tevrin namespace.
    • Committed migrations changed only by mechanical substitutions, which a CI script checks. The characterisation snapshots were re-baselined once, under a mapped-equality check, and are frozen again.
    • Old names are read through 0.8.x: aide_pat_ tokens, the aide.auth cookie, aide-plan blocks, aide_merges and the AIDE_* variables (with one start-up warning each). A scan test fails on any other aide name outside an allowlist.
    • The rename runbook covers the Railway project, the variables and the database.
  • Run control and triggers (M66). Pipelines declare run control in C#: Engine (the default) or Host (the SDLC). The generic API now starts, cancels, rolls back and retries engine-controlled runs and takes inputs. The stage.run job drives a run one stage at a time. Runs can have no subject. schedule and webhook triggers run: cron in an IANA timezone, and signed webhooks with replay protection and secret rotation. See Triggers and webhooks.
  • The coach pack (M67). Tevrin.Pack.Coach holds only YAML, schemas, prompts and the Velocity guard (coach.velocity-load-rules, rules R1 to R5). The impulse-coach pipeline runs analyse, plan (retry with feedback, then escalate), plan approval and a coach-voice message. Source-of-truth artifacts (athlete_profile) are shared across a project’s runs and pinned at run start. See the Impulse coaching pack guide.
  • Flow constructs (M68). Parallel stages, veto, fan-out with isolated context, aggregation, routes to any earlier stage, a revision cap across the run, and output variants. Each has a fixture pipeline.
  • Quality and learning (M69). Validator agents with structured findings, a per-agent feedback store, external outcome scoring (with Brier scores) and follow-up stages queued as delayed jobs.
  • Scale and conversation (M70). Map-reduce, turn-based conversation stages and windowed inputs over earlier runs (from_runs).
  • Tools and safety (M71). Tool tiers (read, write, destructive), approval of destructive tool calls in the middle of a stage, and a human gate before an external action. Neither runs without an approved gate in any approval mode. No pack ships a destructive tool.
  • Engine UI (M72). Start run and Submit input dialogs built from input schemas, lanes, map progress, variant tabs, transcripts and follow-ups in the stage list, new gate cards, scores and feedback, and a Triggers section. It stays definition-driven, with no code per pipeline. Two live hub events, stageBranchUpdated and mapProgress, keep it current.
  • Docs. The definition reference in Pipelines and packs covers every new construct, and the new validator codes.

The constructs are proven on fixture pipelines. The market research desk, forecasting desk, QA lab, job applications, on-call triage and content studio packs are future versions.

Amended requirements

Earlier Change New
0.6.0 §4.29 (internal aide identifiers stay) Retired. Names become Tevrin, and old names are read through 0.8.x FR-323 to FR-329, §4.77
CLAUDE.md rule 5 (never edit a committed migration) One exception: the mechanical rename substitutions, checked by CI FR-324, D-0.8.0-9
0.7.0 FR-261 snapshot freeze One reviewed re-baseline for the rename. The freeze base moves FR-328
0.7.0 D-0.7.0-3 (only manual triggers run) schedule and webhook triggers run FR-336, FR-337
0.7.0 D-0.7.0-4 (generic API is read plus gate decisions) Engine-controlled pipelines also start, cancel, roll back, retry and take inputs through it. The SDLC is unchanged FR-330 to FR-335
0.7.0 D-0.7.0-19 (fan-out, parallel stages, tool tiers, conversation, scoring and feedback wait for packs) Built, and proven on fixtures FR-343 to FR-361
0.1.0 FR-65 merge strategy aide_merges Stored and returned as tevrin_merges. aide_merges is still accepted as input FR-326, D-0.8.0-10
0.1.0 FR-4 API tokens and the aide.auth cookie New tokens are tevrin_pat_, and the cookie is tevrin.auth. Old ones are accepted through 0.8.x FR-326

New requirements are FR-323 to FR-367. The one breaking API change is the mergeStrategy value, which now returns tevrin_merges.

Upgrade notes

  • Run the rename runbook first. Rename the deployments from aide to Tevrin renames the Railway project and database and swaps the connection variable. Do steps 1 to 3 before the build deploys to an environment, or its drift check fails. Do step 4 (remove the old variable) once 0.8.0 is running there. The runbook has a maintenance window and rollback steps.
  • Nobody is signed out. An aide.auth cookie is accepted and reissued as tevrin.auth, and aide_pat_ API tokens keep working. New tokens start tevrin_pat_.
  • Old names are read until 0.9.0. The AIDE_* variables Tevrin reads and ConnectionStrings:Aide still work with a start-up warning, aide_pat_ tokens still authenticate, and all are removed in 0.9.0. aide_merges is accepted as input until then. aide-plan blocks are read for good, because plans are stored data.
  • Kept on purpose. AIDE_RUN_MIGRATIONS (Tevrin writes it into generated projects), the Data Protection application name aide and its purpose strings (renaming them breaks decryption), and the dev-loop database and user aide.
  • Local Kubernetes. deploy-local.sh deploys under the new names. Free localhost:8080 from the old aide namespace, update secrets.env to ConnectionStrings__Tevrin, then redeploy. See Local Kubernetes.
  • Contract. The API contract and client are regenerated. Other changes are additive.
  • Time zones. The API image now includes tzdata, because schedules use IANA zones.

Data and API

  • All migrations are additive, except one data rewrite (aide_merges to tevrin_merges in projects.merge_strategy).
  • New tables pipeline_schedules, pipeline_webhooks, webhook_deliveries (kept 30 days), agent_feedback and outcome_scores. pipeline_runs, artifacts, stage_executions, agent_runs and approval_gates gain columns, and pipeline_runs.subject_id is optional.
  • New endpoints for run control, schedules, webhooks (including the public /api/hooks/pipelines/{webhookId}), source-of-truth artifacts, feedback, outcomes and map items.
  • New error codes: RUN_CONTROLLED_BY_HOST, RUN_ALREADY_ACTIVE, RUN_NOT_ACTIVE, INPUT_INVALID, SOURCE_ARTIFACT_MISSING, SCHEDULE_INVALID, TRIGGER_NOT_SUPPORTED, WEBHOOK_SIGNATURE_INVALID, WEBHOOK_REPLAY and VARIANT_CHOICE_INVALID. See Error codes.

Decisions

ID Decision
D-0.8.0-1 Full rename: code, config, images, infrastructure and wire names
D-0.8.0-2 The coach pack is hosted in Tevrin, and a project owns each run
D-0.8.0-4 Engine features for other packs are proven on fixtures only
D-0.8.0-7 Old names are read through 0.8.x and removed in 0.9.0. The token budget and audit hooks apply to every pipeline
D-0.8.0-8 Run control is declared by the pack in C#, so the SDLC hash doesn’t change
D-0.8.0-9 Committed migrations may change only by the mechanical rename substitutions
D-0.8.0-10 mergeStrategy returns tevrin_merges and accepts aide_merges
D-0.8.0-11 Cron is parsed by a small internal 5-field parser, not a new package
D-0.8.0-13 Destructive tools and external actions always need an Owner-approved gate, autonomous included
D-0.8.0-16 AIDE_RUN_MIGRATIONS and the Data Protection names keep their names
D-0.8.0-17 The generic workload names (api, web, db) stay
D-0.8.0-19 Source-of-truth artifacts are shared per project and pinned per run

See the SPEC for all 33 decisions. The new constructs are in Pipelines and packs.

Known issues

  • An SDLC rollback is refused (ROLLBACK_BLOCKED) while any agent run in the project is in progress, including an engine run’s agent.
  • Non-SDLC agent runs record artifact, gate and token events, but not RUN_STARTED or RUN_COMPLETED. The engine hook interface has no slot for them.
  • A job that is dead-lettered after its transient retries leaves its work open until a manual retry. This affects a parallel branch with on_branch_failure: continue, a follow-up stage and a map item, and a map item doesn’t count toward max_failed.
  • A map stage plans its entry twice. An input arriving in between fails the job with a misleading DEFINITION_UNAVAILABLE, and a manual retry recovers.
  • Map item and fan-out variant artifacts on a run with a subject would collide on an existing index. Not reachable: engine-started runs have no subject, and the SDLC has no map stage.
  • The contract generates inputs of a start request as Record<string, never>, so the frontend casts it. A later contract change will emit additionalProperties.
  • Tool approval edge cases: a tool still running after its job’s lease expired can save its result late, and the denial text names the reviewer by user id, not name.
  • Large maps may need indexes on jobs.payload and on pipeline_runs for from_runs. Add them in a later migration if they get slow.
  • Live hub events for constructs are throttled per API process, with no backplane, as for every hub event.