Skip to content

fix(gastown): stop false-positive invariant violations in reconciler#1829

Closed
jrf0110 wants to merge 1 commit intomainfrom
convoy/bug-fixes-1756-1364-1632-1341/f3939d64/gt/birch/eabbd424
Closed

fix(gastown): stop false-positive invariant violations in reconciler#1829
jrf0110 wants to merge 1 commit intomainfrom
convoy/bug-fixes-1756-1364-1632-1341/f3939d64/gt/birch/eabbd424

Conversation

@jrf0110
Copy link
Copy Markdown
Contributor

@jrf0110 jrf0110 commented Apr 1, 2026

Summary

  • Invariant 7: Exclude mayors from the "working agent must have a hook" check — mayors are always working and intentionally have no hook, causing false-positive violations every 5s.
  • Invariant 5: Widen the valid convoy bead states from just open/closed to include in_progress and in_review as valid transient states. Only flag truly unexpected states instead of all in-progress convoys.

Verification

  • Typecheck passes (pnpm typecheck via pre-push hook)
  • Lint passes (oxlint via pre-push hook)
  • Format check passes (oxfmt via pre-push hook)
  • Manual review of SQL query changes for correctness

Visual Changes

N/A

Reviewer Notes

These two invariant checks were firing every reconciler tick (5s), spamming logs with false positives. The fixes are minimal SQL filter changes with clear semantics.

…every 5s

Invariant 7: Exclude mayors from the 'working agent must have a hook'
check — mayors are always working and intentionally hookless.

Invariant 5: Widen valid convoy bead states to include in_progress and
in_review, which are legitimate transient states while child beads are
being worked on. Only flag truly unexpected states.

Fixes #1364
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot bot commented Apr 1, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • cloudflare-gastown/src/dos/town/reconciler.ts

Reviewed by gpt-5.4-20260305 · 1,983,373 tokens

@jrf0110
Copy link
Copy Markdown
Contributor Author

jrf0110 commented Apr 1, 2026

Work consolidated into the convoy landing PR — see #1862

@jrf0110 jrf0110 closed this Apr 1, 2026
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