Skip to content

fix(deps): update dependency voku/agent-loop to ^0.21.0 - #170

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/voku-agent-loop-0.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/voku-agent-loop-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
voku/agent-loop ^0.20.52 → ^0.21.0 age confidence

Release Notes

voku/agent-loop

v0.21.6

Compare Source

Dependencies
  • Require voku/agent-learning ^0.23.4 (was ^0.22.0 || ^0.23.0; locked 0.23.4, was 0.23.0). Dream (WorkflowDreamService, WorkflowDreamAutoRun) no longer offers an already approved and applied guidance decision for review again: approved/, applied/ and retired/ proposals now suppress a review decision with the same decision_key, so an applied promotion stops reappearing as "Review decisions: 1" on every Dream run. New evidence or a new recurrence changes the key and is still offered (voku/agent-learning#226). The floor also picks up 0.23.1–0.23.3: agent-learning-note publish no longer writes an invalid note (voku/agent-learning#213), Dream reports stale guidance scope paths (voku/agent-learning#217), and a lineage rebuild writes .derived/.gitignore (#​1142).

v0.21.5

Compare Source

Added
  • Every choice a decision card can offer is declared in WorkflowDecisionCardFactory::CHOICE_IDS, per card, and building a card refuses a choice its card does not declare. WorkflowHumanDecisionService closes the remaining decision-card gaps of #​1362, so an embedding host such as agent-ui needs no CLI for them:

    • acceptRiskAndClose() records a named human's accepted risk and closes the governed Run. It runs WorkflowCloseCommand::close(), the non-printing close flow workflow close now renders, so it refuses what workflow close --accept-risk refuses, with the same message: a non-waivable failure such as a stale Contract binding, or an implementation changed since its evidence. A blank reason or actor is refused, and a Run that is already closed returns its existing receipt, as the CLI answers already_closed;
    • acknowledgeReview() accepts an optional recordedBy, as finish --recorded-by does;
    • recordLearning() accepts existing Finding ids (findingIds, as finish --finding) and a null reason, as --learning-reason is optional.

    New parameters are optional and last, so existing callers are unchanged, and workflow close text and JSON output is unchanged (#​1355).

Changed
  • FocusedTestCoverageClaims::MAX_CLAIMS is now agent-recall-compiler's public ReviewCoverageClaim::MAX_PER_REVIEW (256), not a copy of its @internal list limit, so stored claims cannot exceed what review preparation accepts if the owner changes it. Loop requires voku/agent-recall-compiler ^0.29.18 (#​1383).
Fixed
  • The shipped Claude Code hook commands resolve their scripts through ${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)} instead of $(git rev-parse --show-toplevel) alone. Claude Code runs hooks in the session's current shell directory; after the agent changed into another Git repository (for example an additional working directory), git rev-parse named that repository and every Bash call failed with PreToolUse:Bash hook failed … Could not open input file: <other repository>/.claude/hooks/pre_tool_use_policy.php. CLAUDE_PROJECT_DIR always names the session project; the git rev-parse fallback keeps the #​584 behaviour when it is unset. init validate and init sync-hooks accept the new form for the Claude bundle only, since Codex sets no such variable. Run init sync-hooks --agent=claude to rewrite an installed .claude/settings.json.
  • init sync-hooks, init sync-tools and init validate load the canonical .agent-loop/init.json when --config is not given, like install-assets, sync-skills, sync-subagents, doctor and status already do. Before, they silently used the defaults, so a project's paths.claude_hooks_root, paths.codex_hooks_root or paths.tools_root was ignored unless --config=.agent-loop/init.json was passed.
  • A hand-edited contract.json coverage claim whose criterion_sha256 names no acceptance criterion is now reported with that digest escaped through InitConfigLoader::untrustedValue(), like the claim path in the same messages. Before, the raw value went into the decode error, so a control character or newline in it could forge an output line (#​1383).
  • The governed stage prompt lists each Contract validation command on its own line under "Required validation (the verify stage runs each command separately):". It used to join them on one line with |, which reviewers read as a shell pipeline whose exit status only the last command decides, although the verify stage runs and records every command separately. A Contract without validation renders Required validation: none. WorkflowPipelineCommandTest::testStagePromptListsEachRequiredValidationCommandOnItsOwnLine pins the format.
  • The Composer walkthrough in docs/quick-start.md now says that the returned bare agent-loop … commands run as vendor/bin/agent-loop … in a Composer project, that finish accepts a review report with report_status=warn like an ok one (only fail blocks), and that finish can record a validated Finding itself through --finding-observation, --finding-hypothesis, --finding-conclusion, --finding-confidence and --finding-sensitivity, a path the observed run did not use (#​1343).
  • docs/workflow/humans.md and docs/workflow/lifecycle.md now say that a done Session, like a dropped one, means a replacement Run; that, while the Run keeps its Session, workflow plan also falls back to an ordinary candidate when a human resolution of the pending Attention is recorded but not applied; and that a kept-plan refusal under the Contract mutation lock can follow the rehydration of a pruned Session. humans.md also says that workflow plan names the reason when the current Run refuses the carry. The GovernedRunStore::continuesCarriedRun() docblock no longer claims that it checks the Session, and the carriedContinuation() and assertKeptPlanMayContinue() docblocks name a done Session too The 0.21.4 entry for #​1263 item 10 still says only a dropped Session means a replacement Run and names only the Learning decision as the plan-time fallback; these docs are the corrected statement (#​1358, #​1375).
  • Recovery of a completed pipeline no longer admits files below a focused-test path that workflow plan --add-scope carried into the scope. Before, when such a path (for example tests/FooTest.php) was absent from the previous candidate tree and a directory in the new one, recovery treated it like an approved new directory and accepted tests/FooTest.php/extra.php. A carried focused-test entry now admits only that exact file, and a path below it is refused with CANDIDATE_SCOPE_MISMATCH. Human-approved directory entries keep the #​1165 new-directory fallback (#​1359).
  • A run.json whose carried_revisions entries do not continue one approval and one Contract source no longer loads. Before, consecutive entries were compared only by the approval's revision and the Contract revision, so entries that named a different approved_by, approved_at or recorded_by, or an entry whose from_contract_source was not the previous entry's to_contract_source, still read as one carried approval. Both cases are now refused as invalid carried_revisions (#​1359).
  • A carried Run whose enter was interrupted after run.json recorded the continuation, but before the Run-directory Contract snapshot and the fast-path scope baseline were refreshed, can now continue under a further carried revision. Before, the next continuation archived the stale revision's contract.json and recall-input.json under the revision the Run left, every later enter refused with "does not match the approved Contract source", and the fast path reported unchanged out-of-scope files as violations. Now an artifact is archived only when it belongs to the revision the Run leaves, enter accepts a stored snapshot of any revision the Run continued from when the chain of carried_revisions sources is unbroken and that revision's archive holds the same bytes, and a fast-path baseline of any revision the Run continued from is re-bound. Any other snapshot is still refused, and a baseline of a revision outside the chain stays unusable (#​1359).
  • Preparing an execution plan no longer races a carried-Run continuation. Before, a plan was written without the Contract mutation lock, so a caller that had read revision N could write a plan bound to N after enter continued the Run to N+1, and every later retry failed because the plan was not bound to the Run. workflow plan also dropped the Session of a Run that enter had already continued to the carried revision, so every later enter refused the Run. An existing plan bound to the Run is still returned without the lock; otherwise plan preparation takes the Contract mutation lock, reads the Contract, the Run and the plan again, and refuses with "run the command again" when the Contract or the Run changed. The Contract mutation lock is now re-entrant within one process, so a plan can be prepared while the same process already holds it; exclusion between processes is unchanged. workflow plan keeps the Session when the Run in it will continue to, or has already continued to, the carried revision (#​1359).
  • When workflow plan --supersede --add-scope writes a candidate because the focused-test carry is refused, it now warns that the coverage claims of the current revision are not on the new revision (the <n> coverage claim(s) of revision <r> are not on the new revision: …). Before, a carried revision's claims disappeared without a word. A plain workflow plan --supersede without --add-scope, which also writes a revision without the carried approval, gives the same warning. The warning for claims passed in the same call is unchanged (#​1383).
  • The governed agent-loop review blindspots and review code read the task's Contract once. Before, review blindspots read it once for the --contract-revision binding and again for the coverage claims, so a carry written in between could pair revision N+1 claims with a revision N report. An unreadable or undecodable contract.json now ends both commands with [FAIL] review <command>: <reason> on STDERR and exit 1, instead of an uncaught exception, and so does an implementation snapshot that review blindspots cannot capture for an approved Contract (for example a symlinked scope) (#​1383).
Tests
  • FocusedTestCoverageClaimTest::testTheBlindSpotReviewStagePromptListsTheClaims pins the coverage claims in the blindspot-review stage prompt. Before, only the correctness-review stage was pinned, though both use the same branch. The two stage tests now share one setup helper (#​1383).
  • tests/Ci/SupportedReleaseSetDocTest checks the dev-main constraint block in docs/architecture/supported-release-set.md against composer.json: every voku/agent-* requirement and the branch alias. A missing, extra or changed owner fails composer ci, and so does a missing or unreadable block; the historical exercised-release tables are not checked. It immediately found voku/agent-recall-compiler declared ^0.29.11 while composer.json requires ^0.29.17, now corrected. Renovate's within-range bumps only update composer.lock and are unaffected. A Renovate range bump (fix(deps), which edits composer.json) already needs maintainer commits for the workflow pins that ReleasePinConsistencyTest checks, as #​958 did. It now also needs this doc line updated in the same PR (#​1368).
  • UnreadableSessionRecoveryTest::testTheCloseVerifyGateThroughTheCliNamesTheRepairInJsonAndText covers the close verify gate through the real CLI entry point (bin/agent-loop finish -> HostFrontDoorApplication); the existing test drives it in-process and in JSON only. With another task's Session unreadable, JSON names the Session repair, the plain finish rerun, and the session.unreadable and verification.verify blockers. Text names the repair once and does not suggest agent-loop verify. A plain CLI rerun closes the Run after the metadata is repaired. No production code changed (#​1368).
  • CarriedRunContinuationTest pins the kept-plan refusals for an execution plan not bound to the Run and for a recorded but unapplied Attention resolution (at enter, and as the plan-time fallback to a candidate), and proves that neither stops the replacement of a Run whose Session was dropped (#​1358).
  • WorkflowDecisionCardServiceMapTest classifies every choice id in WorkflowDecisionCardFactory::CHOICE_IDS: the WorkflowHumanDecisionService method that records it, the owner-store method (TaskContractStore::revise() for replan and supersede), a choice that records nothing, or another owner's command. No choice is a CLI-only gap any more, and the test fails on one. It checks by reflection that each mapped method takes every parameter the hand-maintained OPTIONS map names for its CLI options, with the options the CLI lets a caller omit optional or nullable, requires every option a rendered command shows to be in OPTIONS, renders a card for every factory branch, and scans the factory source so each literal choice is declared for its card. A new choice fails the test until it is classified, so it cannot ship CLI-only unnoticed (#​1355).

v0.21.4

Compare Source

Added
  • A focused-test addition can name the acceptance criterion it claims to cover (#​1263). workflow plan <task> --supersede --add-scope <test> --add-scope-covers <test>=<n> (a 1-based criterion number, or sha256:<digest> of the criterion text) records the claim on the carried revision as scope_extension.coverage_claims (path, criterion_sha256); chained carries keep earlier claims, and the Contract decoder refuses a claim whose path is not a carried focused test, whose digest matches no acceptance criterion, or that repeats. workflow plan refuses such a claim, a malformed one, a claim on a criterion or test path the review prompt cannot quote (including a criterion over 1024 bytes, or with a control character or any whitespace other than a plain space), and more than 256 claims in total (the most one review accepts) without writing a revision; when the addition does not carry an approval (for example a file no focused-test glob admits), it writes the ordinary candidate, records no claims and warns. WorkflowReviewPreparer and the governed agent-loop review blindspots and review code (through agent-recall-compiler 0.29.17's ReviewCli::withCoverageClaims()) pass the claims to agent-recall-compiler as ReviewCoverageClaim, so the blind-spot and code review prompts list them under "Focused-test coverage claims (unverified)" whichever command writes them, and every review stage prompt of the execution plan (the correctness and blind-spot reviews of the standard profile, which a carry requires) lists each claim as quoted JSON data with the instruction to verify it and report criteria without a claim. Claims are unverified assertions, never evidence or approval; without claims every prompt is unchanged. Loop requires voku/agent-recall-compiler ^0.29.17.

  • finish can reuse a declared validation command after the reviewed candidate is committed, for commands a human declares Git-metadata-independent (#​1135). Until now, the #​1324 finish reuse depended on a validation_identity receipt that binds HEAD, the index entries, the refs and the local Git configuration, so committing the candidate made every command execute again. Without the declaration this stays as it is. .agent-loop/init.json may now declare validation.reuse.git_independent_commands, a list of exact command strings (matched after trimming). It is read only as committed at the Contract base commit, never from the working tree. For a listed command, the in-place pre-review pass also records a git-independent:<command> receipt. That receipt binds the command, whole tree, state-root files, dependency manifests, toolchain and local Git configuration, but not HEAD, the index or the refs. When the ordinary receipt misses, finish reuses a listed command only if:

    • that Git-independent receipt recomputes;
    • HEAD^{tree} is the reviewed candidate tree;
    • the index matches HEAD.

    The pass is recorded and reported like any other finish reuse, and its note names the declaration. These still make the command execute:

    • an unlisted command;
    • a list only in the working tree;
    • an invalid list;
    • changed local Git configuration;
    • a HEAD tree or index that differs from the candidate;
    • every existing #​1324 fallback.

    verify keeps the strict Git binding for every command and never uses a git-independent: receipt. An invalid validation.reuse never becomes a blocking configuration warning. Accepted risk: a wrong declaration lets finish reuse a command that does read Git metadata after a commit changed what it reads, for example a file enumeration based on git ls-files, a commit-message or git log -1 lint, or a changelog check against a tag (docs/execution-runner-boundary.md).

Fixed
  • In text mode, finish --finding whose preparing finish fails on an unreadable Session (for example another task's Session, before the Run exists) no longer prints the [FAIL] finish line and the Session repair twice. The preparing finish wrote them to STDERR, which the adapter could not capture, and the adapter's own refusal then reported the same failure again. HostFrontDoorCommand::run() takes a new optional failure handler. When one is given, text mode passes an unreadable-Session failure to it instead of printing it, and returns 1. The Finding-ID adapter passes one for its preparing finish and reports a failure it receives through its own refusal, once, with the full rerun. That also covers the case where its following manifest projection would succeed. If the preparing finish fails for another reason, such as an unknown option, it still reports that error itself, and the Session repair follows as before. JSON output and every caller that passes no handler are unchanged (#​1368).
  • UnreadableSessionRecovery::unreadableSessions() now uses agent-session's UnreadableSessionEntry::toArray() instead of rebuilding the same four keys, so the JSON follows the owner's shape. The dev-main constraint block in docs/architecture/supported-release-set.md now matches composer.json (it still showed the 0.21.0-era constraints, such as voku/agent-session ^0.7.1); the historical release evidence is unchanged. testQuickDoesNotNameARerunOfItself now also pins the quick.failed code and the text-mode output through the real CLI (#​1368).
  • githooks trust now refuses a --config without a value. Before, a bare --config, an empty --config= or --config "" (an unset shell variable) or --config followed by another option silently fell back to .agent-loop/githooks.json and trusted it, a file the caller did not name. The refusal names --config and records nothing; githooks trust without --config still trusts the default file. An empty space-separated --expect-sha256 "" now gets the same "needs the reviewed digest" refusal as --expect-sha256=. githooks help now lists what trust refuses (#​1378).
Changed
  • New TaskContract::isRetirableRejection() (rejected, not a change request, not retired) is the one rule behind the projected retire_rejected_contract action and the Contract-rejection card's contract_retirable subject, with no behaviour change. A test checks for every Contract state that the projection offers retire exactly when retireRejectedContract() accepts it, and docs/workflow/humans.md now names the service method and the projected action for embedding hosts (#​1362).
Fixed
  • githooks trust now refuses an argument it does not know. Before, a misspelled option such as --expected-sha256=<hex> was ignored and trust was recorded without the digest check, and --expect-sha256= --expect-sha256=<hex> was accepted because the empty value was dropped before the once-only count. Now any unknown option or positional argument, and any second --expect-sha256, is refused and records nothing. The suggested re-trust command in a refusal shell-quotes a --config path that needs it. When no commit can be named, the refusal says Git did not attribute the current bytes to a commit, which is also true when Git could not answer. A second --config is refused too, instead of the first one silently winning. The docs show git show <commit>:<path> for the whole committed file instead of the commit's diff (#​1372).
  • A hook-config trust refusal now names the digests. Before, Hook configuration changed since it was trusted named only the path, so re-trusting needed a separate manual check of which bytes changed and where they came from. Now the refusal names the trusted and current sha256 and, when the file has exactly the bytes of its HEAD blob, the last commit that changed it (otherwise it says Git did not attribute the current bytes to a commit); a not-yet-trusted refusal names the current sha256. githooks trust --expect-sha256=<hex> records trust only when the file has exactly those bytes; a mismatch, a malformed digest or a bare or empty option is refused and records nothing, and the refusal names the current digest. Trust still binds to bytes, never to a commit (#​1354).
Changed
  • A command that fails because agent-session cannot read Session metadata now names the repair (#​1263). Loop requires voku/agent-session ^0.7.4, whose UnreadableSessionMetadata lists every unreadable Session. Before, workflow plan --add-scope with an unreadable session.json failed with next_action_kind: host_work and no next_action, and enter with another task's unreadable Session failed while next_action named agent-loop pipeline status, which neither repairs nor advances. workflow plan, enter and finish now report next_action_kind: host_work with a next_action that names each unreadable metadata file (session.unreadable) and the exact command to rerun, and JSON output adds unreadable_sessions (id, path, metadata_path, reason); enter reports the error as session.unreadable owned by agent-session, and workflow plan adds error_code: session.unreadable. finish, including finish --finding, no longer reports such a failure during closeout as finish.closeout_failed with the manifest's next command, a close blocked by the verify gate because Session metadata is unreadable (another task's Session too) names the repair and a plain agent-loop finish <task> rerun instead of agent-loop verify, which only failed again, and text-mode enter with interaction.decision_presentation: html no longer crashes with an uncaught UnreadableSessionMetadata while it probes the HTML presentation. Text output prints the files and the rerun. Loop never repairs or deletes Session files. quick, which has already created and approved its Contract when it fails this way, keeps reporting the failure without a rerun of itself. Commands that do not fail this way are unchanged.
  • WorkflowHumanDecisionService::availableActions() now projects the new WorkflowHumanDecisionProjection::RETIRE_REJECTED_CONTRACT (retire_rejected_contract) while the current Contract revision is rejected, not returned with a change request, and not yet retired. Before, a rejected revision projected no action, so an embedding host could not offer retireRejectedContract() from the typed projection (#​1362). TaskContractStore::retireRejected() still decides, and no other projected action changes.
  • workflow retire --revision now retires the rejected Contract revision through the new WorkflowHumanDecisionService::retireRejectedContract(), so an embedding host such as agent-ui can retire it without bypassing the service (#​1362). The method keeps TaskContractStore::retireRejected() guards and messages, retires an open Run with it and projects the Run manifest again, as the CLI did. The CLI output and the Run-only workflow retire path are unchanged, and WorkflowDecisionCardServiceMapTest now classifies the retire choice as service-backed.
  • workflow approve now records the approval through WorkflowHumanDecisionService::approveContract() instead of calling TaskContractStore::approve() directly, so the CLI and an embedding host share one approval path (#​1362). approveContract() gains an optional $recordedBy. It now answers a repeated approval of an already-approved revision as the CLI did: it returns the recorded approval unchanged and still refuses a stale revision or HEAD and a different recorder. Approving a revision that is not a candidate (for example a rejected one) fails with "Contract approval is not a currently available human action: revision N is , not awaiting approval."
  • A Contract revision that only carries the human approval of an open Run (a focused-test --add-scope extension) now continues that Run instead of replacing it (#​1263 item 10). workflow plan keeps the Run's Session open, and enter reports "run_transition": "continued" (text: "Governed Run … continues under revision N; approval carried from revision M (by … at …); no new human approval was recorded"). The Run keeps its id, Session and execution plan digest; the execution state keeps its stage, attempt and history, so a completed pipeline whose candidate changed a test file outside the scope can be recovered with pipeline recover once that file is carried in. run.json advances to the carried revision and gains two optional keys under schema 1.0: execution_anchor, the revision and source the plan, state, StageResults and Attention resolutions stay bound to, and carried_revisions, one entry per continuation with the carried-from approval (revision, approved_by, approved_at, recorded_by), scope_added, patterns, added_by, session_id, continued_at and new_human_approval: false. Legacy run.json files load unchanged. ExecutionPlan::isBoundToRun() replaces the revision comparisons at the execution, recovery, manifest and close-readiness sites; stage bundles carry the plan's revision with the carried revision's scope, and ExecutionBinding gains currentContractRevision. The manifest adds references.run_continuation, the Run directory keeps the left revision's Contract snapshot and Recall input under carried/rev-NNN/, and a fast-path scope baseline is re-bound rather than captured again. Continuation holds the Contract mutation lock. The implementation snapshot, finish validation and review acknowledgement are bound to the revision and snapshot, so they are gathered again for the grown scope. enter refuses the carried revision, before it allocates a Session and leaving run.json byte-identical, when the Run was retired or closed, its approval tuple or carried-from revision is not the Run's human-approved revision, its intent differs, it adds a path no focused-test glob committed at the base commit admits, an intermediate revision is not carried from the same approval, or the Run recorded its Learning decision (workflow plan then writes an ordinary candidate that needs a human approval). While the Run keeps its Session, it also refuses when the kept execution plan no longer fits: the plan is not bound to the Run, an execution profile other than the plan's is selected for the carried revision, or a human resolution of its pending Attention is recorded but not applied. An Attention card reviewed before the carry is refused with ATTENTION_RESOLUTION_STALE once the scope grew, and a re-bound fast-path baseline drops the paths the carry added to the scope. A revision with its own approval, one carrying a newer human approval than the Run's, and a Run whose Session was dropped are still replaced, with a new plan, so the kept-plan refusals never stop them; the replacement's supersession.json now records approval_carried_from_revision when the replacement only carries an approval.
  • Every Contract approval card now names the Contract's base commit, the commit its exported validation starts from. The card subject (and human_decision.subject) carries a top-level base_commit next to head_commit, and the text card prints one line after the goal: Base commit: <base> when it equals HEAD, Base commit: <base> (HEAD is <head>; exported validation starts from the base commit) when it differs, and Base commit: none recorded for a Contract without one (German: Basis-Commit: …). Before, a revision that workflow plan --supersede let inherit an older base showed no base at all, because #​1279 names the base only when a revision moves it; NG-8673324850309425197 r2 was approved that way and its exported validation then ran against pre-fix code. The line reports a fact and changes nothing about approval or how the base is chosen (#​1142).
  • The Published consumer onboarding CI job now takes one synthetic task through the whole docs/quick-start.md path on the released 0.21.3, instead of stopping after workflow plan on 0.20.106. It runs tools/published-consumer-onboarding.sh, which can also be run locally. The script covers init scaffold --prefix --agent=claude, init host-status, setup sync-policy, board card create, workflow plan, an approval by a synthetic fixture actor, every stage of the standard pipeline, and the finish rounds through to workflow status complete. It asserts each step's exit code and next_action_kind, never the exact next_action wording. Every command's output and exit code go into the uploaded evidence artifact. The approval, reviewer context ids, review observations and Learning follow-up reference are synthetic test values named as such. The job timeout is now 30 minutes (#​1343).
Fixed
  • One Run manifest projection now shares one read of the Learning decision across its own checks, as the #​1340 entry says: the closed-Run check (ClosedRunRecord::forRun()) and the completed-candidate drift check (WorkflowCloseReadinessInspector::pendingRecoveredExecutionFailure()) take the projection's reader too. Before, a Run whose verification receipt still bound but whose Learning decision no longer did had its decision read again by the Learning reference, and a completed pipeline read it once more for the drift check. Both methods keep reading the decision themselves when no reader is passed. One method still reads the decision outside the shared reader: when a drift check compares a pipeline's reviewed candidate with the workspace, ExecutionGateway::observeCandidateDrift() reads it itself, through ClosedRunRecord::find() and again through its own RunLearningDecisionStore::find(), so a decision that changes or becomes unreadable during the projection can reach references.verification differently from references.learning (#​1350).
  • docs/execution-runner-boundary.md now states the validation repair cap in its stage section. Before, that section said a failed pre-review validation always returns to its mutation stage; only the Attention section named the every-third-failure validation_conflict exception. It now also states that the human response reaches every later prompt of the mutation stage until that validation passes, never crosses into another Run or Contract revision, and that the bounded command output is untrusted evidence. The retention itself shipped in #​1175; new regression tests cover a clarification followed by an ordinary validation failure, repeated clarifications, ordinary failures without another Attention, the hardening repair, consumption on pass, and rejection (ATTENTION_RESOLUTION_STALE) of a routed response bound to another Run or Contract revision (#​1167).
  • docs/execution-runner-boundary.md said that no execution profile selection means manual; ExecutionProfileSelectionStore::resolve() returns standard (#​1263).
Tests
  • FocusedTestCoverageClaimTest covers recording a claim by number and digest, a chained carry, the unchanged extension without claims, every refusal without a written revision including the 256-claim limit, the warning without a carry, a hand-edited claim that fails to decode, the blind-spot review prompt with and without claims, the governed review blindspots and review code commands and finish's reuse of their report, and the correctness-review stage prompt (#​1263).
  • UnreadableSessionRecoveryTest covers workflow plan, enter (with and without a Run), the finish closeout and finish --finding failing on an unreadable Session of the task or of another task, the text output, text-mode enter with HTML decision presentation, shell quoting of the rerun command, the close verify gate, that quick names no rerun of itself, and that a healthy enter and a finish before the close with another task's unreadable Session are unchanged (#​1263).
  • Projector-level tests pin the single Learning decision read (#​1350). A test fails when the projection's reader stops memoizing or stops reaching close readiness, the closed-Run check or the completed-candidate drift check. RunManifestProjector takes an optional Learning decision finder for this.
  • WorkflowDecisionCardServiceMapTest classifies every choice id WorkflowDecisionCardFactory can project: the WorkflowHumanDecisionService method that records it, a choice that records nothing, another owner's command, or a named CLI-only gap (accept_risk, replan, retire, supersede). A new choice fails the test until it is classified, so it cannot ship CLI-only unnoticed (#​1355).
  • CarriedRunContinuationTest covers the continuation, the gateway bundle and recovery under the plan revision, invalidation, chained carries, the Session cases, crash retries, the refusals with run.json byte-identical and no new Session, newer human approvals, the Learning decision, a stale Attention card, a dropped Session replacing the Run despite a selected profile, and a re-bound fast-path baseline that drops the carried paths. FocusedTestScopeExtensionTest now expects a carried revision to continue an open Run, and a dropped Session to replace it (#​1263).

v0.21.3

Compare Source

Changed
  • A Run that finish closed is now frozen: a later edit in the owner checkout leaves workflow status complete with next action none, and pipeline status and pipeline run report complete with next action none instead of naming pipeline recover or a supersede route. enter on a closed Run no longer reopens its Session or starts a superseding receipt, and workflow close on it answers already_closed with exit 0 without inspecting the workspace again. The Run manifest's new references.closure names the closed Run and, as amendment_action, the amendment route: a new Contract revision with workflow plan <task> ... --supersede, approved like any other, which gets a new Run. The freeze compares persisted records only (ClosedRunRecord) and does not apply when the Contract revision or digest changed after close, a newer Run exists, the Run was retired, its Session is no longer done, or the receipt or Learning decision does not bind to the Run id, revision, Contract digest and implementation snapshot; those Runs keep today's checks (#​1237).
  • Validation guidance (#​1208 slice B) compares commands without their leading NAME=value environment assignments, so COMPOSER_ALLOW_SUPERUSER=1 composer ci satisfies a declared composer ci. agent-loop's own .agent-loop/init.json now declares contract.validation (prepare: composer install --no-interaction --no-progress or plain composer install, checks: composer ci), so its Contracts get the exit-127 and omitted-check warnings. The GH-1252 Run hit exactly that case before the warning existed (#​1330).
  • The changelog entry for the init sync-policy unreadable-config fix in 0.21.2 understated its reach. InitConfigLoader rejecting a top-level JSON list such as [] affects everything that fails closed on a config warning, not only init sync-policy. ProjectLayout::recallDocumentManifests() throws on it, which stops governed Run preparation (WorkflowRunPreparer) until the file is fixed, as a JSON syntax error already did. A property name PHP cannot decode into an object (such as one starting with a NUL byte) is now rejected as a whole too; before, the file was half-read without a warning. No code changed after 0.21.2.
  • docs/quick-start.md now takes one task from composer require to a complete governed Run using only vendor/bin/agent-loop. It covers setup, board card create, workflow plan, the one human approval, the pipeline stage/submit/run loop and the finish rounds. Before, the Composer section stopped after workflow plan and left every later step to the ./docker/agent-loop examples. The walkthrough is one observed run, EMAIL-1 in a clean voku/email-check checkout on 0.20.112, with its exit codes; next_action stays the authority (#​1156).
Fixed
  • A Learning Finding that finish records no longer calls a validation pass that finish reused from the pipeline observed. Its test_result evidence said "Observed passed with exit code 0 for implementation …" for every Session validation. For a pass recorded by agent-loop.finish.reused it now reads "Reused, not executed: recorded passed with exit code 0 for implementation … by agent-loop.finish.reused." followed by the reuse note that names the pipeline stage, attempt and execution-evidence reference. An executed pass keeps the old wording, and the agent-learning evidence shape is unchanged (#​1135).
  • A VERIFY card without a Contract (#​1156) can now be kept as completed work, as the maintainer decided for #​1325. The decision card offers two choices with their exact commands: keep_completed runs agent-loop board card archive <id> --disposition=completed, and reopen runs agent-loop board card move <id> --to=DOING, followed by workflow plan and its own approval. A card archived with the completed disposition (agent-kanban 0.4.10+) reads as archived_completed with next_action: none; no Contract, Run, validation or receipt is created. Restoring the card brings the question back. An archive with dropped, without a disposition, or with an unreadable disposition is never read as completed. enter now reports the same blockers as finish, so both build the same card. Loop requires voku/agent-kanban ^0.4.11 (0.4.11 makes --disposition usable from the CLI).
  • The human decision for a VERIFY card without a Contract (#​1156) no longer depends on code sort order: enter, finish and the manifest pick it wherever it appears among the blocking disagreements, and its action now names the other blockers it outranks (for example Also blocked by: session.multiple_active.) instead of hiding them. A new test pins that an ephemeral session on such a card gets the same decision, not a session close (#​1325 items 3 and 4).
  • A Learning decision bound to an older implementation (a stale Learning binding) stays stale evidence in the integrity gate, in the same position, and now gets the same aligned next step as a standing: decision: once the current review report is acknowledged (ok/warn), references.verification.action and action_invocation name the policy's finish --learning template; before that they keep workflow status. Other integrity entries keep workflow status. WorkflowCloseReadiness::firstFailureIsStaleLearningBinding() identifies the case without matching the reason text. workflow close --format=json for a first-failing learning_authority gate now names agent-loop workflow status <task> --format=json (kind command) instead of none, and its message no longer tells the actor to run finish --learning before the review is acknowledged. The projection reads the blind-spot report once for both the review reference and this guard, and close readiness reads the Learning decision once (#​1252).
  • workflow close for a Run whose first non-waivable failure is a stale Learning binding now names agent-loop workflow status <task> --format=json (kind command) and says that a named actor must record the Learning decision again, instead of next_action: none (kind host_work) and the generic stale-evidence message; other stale integrity evidence keeps the generic result. WorkflowCloseReadiness identifies the stale binding by its recorded position (staleLearningBindingPosition, read through staleLearningBinding()), so another integrity entry with the same text is never taken for it, and one Run manifest projection reads the Learning decision once: close readiness (WorkflowCloseReadinessInspector::inspect() takes an optional reader) and the Learning reference share one read, and an unreadable decision is still reported by both (#​1340).
Tests
  • Close-readiness tests pin the stale-binding alignment: acknowledged and unacknowledged review, the observed template variant (<findings_recorded|follow_up_required>) at the verification reference, a stale-validation integrity entry ahead of the binding that keeps workflow status, and the workflow close --format=json output for learning_authority. Ten deliberate mutations of the projector guard, the typed readiness check, the inspector and workflow close are each caught (#​1252).
  • Close-readiness tests pin the #​1340 follow-ups: workflow close JSON and text output for a first-failing stale Learning binding and the generic result when other stale integrity evidence comes first, a legacy Learning decision without an evidence boundary whose verification action matches the policy's finish --learning template once the review is acknowledged, position-based identification of the stale binding next to an identical integrity entry and behind a failed validation, close readiness using the caller's decision reader exactly once, and an unreadable decision reported by both the verification and the Learning reference (#​1340).

v0.21.2

Compare Source

Added
  • The completion-protocol template of a review stage (role capability review or architecture-review, the same predicate ExecutionStageResultAuthority uses to accept observations) now shows an observations list, and the review instruction names it next to --observation (#​1120). A marker-driven reviewer, as under agent-loop-runner, therefore gets one instruction for recording non-blocking findings so that finish can route them to Learning. Before, the instruction named only --observation on pipeline submit while the marker template had no place for them. Other stages keep the four-field template. A Runner-driven review needs agent-loop-runner 0.1.14 or later; earlier Runner versions refuse the extra key.
  • CONTRIBUTING.md describes issue-first contributions. You agree on the intent in an issue. A Contract is then published back to that issue, and a named human approves it through workflow approve; an issue comment, label or reaction is not approval. The pull request links the evidence. The section also says which .agent-loop/ evidence is durable and when

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


This change is Reviewable

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8455ad03-31d5-4b2e-a6bb-e9e3553d18dd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mergify

mergify Bot commented Nov 29, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@renovate
renovate Bot force-pushed the renovate/voku-agent-loop-0.x branch 2 times, most recently from 091034e to 3ddd032 Compare November 30, 2026 03:08
@renovate
renovate Bot force-pushed the renovate/voku-agent-loop-0.x branch from 3ddd032 to 21e9081 Compare November 30, 2026 14:57
@sonarqubecloud

Copy link
Copy Markdown

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.

0 participants