Repository navigation
fix(deps): update dependency voku/agent-loop to ^0.21.0 - #170
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Tick the box to add this pull request to the merge queue (same as
|
renovate
Bot
force-pushed
the
renovate/voku-agent-loop-0.x
branch
2 times, most recently
from
November 30, 2026 03:08
091034e to
3ddd032
Compare
renovate
Bot
force-pushed
the
renovate/voku-agent-loop-0.x
branch
from
November 30, 2026 14:57
3ddd032 to
21e9081
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
^0.20.52→^0.21.0Release Notes
voku/agent-loop
v0.21.6Compare Source
Dependencies
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/andretired/proposals now suppress a review decision with the samedecision_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 publishno 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.5Compare 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.WorkflowHumanDecisionServicecloses 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 runsWorkflowCloseCommand::close(), the non-printing close flowworkflow closenow renders, so it refuses whatworkflow close --accept-riskrefuses, 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 answersalready_closed;acknowledgeReview()accepts an optionalrecordedBy, asfinish --recorded-bydoes;recordLearning()accepts existing Finding ids (findingIds, asfinish --finding) and a null reason, as--learning-reasonis optional.New parameters are optional and last, so existing callers are unchanged, and
workflow closetext and JSON output is unchanged (#1355).Changed
FocusedTestCoverageClaims::MAX_CLAIMSis now agent-recall-compiler's publicReviewCoverageClaim::MAX_PER_REVIEW(256), not a copy of its@internallist limit, so stored claims cannot exceed what review preparation accepts if the owner changes it. Loop requiresvoku/agent-recall-compiler^0.29.18(#1383).Fixed
${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-parsenamed that repository and every Bash call failed withPreToolUse:Bash hook failed … Could not open input file: <other repository>/.claude/hooks/pre_tool_use_policy.php.CLAUDE_PROJECT_DIRalways names the session project; thegit rev-parsefallback keeps the #584 behaviour when it is unset.init validateandinit sync-hooksaccept the new form for the Claude bundle only, since Codex sets no such variable. Runinit sync-hooks --agent=claudeto rewrite an installed.claude/settings.json.init sync-hooks,init sync-toolsandinit validateload the canonical.agent-loop/init.jsonwhen--configis not given, likeinstall-assets,sync-skills,sync-subagents,doctorandstatusalready do. Before, they silently used the defaults, so a project'spaths.claude_hooks_root,paths.codex_hooks_rootorpaths.tools_rootwas ignored unless--config=.agent-loop/init.jsonwas passed.contract.jsoncoverage claim whosecriterion_sha256names no acceptance criterion is now reported with that digest escaped throughInitConfigLoader::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).|, 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 rendersRequired validation: none.WorkflowPipelineCommandTest::testStagePromptListsEachRequiredValidationCommandOnItsOwnLinepins the format.docs/quick-start.mdnow says that the returned bareagent-loop …commands run asvendor/bin/agent-loop …in a Composer project, thatfinishaccepts a review report withreport_status=warnlike anokone (onlyfailblocks), and thatfinishcan record a validated Finding itself through--finding-observation,--finding-hypothesis,--finding-conclusion,--finding-confidenceand--finding-sensitivity, a path the observed run did not use (#1343).docs/workflow/humans.mdanddocs/workflow/lifecycle.mdnow say that a done Session, like a dropped one, means a replacement Run; that, while the Run keeps its Session,workflow planalso 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.mdalso says thatworkflow plannames the reason when the current Run refuses the carry. TheGovernedRunStore::continuesCarriedRun()docblock no longer claims that it checks the Session, and thecarriedContinuation()andassertKeptPlanMayContinue()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).workflow plan --add-scopecarried into the scope. Before, when such a path (for exampletests/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 acceptedtests/FooTest.php/extra.php. A carried focused-test entry now admits only that exact file, and a path below it is refused withCANDIDATE_SCOPE_MISMATCH. Human-approved directory entries keep the #1165 new-directory fallback (#1359).run.jsonwhosecarried_revisionsentries 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 differentapproved_by,approved_atorrecorded_by, or an entry whosefrom_contract_sourcewas not the previous entry'sto_contract_source, still read as one carried approval. Both cases are now refused as invalidcarried_revisions(#1359).enterwas interrupted afterrun.jsonrecorded 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'scontract.jsonandrecall-input.jsonunder the revision the Run left, every laterenterrefused 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,enteraccepts a stored snapshot of any revision the Run continued from when the chain ofcarried_revisionssources 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).entercontinued the Run to N+1, and every later retry failed because the plan was not bound to the Run.workflow planalso dropped the Session of a Run thatenterhad already continued to the carried revision, so every laterenterrefused 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 plankeeps the Session when the Run in it will continue to, or has already continued to, the carried revision (#1359).workflow plan --supersede --add-scopewrites 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 plainworkflow plan --supersedewithout--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).agent-loop review blindspotsandreview coderead the task's Contract once. Before,review blindspotsread it once for the--contract-revisionbinding 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 undecodablecontract.jsonnow ends both commands with[FAIL] review <command>: <reason>on STDERR and exit 1, instead of an uncaught exception, and so does an implementation snapshot thatreview blindspotscannot capture for an approved Contract (for example a symlinked scope) (#1383).Tests
FocusedTestCoverageClaimTest::testTheBlindSpotReviewStagePromptListsTheClaimspins 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/SupportedReleaseSetDocTestchecks thedev-mainconstraint block indocs/architecture/supported-release-set.mdagainstcomposer.json: everyvoku/agent-*requirement and the branch alias. A missing, extra or changed owner failscomposer ci, and so does a missing or unreadable block; the historical exercised-release tables are not checked. It immediately foundvoku/agent-recall-compilerdeclared^0.29.11whilecomposer.jsonrequires^0.29.17, now corrected. Renovate's within-range bumps only updatecomposer.lockand are unaffected. A Renovate range bump (fix(deps), which editscomposer.json) already needs maintainer commits for the workflow pins thatReleasePinConsistencyTestchecks, as #958 did. It now also needs this doc line updated in the same PR (#1368).UnreadableSessionRecoveryTest::testTheCloseVerifyGateThroughTheCliNamesTheRepairInJsonAndTextcovers 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 plainfinishrerun, and thesession.unreadableandverification.verifyblockers. Text names the repair once and does not suggestagent-loop verify. A plain CLI rerun closes the Run after the metadata is repaired. No production code changed (#1368).CarriedRunContinuationTestpins the kept-plan refusals for an execution plan not bound to the Run and for a recorded but unapplied Attention resolution (atenter, and as the plan-time fallback to a candidate), and proves that neither stops the replacement of a Run whose Session was dropped (#1358).WorkflowDecisionCardServiceMapTestclassifies every choice id inWorkflowDecisionCardFactory::CHOICE_IDS: theWorkflowHumanDecisionServicemethod that records it, the owner-store method (TaskContractStore::revise()forreplanandsupersede), 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-maintainedOPTIONSmap 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 inOPTIONS, 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.4Compare 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, orsha256:<digest>of the criterion text) records the claim on the carried revision asscope_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 planrefuses 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.WorkflowReviewPreparerand the governedagent-loop review blindspotsandreview code(through agent-recall-compiler 0.29.17'sReviewCli::withCoverageClaims()) pass the claims to agent-recall-compiler asReviewCoverageClaim, 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 requiresvoku/agent-recall-compiler^0.29.17.finishcan reuse a declared validation command after the reviewed candidate is committed, for commands a human declares Git-metadata-independent (#1135). Until now, the #1324finishreuse depended on avalidation_identityreceipt 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.jsonmay now declarevalidation.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 agit-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,finishreuses a listed command only if:HEAD^{tree}is the reviewed candidate tree;The pass is recorded and reported like any other
finishreuse, and its note names the declaration. These still make the command execute:verifykeeps the strict Git binding for every command and never uses agit-independent:receipt. An invalidvalidation.reusenever becomes a blocking configuration warning. Accepted risk: a wrong declaration letsfinishreuse a command that does read Git metadata after a commit changed what it reads, for example a file enumeration based ongit ls-files, a commit-message orgit log -1lint, or a changelog check against a tag (docs/execution-runner-boundary.md).Fixed
finish --findingwhose preparing finish fails on an unreadable Session (for example another task's Session, before the Run exists) no longer prints the[FAIL] finishline 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'sUnreadableSessionEntry::toArray()instead of rebuilding the same four keys, so the JSON follows the owner's shape. Thedev-mainconstraint block indocs/architecture/supported-release-set.mdnow matchescomposer.json(it still showed the 0.21.0-era constraints, such asvoku/agent-session ^0.7.1); the historical release evidence is unchanged.testQuickDoesNotNameARerunOfItselfnow also pins thequick.failedcode and the text-mode output through the real CLI (#1368).githooks trustnow refuses a--configwithout a value. Before, a bare--config, an empty--config=or--config ""(an unset shell variable) or--configfollowed by another option silently fell back to.agent-loop/githooks.jsonand trusted it, a file the caller did not name. The refusal names--configand records nothing;githooks trustwithout--configstill trusts the default file. An empty space-separated--expect-sha256 ""now gets the same "needs the reviewed digest" refusal as--expect-sha256=.githooks helpnow lists whattrustrefuses (#1378).Changed
TaskContract::isRetirableRejection()(rejected, not a change request, not retired) is the one rule behind the projectedretire_rejected_contractaction and the Contract-rejection card'scontract_retirablesubject, with no behaviour change. A test checks for every Contract state that the projection offers retire exactly whenretireRejectedContract()accepts it, anddocs/workflow/humans.mdnow names the service method and the projected action for embedding hosts (#1362).Fixed
githooks trustnow 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--configpath 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--configis refused too, instead of the first one silently winning. The docs showgit show <commit>:<path>for the whole committed file instead of the commit's diff (#1372).Hook configuration changed since it was trustednamed 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
voku/agent-session^0.7.4, whoseUnreadableSessionMetadatalists every unreadable Session. Before,workflow plan --add-scopewith an unreadablesession.jsonfailed withnext_action_kind: host_workand nonext_action, andenterwith another task's unreadable Session failed whilenext_actionnamedagent-loop pipeline status, which neither repairs nor advances.workflow plan,enterandfinishnow reportnext_action_kind: host_workwith anext_actionthat names each unreadable metadata file (session.unreadable) and the exact command to rerun, and JSON output addsunreadable_sessions(id,path,metadata_path,reason);enterreports the error assession.unreadableowned byagent-session, andworkflow planaddserror_code: session.unreadable.finish, includingfinish --finding, no longer reports such a failure during closeout asfinish.closeout_failedwith 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 plainagent-loop finish <task>rerun instead ofagent-loop verify, which only failed again, and text-modeenterwithinteraction.decision_presentation: htmlno longer crashes with an uncaughtUnreadableSessionMetadatawhile 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 newWorkflowHumanDecisionProjection::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 offerretireRejectedContract()from the typed projection (#1362).TaskContractStore::retireRejected()still decides, and no other projected action changes.workflow retire --revisionnow retires the rejected Contract revision through the newWorkflowHumanDecisionService::retireRejectedContract(), so an embedding host such as agent-ui can retire it without bypassing the service (#1362). The method keepsTaskContractStore::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-onlyworkflow retirepath are unchanged, andWorkflowDecisionCardServiceMapTestnow classifies theretirechoice as service-backed.workflow approvenow records the approval throughWorkflowHumanDecisionService::approveContract()instead of callingTaskContractStore::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."--add-scopeextension) now continues that Run instead of replacing it (#1263 item 10).workflow plankeeps the Run's Session open, andenterreports"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 withpipeline recoveronce that file is carried in.run.jsonadvances 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, andcarried_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_atandnew_human_approval: false. Legacyrun.jsonfiles 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, andExecutionBindinggainscurrentContractRevision. The manifest addsreferences.run_continuation, the Run directory keeps the left revision's Contract snapshot and Recall input undercarried/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.enterrefuses the carried revision, before it allocates a Session and leavingrun.jsonbyte-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 planthen 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 withATTENTION_RESOLUTION_STALEonce 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'ssupersession.jsonnow recordsapproval_carried_from_revisionwhen the replacement only carries an approval.human_decision.subject) carries a top-levelbase_commitnext tohead_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, andBase commit: none recordedfor a Contract without one (German:Basis-Commit: …). Before, a revision thatworkflow plan --supersedelet 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).docs/quick-start.mdpath on the released 0.21.3, instead of stopping afterworkflow planon 0.20.106. It runstools/published-consumer-onboarding.sh, which can also be run locally. The script coversinit 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 thefinishrounds through toworkflow statuscomplete. It asserts each step's exit code andnext_action_kind, never the exactnext_actionwording. 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
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, throughClosedRunRecord::find()and again through its ownRunLearningDecisionStore::find(), so a decision that changes or becomes unreadable during the projection can reachreferences.verificationdifferently fromreferences.learning(#1350).docs/execution-runner-boundary.mdnow 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-failurevalidation_conflictexception. 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.mdsaid that no execution profile selection meansmanual;ExecutionProfileSelectionStore::resolve()returnsstandard(#1263).Tests
FocusedTestCoverageClaimTestcovers 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 governedreview blindspotsandreview codecommands and finish's reuse of their report, and the correctness-review stage prompt (#1263).UnreadableSessionRecoveryTestcoversworkflow plan,enter(with and without a Run), thefinishcloseout andfinish --findingfailing on an unreadable Session of the task or of another task, the text output, text-modeenterwith HTML decision presentation, shell quoting of the rerun command, the close verify gate, thatquicknames no rerun of itself, and that a healthyenterand afinishbefore the close with another task's unreadable Session are unchanged (#1263).RunManifestProjectortakes an optional Learning decision finder for this.WorkflowDecisionCardServiceMapTestclassifies every choice idWorkflowDecisionCardFactorycan project: theWorkflowHumanDecisionServicemethod 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).CarriedRunContinuationTestcovers the continuation, the gateway bundle and recovery under the plan revision, invalidation, chained carries, the Session cases, crash retries, the refusals withrun.jsonbyte-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.FocusedTestScopeExtensionTestnow expects a carried revision to continue an open Run, and a dropped Session to replace it (#1263).v0.21.3Compare Source
Changed
finishclosed is now frozen: a later edit in the owner checkout leavesworkflow statuscomplete with next actionnone, andpipeline statusandpipeline runreportcompletewith next actionnoneinstead of namingpipeline recoveror a supersede route.enteron a closed Run no longer reopens its Session or starts a superseding receipt, andworkflow closeon it answersalready_closedwith exit 0 without inspecting the workspace again. The Run manifest's newreferences.closurenames the closed Run and, asamendment_action, the amendment route: a new Contract revision withworkflow 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).NAME=valueenvironment assignments, soCOMPOSER_ALLOW_SUPERUSER=1 composer cisatisfies a declaredcomposer ci. agent-loop's own.agent-loop/init.jsonnow declarescontract.validation(prepare:composer install --no-interaction --no-progressor plaincomposer 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).init sync-policyunreadable-config fix in 0.21.2 understated its reach.InitConfigLoaderrejecting a top-level JSON list such as[]affects everything that fails closed on a config warning, not onlyinit 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.mdnow takes one task fromcomposer requireto a complete governed Run using onlyvendor/bin/agent-loop. It covers setup,board card create,workflow plan, the one human approval, thepipeline stage/submit/runloop and thefinishrounds. Before, the Composer section stopped afterworkflow planand left every later step to the./docker/agent-loopexamples. The walkthrough is one observed run,EMAIL-1in a cleanvoku/email-checkcheckout on 0.20.112, with its exit codes;next_actionstays the authority (#1156).Fixed
finishrecords no longer calls a validation pass thatfinishreused from the pipeline observed. Itstest_resultevidence said "Observed passed with exit code 0 for implementation …" for every Session validation. For a pass recorded byagent-loop.finish.reusedit 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).keep_completedrunsagent-loop board card archive <id> --disposition=completed, andreopenrunsagent-loop board card move <id> --to=DOING, followed byworkflow planand its own approval. A card archived with thecompleteddisposition (agent-kanban 0.4.10+) reads asarchived_completedwithnext_action: none; no Contract, Run, validation or receipt is created. Restoring the card brings the question back. An archive withdropped, without a disposition, or with an unreadable disposition is never read as completed.enternow reports the sameblockersasfinish, so both build the same card. Loop requiresvoku/agent-kanban^0.4.11(0.4.11 makes--dispositionusable from the CLI).enter,finishand the manifest pick it wherever it appears among the blocking disagreements, and its action now names the other blockers it outranks (for exampleAlso 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).integritygate, in the same position, and now gets the same aligned next step as astanding:decision: once the current review report is acknowledged (ok/warn),references.verification.actionandaction_invocationname the policy'sfinish --learningtemplate; before that they keepworkflow status. Otherintegrityentries keepworkflow status.WorkflowCloseReadiness::firstFailureIsStaleLearningBinding()identifies the case without matching the reason text.workflow close --format=jsonfor a first-failinglearning_authoritygate now namesagent-loop workflow status <task> --format=json(kindcommand) instead ofnone, and its message no longer tells the actor to runfinish --learningbefore 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 closefor a Run whose first non-waivable failure is a stale Learning binding now namesagent-loop workflow status <task> --format=json(kindcommand) and says that a named actor must record the Learning decision again, instead ofnext_action: none(kindhost_work) and the generic stale-evidence message; other stale integrity evidence keeps the generic result.WorkflowCloseReadinessidentifies the stale binding by its recorded position (staleLearningBindingPosition, read throughstaleLearningBinding()), 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
<findings_recorded|follow_up_required>) at the verification reference, a stale-validationintegrityentry ahead of the binding that keepsworkflow status, and theworkflow close --format=jsonoutput forlearning_authority. Ten deliberate mutations of the projector guard, the typed readiness check, the inspector andworkflow closeare each caught (#1252).workflow closeJSON 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'sfinish --learningtemplate 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.2Compare Source
Added
revieworarchitecture-review, the same predicateExecutionStageResultAuthorityuses to accept observations) now shows anobservationslist, 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--observationonpipeline submitwhile 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.mddescribes 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 throughworkflow 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 whenConfiguration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.
This change is