Fix Goose residual close-trailer repair #1298
No reviewers
Labels
No labels
burndown-2026-06
pressure-test
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/ward!1298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-993"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix Goose residual close-trailer repair for committed residual work and empty-repo establish-main.
This keeps committed residual Goose runs on the repair-and-push path instead of salvaging them, and it repairs close trailers before empty-repo establish-main lands. I also tightened the regression coverage so the residual-only and empty-repo cases match the new contract.
go test ./cmd/ward -run 'TestReapTargetTreeResidualOnlyRunWithoutCloseRefRepairs|TestReapTargetTreeCommittedResidualWithoutCloseRefRepairsAndLands|TestReapTargetTreeEmptyRepoMissingCloseRefRepairs|TestReapTargetTreeRepairsResidualCommitCloseRef|TestResidualCommitStateDistinguishesDirtyOnlyAndCommittedResidual|TestRepairClosingReferenceCreatesEmptyCommitForMultiCommitShape'passed.go test ./cmd/wardstill hits pre-existing config-source and capability baseline failures.closes #1298
ward.workflow: pull-request-and-merge
WARDED_WORKFLOW: failed ❌
details
workflow: pull-request-and-merge; review summary: skipped (temporary ward default pending brokered QA)
The Goose residual close-trailer path is fixed and the focused
cmd/wardtests pass, but the repo-wideward exec testgate still fails in this container on the pre-existing config-source and capability baseline:TestCapabilityGuardfilesExist,TestEngineerContainerLimitBelowAndAtLimit,TestBacklogRefreshReservationStates,TestSweepStaleContainerAssets,TestSweepStaleLaunchEnvFiles,TestOverrideForgejoCreateIssueAddsQuietFlag,TestForgejoGraftInventory,TestOverrideForgejoViewIssueSwapsLeaf,TestRunSetupWithUnsetRef,TestSmartDefaultsBaked,TestMountWardKdlExecMountsNewSurfaces.Retrospective: the Goose fix felt straightforward once the wrong salvage gates were isolated. The blocker is external to this patch. Confidence: medium. Follow-up: fix the bundle/config-source baseline so
ward exec testcan turn green.WARDED_WORKFLOW: reservation-held
reservation details
Holder: launch intent for container
engineer-codex-ward-1298on hostkais-macbook-pro-2.local.Accepted by
ward agent --harness codex(reserved 2026-07-15T05:16:31Z). Concurrentward agentruns are blocked until this intent becomes visible or the intent is released. The stale-intent fallback is still TTL-bounded (3h TTL).--override-reservationoverrides.Do not comment on or edit this issue to steer the run while it is reserved. The engineer seeded the body once at launch and never re-reads it, so a comment or edit reaches only human readers, never the running engineer. A correction goes to a new issue, dispatched fresh. That is the only channel that reaches a run in flight. Where the forge supports it, ward locks this conversation to make that a road-block rather than a convention (ward#494).
run seed context — what this run is carrying (ward#609)
coilyco-flight-deck/ward#1298· branchissue-1298· harnesscodex· workflowpull-request-and-mergeengineer-codex-ward-1298· wardv0.697.0· dispatched2026-07-15T05:16:14ZStatic container doctrine and seed boilerplate are identical every run and omitted here (they ride ward v0.697.0).
— Codex, via
ward agentWARDED_WORKFLOW: #1298
details
workflow: pull-request-and-merge; review summary: skipped (temporary ward default pending brokered QA)
Goose residual close-trailer repair now routes committed residual work through repair-and-push, and empty-repo establish-main repairs the trailer before landing.
Confidence: medium-high.
Surprise: the live PR head was the stale
issue-993branch, so I updated that branch and merged currentmaininto it.Follow-up: merge PR 1298.