Build progress (0.6.1)

Spec: SPEC.md (0.6.1; 0.1.0–0.6.0 in docs/) · Stack: STACK.md · Branch: build/tevrin-0.6.1 (part 1, PR #38), build/tevrin-0.6.1-review (part 2, PR #47), build/tevrin-0.6.1-build-check (fix, PR #48), release/0.6.1 (release) · Started: 2026-11-11

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.

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-232 | tevrin/ prefix for new branches, recorded branches kept | 3.1, 4.35 | backend | M46 | done | CI 43183692831 | | FR-233 | Branch control requires every prefix the project uses | 3.1, 4.36 | backend | M46 | done | CI 43183692831 | | FR-234 | Tevrin-written config blocks tevrin/** and aide/** | 3.1 | backend (packs) | M46 | done | CI 43183692831 | | FR-235 | Themed CSS scrollbar | 3.2, 4.39 | frontend | M47 | done | CI 43183692831 | | FR-236 | CI failure log excerpts (GitHub, GitLab, Bitbucket) | 3.3, 4.38 | backend | M49 | done | CI 43209207203 | | FR-237 | Failure findings with excerpts in review prompt | 3.3 | backend | M49 | done | CI 43209207203 | | FR-238 | code_review.md v9 failure-step rules | 3.3 | backend (prompt) | M49 | done | CI 43209207203 | | FR-239 | Failure evidence block appended to fix steps | 3.3 | backend | M49 | done | CI 43209207203 | | FR-240 | Repeated-failure marking across cycles | 3.3, 4.37 | backend | M49 | done | CI 43209207203 | | FR-241 | requiredFiles in deploy packs, catalog 1.2.2 | 3.4, 4.40 | backend (packs) | M48 | done | CI 43183692831 | | FR-242 | plan_generator.md v7 names required files | 3.4 | backend (prompt) | M48 | done | CI 43183692831 | | FR-243 | Deterministic missing-file steps | 3.4, 4.41 | backend (domain) | M48 | done | CI 43183692831 | | FR-244 | “Added by Tevrin” badge, additive step fields | 3.4 | backend + frontend | M48 | done | CI 43183692831 | | FR-245 | Version 0.6.1, history page, docs | 3.5 | deploy + docs | M46, M50 | done | CI 43183692831 | | FR-246 | Stable finding ids for deterministic findings | 3.6, 4.42 | backend (domain) | M51 | done | CI 43287918035 | | FR-247 | code_review.md v10 step-or-waiver, carried/waived marks | 3.6 | backend (prompt) | M52 | done | CI 43382325337 | | FR-248 | Tevrin adds steps for unaddressed findings | 3.6, 4.43 | backend (domain) | M52 | done | CI 43382325337 | | FR-249 | Valid waivers lift the penalty; guarded | 3.6, 4.43 | backend + frontend | M52 | done | CI 43382325337 | | FR-250 | Report shows each finding’s handling | 3.6 | frontend + backend | M52 | done | CI 43382325337 | | FR-251 | Catch-all spec paths read whole and covered by fallbacks | 3.7, 4.44 | backend (domain) | M51 | done | CI 43287918035 | | FR-252 | File-based routes and public/ count as endpoints | 3.7, 4.45 | backend (domain) | M51 | done | CI 43287918035 | | FR-253 | Runtime dependencies only | 3.7, 4.46 | backend (domain) | M51 | done | CI 43287918035 | | FR-254 | Build check starts after execution | 3.8, 4.47 | backend (job) | M53 | done | CI 43586017649 | | FR-255 | Build check waits for preview + required checks | 3.8, 4.47 | backend | M53 | done | CI 43586017649 | | FR-256 | Build-fix agent and build_fix steps | 3.8, 4.48 | backend | M53 | done | CI 43586017649 | | FR-257 | Guardian rejects error suppression in build fixes | 3.8, 4.48 | backend (domain) | M53 | done | CI 43586017649 | | FR-258 | maxBuildFixAttempts, exhausted → review | 3.8, 4.47 | backend + data | M53 | done | CI 43586017649 | | FR-259 | Build check panel, Build fix badge, setting | 3.8 | frontend + backend | M53 | done | CI 43586017649 |

Phases

  • M46 Version and branch prefix (FR-232–FR-234, FR-245 bump)
  • M47 Scrollbars (FR-235)
  • M48 Deployment files in plans (FR-241–FR-244)
  • M49 Failure evidence in review (FR-236–FR-240)
  • M51 Check accuracy and finding ids (FR-246, FR-251–FR-253) — branch build/tevrin-0.6.1-review
  • M52 Findings in the plan (FR-247–FR-250)
  • M53 Build check before review (FR-254–FR-259)
  • M50 Release 0.6.1 (after M53) (FR-245): part 1 merged in PR #38, part 2 in PR #47, the build check fix in PR #48 (CI on main 43716168445). Ben tested on preview and confirmed the version on 2026-11-15. The release/0.6.1 PR sets the changelog date (2026-11-15), moves SPEC and PROGRESS to docs/0.6.1/, and adds the CLAUDE.md row, docs/history/0.6.1.md and the guide updates. Tag and release follow after Ben confirms the commit

Decisions

See SPEC §10 (D-0.6.1-1 … D-0.6.1-21). Build-time decisions are added below.

  • D-0.6.1-23 (fix after preview testing, branch build/tevrin-0.6.1-build-check): the build check no longer dead-letters when GitHub refuses the branch-rules read (403 on a private free-plan repo). It waits for the preview, keeps waiting on host errors, and records end_reason. The execution page has a build-check card timeline. See SPEC §4.47 and §10. CI 43714538820.
  • D-0.6.1-22 (Build, M53, Claude, assumed): build check details.
    • Schema: build_checks gains a nullable superseded_at; the (version, cycle, attempt) unique index applies only where it is null. Rollback and invalidation cancel the open check and supersede earlier ones, so a re-run starts at attempt 0 with the full budget. Fixes used = checks in force that have fix steps (amends §5).
    • Steps: fix steps are stored on the current plan and numbered after its highest step (unique (plan, step) index). The 1–5 limit counts the agent’s own steps; Tevrin-added steps may exceed it.
    • Waiting: the check waits for every source to finish before deciding, and only for required checks. Required contexts not yet reported count as pending (GitHub). A preview timeout yields failure:preview:<platform>; checks still pending, or never reported, at 15 min yield failure:check:<name> / failure:check:required-checks. Provider API errors retry the job.
    • Ending the check: a Local project with no preview is decided skipped in the PR job. Exhausted always goes to Review. Passed and skipped count only for their commit. “Continue” on a blocked fix step, an invalid fix plan after one retry, or a dead-lettered check/fix job → exhausted. Pausing doesn’t cancel.
    • Guardian: BUILD_ERRORS_SUPPRESSED is reported under GuardianCheck.ScopeCreep. “Deletes a test file” is detected as a test file emptied of content. A redelivered already-committed step skips the rule.
    • Naming: audit events are BUILD_CHECK_STARTED, BUILD_CHECK_COMPLETED, BUILD_FIX_PLANNED (repo convention). Agent kind build_fix is added to the contract.
    • UI: attempt 0 reads “Initial check”. Outside Execution the panel shows the newest check’s cycle (“Before review cycle n+1”). The exhausted badge reads “Still failing”.

Known issues

  • CI integration shards hit the runner’s inotify limit (128) once the rest shard grew; CI now raises it and turns off config reload in test hosts (commit 50f20bb).
  • Cloudflare: a transient failure reading Workers triggers reports all patterns missing (Error) rather than Unknown (review Minor, M46).
  • Cloudflare Pages: verify now writes preview excludes (sets previews to custom if a user switched back to all); link already did (D-0.6.1-9).

  • GitLab/Bitbucket: “required” is project-level (only_allow_merge_if_pipeline_succeeds, require_passing_builds_to_merge), so a pipeline not yet started reads as no required checks and the build check is skipped (M53 review; GitHub fixed). Needs the providers to expose the setting.
  • Build check: a waiting check’s sources are saved on every poll, but live pushes go out only on transitions.

Manual checks (Ben)

  • Re-test the build check on the private GitHub + Vercel project: it waits while Vercel builds, a failed build shows its excerpt, “Planning a fix…” appears, then the fix steps run and the next build card appears.
  • GitHub job-log redirect: confirm the blob-storage request carries no Authorization header (relies on .NET’s cross-host redirect stripping; not unit-tested).
  • Live log fetches on a real failing check: GitHub Actions job log (redirect to blob storage), GitLab job trace, Bitbucket Pipelines step log (status URL → build number; redirects not followed).
  • A real Vercel project end to end: a missing vercel.json gets an added step, and a broken build produces a specific fix step with the log excerpt.
  • Scrollbar in Chrome, Firefox and Safari, light and dark.
  • Cloudflare Workers Builds PATCH /builds/triggers/{uuid} with only branch_excludes against a real account (stubbed in tests).
  • A real GitHub project with branch protection: the build check waits for required CI, and a failing Vercel build gets a build-fix step and a passing attempt.
  • Docker Desktop redeploy and smoke test.