Skip to content

fix(platform): quarantine legacy runs at protocol cutover - #4539

Merged
yannickmonney merged 3 commits into
mainfrom
fix/automation-legacy-cutover
Oct 8, 2026
Merged

yannickmonney merged 3 commits into
mainfrom
fix/automation-legacy-cutover

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The first upgrade to automation run leases can otherwise let a previous image claim or replay unfinished work without the new lease/effect protocol. Migration 0163 atomically puts unfinished legacy runs on hold, preserves their original state and evidence, and rejects incompatible execution writes. Five existing execution queues receive a shared protocol mapping, so old workers cannot consume newly admitted work.

Held runs remain visible and occupy their task. An authorized, exact-identity Request stop records the decision and requests owned session cancellation while keeping the outcome unknown and the hold in place. UI, REST/OpenAPI and EN/DE/FR documentation expose that distinction. The CLI refuses targets below the installed ledger or any installed writer capability before mutation.

Compatibility and limits

  • Old reads, canonical run inserts and unrelated work remain supported during the roll; incompatible old automation execution intentionally fails closed. This is not a claim that all old-image behavior remains available.
  • Already-admitted external effects may finish. This change neither claims exactly-once legacy effects nor automatically replays an unknown outcome. A stop request is not proof of termination or a release of the task hold.
  • The retained old start/resume tests execute exact released function bodies and old run/ask SQL, with external ports recording requested effects. They do not prove real provider cleanup or confirmed cancellation.
  • Rollback admission covers the maintained CLI and deployment lock. Manually introducing old writers or bypassing that lock is not supported.

Validation status

Current head f1dc6f93 combines the independently reviewed cutover and CI repairs with main's parser repair (1c5cb8b0). The merge preserves all 147 nonshared feature files and 21 nonshared parser files byte for byte; the shared manual register contains both sets of entries. Normal commit hooks and current scoped format, conflict and manual guards pass. Fresh complete hosted validation is required before merge.

The previous head 017a1dd4 passed actual 1,740/1,740 backend checks across 236/236 lanes, with no required lane skipped. Its other CI jobs exposed type, formatting, unused-code, queue-fixture, organization-writer-fixture and build-metadata defects. Those failures remain visible. The reviewed repairs preserve the assertions and add missing-source refusal coverage; causal focused tests pass. Docker protocol validation now precedes version metadata, and the final image retains both labels. These changes require fresh current-head CI; the earlier native result is not a result for this head.

The original 144-file predecessor also passed the complete isolated native harness (1,734/1,734 over 235/235). Current-source hosted checks own final acceptance while shared local resources are constrained.

Checklist

  • All seven current-head required workflow results and whole workflows pass.
  • Current-head complete native Backend integration passes without required lane skips.
  • Independent source and composition reviews complete; focused regression failures reproduced and repaired.
  • Held-state UI messages cover EN/DE/FR and the relevant de-CH override.
  • User documentation covers held runs and upgrade/rollback limits in EN/DE/FR.
  • Relevant backend/CLI READMEs and manual references updated; root READMEs unaffected.

Test plan

  • Run the maintained complete hosted checks and native Backend integration on this exact head.
  • Exercise actual old claim/progress/ask/start/resume paths around the real migration transaction, stale snapshots, task occupancy and protected evidence changes.
  • Verify queue isolation with real old/new pg-boss workers and protocol-floor refusal against actual PostgreSQL catalog reads.
  • Confirm the held-state UI keeps its selected identity through refresh and never presents ordinary resume/retry/cancel actions as releasing an unknown outcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant