verify-loop: agent-retry workflow + verification.json producer (consumer side of glimmung#18) #176
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens#176
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spirelens-side conformance for glimmung's verify-loop substrate (glimmung#18 / glimmung PR #21). The substrate has landed in glimmung; the loop only closes once spirelens emits the contract-shaped artifact and accepts retry dispatches.
What's needed
1.
verification.jsonproducerUpdate the existing verify phase to emit
verification.jsonand upload it as a GHA artifact namedverification.Schema (from glimmung's
VerificationResultmodel, documented in glimmung README):Status semantics:
pass— verification reached a positive verdict.fail— verification reached a negative verdict (the common retry case).error— verifier itself crashed before reaching a verdict. Treated as a substantive negative verdict (retry up to budget), distinct from a missing artifact.Missing or schema-invalid artifact triggers
ABORT_MALFORMEDin glimmung — the run aborts with an issue comment explaining the contract violation, so this contract is load-bearing.2.
agent-retry.ymlworkflowA slim retry workflow glimmung dispatches when verification fails within budget. Inputs glimmung will set:
lease_idhostissue_numberrun_idattempt_indexprior_verification_artifact_urlverificationartifact. The retry workflow pulls it via its ownGITHUB_TOKEN.The retry workflow runs impl + verify with the prior verification context fed back into the implementation prompt, then uploads its own
verification.jsonartifact at completion. Spirelens-specific build/test commands stay in this yaml (which is why it lives here, not in glimmung).3. Glimmung workflow registration update
Once the retry workflow exists, update spirelens's glimmung workflow registration:
This is what flips the verify-loop on for spirelens. Workflows without
retry_workflow_filenamekeep the pre-#18 fire-and-forget behavior unchanged.Definition of done
The remaining DoD items from glimmung#18 (steps 1–5):
agent-run, watch initial dispatch behave as today.agent-retry.ymlwithprior_verification_artifact_urlset; retry runs impl + verify with that context.agent-budget:1x10and a known-failing issue); glimmung aborts cleanly with an issue comment explaining why.Related
Deferred. The verify-loop wedge is shifting consumer from spirelens to ambience — ambience is a smaller, more deterministic test target, so the substrate gets validated faster there. Spirelens keeps the pre-#18 fire-and-forget shape until the loop is proven on ambience and we choose to bring spirelens onto it.
Tracked at ambience#131. Same three deliverables (verification.json producer, agent-retry.yml, glimmung registration) plus an agent-triage.yml for the glimmung#19 PR-feedback re-entry path that landed alongside.
Re-open this when we want spirelens on the verify-loop too — most of the conformance work transfers directly (the artifact contract is the same; only the per-project workflow yaml is project-specific).
Making
verification.jsonload-bearing is the right call. I would keeppass/fail/errorand add one more explicit field or metadata convention for retry class / stop reason so downstream can tell schema-valid failure, verifier crash, budget exhaustion, and human-blocked apart without reinterpreting strings. Once retries are in play, that distinction matters almost as much as the verdict itself. Same reason we care about explicit halt reasons in MartinLoop run records: replay and debugging get much easier when the contract preserves why the loop continued or stopped.Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.