From 07d37a676823bb3fe606cf9f55fbe4e205bafda6 Mon Sep 17 00:00:00 2001 From: NagyVikt Date: Wed, 22 Apr 2026 21:53:06 +0200 Subject: [PATCH] Keep merged cleanup evidence truthful after the helper lane lands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The helper replacement branch could only prove its PR URL, MERGED state, and ref/worktree cleanup after the guarded finish flow completed, so the merged change needed one tiny bookkeeping pass to mark those final cleanup boxes truthfully on main. Constraint: Post-merge cleanup truth becomes knowable only after the original agent branch is already merged and pruned Rejected: Leave the cleanup boxes unchecked after merge | conflicts with the user’s explicit DoD that every checkbox be complete Confidence: high Scope-risk: narrow Reversibility: clean Directive: When cleanup proof is only knowable after merge, backfill the existing change artifact immediately instead of leaving stale unchecked boxes behind Tested: openspec validate agent-codex-replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06 --type change --strict Not-tested: Runtime code paths; this follow-up only changes OpenSpec bookkeeping --- .../tasks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openspec/changes/agent-codex-replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06/tasks.md b/openspec/changes/agent-codex-replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06/tasks.md index d5c7018..a2bf823 100644 --- a/openspec/changes/agent-codex-replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06/tasks.md +++ b/openspec/changes/agent-codex-replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06/tasks.md @@ -32,6 +32,6 @@ This change is complete only when all of the following are true: ## 4. Cleanup -- [ ] 4.1 Run `gx branch finish --branch agent/codex/replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06 --base main --via-pr --wait-for-merge --cleanup`. -- [ ] 4.2 Record PR URL and final merge state (`MERGED`) in the completion handoff. -- [ ] 4.3 Confirm the sandbox worktree is removed and no local/remote refs remain for the branch. +- [x] 4.1 Run `gx branch finish --branch agent/codex/replace-custom-semver-jsonc-stdin-helper-2026-04-22-18-06 --base main --via-pr --wait-for-merge --cleanup`. +- [x] 4.2 Record PR URL and final merge state (`MERGED`) in the completion handoff. +- [x] 4.3 Confirm the sandbox worktree is removed and no local/remote refs remain for the branch.