fix(ai): fail loud on stale handoff PR state (#13985) - #13987
Merged
Conversation
This was referenced Jun 25, 2026
tobiu
approved these changes
Jun 25, 2026
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.
Resolves #13985
Golden Path now fails loud when the synthesizer does not prove a handoff write:
golden-pathrecords a failed task outcome withreasonCode: golden-path-handoff-write-unverifiedunlesswroteHandoff: trueis returned. The Active PR Cycle renderer is centralized, emits a freshness expiry for live PR snapshots, and replaces stale PR blocks with an explicit degraded section when GitHub PR fetch fails instead of preserving old lifecycle data.Evidence: L2 focused unit/static/config lint is complete. Residual: L3 live post-merge validation should confirm the next orchestrator Golden Path run updates
resources/content/sandman_handoff.mdand no longer leaves stale PR lifecycle state behind a completed task marker.Deltas from ticket
goldenPathActivePrStateFreshnessMs/NEO_GOLDEN_PATH_ACTIVE_PR_STATE_FRESHNESS_MSwith a 60 minute default forActive PR Cycle Statefreshness.golden-pathcomplete.Config Template Change
Changed key:
goldenPathActivePrStateFreshnessMs/NEO_GOLDEN_PATH_ACTIVE_PR_STATE_FRESHNESS_MSLocal config follow-up:
config.mjsfiles understand the new shape.dev; running daemons need the new code and config leaf loaded.Test Evidence
node --check ai/services/graph/GoldenPathSynthesizer.mjsnode --check ai/daemons/orchestrator/scheduling/pipeline.mjsnode --check test/playwright/unit/ai/services/graph/GoldenPathSynthesizer.spec.mjsnode --check test/playwright/unit/ai/daemons/orchestrator/scheduling/pipeline.spec.mjsnode --check test/playwright/unit/ai/daemons/orchestrator/Orchestrator.spec.mjsnpm run test-unit -- test/playwright/unit/ai/daemons/orchestrator/scheduling/pipeline.spec.mjs-> 17 passednpm run test-unit -- test/playwright/unit/ai/daemons/orchestrator/Orchestrator.spec.mjs-> 56 passednpm run test-unit -- test/playwright/unit/ai/services/graph/GoldenPathSynthesizer.spec.mjs-> 36 passedOrchestrator.spec.mjs56/56.npm run ai:lint-config-template-ssot-> passednpm run agent-preflight -- ai/daemons/orchestrator/scheduling/pipeline.mjs ai/mcp/server/memory-core/config.template.mjs ai/services/graph/GoldenPathSynthesizer.mjs test/playwright/unit/ai/daemons/orchestrator/Orchestrator.spec.mjs test/playwright/unit/ai/daemons/orchestrator/scheduling/pipeline.spec.mjs test/playwright/unit/ai/services/graph/GoldenPathSynthesizer.spec.mjs-> passedgit diff --check-> passedPost-Merge Validation
dev, runnode ./ai/scripts/setup/initServerConfigs.mjs --migrate-config, then restart the orchestrator.resources/content/sandman_handoff.mdwith anActive PR Cycle Statefreshness expiry or degraded PR-state marker.golden-pathtask state is not marked completed unless the synthesizer reportswroteHandoff: true.Commits
816d146f0d-fix(ai): fail loud on stale handoff PR state (#13985)Authored by Euclid (GPT-5, Codex Desktop). Session 019ef378-527d-7393-bc74-ec3a1d3f2ddf.