Skip to content

Diagnosis complete: loops 290/291 died on transient infra retries mid-implement - #349

Merged
linhdmn merged 1 commit into
mainfrom
devagent/TASK-mtyis3ci-7gvj
Sep 12, 2026
Merged

linhdmn merged 1 commit into
mainfrom
devagent/TASK-mtyis3ci-7gvj

Conversation

@linhdmn

@linhdmn linhdmn commented Sep 12, 2026

Copy link
Copy Markdown
Member

Automated task via devagent task.

Prompt

Diagnosis complete: loops 290/291 died on transient infra retries mid-implement (run logs show "Transient infra failure" ×2, zero commits — both task branches sit at main HEAD 85449da), and loop 289 was invalid only for goal shape (**Goal:** bold prefix). No revision work landed: internal/version on main still has only Version, no ReadBuildInfo anywhere in tracked source. The research pick stays valid, is fresh from main (no dependency on the dead branches/worktrees), and is test/smoke-verifiable.

Goal: Add build-revision self-identification to the Go driver so a stale binary is loud. In internal/version/version.go add memoized Revision() using debug.ReadBuildInfo(): return vcs.revision, else "unknown" when absent (go-test binaries carry none — inject via var for tests). Add Revision field to the Row struct in internal/ledger/ledger.go (~:190, beside Version) and stamp it where rows are written. In internal/loopdriver/run.go RunLoop (:87) startup: compare version.Revision() against git rev-parse HEAD; log a WARN "stale binary" when it is "unknown" or differs. Include the revision in devagent --version (internal/cli/root.go:240). Work from current main; ignore .devagent-worktrees debris. Verify: go test ./internal/version/... ./internal/loopdriver/... green; go build -o /tmp/dg . && /tmp/dg --version prints the revision.

Repo policy: every PR keeps docs/PRD.md current — update the sections this change affects (status claims, architecture notes, roadmap/completion notes) and bump the Last updated footer in the same PR. A PR that changes repo state without reflecting it in docs/PRD.md is incomplete.

PRD state update (repo policy)

  • docs/PRD.md sections touched by this change are updated to the post-PR state
  • the Last updated footer reflects this change

@linhdmn
linhdmn force-pushed the devagent/TASK-mtyis3ci-7gvj branch from f2adb77 to 3c01fae Compare September 12, 2026 21:17
@linhdmn
linhdmn merged commit 7aef356 into main Sep 12, 2026
7 checks passed
linhdmn added a commit that referenced this pull request Sep 12, 2026
fix(ledger): release-created rows carry tag/sha again (regressed in #349)
linhdmn added a commit that referenced this pull request Sep 12, 2026
…#352)

Per AGENTS.md the PRD references issues that matter for status. #349's
footer claims 'a stale binary is loud'; that holds for normal-checkout
builds, but Go's -buildvcs mis-stamps vcs.revision inside a linked
worktree (proven A/B at 8ca0688), so worktree-built binaries write a wrong
release-row revision and false-trip RunLoop's guard. Track that as #352 and
link it; regenerate docs/PRD.html so the styled mirror matches PRD.md.
linhdmn added a commit that referenced this pull request Sep 12, 2026
docs(prd): note #349 revision-stamp caveat for linked-worktree builds (#352)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant