PR #2909 review history
5B · schema, lifecycle, publication and retention
Review rounds
Three-number pills mean: found (raw) / accepted here (useful) / routed
Recorded review history
Reviews and findings
- Hosted Review 1 CompletedRuntime 14m 13sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- CLI Review 1 CompletedRuntime 2m 46sFound: 3 Accepted: 0/1/2 Routed: 0
- Minor
Update the active-CLI detection around
metadata_pathsto inspect every run’s metadata instead of selecting only the newest by modification time. Skip runs with acapture-complete,error, orexit-statusmarker, and add an active review for each remaining run whoseactive_metadatamatches the PR.- Accepted Accepted: newest metadata can hide the live CLI reservation when another completed capture is newer. Inspect all nonterminal run metadata under the existing lock; add deterministic regression in #2909.
- Trivial
Remove the repeated state load, stack-membership check, and allocation lookup in decide_stop; reuse the state and previous values already read earlier in the method. Keep persist’s existing comparison against state under store.update.
- Accepted Accepted: remove duplicate state/stack/allocation reads in decide_stop, preserving the locked persist comparison; implementation pending in #2909.
- Trivial
Strengthen the stop assertions in the affected tests so each scenario checks its expected exact stop_basis and verifies that required review obligations remain in status()["prs"][0]["review_obligations"]. Use the existing assertions at lines 2448–2450 as a pattern, and rename any test whose name does not match its verified behavior.
- Accepted Accepted: make stop_basis assertions exact, verify remaining obligations in status, and align misleading test names; implementation pending in #2909.
- Subagent Review 1 CompletedModel not recordedFound: 2 Accepted: 2 Routed: 0
- Stopped channel history can unnecessarily block selection of the next PR
F2 fixed in child PR2910 commit2e4a5a385: stopped request selection reads existing current activity/reservations/cooldown, leaving status/history full. Focused proof covers idle historical errors, active overlap, terminal noncounting reply, current unknown execution and quota expiry. All436 focused tests passed.
- Accepted Root verified that target reconciliation fetched full historical evidence before skipping stopped channels, so dispensable historical failures could hold the next request.
- Admission can reserve a PR after durable stack selection changes
F1 fixed in child PR2910 commit2e4a5a385: ephemeral durable-prefix selection inputs are rechecked under store.update; reselection occurs outside lock. Controller205/runtime100/CLI56/state-stack65/Hosted recovery10 tests passed; existing stop-winning and admitted-run survival remain intact.
- Accepted Root verified that admission checked only chosen PR membership and stop, allowing a concurrent reorder or earlier PR reopen to invalidate the selected target.
- CLI Review 2 CompletedRuntime 6m 21sFound: 13 Accepted: 1/1/1 Routed: 9
- Major
In decide_stop, set the parent identity used to construct AnchorFacts to the configured stack parent’s stack.ParentLink.identity when available, falling back to item.base_ref only when no parent link is available. Keep the identity format consistent with _reconciled_anchor and _anchor so _saved_identity_moved recognizes stopped child PRs correctly.
- Accepted Accepted #2909 correction: record the configured stack parent identity consistently in stop audit facts; preserve durable stop semantics. Pending focused correction, not implemented yet.
- Major
Update the generated-effects invariant describing child identity to use the same owner-defined, deterministic child ordinal allocated and persisted by the owning contract for replay-stable reuse as the execution-flows document; do not describe the ordinal as digest-covered while ADR 0183 remains pending.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: remove unapproved digest-covered ordinal claim pending ADR0183. View routed finding - Minor
Clarify the descriptions of EnqueueAutomationCommandIfAbsent and ScheduleRemoteFollowup so the documented live admission behavior is explicitly identified as retained lower-level behavior blocked at the authenticated receiving boundary by the receiver gate. Keep the gate’s fail-closed behavior and its no-mutation guarantee unchanged.
- Accepted Accepted #2909 method-specific API documentation correction: retained lower-level Automation admission is blocked at authenticated receiver gate, no mutation. Patch pending.
- Major
Update the World Management retry guidance to use the persisted mutation EffectId for both retries and the participant guard, including generated-child MOVE and PICKUP operations; retain the command-root EffectId only for lineage so retries are recognized as replays.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: persisted mutation EffectId versus root lineage in World retries. View routed finding - Minor
Update the canonical handoff identity description to make clear that source tenantId and gameInstanceId are shared fields inherited from the row, alongside playableStateNamespaceId, regionId, and regionEpoch; ensure the identity list and lookup tuple consistently include them.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: source tenantId/gameInstanceId inherited identity fields explicit. View routed finding - Major
Update the generated_effect mapping for commandId_or_effectKey to use the recorded child EffectId as the identity slot, without tying its allocation to the parent/root identity or child ordinal. Leave child-ID allocation unresolved pending ADR 0183.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: source-specific scheduling slot uses recorded child EffectId without deciding allocation proposal. View routed finding - Minor
Move the normative preimage specification from this historical ADR to the active canonical contract, then replace the specification here with a link to that contract. Keep the reference to ScriptScheduleInstanceServiceImpl.TimerFiringCandidate.identity() only as context if needed; do not leave this ADR defining the current implementation requirement.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: normative timer preimage at canonical contract owner, historical ADR owner link. View routed finding - Minor
Update the consolidation status on Line 113 to include ADR 0184 alongside ADRs 0179–0182, consistent with the recorded
EDGE-WITHDRAWAL-01decision. Locate the status text by its reference to the direct decisions being integrated.Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: include integrated ADR0184 in direct-decision consolidation status. View routed finding - Minor
Mark the
DROP/PICKUPsequence in the Game Session runtime-and-data documentation as target state, rather than describing it as current behavior. Keep the actor-lock, barrier, and stale-evidence requirements intact.Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: DROP/PICKUP critical-section sequence target-state not completed implementation. View routed finding - Minor
Remove the mandatory forwarded-request contract from the superseded ADR 0011 and link to the corresponding current requirement in ADR 0170, keeping the active forwarding contract authoritative there.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: superseded ADR0011 must link current ADR0170 forwarding owner. View routed finding - Trivial
Update the database-side validation of min_writer_build in the cutover marker check to reject bool values before accepting integers, matching the existing marker_writer_build validation; preserve the remaining comparisons and error behavior.
- Accepted Accepted #2909 correction: reject boolean database min_writer_build as malformed metadata; focused fixture implementation pending.
- Minor
Qualify the crash-recovery claims in the recovery descriptions so they distinguish current behavior from target behavior: state that current recovery can reconstruct only states supported by existing durable records, and that a STAGED command without a tick_batch or tick_effect is not currently recovered. Keep the existing replay-authority limits intact.
Route · PR #2909 → PR #2839 Accepted/FixedRoute to #2839 contract corpus: current crash recovery bounded by existing durable records, missing STAGED recovery explicit. View routed finding - Major
Update finalizeHandoff and applyPostEvaluationFenceDisposition to requeue the parent through the existing retry helpers when a retryable failure occurs before any child handoff was attempted, as indicated by childHandoffAttempted being false. Preserve the unresolved-parent behavior when a child handoff was attempted.
- Rejected Rejected: childHandoffAttempted=false does not prove DSL replay safe. Evaluation already emitted output, and current runtime lacks durable evaluated descriptors. Requeueing reruns DSL and violates the owning runtime recovery contract; retain unresolved parent until canonical recovery exists.
- Subagent Review 2 CompletedModel not recordedFound: 1 Accepted: 0 Routed: 0
- Provisional CLI marked attributable
Original raw candidate retained; not an accepted defect. No attribution, counting or provisional behavior changes were made.
- Rejected Reviewer withdrew after verifying correct source PR provenance and durable provisional metadata. Changing attribution could invent parent-dependent counts.
- CLI Review 3 CompletedRuntime 3m 03sFound: 5 Accepted: 1/0/4 Routed: 0
- Trivial
Update ambiguousChildOutcomeRemainsInFlightWhenLaterPluginFenceIsTerminal so the handoff mock leaves the parent item’s status unchanged; assert that the executor does not save the item or call recordUnattempted for ordinal 1, removing the assertion that merely reads back the mock’s CANCELED status.
- Accepted Accepted: remove the handoff mock's artificial CANCELED mutation; prove unchanged in-flight parent, no parent save and no recordUnattempted for the later child. Implementation pending locally.
- Trivial
Add a boundary-level test alongside the dormantAutomationAdmissionResponse cases that submits the invalid automation request through the gRPC service and verifies an INVALID_ARGUMENT response and the grpc.app_error metric. Keep the direct IllegalArgumentException assertions for command-service validation.
- Accepted Partially accepted: add malformed routing-bundle receiver/metric proof, but require the intentional dormant FAILED_PRECONDITION response, not INVALID_ARGUMENT. Retain lower-level invalid-argument assertions; no receiver activation.
- Major
Update applyPostEvaluationFenceDisposition and the retryable failure path in finalizeHandoff so retryable fence failures or child rejections do not leave work items indefinitely in EVALUATING; record an explicit unresolved status or reconciliation marker, or connect them to an existing automation-tracker recovery path. Preserve cancellation for terminal fence failures.
- Accepted Partially accepted: persist an explicit diagnostic reconciliation marker for retryable post-evaluation failures without requeue, DSL re-entry or terminalization. Complete descriptor recovery remains unimplemented; add focused no-replay proof.
- Trivial
In terminateWorldInstanceRetriesSameRequestAfterLocalCleanupFailure, assert that the returned snapshot has lifecycleEpoch 4 to pin the epoch increments across the failed attempt and retry.
- Accepted Accepted: assert lifecycleEpoch=4 after local-cleanup failure and same-request retry, strengthening the existing termination regression; implementation pending locally.
- Trivial
Update the closed-PR cooldown check to avoid silently allowing posting when reading a reservation or fetching its pull request fails; handle those errors conservatively so an active repository-wide cooldown cannot be bypassed. Keep the existing checks for positively attributed cooldowns in the loop over current reservations.
- Accepted Accepted: fail closed when a closed PR reservation or live PR cannot be read, preserving positively attributed repository cooldowns. Add focused malformed/unavailable reservation proof; implementation pending locally.
- Hosted Review 2 CompletedRuntime 10m 17sFound: 3 Accepted: 1/1/1 Routed: 0
- Fail closed when
admitreturns without callingreserve.MinorHistorical aggregate: 2 provider findings were recorded as one item
Provider section 1
The
admitcallback decides whetherreserve()runs. Ifadmitreturns normally without callingreserve(), the runner still starts the SQLite attempt and invokes the provider. In that case the capture has nometadataormetadata.jsonbefore the run. The later append tometadatathen creates a legacy file that holds onlyreview_duration_seconds. The public contract ofrun_cli_reviewdoes not require the callback to either reserve or raise. Record whetherreserve()ran, and raiseReviewRunnerErrorif it did not.🛡️ Proposed guard
- def reserve() -> None: + reserved = False + + def reserve() -> None: + nonlocal reserved (capture_dir / "metadata").write_text( "".join(f"{key}={value}\n" for key, value in legacy_metadata.items()), encoding="utf-8", ) os.chmod(capture_dir / "metadata", 0o600) _atomic_json(capture_dir / "metadata.json", metadata) + reserved = True if admit is None: reserve() else: admit(reserve) + if not reserved: + raise ReviewRunnerError("review admission returned without reserving the CLI capture")Provider section 2: Prevent a transient false active state after admission failure.
_verify_target_still_currentcan fail afteradmit(reserve). The exception handler writeserrorbeforecli.lockis released. During this interval,request_history(..., "cli")can returnactive-cli:unidentifiedbecause the lock is held and the errored run is skipped. Policy maps this entry toHELD, so concurrent readiness or admission checks can temporarily block the PR.Ensure that a terminal
errormarker cannot becomeactive-cli:unidentifiedduring cleanup. Preserve the unknown-lock fallback for failures that occur before a capture directory exists.- Accepted Accepted both independently fingerprinted issues in this bundled comment: require completed reservation metadata before provider start; distinguish identifiable terminal-error cleanup from an unknown active CLI lock. Focused fixes delegated, pending publication.
- Assert that local cleanup and terminal persistence run inside the transaction.Trivial
This test also passes if
executeLocalTerminationcallstermination.get()directly. Both existing assertions would still observefalse.Add assertions in the local cleanup stubs and the
TERMINATEDsave stub thatlocalTransactionActiveistrue. Retain the external cleanup assertion. These checks detect removal of the local transaction boundary.Based on learnings: workflow tests should assert “all resulting side effects on related entities/components.”
- Accepted Accepted transaction proof: assert local cleanup and TERMINATED persistence execute inside the local transaction, retaining external cleanup outside it. Focused test correction delegated, pending publication.
- Use
childHandoffAttemptedwhen handling retryable outcomesMajorexecuteHandoffLoopalready records whether a child handoff was attempted, butfinalizeHandoffignoresHandoffExecutionResult.childHandoffAttempted(). A retryable preflight failure or a retryable plugin-fence failure before the first handoff therefore leaves the parent unresolved even though no intent or RPC exists. Requeue those no-child cases through the existing retry path.Keep parents unresolved after any child attempt because the evaluated output has no durable descriptor/child ledger. Also document these unresolved retryable fence and rejection cases and record a bounded reason or metric so they are distinguishable from active work.
[stability_and_avAILABILITY]
- Accepted Partial acceptance: bounded persisted diagnostic marker for unresolved post-evaluation outcome. Reject no-child DSL requeue: evaluated descriptors are not durable, so absence of child RPC does not prove safe DSL replay. Marker/proof delegated; receiver remains fail-closed.
- Hosted Review 3 CompletedRuntime 9m 22sFound: 4 Accepted: 1/0/3 Routed: 0
- Make the response-save row version reflect the committed intent.Trivial
This test expects both handoff-event saves to use row version
7. That is correct only for the intent save.After the
REQUIRES_NEWintent transaction commits, a real optimistic-locked row has version8. The response save must then use version8, or it fails with a stale-write error. This test passes only becausehandoffEventRepository.saveis not stubbed. The mock returnsnulland never increments the version.As a result, a regression where the response write reuses the pre-intent version would still pass this test.
intentCommitsBeforeGameSessionRpcAndRpcRunsWithoutLocalTransactionalready models the increment for a new row (0→1). Apply the same model here, and assert each save separately.♻️ Proposed test change
+ List<Integer> savedVersions = new ArrayList<>(); + when(handoffEventRepository.save(Mockito.any())) + .thenAnswer( + invocation -> { + ScriptHandoffEvent event = invocation.getArgument(0); + savedVersions.add(event.getRowVersion()); + event.setRowVersion(event.getRowVersion() + 1); + return event; + }); ... - verify(handoffEventRepository, Mockito.times(2)).save(handoffCaptor.capture()); - assertThat(handoffCaptor.getAllValues()) - .allSatisfy( - saved -> { - assertThat(saved.getId()).isEqualTo(44L); - assertThat(saved.getRowVersion()).isEqualTo(7); - }); + verify(handoffEventRepository, Mockito.times(2)).save(handoffCaptor.capture()); + assertThat(handoffCaptor.getAllValues()).allSatisfy(saved -> assertThat(saved.getId()).isEqualTo(44L)); + assertThat(savedVersions).containsExactly(7, 8);- Accepted Fixed in d929bcd58: existing handoff save snapshots model optimistic versions 7 then 8 and preserve row/event identity; focused Automation handoff unit tests passed.
- Test replay-evidence preservation during an upgrade.Trivial
The setup migrates a fresh database directly to the latest version (Line 86). This test checks the final schema, but it does not verify that existing replay records survive the V3-to-V4 upgrade. A migration that drops and recreates the replay tables could still pass.
To support the
WithoutLosingReplayEvidenceclaim, migrate a V3 database containing replay records to V4 and assert that the records remain.As per path instructions: “Prioritize bugs, regressions, missing tests, cross-service contract drift, and architecture mismatches over style nits.”
- Accepted Partial acceptance fixed d929bcd58: V3.2-to-V4 retained work-item upgrade and V4 replay persistence test. Pre-V4 replay preservation rejected: V4 creates those tables. Integration test compiles; PostgreSQL execution unavailable locally, pending CI.
- Count metadata markers, not bare mentions in finding text.Major
A valid finding can contain the title
**Reject malformed cr-comment:v1 markers.**and one valid fingerprint comment. This code counts two mentions but finds only one marker. Line 283 then raisesHostedCaptureError.Both live capture and historical import use this parser. The error prevents either path from recording the completed findings, even though the metadata is valid.
Restrict malformed-marker validation to marker-like HTML comments. Keep ordinary prose and inline-code mentions inert. Add a regression test with the title above and one valid fingerprint marker.
- Accepted Fixed in d929bcd58: only actual marker-like HTML metadata is counted; prose, inline prefix mentions and fences remain inert; malformed and duplicate markers fail closed. Capture/import regressions and 860 consolidated tests passed.
- The second-scan assertion is always true and does not show that the parent is not reclaimed.Trivial
Line 227 stubs
claimPendingForEvaluation(1)to returnList.of()on the second call. Because of that,retryScan.claimedCount()is zero no matter how the executor handles the parent.This test is meant to show that post-evaluation work stays unresolved and is not claimed again. The retrieved learning requires that post-evaluation work is not requeued for DSL replay. Base the second-scan stub on the item's actual status, so the assertion checks executor behaviour. Otherwise, remove
retryScanand keep theEVALUATINGandenqueueWorkItemassertions.♻️ Proposed test change
- when(workItemService.claimPendingForEvaluation(1)).thenReturn(List.of(item), List.of()); + AtomicInteger claimCalls = new AtomicInteger(); + when(workItemService.claimPendingForEvaluation(1)) + .thenAnswer( + invocation -> + claimCalls.getAndIncrement() == 0 + || "PENDING_EVALUATION".equals(item.getStatus()) + ? List.of(item) + : List.of());Based on learnings: "must not requeue post-evaluation work ... Retryable post-evaluation outcomes must remain unresolved pending explicit reconciliation rather than automatic DSL replay."
- Accepted Fixed in d929bcd58: retry claim depends on actual PENDING_EVALUATION status, so automatic post-evaluation reclaim is detectable; focused executor unit tests passed.
- CLI Review 4 CompletedRuntime 2m 36sFound: 2 Accepted: 0/0/1 Routed: 0
- Trivial
Update concurrentAcceptedResultAfterResponseCheckCannotBeReplacedByStaleResponse and failedIntentCommitWithMismatchedDurableIdentityStillRequiresReconciliation to trigger the simulated concurrent winner on the first repository read after the handoff_in_flight intent is saved, using an explicit flag set by the save answer rather than fixed call counts. Remove assertions that depend on repository read counts while preserving verification that the stale response cannot replace the winner.
- Accepted Accepted proof-only correction: trigger simulated concurrency from durable intent-save state rather than repository read counts; preserve stale-write winner assertions. Implementation pending.
- Minor
Update decide_stop to check for active reviews on the same PR and channel before persisting HUMAN_STOPPED, and reject a direct-human Hosted stop while a review is active. Preserve review_obligations as a merge-readiness blocker; do not treat stop status as completed when obligations remain.
- Rejected Conflicts with approved public stop contract: a human stop must record future discovery shutdown during an admitted active run without interrupting its capture or waiving merge obligations. Active-request safety remains separate.
- CLI Review 5 CompletedRuntime 3m 24sFound: 5 Accepted: 1/3/0 Routed: 0
- Major
Update the closed-PR loop around
load_trigger_reservationto checkrecord["status"]and record age before callinggithub.fetch_pull_request, fetching only records that could still carry an active cooldown within the maximum cooldown window. Treat verification failures for closed PRs as non-blocking, and continue blocking only whentrigger_stateconfirms a positively attributed, unexpired cooldown.- Rejected Rejected fail-open closed-reservation checks and invented maximum cooldown age. Current regression requires unverifiable provider cooldown evidence to fail closed; closed PR activity alone is released. No authoritative maximum age makes unavailable live reads safe.
- Minor
Update _coverage_limits to validate each retained entry is a string before using it to widen the per-item limit, and cap that widened limit at 1000 characters. Preserve the existing 200-character limit for values that do not match retained.
- Accepted Accepted bounded retained-coverage validation: preserve exact prior notes only within the 1000-character ceiling and validate string entries before widening; implementation pending.
- Minor
Update the Hosted cooldown override in the decision-selection flow to preserve the selected target instead of replacing the decision with the unrelated PR number. Apply the cooldown status and reason to the existing decision using an immutable replacement, and scope the override to cases where completed allocations are not allowed and the decision has a target; leave explicit and decision-only selections unchanged.
- Accepted Accepted preserve selected Hosted target under another PR cooldown; keep explicit completed-allocation selection. Implementation pending.
- Major
Update the local termination callback in WorldLifecycleCommandServiceImpl to reload the world instance inside the REQUIRES_NEW transaction, using a lock or version check instead of saving the earlier detached finalWorldInstance. Before changing it to TERMINATED, confirm the reloaded row is still TERMINATING with the same terminationRequestId; then apply the termination updates and save that row.
- Accepted Accepted reload and state/request recheck inside local termination transaction, retaining optimistic row-version fencing. Existing CAS already prevents stale overwrites, so major severity is overstated; worthwhile concurrency strengthening. Implementation pending.
- Minor
Update
_active_cli_historyto inspect onlyruns/<owner_run_id>/metadata.jsonwhen_cli_lock_owner_run_ididentifies the lock owner, skipping the path if its metadata file is missing. Retain the existing scan of all run metadata only when the owner ID is unavailable.- Accepted Accepted inspect exact CLI lock-owner metadata when available so old incomplete captures cannot masquerade as active. Unknown owner keeps conservative scan. Implementation pending.
- Hosted Review 4 CompletedRuntime 7m 57sFound: 1 Accepted: 0/1/0 Routed: 0
- Add an explicit reconsideration trigger for this observation.Minor
The expected pattern says to inspect the exact run, but it does not state when to revisit or remove this unresolved note. Add a trigger, such as exact run/job/step readback resolving the cause and required-check state.
As per coding guidelines, “Retain an entry only when a genuine blocker or deliberate postponement remains, recording the reason and reconsideration trigger.”
- Accepted Accepted add explicit reconsideration trigger to completed-gate ambiguity observation; preserve fail-closed guidance and append outcome rather than silently deleting history. Documentation correction pending.
- CLI Review 6 CompletedRuntime 5m 01sFound: 5 Accepted: 1/4/0 Routed: 0
- Minor
Update reconcileFailedIntentPreparation to compare the persisted work item’s status and row version with the captured WorkItemIntentState instead of requiring the literal EVALUATING status. Pass the captured state from handoff, and return a retryable result when the intent row is absent and both values match; retain reconciliation-required behavior when the readback differs or is unavailable.
- Accepted Accepted failed-intent readback against captured original status AND row version, not literal EVALUATING. Missing/mismatched/read-error evidence still requires reconciliation and sends no RPC. Implementation pending.
- Minor
Update markPostEvaluationReconciliationRequired to allow both EVALUATING and HANDOFF_IN_FLIGHT statuses through its guard, preserving the existing behavior for all other statuses so the reconciliation reason is saved for partial fan-out cases.
- Accepted Accepted diagnostic-only reason for retained HANDOFF_IN_FLIGHT partial fan-out as well as EVALUATING. Preserve terminal guards, optimistic fencing and no DSL replay/requeue. Implementation pending.
- Major
Shorten the implementation-tracking entry to implementation status, proof limits, and a link to the canonical runtime contract; remove duplicated handoff mechanics and diagnostic-marker rules. Retain the status that durable evaluated-descriptor recovery remains unimplemented and the distinction between unit-level proof and outstanding live-system proof.
- Accepted Accepted tracker consolidation: retain status, unit/live proof limits and descriptor-recovery gap, link canonical Automation runtime mechanics rather than duplicating them. Implementation pending.
- Minor
Update the local instance-bound scripting handoff claim to distinguish retained lower-level
(scriptPatchVersion, scriptPinEpoch)checks from behavior available through the liveEnqueueAutomationCommandIfAbsentreceiver; state that the receiver currently fails closed before mutation, so it does not enforce those checks through the RPC path.- Accepted Accepted clarify transaction-status claim: lower-level pin checks persist, but live EnqueueAutomationCommandIfAbsent is gated before mutation. Implementation pending.
- Minor
Use one audit timestamp for both the
active_terminal_rate_limitsfilter andlegacy_transition_reauthorization_audit; pass that timestamp into the audit function instead of samplingdatetime.now()separately. Keep the count check based on evidence evaluated at the same time.- Accepted Accepted one audit timestamp for rate-limit filtering and legacy audit so expiry cannot create contradictory counts. Implementation pending.
- CLI Review 7 CompletedRuntime 3m 31sFound: 4 Accepted: 0/2/0 Routed: 0
- Major
Update the closed-PR cooldown sweep in the current reservation loop to check each record’s trigger timestamp before calling
github.fetch_pull_request; skip triggers older than the confirmed maximum Hosted cooldown window, and retain fail-closed verification only for recent triggers. Choose the lookback from the actual maximum cooldown duration rather than assuming a 24-hour limit.- Rejected Repeat of run.775 finding 5: no authoritative maximum provider cooldown exists. An invented age cutoff could release unverifiable active quota evidence; preserve fail-closed verification.
- Major
Update finalizeHandoff to inspect HandoffExecutionResult.childHandoffAttempted() for retryable firstRejectedHandoff outcomes. When no child dispatch was attempted, requeue the parent through the existing retry path while respecting the authority-unavailable budget; keep post-evaluation reconciliation for outcomes where dispatch may have occurred.
- Rejected DSL evaluation already completed before aggregate preflight. Without a retained descriptor/reconciliation owner, requeue would rerun DSL; the owning contract and explicit no-dispatch regression intentionally retain unresolved state.
- Minor
Update the tracker’s local admission and duplicate-replay section, remote follow-up handoff section, and Automation Scripting Service and Contract Map row to mark these paths as gated by the receiver fence and link each to the API-contract implementation-status anchor. Clarify in the GR-1.3 and GR-1.4 rows that AutomationGameplayCommandAdmissionSupportTest is lower-level evidence and does not prove an end-to-end live admission path.
- Accepted Clarify residual tracker admission/remote claims and GR proof rows as lower-level support behind the published receiving fence; focused documentation correction pending.
- Minor
Update the lock-path setup in test_live_evidence_probe_deepens_all_candidates_for_unscoped_cli_lock to derive cli_path as root / "pr-review" / "cli.lock" and create its parent directory before acquiring it. Ensure the root passed to hosted.default_trigger_record_path matches the controller’s git common directory, not the store directory.
- Accepted Correct the human-stop lock fixture to hold the canonical CLI/request paths; the named unscoped probe already uses its correct path.
- Hosted Review 5 CompletedRuntime 10m 05sFound: 1 Accepted: 1/0/0 Routed: 0
- Keep receiver-fence rejections unresolved after DSL evaluation.Major
FAILED_PRECONDITIONis not retryable. The rejected handoff can therefore enter the terminal path, dead-letter the evaluated work item, and incrementfailureGeneration. Mapautomation_admission_receiver_fence_unavailableto a non-terminal reconciliation-required disposition.- Accepted Map exact receiver-fence FAILED_PRECONDITION code/message to unresolved handoff for local and remote producer-shaped responses; keep intent and failureGeneration, no DSL replay. Bounded regression batch pending.
- CLI Review 8 CompletedRuntime 4m 13sFound: 6 Accepted: 2/3/1 Routed: 0
- Trivial
Simplify
_coverage_limitsby setting the validation maximum to 1000 for exact retained entries and 200 otherwise, then pass that maximum to_bounded_textfor each item; remove the item-length-dependent expression.- Accepted Simplify exact-retained coverage ceiling to explicit 1000 versus ordinary 200 without changing secret/text validation; correction pending.
- Minor
Update the Automation tracker entry for EnqueueAutomationCommandIfAbsent to distinguish its retained lower-level behavior—persisting dispatches before tick staging and rejecting only specific ownership or fence cases—from the unavailable authenticated receiver path, which fails closed before mutation; do not describe the lower-level implementation as providing the receiver fence.
- Accepted Qualify residual Automation tracker receiver/admission claims as retained helpers behind the authenticated gate; retain ordinary tick/support proof and owner links.
- Major
Update _accepted_findings_pending to ignore correction, non-counting, and provisional records, and evaluate only the latest policy-effective review per channel rather than every history entry. Ensure a later completed, attributable review on the current head clears earlier accepted rounds, including when ancestry checks fail.
- Accepted Partially accepted: exclude correction/non-counting/provisional events from accepted-pending display. Reject clearing verified obligations merely because a later review exists or ancestry proof fails; preserve finding safety.
- Minor
In the
marker_matchessection-building logic, inspect the text remaining after the final marker; strip the leading finding separator and hosted auxiliary comments, then raiseHostedCaptureErrorif any content remains.- Accepted Reject non-auxiliary text after final finding marker instead of silently dropping it; tests retain known separator/auxiliary comments and immutable capture evidence.
- Major
Update the closed-PR sweep before
github.fetch_pull_requestto skip reservations marked retired and records whose triggercreated_atpredates the maximum provider cooldown window. Replace the genericControllerErrorfor unverifiable records with a distinct, recoverable diagnostic so one stale record does not block Hosted posting.- Accepted Partially accepted: validated retired reservations need no live closed-PR lookup. Reject unsupported max-age cutoff and fail-open unreadable records; keep positively proven current cooldown and unknown evidence fail-closed.
- Minor
Update markPostEvaluationReconciliationRequired to record a counter or outcome metric when it marks a work item for reconciliation, and call rolloutProjectionService.refreshForWorkItem after saving so the projection reflects the persisted state.
- Accepted Refresh rollout projection after the diagnostic CAS and emit a bounded nonterminal diagnostic counter after commit; no replay, recovery activation or terminal outcome.
- CLI Review 9 CompletedRuntime 3m 43sFound: 3 Accepted: 0/2/0 Routed: 0
- Minor
In the isHandoffReconciliationRequired(firstRejectedHandoff) branch, call markPostEvaluationReconciliationRequired with the work item, handoff-in-flight reason, current time, and tick-handoff stage before returning false, so this path records the reconciliation marker and metric.
- Accepted Accepted: diagnostic gap in unresolved HANDOFF_IN_FLIGHT branch. Add the bounded persisted marker, saved-row projection and commit-safe counter without terminalization, replay or failure-generation advance; delegated focused executor proof.
- Trivial
Update automationAdmissionReceiverFenceUnavailable to return a dedicated receiver-fence error code instead of generic FAILED_PRECONDITION, and update the client to match that code rather than relying on the message text.
- Rejected Rejected: the owning Game Session API explicitly specifies FAILED_PRECONDITION / automation_admission_receiver_fence_unavailable. Exact-pair consumer handling and unrelated-precondition rejection are tested. A new ad-hoc error code changes the contract without improving gated safety.
- Minor
Update the ReviewRecordsError fallback around FindingObservation so each segment gets a distinct title when a comment has multiple segments. If the fallback detail is also rejected, retry with an empty detail so that error does not abort completion.
- Accepted Accepted: secret-like provider prose can defeat structured capture fallback. Preserve per-segment immutable identity, use distinct safe titles, and empty safe detail only if detail validation fails, retaining the scrubbed raw archive; delegated focused capture tests.
- Hosted Review 6 CompletedRuntime 11m 39sFound: 2 Accepted: 1/0/1 Routed: 0
- Keep duplicate
ACCEPTEDcommands in reconciliation.MajorWhen Game Session rejects a replay but returns the existing
commandId, Automation must not terminalize the parent.RUNTIME_PAUSEDis classified as a cancellation, andSTALE_TIMELINEis also classified as a runtime-scope cancellation even whenErrorDetail.codeisstale_region_epoch. The stored command remainsACCEPTEDand may already be queued, so cancellation or dead-lettering can make the audit disagree with the eventual gameplay effect.Return a reconciliation-required outcome for rejected responses that identify an existing accepted command. Add a cross-service test for this behavior. Uppercasing the error code alone is not sufficient because the admission outcome still triggers terminalization.
- Accepted Fixed in 7a326a14a: retained command ownership rejects stay in flight with durable ID; guarded identity/version convergence. 275 Automation and 49 Game Session unit tests pass; live receiving path stays gated.
- Keep the tracker focused on implementation status.Trivial
Line 13 repeats the intent-before-RPC sequence, transaction separation, and failure outcomes already owned by
design/architecture/microservices/automation-scripting-service/runtime-and-data.md#implementation-status. Keep the implementation status, proof boundary, and open gaps here. Link to the canonical contract for the detailed rules.Based on learnings, “do not duplicate canonical technical contracts ... use this documentation only to track implementation-specific status, decisions, or links to canonical definitions.”
- Accepted Fixed in 7a326a14a: tracker retains capability/proof gaps and links canonical runtime mechanics. Markdown/link checks passed.
- CLI Review 10 CompletedRuntime 3m 18sFound: 1 Accepted: 0/1/0 Routed: 0
- Minor
Validate the headRefOid in request_history before passing it to _current_hosted_history; if it is missing or is not an exact SHA, raise ControllerError with the existing fail-closed admission message instead of allowing a raw lookup error.
- Accepted Accepted minor fail-closed diagnostic correction: validate live headRefOid as an exact SHA before current Hosted-history lookup, returning the canonical ControllerError for missing or malformed identity. Narrow runtime fixtures delegated; fix will remain local while Hosted is active.
- CLI Review 11 CompletedRuntime 3m 52sFound: 7 Accepted: 1/3/1 Routed: 0
- Trivial
Update automationAdmissionReceiverFenceUnavailable to use a distinct receiver-fence error code, then update ScriptGameplayCommandHandoffServiceImpl to classify this non-terminal condition by error code while keeping other FAILED_PRECONDITION rejections terminal.
- Rejected Repeat of run.caaa finding3: canonical receiver uses FAILED_PRECONDITION with exact unavailable message. Tested pair classification preserves other rejections; inventing a new contract code adds no supported safety gain.
- Major
Limit the closed-PR sweep around
load_trigger_reservationandfetch_pull_requestto records that can still have an attributed, unexpired cooldown, skipping records without a posted trigger or older than the maximum provider cooldown window. If verification fails for a closed PR, log the failure and continue the sweep instead of raisingControllerError; closing a PR must still release its execution slot.- Rejected Repeated unsupported age cutoff and fail-open reservation sweep. Authoritative cooldown/unknown reservation proof must remain fail-closed; validated retired reservations already skip live lookup in ac664fb5d.
- Minor
Update the operational-only fallback condition that appends the “active-cli:unidentified” blocker so it skips adding the blocker when active_capture_for_other_pr is true, while preserving the existing behavior for other cases.
- Accepted Partially accepted: suppress unidentified per-PR blocker only for verified current lock-owner capture on another PR; unknown/stale owner evidence and global CLI execution exclusion remain fail-closed.
- Major
Replace the detailed behavior and implementation claims in the Game Session paragraph with a concise implementation-status summary, and link to the canonical contract that defines actor-action and passive-delivery semantics. Keep this tracking section focused on what is or is not implemented, including the receiver-admission and enqueue-proto gaps.
- Accepted Accepted tracker ownership: retain implementation and proof gaps, replace detailed actor/passive mechanics with canonical owner links.
- Minor
Update the 2026-09-30 entry in the observations list to state whether a genuine blocker or deliberate postponement remains and when to reconsider it; remove the entry if neither remains.
- Accepted Accepted clarification: append recovery status and explicit recurrence/stewardship trigger to waiter observation; do not delete append-only historical observations.
- Minor
Update the GR-1.1 capability row to remove the claim that local/remote admission is live; state that the admission helpers exist while authenticated receiving APIs are gated with FAILED_PRECONDITION, preserving the existing lease-owner forwarding limitation.
- Accepted Accepted tracker drift: GR-1.1 must qualify lower-level helpers versus gated authenticated Automation receivers; ordinary gameplay stays live.
- Trivial
Update the SteppedDateTime test double to subclass datetime and override only now, preserving the other datetime attributes used by pr_review.runtime. Make now return audit_after when its samples are exhausted so additional clock reads do not raise StopIteration.
- Accepted Accepted test robustness: subclass datetime and retain last stepped sample without altering production clock behavior.
- CLI Review 12 CompletedRuntime 3m 11sFound: 2 Accepted: 0/2/0 Routed: 0
- Minor
Update the cleanup block in the integration test to drop upgradeSchema with DROP SCHEMA IF EXISTS, so cleanup succeeds if Flyway has not created it. Clear upgradeSchema before executing the drop so the field is reset even if cleanup fails.
- Accepted Accepted cleanup robustness: clear schema field before DROP SCHEMA IF EXISTS, preserving the original test failure when setup never created the schema.
- Minor
Clarify the persistence description in the ScheduleRemoteFollowup paragraph: label the source validation and coordinator/follow-up persistence behavior as retained lower-level behavior that the authenticated receiver currently does not reach. Keep the existing receiver failure and target-path limitations intact.
- Accepted Accepted documentation accuracy: qualify remote coordinator/follow-up persistence as retained lower-level behavior unreachable through the gated authenticated receiver.
- CLI Review 13 CompletedRuntime 3m 11sFound: 2 Accepted: 0/0/0 Routed: 0
- Major
Update finalizeHandoff to check HandoffExecutionResult.childHandoffAttempted before marking a retryable fence or rejection for reconciliation: when no child dispatch was attempted, use the existing retry path, and retain reconciliation when a child was attempted. Apply the same no-dispatch retry behavior in applyPostEvaluationFenceDisposition for retryable post-evaluation runtime fences.
- Rejected Rejected: no child dispatch does not authorize post-DSL replay. The proposed retry resets PENDING_EVALUATION and re-enters DSL without retained descriptors or a recovery owner, contrary to scripting-runtime-execution current/recovery boundaries. Keep existing fail-closed regression proof.
- Major
Update reconcileFailedIntentPreparation to distinguish a pre-existing handoff row from one created by the failed preparation attempt: snapshot the existing row’s id, rowVersion, and handoffOutcome before executeIntentTransaction, then treat readback as possibly committed only if the row differs from that snapshot. If unchanged, apply the work-item unchanged check and return retryablePreparationResult(); preserve reconciliation for a new or changed row.
- Rejected Rejected: an unchanged pre-existing HANDOFF_IN_FLIGHT row can retain an earlier ambiguous RPC. acceptedHandoffResult excludes it; preparation reuses it. Row/version/outcome equality cannot prove retry safety or authorize sibling dispatch. Keep reconciliation; add focused unchanged-intent regression.
- Hosted Review 7 CompletedRuntime 8m 45sFound: 6 Accepted: 2/3/1 Routed: 0
- Fence nullable direct-human records in the JSON backend.Major
ReviewState.schema_versionremains1, so older JSON readers do not detect this format change.StateStore._save_unlockedwrites nullableReviewAllocationfields directly. An olderReviewAllocation.__post_init__requiresmerge_base,patch_id, and all stop-proof fields to be non-null. It can therefore reject the entire JSON state after a newer controller writes an unpinneddirect_humanstop.Require SQLite cutover before writing incomplete direct-human records, or add a compatibility protocol that existing JSON readers understand. A marker understood only by the new reader is not sufficient.
- Accepted Accepted: fence JSON persistence of new nullable direct-human records; require compatible SQLite rather than write state legacy schema1 readers cannot read. Preserve ordinary JSON reads/roundtrips. Assigned controller batch, publication pending.
- Do not let a lock-owner clear failure replace the run result.Minor
_clear_cli_lock_ownerruns in afinallyblock. Iftruncate()orfsync()raisesOSError, that exception replaces theReviewResultreturn value from a completed provider run. It also replaces the original setup error, such as theReviewRunnerErrorraised when the marker write fails. The provider quota is already spent and the capture is complete, but the caller receives only an unrelatedOSError.A stale marker is safe here.
_active_cli_historyreads the marker only whilecli.lockis held. The next runner also replaces the marker before preflight. CatchOSErrorfrom the clear step and keep the unlock in the innerfinally.🛡️ Proposed fix
finally: try: _clear_cli_lock_owner(lock_handle) + except OSError: + # A stale owner marker is ignored once cli.lock is released and is + # replaced by the next runner; never mask the primary outcome. + pass finally: fcntl.flock(lock_handle.fileno(), fcntl.LOCK_UN)- Accepted Accepted: preserve the provider result or original setup failure if CLI owner-marker cleanup raises OSError; retain guaranteed unlock and add deterministic cleanup-error regression. Assigned bounded controller fix, publication pending.
- Add a retryable handoff response to the composed executor/handoff matrix.Trivial
This test composes the real
ScriptGameplayCommandHandoffServiceImplwith the executor. It covers only responses that map toHANDOFF_IN_FLIGHT.A retryable local rejection is a separate case, for example
QUEUE_UNAVAILABLEorGAME_SESSION_UNAVAILABLE. For that case, the handoff service's own tests show that it savesPENDING_EVALUATIONand enqueues the parent again. No composed test checks that the parent stays unresolved and is not claimed again.Add that case and assert:
- the parent status is
EVALUATINGorHANDOFF_IN_FLIGHT; automationQueueService.enqueueWorkItemis never called;- the reconciliation metric is emitted.
This test would detect the defect described for
ScriptWorkItemExecutionServiceImpl.javaat Lines 1085-1091.Based on learnings: "Retryable post-evaluation outcomes must remain unresolved pending explicit reconciliation rather than automatic DSL replay."
- Accepted Accepted proof gap: extend real handoff/executor composition with definite retryable local rejection; prove unresolved parent, no enqueue and diagnostic metric. Existing aggregate deferral is retained, no speculative replay change. Publication pending.
- the parent status is
- An exception from
commitPostEvaluationFenceStateleaves the parent without a reconciliation marker.MinorcommitPostEvaluationFenceStateruns its own transaction before the first dispatch. If that transaction throws, the exception passes through thefinallyblock and out ofprocessOneWorkItemInTransaction. The caller catches it as a failure after the claim.As a result, the evaluated parent stays
EVALUATING. It has nopost_evaluation_reconciliation_required:reason, and the metric is not recorded. This makes it look the same as active work. No child was dispatched, so returning a retryableHandoffExecutionResultwould route this case through the existing marker path.Proposed change
if (commandIndex == 0) { - commitPostEvaluationFenceState(workItem); + try { + commitPostEvaluationFenceState(workItem); + } catch (RuntimeException ex) { + LOGGER.warn( + "Unable to persist post-evaluation fence state for workItemId={}", workItem.getId(), ex); + return new HandoffExecutionResult( + null, null, retryableHandoffPreflightResult(), false); + } }- Accepted Accepted: failed first-dispatch fence commit must reach existing post-evaluation reconciliation diagnostics without child dispatch or DSL replay. Add deterministic transaction-failure proof. Assigned Automation batch, publication pending.
- Do not derive the termination wait epoch from a retry argument.Minor
The
TERMINATINGbranch ignoresexpectedLifecycleEpoch, butTemporalWorldLifecycleOrchestratoruses that value to requireTERMINATEDatexpectedLifecycleEpoch + 2. If a retry supplies the current epoch after the row enteredTERMINATING, finalization can persist epoch 4 while the orchestrator waits for epoch 5 and times out. Wait for the persisted terminal snapshot or workflow completion instead of deriving the target from the retry argument.- Accepted Accepted: termination retry must not derive its wait epoch from the caller argument; wait for the terminal persisted snapshot while preserving finalization epoch and identity guards. Assigned World fix and deterministic regression, publication pending.
- Fail closed when the Hosted
admitcallback returns without callingreserve.MajorThe CLI runner now rejects an
admitcallback that returns without reserving (cli_runner.pyLines 1129-1130).HostedRunner.__call__has no equivalent guard. Ifadmit(reserve)returns normally without callingreserve(), the runner still issues the POST without a durablepostingreservation. This has two consequences:- A crash between the POST and
hosted.atomic_write_json(path, record)leaves a public trigger that has no private record. - If a current
trigger.jsonexists,archive_current_pathis never moved totrigger-<id>.json. The post-POST write then overwrites the previous trigger record, and its history is lost.
Track completion inside
reserveand raise before the POST. The raise should also close the started SQLite attempt.🛡️ Proposed guard
+ reservation_saved = False + def reserve() -> None: + nonlocal reservation_saved if archive_current_path is not None: ... hosted.atomic_write_json(path, posting) ... else: ... + reservation_saved = True if admit is None: reserve() else: try: admit(reserve) + if not reservation_saved: + raise ControllerError("Hosted admission callback returned without reserving the request") except Exception: if sqlite_attempt_started and sqlite_attempt_id is not None: self._finish_unposted_attempt(sqlite_attempt_id) raise- Accepted Accepted: refuse Hosted POST unless admit completed the durable reservation; preserve prior trigger and close any started SQLite attempt on missing reserve. Add no-POST/reservation tests. Assigned controller batch, publication pending.
- A crash between the POST and
- CLI Review 14 CompletedRuntime 3m 06sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- Hosted Review 8 CompletedRuntime 8m 20sFound: 2 Accepted: 0/2/0 Routed: 0
- Keep a human stop distinct from taper completion.Minor
Line 25 says the stop “satisfies unfinished taper,” but Line 58 says it is not taper proof. This wording can make operators treat a stopped channel as having completed taper. Clarify that the stop overrides the taper gate for queue advancement without completing taper.
As per path instructions, “
design/**/*.md: Review docs for canonical-current-state consistency.”- Accepted Clarify that human stop overrides the queue taper gate but is neither completed taper nor review proof. One-clause lifecycle correction assigned.
- Restore every work-item field that
prepareHandoffcan change before a failed commit.MinorWorkItemIntentStatesaves and restores onlystatus,updatedAtandrowVersion.prepareHandoffruns inside theREQUIRES_NEWintent transaction, and it can also make terminal changes:applyOutcomedead-letters the item. It incrementsfailureGenerationand setscancelReason. This happens for a missing base version, a malformed runtime owner, an unrepresentable deadline, or an authority-unavailable outcome.cancelForAdmissionPause,cancelForRollbackEpochAdvanceandcancelForRuntimeRegionScopeAdvancesetcancelReason.
If the commit then fails, the database rolls back these changes. The in-memory
ScriptWorkItemkeeps them.This leads to incorrect persisted data:
reconcileFailedIntentPreparationfinds no intent. The persistedstatus/rowVersionmatches the captured state, so the method returnsretryablePreparationResult().- In the executor,
finalizeHandoffcallsmarkPostEvaluationReconciliationRequired. The restored status isEVALUATING, so the method saves the whole item. - That save writes the incremented
failureGeneration, although no dead-letter transition was committed. Replay-generation accounting then drifts by one.
Capture and restore
cancelReasonandfailureGenerationas well. Include any other field that the preparation paths change, such asnextEligibleAtif it is set there.Proposed fix
private static void restoreWorkItemAfterFailedIntentTransaction( ScriptWorkItem workItem, WorkItemIntentState intentState) { workItem.setStatus(intentState.status()); workItem.setUpdatedAt(intentState.updatedAt()); workItem.setRowVersion(intentState.rowVersion()); + workItem.setCancelReason(intentState.cancelReason()); + workItem.setFailureGeneration(intentState.failureGeneration()); } - private record WorkItemIntentState(String status, Instant updatedAt, int rowVersion) { + private record WorkItemIntentState( + String status, + Instant updatedAt, + int rowVersion, + String cancelReason, + long failureGeneration) { private static WorkItemIntentState capture(ScriptWorkItem workItem) { return new WorkItemIntentState( - workItem.getStatus(), workItem.getUpdatedAt(), workItem.getRowVersion()); + workItem.getStatus(), + workItem.getUpdatedAt(), + workItem.getRowVersion(), + workItem.getCancelReason(), + workItem.getFailureGeneration()); } }Add a
FailingIntentCommitTransactionManagercase in which preparation dead-letters the item, for example with a malformed runtime owner. Assert thatfailureGenerationandcancelReasonkeep their original values.- Accepted Failed intent commit currently restores status/version but leaks mutated cancelReason and failureGeneration. Restore all actual preparation-mutated fields and add rollback regression; bounded Automation fix assigned.
- CLI Review 15 CompletedRuntime 3m 47sFound: 5 Accepted: 1/0/2 Routed: 0
- Trivial
Update the
SteppedDateTimetest double and final assertion in thereview_stop_audittest to count calls tonowduring the patched audit and assert exactly one call. Remove the post-patchnowcall so it cannot affect the count or mask additional clock reads.- Accepted Count datetime.now calls within the audit regression and remove the post-patch clock read so extra samples cannot pass silently. Proof correction pending.
- Major
Update finalizeHandoff to branch on HandoffExecutionResult.childHandoffAttempted: when no child handoff was attempted, apply a bounded retry disposition or persist the emitted commands for resumption rather than leaving the parent in EVALUATING; retain reconciliation for uncertain attempts. Add a test where beginAggregateFanout fails and assert the work item is not stranded.
- Rejected Post-DSL output has no durable evaluated descriptor/resumption ledger. No child RPC does not prove safe DSL replay; preserve unresolved state for explicit reconciliation. Existing begin-fanout failure proof applies.
- Trivial
Update _hosted_comment_finding_segments to include the parsed fingerprint in its segment dictionary, then use that returned value when building fallback_title instead of extracting it from finding["key"].
- Accepted Pass parsed fingerprint directly in each finding segment and use it for fallback titles; remove brittle key re-parsing. Bounded correction pending.
- Major
Update the
anchor_metadatafilter in the active CLI record construction to retain integer identity fields by converting integer values to strings, while continuing to keep string values unchanged. This letsself._anchoruseparent_prto produce the same parent identity format as Hosted records.- Accepted Active JSON CLI metadata drops integer parent_pr, producing a different parent identity than Hosted; retain integer identity values as strings, excluding booleans. Correction pending.
- Minor
Update the preparation flow and reconcileFailedIntentPreparation to retain the existing event’s rowVersion or outcome before the attempt. Treat a persisted event as possibly committed by this attempt only when its outcome is handoff_in_flight and its rowVersion changed; otherwise preserve the retryable preparation result when the work item state is unchanged.
- Rejected An unchanged pre-existing in-flight intent can represent an earlier uncertain dispatch; rowVersion equality cannot authorize retry or sibling fanout. Newly published unchanged-intent regression proves fail-closed behavior.
- CLI Review 16 CompletedRuntime 3m 30sFound: 5 Accepted: 0/2/1 Routed: 0
- Trivial
Update commitPostEvaluationFenceState to return before opening transactionTemplate when workItem has no authority-unavailable state to clear, checking authorityUnavailableSince, authorityUnavailableCount, and nextEligibleAt; preserve the existing clearing behavior when state is present and adjust evaluationCommitsBeforeHandoffLoopStarts to reflect the skipped transaction.
- Accepted Skip the post-evaluation transaction only when all three authority retry fields are already empty, retaining real outage-state clearing and regression proof. Bounded fix assigned.
- Major
Update the direct-human compatibility check in _save_unlocked to reject only allocations missing one or more of the required nullable fields: stop_checkpoint, merge_base, patch_id, stop_merge_base, or stop_patch_id. Match the narrower predicate used by SqliteStateStore._update_locked so complete direct-human stops remain writable in JSON state.
- Rejected New direct-human stop writes intentionally require the canonical compatible SQLite writer; JSON remains historical-read compatible only. Narrowing the guard would reintroduce unsupported legacy writer semantics.
- Major
In the closed-PR sweep, filter records before calling github.fetch_pull_request: skip those whose trigger created_at is older than the maximum provider cooldown window, or whose stored state is terminal and not rate-limited. Keep the live fetch and cooldown verification for records that could still have an active cooldown.
- Rejected No authoritative maximum provider cooldown window permits an age cutoff, and stored state alone is not live terminal proof. Keep closed-PR cooldown verification fail-closed; no unsupported optimization.
- Minor
Update the AS-1.5 row’s implementation and proof anchor cells to include links to GameSessionControlPlaneGrpcService and GameSessionControlPlaneGrpcServiceTest, respectively, and add AutomationGameplayCommandAdmissionSupportTest to the proof-anchor cell so the receiver-gate claim points to its implementation and focused executable proof.
- Accepted Add exact receiver implementation and focused receiver-gate test links to AS-1.5, separating gated admission proof from lower-level helper proof. Tracker correction assigned.
- Minor
Update the exception handling around
_reconciliationindecide_stopto also catchRuntimeErrorandTypeError, keeping optional reconciliation failures recoverable and allowing stop decisions to proceed.- Accepted Optional stop reconciliation should handle RuntimeError/TypeError like other unavailable optional Git context while preserving mandatory live PR identity and durable stop safety. Focused regression assigned.
- CLI Review 17 CompletedRuntime 4m 00sFound: 5 Accepted: 2/0/2 Routed: 0
- Major
Update all three stop-point checks in _bounded_allocation_progress to require checkpoint ancestry when allocation.reopens_taper is false, matching the condition used by decide_allocation.
- Accepted Match bounded-allocation accepted-fix ancestry clearance to existing fresh-taper versus ordinary allocation checks; historical taper remains unchanged.
- Trivial
Extract the shared dry-run guard, tag normalization, and after-commit counter registration from recordPostEvaluationReconciliationRequired and recordOutcome into one helper such as incrementAfterCommit, parameterized by the metric and extra tags. Update both callers to use it so their commit-deferral behavior stays consistent.
- Accepted Consolidate commit-deferred metric counting while preserving dry-run suppression, tags, and rollback behavior.
- Major
Update reconcileFailedIntentPreparation to treat a persisted handoff row as a possible committed intent only when its outcome is handoff_in_flight; allow pre-existing non-accepted rows to continue through the work-item state checks and return the retryable preparation result when appropriate.
- Accepted Fix retryable failed-intent readback for matching definitive non-accepted rows; preserve in-flight, accepted, mismatched, and changed-state reconciliation holds.
- Major
In the closed-PR scan, skip fetching and verifying a reservation when its parsed trigger creation time is older than the maximum cooldown window. Define
_MAX_HOSTED_COOLDOWNbased on the longest cooldown accepted byhosted._rate_limit, with a safety margin, and apply the age check after the retired-status check in the reservation loop.- Rejected No authoritative maximum provider cooldown exists. Trigger age alone cannot replace live reservation and response verification; retain fail-closed scanning.
- Trivial
Remove the always-true checked field from EvaluationFencePrecheck and update precheckEvaluationFences to construct it with only the failure string; simplify callers to use precheck.failure() directly instead of checking precheck.checked().
- Accepted Remove the always-true evaluation precheck field without changing fence execution or failure semantics.
- CLI Review 18 CompletedRuntime 2m 50sFound: 3 Accepted: 0/1/1 Routed: 0
- Minor
Update the reconciliation-reason argument in the
markPostEvaluationReconciliationRequiredcall to persist the rejected handoff result’s bounded, normalizederrorCodeinstead of usingcanonicalInfrastructureReason. Keep the existing reconciliation flow and stage unchanged.- Accepted Preserve bounded normalized known retryable error codes in the diagnostic reconciliation marker; retain canonical fallback for unknown or missing codes and unchanged unresolved lifecycle.
- Minor
Restore the active-review and stop-evidence gates in decide_stop for direct-human Hosted stops: acquire the appropriate runner locks and run the stop-evidence audit so active reviews, unresolved threads, actionable findings, and unpublished fixes block recording the stop. Keep a stopped channel limited to advancing review discovery; do not treat it as merge-readiness evidence.
- Rejected Contradicts the approved public human-stop contract: recording a stop does not interrupt active runs or waive findings, CI, or merge obligations. Do not reinstate provider locks or clean-evidence prerequisites.
- Trivial
Declare samples as a class attribute initialized to an empty iterator in SteppedDateTime, keeping the later assignment of the test samples unchanged.
- Accepted Declare the stepped-clock fixture iterator at class definition so the helper is self-contained; preserve assigned samples and one-clock-read regression.
- Hosted Review 9 CompletedRuntime 7m 17sFound: 1 Accepted: 1/0/0 Routed: 0
- Do not overwrite or re-dispatch a retained
handoff_in_flightchild intent.MajorWhen a matching child is not accepted,
prepareHandoffcontinues to save the work item and callappendHandoffIntent. That method reuses the existing event ID and row version, replaces the retained event, andhandoffthen calls Game Session again. This can erase the first dispatch’s durable identifiers and other reconciliation evidence.Return a reconciliation-required result when the retained row is already in flight:
if (isAcceptedHandoff(existing)) { return new HandoffPreparation(handoffResult(existing), remoteHandoff); } + if (OUTCOME_HANDOFF_IN_FLIGHT.equalsIgnoreCase(normalize(existing.getHandoffOutcome()).trim()) + || REASON_HANDOFF_IN_FLIGHT.equals(normalize(existing.getHandoffReason()))) { + // A prior dispatch may have been accepted downstream. Keep its in-flight evidence + // and require exact-identity reconciliation instead of dispatching again. + return new HandoffPreparation( + reconciliationRequiredResult( + existing.getGameSessionCommandId(), "existing handoff intent is unresolved"), + remoteHandoff); + } }Add a unit test with a matching
handoff_in_flightrow. Assert that neitherenqueueAutomationCommandIfAbsentnorscheduleRemoteFollowupis called and that the row is not saved.- Accepted Fix prepareHandoff to preserve a matching retained in-flight child and return its existing command identity without event/work-item save or redispatch; focused local/remote negative proof required.
- CLI Review 19 CompletedRuntime 3m 14sFound: 2 Accepted: 0/1/1 Routed: 0
- Minor
Add a concrete reconsideration trigger to the observation about completed helpers in “Expected pattern,” such as when follow-up dispatch behavior changes; retain the entry only if a genuine blocker or deliberate postponement remains, recording its reason and trigger.
- Accepted Add the missing reconsideration trigger for helper-dispatch follow-up; retain prior observation and outcome under append-only stewardship rules, without treating removal as authorized.
- Trivial
Update the implementation-tracking document to keep one concise statement of the receiver-gate result, anchored at the existing Line 17 passage. Replace repeated details in the other identified passages with links to that statement and the Game Session API contract, preserving each passage’s distinct implementation status.
- Accepted Consolidate duplicated receiver-gate status at its existing tracker passage and link secondary passages plus the API owner, preserving each distinct helper, tuple and proof limitation.
- CLI Review 20 CompletedRuntime 4m 07sFound: 4 Accepted: 0/1/0 Routed: 0
- Major
Bound the closed-PR cooldown sweep before calling
github.fetch_pull_request: define a named constant from the provider’s documented maximum cooldown and skip reservations with a missing trigger ID or acreated_atolder than that horizon. In the sweep aroundhosted.load_trigger_reservationandhosted.trigger_state, ensure unreadable or unfetchable historical reservations do not block Hosted admission; only a verified, future-dated, attributed cooldown should keep the repository blocked.- Rejected Repeated unsupported cooldown horizon and fail-open reservation sweep. No authoritative provider maximum exists; unreadable/unfetchable reservations cannot safely prove absence of an active review or future cooldown.
- Major
Update the direct-human writer fence in
_save_unlockedto reject only allocations missing one or more required checkpoint or stop-identity fields, allowing complete direct-human stops to save to JSON. Extract the predicate into a shared helper and use it in both_save_unlockedandSqliteStateStore._update_lockedso the stores apply the same compatibility check.- Rejected Repeated incompatible JSON-write proposal: direct-human stops are explicitly fenced to version-matched SQLite because older JSON code cannot honor the newer durable stop semantics. Complete identity fields do not make that writer safe.
- Minor
Clarify the command-ID rejection branch in the production executor description as defensive or lower-level behavior, not a response currently reachable from the authenticated Game Session receiver; keep the receiver-fence behavior and existing admission classifications otherwise unchanged.
- Accepted Clarify retained-command rejection handling as defensive/lower-level classification, not a response currently reachable from the fail-closed authenticated receiver. Preserve all identity and admission classifications.
- Minor
The reconsideration trigger retains a resolved observation without a genuine blocker or deliberate postponement; remove this entry, or revise it to document the remaining blocker or postponement and its reconsideration trigger.
- Rejected Ordinary review work is append-only for AI observations; removal requires authorized stewardship/health check. The resolved outcome is truthful and must not be rewritten into a fictitious blocker merely to retain it.
- Hosted Review 10 CompletedRuntime 11m 47sFound: 3 Accepted: 1/1/1 Routed: 0
- Stop fan-out after an unrecorded preparation-unavailable result.Major
ScriptGameplayCommandHandoffServiceImpl.handoffreturnsretryablePreparationResult()on the preflight-exception,SKIPPEDruntime-scope, and unchanged intent-readback paths. These paths do not persist a child event.The executor stops only for
HANDOFF_IN_FLIGHT, so it can dispatch later siblings while the earlier ordinal has no durable record. If no later non-retryable rejection replaces it, finalization marks the parentpost_evaluation_reconciliation_required:unavailable, but the missing ordinal remains unidentified.Keep continuing after a persisted downstream retryable rejection. For the preparation-specific result, record
unattemptedevents for the current and remaining commands before stopping, or persist the event insidehandoffbefore returning. Match the exact preparation result, including its"handoff preparation unavailable"message; do not stop for everyUNAVAILABLEresult.Suggested executor fix
if (isHandoffReconciliationRequired(result)) { // This child may already have been accepted remotely. Preserve that in-flight evidence // and defer all later siblings until this exact child has been reconciled. break; } + if (isPreparationUnavailable(result)) { + for (int i = commandIndex; i < commands.size(); i++) { + handoffService.recordUnattempted( + workItem, commands.get(i), "handoff_preparation_unavailable"); + } + break; + }- Accepted Fixed10cbb1ca1: typed PREPARATION_UNAVAILABLE stops unrecorded sibling fan-out; diagnostic text remains nonsemantic and persisted rejection continues. Producer/executor regressions among299 passing Automation tests; enabled Spotless/SpotBugs pass.
- Use one audit timestamp for the rate-limit expiry check in
_current_hosted_history.Trivialreview_stop_auditcapturesaudit_nowonce and passes it tolegacy_transition_reauthorization_audit.channel_historystill comes fromself.history, and that path reaches_current_hosted_history. At Line 1601,_current_hosted_historyreadsdatetime.now(timezone.utc)again. Assume a cooldown expires between the two reads. The audit then counts the cooldown as active, but the history omits it. The stop result then reports rate-limit state that does not agree across its sections. This window is narrow, and the effect is diagnostic only, because blockers come fromaudit. Pass an optionalnowvalue through_current_hosted_historyso that every check uses the same timestamp.- Accepted Fixed in published 10cbb1ca1: pin history and cooldown classification to audit_now, bypass unpinned cache for timed audit. Boundary-expiry and cache regression included; all882 controller tests and Ruff pass.
- Add an outcome or a reconsideration trigger to this entry.Minor
The coding guideline says: "Retain an entry only when a genuine blocker or deliberate postponement remains, recording the reason and reconsideration trigger." The 2026-09-30 entries at Lines 138-169 record an
Outcomeor aReconsideration trigger, or both. This entry records neither. Add a line that says whether the cutover-marker and backup-checkout issues are resolved. If they are not resolved, state when to revisit the entry.- Accepted Fixed in published 10cbb1ca1: append outcome and reconsideration trigger without deleting history or asserting backup readback not performed. Canonical linkCheck/lintMarkdown passed.
Routed Findings
Route 1 · PR #2909 → PR #2839 Accepted/FixedMajorUpdate the generated-effects invariant describing child identity to use the same owner-defined, deterministic child ordinal allocated and persisted by the owning contract for repla
Update the generated-effects invariant describing child identity to use the same owner-defined, deterministic child ordinal allocated and persisted by the owning contract for replay-stable reuse as the execution-flows document; do not describe the ordinal as digest-covered while ADR 0183 remains pending.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: remove unapproved digest-covered ordinal claim pending ADR0183.
Route 2 · PR #2909 → PR #2839 Accepted/FixedMinorRemove the mandatory forwarded-request contract from the superseded ADR 0011 and link to the corresponding current requirement in ADR 0170, keeping the active forwarding contract a
Remove the mandatory forwarded-request contract from the superseded ADR 0011 and link to the corresponding current requirement in ADR 0170, keeping the active forwarding contract authoritative there.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: superseded ADR0011 must link current ADR0170 forwarding owner.
Route 3 · PR #2909 → PR #2839 Accepted/FixedMinorQualify the crash-recovery claims in the recovery descriptions so they distinguish current behavior from target behavior: state that current recovery can reconstruct only states su
Qualify the crash-recovery claims in the recovery descriptions so they distinguish current behavior from target behavior: state that current recovery can reconstruct only states supported by existing durable records, and that a STAGED command without a tick_batch or tick_effect is not currently recovered. Keep the existing replay-authority limits intact.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: current crash recovery bounded by existing durable records, missing STAGED recovery explicit.
Route 4 · PR #2909 → PR #2839 Accepted/FixedMinorMove the normative preimage specification from this historical ADR to the active canonical contract, then replace the specification here with a link to that contract. Keep the refe
Move the normative preimage specification from this historical ADR to the active canonical contract, then replace the specification here with a link to that contract. Keep the reference to ScriptScheduleInstanceServiceImpl.TimerFiringCandidate.identity() only as context if needed; do not leave this ADR defining the current implementation requirement.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: normative timer preimage at canonical contract owner, historical ADR owner link.
Route 5 · PR #2909 → PR #2839 Accepted/FixedMajorUpdate the generated_effect mapping for commandId_or_effectKey to use the recorded child EffectId as the identity slot, without tying its allocation to the parent/root identity or
Update the generated_effect mapping for commandId_or_effectKey to use the recorded child EffectId as the identity slot, without tying its allocation to the parent/root identity or child ordinal. Leave child-ID allocation unresolved pending ADR 0183.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: source-specific scheduling slot uses recorded child EffectId without deciding allocation proposal.
Route 6 · PR #2909 → PR #2839 Accepted/FixedMinorMark the `DROP`/`PICKUP` sequence in the Game Session runtime-and-data documentation as target state, rather than describing it as current behavior. Keep the actor-lock, barrier, a
Mark the
DROP/PICKUPsequence in the Game Session runtime-and-data documentation as target state, rather than describing it as current behavior. Keep the actor-lock, barrier, and stale-evidence requirements intact.Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: DROP/PICKUP critical-section sequence target-state not completed implementation.
Route 7 · PR #2909 → PR #2839 Accepted/FixedMajorUpdate the World Management retry guidance to use the persisted mutation EffectId for both retries and the participant guard, including generated-child MOVE and PICKUP operations;
Update the World Management retry guidance to use the persisted mutation EffectId for both retries and the participant guard, including generated-child MOVE and PICKUP operations; retain the command-root EffectId only for lineage so retries are recognized as replays.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: persisted mutation EffectId versus root lineage in World retries.
Route 8 · PR #2909 → PR #2839 Accepted/FixedMinorUpdate the consolidation status on Line 113 to include ADR 0184 alongside ADRs 0179–0182, consistent with the recorded `EDGE-WITHDRAWAL-01` decision. Locate the status text by its
Update the consolidation status on Line 113 to include ADR 0184 alongside ADRs 0179–0182, consistent with the recorded
EDGE-WITHDRAWAL-01decision. Locate the status text by its reference to the direct decisions being integrated.Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: include integrated ADR0184 in direct-decision consolidation status.
Route 9 · PR #2909 → PR #2839 Accepted/FixedMinorUpdate the canonical handoff identity description to make clear that source tenantId and gameInstanceId are shared fields inherited from the row, alongside playableStateNamespaceId
Update the canonical handoff identity description to make clear that source tenantId and gameInstanceId are shared fields inherited from the row, alongside playableStateNamespaceId, regionId, and regionEpoch; ensure the identity list and lookup tuple consistently include them.
Outcome: Published #2839 f8af1b52a5ec1f076f04223fea30b722b871f1ba preserves the received canonical contract correction. Exact assembled head: 228 architecture tests, linkCheck and lintMarkdown pass. Runtime gaps remain explicitly unimplemented.
Earlier routing and proof
Earlier decisions
- Accepted Target owner accepts this bounded contract/proof-status correction; local implementation in progress, no published fix or resolution yet
- Routed Route to #2839 contract corpus: source tenantId/gameInstanceId inherited identity fields explicit.
Unlinked items
no items unlinked