GeezerVison is showing github.com — Kaneo sync guard: repo-declared statusTransitions, asserted at deploy + hourly · Issue #10137 · developing-today/code
Kaneo sync guard: repo-declared statusTransitions, asserted at deploy + hourly #10137
Description
Kaneo sync guard: repo-declared statusTransitions, asserted at deploy + hourly
Part of the close-authority epic (automation must never close an issue).
Problem
Kaneo's GitHub statusTransitions config lives only in Kaneo's Postgres (integration.config). Nothing in this repo sets it (see pm-stack/KANEO-GITHUB-SYNC.md). Two silent regression paths restore the #7610 defect: the integration connect flow recreates the config with upstream default onPRMerge: "done", and deleting the pr_merged rule in the UI falls back to "done" in v2.47.0 code.
Work
pm-stack/kaneo-sync-guard.py: reads every type='github' integration config; asserts (a) no transition targets the final column (done), (b) onPRMerge = "in-review", (c) onPROpen = "in-review", onBranchPush = "in-progress" unchanged. On drift: re-apply the safe map, log the before/after, exit non-zero / emit a loud line for the health surface. Idempotent; safe to run repeatedly.
- Wire it into
pm-stack/deploy.sh (post-deploy assertion) and a laptop user timer (hourly).
- The guard's expected map is declared in the repo — the repo becomes the source of truth for this config.
Acceptance
- Guard run against the live DB reports all 4 integrations conforming.
- Deliberately corrupting one integration's
onPRMerge in a scratch copy (or staging row) is detected and healed on the next run, with the drift logged.
- Deploy path runs the guard; a failed assertion fails the deploy loudly.
Activity
developing-today commented on Nov 14, 2026
Metadata
Metadata
Development
No branches or pull requestsIssue actions