Build progress (0.9.0)

Spec: SPEC.md (0.9.0; 0.1.0–0.8.0 in docs/) · Stack: STACK.md · Branch: build/tevrin-0.9.0 (M74–M77, merged in #68), then build/tevrin-0.9.0-packs (M78–M81, from main 49f0ec5) · Started: 2026-11-29 · Base: 1462bec

Gate: GitHub Actions CI on the pushed head commit, after a static stack-reviewer pass (CLAUDE.md “Commit gate”). Agents never run the full gate, Docker, Testcontainers or E2E locally.

Invariant: the SDLC behaves as in 0.8.0. The characterisation snapshots stay frozen (check-snapshots-frozen.sh).

Environment

  • Packs (STACK.md): fe-nextjs, be-aspnet, data-efcore-postgres, vcs-github, deploy-railway, local-docker-desktop-k8s. All installed.
  • Tools: .NET SDK 10.0.402, Node 24.14.1.
  • Local: Docker Desktop Kubernetes is manual checks only (Ben).
  • VCS CLI auth: gh yes (BenFielder1). Railway deploys run only through .github/workflows/deploy.yml.

Requirements

| ID | Summary | Spec § | Layer(s) | Phase | Status | Evidence | | — | — | — | — | — | — | — | | FR-368 | Stop reading retired aide names; startup fails on old-only config | 3.1, 4.85 | backend + frontend + deploy | M74 | done | c9ac65e, CI | | FR-369 | Keep readers of names in stored/external data | 3.1, 4.85 | backend | M74 | done | c9ac65e, CI | | FR-370 | Allowlist cleanup + expired-entry check | 3.1 | backend + CI | M74 | done | c9ac65e, CI | | FR-371 | Railway IaC, Upgrading to 0.9.0 page, Breaking changelog list | 3.1 | deploy + docs | M74 | done | c9ac65e, CI | | FR-372 | Project artifacts section in the engine UI | 3.2 | frontend | M75 | done | cbf9fab + f1b8093, CI | | FR-373 | Declared outcomes in definitions (+ validator codes) | 3.2 | backend | M75 | done | cbf9fab + f1b8093, CI | | FR-374 | Record a declared outcome (API, supersede, migration) | 3.2, 4.83 | backend + data | M75 | done | cbf9fab + f1b8093, CI | | FR-375 | Outcomes panel | 3.2 | frontend | M75 | done | cbf9fab + f1b8093, CI | | FR-376 | from_runs with_outcomes | 3.2 | backend | M75 | done | cbf9fab + f1b8093, CI | | FR-377 | Guards before validator agents | 3.2 | backend | M75 | done | cbf9fab + f1b8093, CI | | FR-378 | Tevrin.Pack.Careers project, host registration, architecture tests, test project | 3.3 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-379 | Careers artifacts and schemas | 3.3, 5.1 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-380 | job-application pipeline definition | 3.3 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-381 | careers.master-cv-valid guard | 3.3, 4.80 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-382 | careers.duplicate-posting veto | 3.3, 4.78 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-383 | Fit evidence guard, fit score handler, threshold veto | 3.3, 4.79 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-384 | careers.cv-traceability guard (T1–T7) | 3.3, 4.80 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-385 | Fact-checker validator agent | 3.3 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-386 | careers.letter-traceability guard (L1–L4) | 3.3, 4.81 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-387 | careers.render-application handler | 3.3, 4.82 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-388 | Review gate loop; no tools or external handlers | 3.3 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-389 | careers.track handler, Mark sent | 3.3 | backend | M76 | done | 88b8f50 + ac90d51, CI | | FR-390 | job-digest pipeline + careers.digest-stats | 3.3, 4.84 | backend | M77 | done | 88b8f50 + ac90d51, CI | | FR-391 | Job applications pack guide | 3.3 | docs | M77 | done | 88b8f50 + ac90d51, CI | | FR-392 | Version 0.9.0, changelog, guides, release docs | 3.4 | frontend + docs + CI | M74 (bump) / M82 | done | build part: version 0.9.0 + changelog date: null (c9ac65e); release part in the release PR (M82): changelog date 2026-12-03, docs/history/0.9.0.md, SPEC/PROGRESS to docs/0.9.0 | | FR-393 | Feedback on backward moves (routes, veto to:) | 3.5, 4.87 | backend | M78 | done | 286fc7b, CI | | FR-394 | Handler and repeating follow-ups | 3.5, 4.88 | backend | M78 | done | 38ff862 CI; engine 286fc7b, CI | | FR-395 | Outcomes recorded by a handler; OutcomesFact | 3.5, 4.86 | backend | M78 | done | ca85afd, CI | | FR-396 | Outcome targets: fan-out per branch, handler, variants; branch migration; UI rows | 3.5, 4.86, 5 | backend + data + frontend | M78 | done | ca85afd, 38ff862 CI | | FR-397 | writes_feedback list form | 3.5 | backend | M78 | done | 286fc7b, CI | | FR-398 | Tevrin.Pack.Studio project, registration, tests | 3.6 | backend | M79 | done | d1dc5fb, CI | | FR-399 | Studio artifacts and schemas | 3.6, 5.2 | backend | M79 | done | d1dc5fb, CI | | FR-400 | content-studio pipeline | 3.6 | backend | M79 | done | d1dc5fb, CI | | FR-401 | studio.repeat-topic veto, studio.research-grounding guard | 3.6, 4.89 | backend | M79 | done | d1dc5fb, CI | | FR-402 | studio.script-traceability guard + script fact-checker | 3.6, 4.90 | backend | M79 | done | d1dc5fb, CI | | FR-403 | Editor routes and the revision cap | 3.6 | backend | M79 | done | d1dc5fb, CI | | FR-404 | Title/thumbnail variants + studio.package-rules | 3.6, 4.91 | backend | M79 | done | d1dc5fb, CI | | FR-405 | studio.render, publish approval, nothing published | 3.6, 4.92 | backend | M79 | done | fedfe56 CI; d1dc5fb, CI | | FR-406 | Content studio pack guide | 3.6 | docs | M79 | done | d1dc5fb, CI | | FR-407 | Tevrin.Pack.Forecasting project, IPredictionMarketSource | 3.7 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-408 | Polymarket read-only adapter (fixtures) | 3.7 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-409 | Forecasting artifacts and schemas | 3.7, 5.3 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-410 | forecast pipeline | 3.7 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-411 | Market snapshot/price handlers, market-open veto | 3.7, 4.93 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-412 | forecasting.news-grounding guard | 3.7 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-413 | Forecaster isolation (no market price) | 3.7 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-414 | forecasting.combine + spread guard | 3.7, 4.94 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-415 | forecasting.resolve repeating follow-up | 3.7, 4.95 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-416 | forecast-calibration pipeline + stats | 3.7, 4.96 | backend | M80 | done | 0d2f3e1, de8c221 CI | | FR-417 | Forecasting desk pack guide | 3.7 | docs | M80 | done | 0d2f3e1, de8c221 CI | | FR-418 | Tevrin.Pack.Markets project, IPriceHistorySource | 3.8 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-419 | Alpaca read-only market data adapter (fixtures) | 3.8 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-420 | Markets artifacts and schemas | 3.8, 5.4 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-421 | market-research pipeline | 3.8 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-422 | Price snapshot handler, markets.universe veto | 3.8, 4.97 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-423 | markets.case-grounding guard | 3.8, 4.98 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-424 | Risk limits guard + risk-manager veto | 3.8, 4.99 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-425 | markets.record; nothing traded | 3.8 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-426 | markets.grade repeating follow-up | 3.8, 4.100 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-427 | Post-mortem + feedback entries | 3.8 | backend | M81 | done | f418ba7, 19bba47 CI | | FR-428 | Market research desk pack guide | 3.8 | docs | M81 | done | f418ba7, 19bba47 CI | | FR-429 | Market data config, IaC, secrets example, Market data docs page | 3.8, 9 | deploy + backend + docs | M81 | done | f418ba7, 19bba47 CI |

Phases

  • M74 Retire the compatibility names — FR-368–FR-371; version bump (FR-392)
    • a. Version bump, changelog date: null, PROGRESS, CLAUDE.md “being built”
    • b. Backend refusals and kept readers, allowlist + expiry check (FR-368–FR-370)
    • c. Frontend storage keys and tests (FR-368)
    • d. Railway IaC, upgrade page, Breaking list (FR-371) — all in c9ac65e (CI 46268583997)
  • M75 Engine additions — FR-372–FR-377 — cbf9fab + fix f1b8093 (CI 46280547454; cbf9fab’s run 46278029412 failed one test, fixed in f1b8093)
  • M76 Careers pack: job application — FR-378–FR-389 — M76a pure core + M76b wiring in 88b8f50, CI fixes ac90d51 (CI 46294330570; 88b8f50’s run 46290666516 failed: image restore, fixture-cv key clash, a rejected gate re-cancelled on run failure)
  • M77 Careers pack: digest and docs — FR-390, FR-391 — in 88b8f50 + ac90d51 (same CI)
  • Audit fixes — 7e1b6e0 (CI 46300914131): CI runs the careers tests, §8 observability, docs/spec sync
  • Build PR to main (code only; changelog date: null): #68
  • M78 Engine additions for the packs — FR-393–FR-397 (branch build/tevrin-0.9.0-packs)
    • a. FR-393, FR-394 (engine), FR-397 — 286fc7b (CI 46723738117)
    • b. FR-395, FR-396 (+ migration, contract), FR-394 read model, carried minors — ca85afd (CI 46761155281)
    • c. Frontend: FR-393 feedback block (+ timeline feedback, D-0.9.0-26), FR-394 checks list, FR-396 branch rows, outcome notes — 38ff862 (CI 46846103260)
  • M79 Content studio — FR-398–FR-406
    • a. Studio pack, host registration, tests, guide (D-0.9.0-27) — d1dc5fb (CI 46854107980)
    • b. Engine: optional gate description in definitions, gate DTO, gate inbox copy (§7); studio gate copy moved into it (D-0.9.0-28) — fedfe56 (CI 46874887459)
  • M80 Forecasting desk — FR-407–FR-417 — 0d2f3e1 + fix de8c221 (CI 46898700048); first run 46887553927 failed on two test expectations
  • M81 Market research desk — FR-418–FR-429 — f418ba7 + fix 19bba47 (CI 46915127497); first run 46910981534 failed on a sign-in that expired over the 32-day clock advance
  • Build PR to main for M78–M81 (code only; changelog still date: null): #69, head be6b7ad (CI 46923215638)
  • M82 Release 0.9.0 — FR-392, after Ben confirmed the version (2026-12-02): the release PR (release/0.9.0) sets the changelog date (2026-12-03), moves SPEC and PROGRESS to docs/0.9.0/, and adds the CLAUDE.md row and docs/history/0.9.0.md; the root-SPEC.md entry leaves the FR-329 allowlist. Railway is now on the Hobby plan (Ben, 2026-12-02), so the same PR raises the api-data volume from 500 MB to 5 GB (sizeMB: 5000 in .railway/railway.ts). The read-only plan shows that resize for preview, and for production the resize plus deleting the leftover ConnectionStrings__Aide (rename runbook step 4)

Decisions

  • 2026-11-29 — D-0.9.0-1: the version is 0.9.0 (Ben asked for 0.8.1; a new pack is a minor version under FR-229) — Ben — SPEC updated: yes
  • 2026-11-29 — M74b: Netlify aide: build titles and aide previews hook titles on users’ sites stay readable (never), like aideDeploymentId (external state) — Claude — SPEC updated: yes (§4.85)
  • 2026-11-29 — M74b: SecretScanner no longer flags aide_pat_ values, since they can’t authenticate after FR-368. aide_merges input is refused by removing the enum alias from DomainEnumJsonConverter; stored payloads still read it through EnumStrings (FR-369) — Claude — SPEC updated: no (superseded by the M74 review entry, D-0.9.0-31)
  • 2026-11-29 — M74 review (minor, left as is): the test-folder allowlist entries still allow the bare word aide and *_aide_* identifiers in any test file, because tests name the kept and refused forms in many ways. One entry per file would be brittle. FR-370’s expiry check and the per-name entries outside tests carry the guarantee — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — M74 review: SecretScanner keeps detecting aide_pat_ (another instance still on 0.8.x may issue live ones); detection isn’t reading. This supersedes the M74b entry above — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — M74b: backend/entrypoint.sh exits 1 like the API when only AIDE_DATA_DIR is set (FR-368 startup rule) — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — M75: declared-outcome scores store an optional note (varchar(2000), declared form only; free-form scores keep it null) — Claude — SPEC updated: yes (§5)
  • 2026-11-29 — M75: an outcome’s target.stage may not be a fan-out or variants stage, and its prediction artifact must be JSON; with_outcomes reads the current declared scores stored for each run (not that run’s definition); follow-up {{OUTCOME_SCORES}} skips superseded scores; a concurrent declared record gives 409 CONFLICT — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — M75: PipelineArtifactVersionDto.createdBy ({ id, name } | null) for the Project artifacts list (FR-372), filled on the project-artifact routes only. The diff of project-artifact versions is computed in the browser from the listed contents (no diff route) — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — M75: veto guards get no stage-output facts (FactBag.Empty); careers veto guards read the run’s artifacts through host-implemented inputs sources, the coach pattern, so no engine change — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — M75 review (minor, left as is): the MSW outcomes POST mock doesn’t return 401, and declared mock scores carry a null target — Claude — SPEC updated: no
  • 2026-11-29 — M76a interpretations: contact checks are M2 (no name) and M3 (neither email nor phone); the duplicate veto counts only runs started before this one (ties by run id), so the first of two concurrent runs isn’t vetoed; T5/L1 skip lines citing no existing source (T1/T2 already flag them); render takes the posting URL from job_posting.url, else job.applyUrl, and puts the headline under the name; digest_stats.meanFit is null when nothing was sent; digest applications are ordered by sentAt, unsent ones by run start — Claude — SPEC updated: yes (§10 D-0.9.0-31 to -35)
  • 2026-11-29 — D-0.9.0-13, D-0.9.0-14: cv-fact-checker and letter-fact-checker share the careers.fact-checker prompt; top-level handler stages store their output (engine gap); L3 narrowed to applying phrases; T7 certifications compare name, issuer, date — Claude — SPEC updated: yes (FR-380, FR-385, §4.80, §4.81, §10)
  • 2026-11-29 — M76 frontend: when exactly one declared input has no version yet, the Submit input button and dialog take that input’s title (careers submission is titled “Mark sent”, so FR-389’s “Mark sent” needs no careers code); the coach’s button now reads “Session log”. sentAt renders as a text field (the form gives a date control only to format: date); its if/then requirement is checked by the server — Claude — SPEC updated: no
  • 2026-11-29 — M76 CI fixes: fixture-cv’s project-scope key is now fixture_cv_master (project-scope keys are project-wide, so it clashed with careers’ JSON master_cv; a test now registers every pack and fixture together). Engine fix: a gate reject that fails the run no longer re-cancels the gate it just rejected (EngineRunMoves.CancelPendingAsync skips gates decided in the same save) — Claude — SPEC updated: partly (D-0.9.0-35 records fixture_cv_master; the CancelPendingAsync fix is not in SPEC)
  • 2026-11-29 — M76 fix review (minor, left as is): no engine-level test of CancelPendingAsync cancelling other pending gates when a reject fails the run (run cancel and rollback cover it in integration tests); the frontend mock DTO for fixture-cv still says master_cv (mock only) — Claude — SPEC updated: no
  • 2026-11-29 — Audit (before the build PR): CI now runs Tevrin.Pack.Careers.Tests; CLAUDE.md/STACK.md list the careers pack; §8 observability added (tevrin.guard_findings, tevrin.validator_findings, tevrin.veto, tevrin.veto_findings, tevrin.metric, veto and declared-outcome log lines; ids and counts only, the log lines have no tests as the codebase has no log-assertion pattern); spec drifts synced (§4.78 earlier runs only, §6 409s, §7 empty-state copy, D-0.9.0-15 one Breaking highlight) — Claude — SPEC updated: yes
  • 2026-11-30 — D-0.9.0-16 to -19 (Ben, second brief and interview): the studio, forecasting and markets packs join 0.9.0; YouTube script from pasted sources; read-only Polymarket and Alpaca adapters, no betting or trading; cases then rebuttals. D-0.9.0-20 to -23 (Claude): trading-day grades, forecasters never see the price, engine gaps fixed generically (FR-393–FR-397), pack ids. Release renumbered M78 → M82 — SPEC updated: yes
  • 2026-12-01 — M78a: D-0.9.0-24 (backward-move feedback before validate findings, gate text unchanged; one-off handler follow-up Waiting → followup_expired; a late check stands for missed ones). A repeating check that throws counts as a failed check and queues the next. Cancelling a completed run also cancels a running follow-up (amends FR-354). route_reason isn’t schema-added by the engine. Review minors carried into M78b: detach tracked rows when a failed check’s store fails; close running follow-up executions as cancelled on cancel — Claude — SPEC updated: yes (§4.87, §4.88, FR-393, §10)
  • 2026-12-01 — M78b: D-0.9.0-25 (follow-up checks record outcomes on Waiting and Completed; outcomes validated before the output is stored; no outcomes from map/reduce; follow-up stages aren’t targets; skipped metrics go to the new stage_executions.outcome_notes, never veto findings; a fan-out branch with no valid prediction is skipped; POST on a fan-out metric returns the first branch). Migration 20261201222411_M78OutcomeBranches (branch + coalesce unique index + outcome_notes; Down supersedes per-branch rows first).
  • 2026-12-02 — M78c/M79/M79b/M80: D-0.9.0-26 (timeline feedback), D-0.9.0-27 (studio rules), D-0.9.0-28 (gate description), D-0.9.0-29 (forecasting adapter, resolve, stage errors on the timeline). Open for Ben: under FR-394 three failed checks in a row end a repeating follow-up, so a 3-day Polymarket outage leaves open forecasts unscored.
  • 2026-12-02 — M81: D-0.9.0-30 (vetoed runs schedule no follow-ups, amending FR-354; dotted writes_feedback.from; markets maths and split basis; AlpacaOptions). Audit: FR-393–FR-429 done; changelog retitled “Four new packs” (FR-392). Q8 added to SPEC §11 (outages and the FR-394 three-failure limit).

Manual checks (Ben)

  • Before publishing the release: after the release PR merges, run railway config apply for preview and for production from .railway/ (PowerShell, $env:_ set as in deploy/railway/README.md). Expect the api-data resize from 500 MB to 5000 MB, plus deleting api.ConnectionStrings__Aide in production. Then check that railway config plan --detailed-exit-code exits 0 in both. Without this, the release’s production deploy stops at the drift check. Claude does it on Ben’s go-ahead (agreed 2026-12-02).
  • Railway Backups on Hobby: the Daily and Weekly schedules for postgres and the api-data volume in production (deploy/railway/README.md, Backups).
  • Q4: neither Railway environment sets only ConnectionStrings__Aide before the 0.9.0 production deploy.
  • Recreate API tokens after the deploy (old aide_pat_ tokens stop working).
  • A job-application run from the UI and from a signed webhook, through review, mark sent and an outcome; a digest schedule fire.
  • Docker Desktop redeploy and smoke test.
  • Q5: Alpaca market data keys on preview and production (MarketData__Alpaca__KeyId, MarketData__Alpaca__SecretKey) before live market research runs.
  • A content-studio run through a route back, the variant pick and publish approval.
  • A forecast on a live Polymarket market on preview, and a later resolution check.
  • A market-research run on preview, and the first grade check on the next trading day.