Skip to content

docs(pm-stack): #10140 fixture 5b pass + config-format root cause; guard heals config text - #10316

Merged
dezren39 merged 2 commits into
mainfrom
docs/kaneo-sync-config-format-10140
Nov 17, 2026
Merged

dezren39 merged 2 commits into
mainfrom
docs/kaneo-sync-config-format-10140

Conversation

@dezren39

@dezren39 dezren39 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Records the completion of #10140's last acceptance item (fixture 5b) and the root cause it exposed.

Fixture 5b — fixture issue #10308 / Kaneo task CODE-3715, moved to Done via the Kaneo API using the new dedicated Muse Automation account + muse-pm-automation API key: bot applied status:done 2026-11-14T17:51:20Z, closed the issue 17:51:21Z, stable across a closure-watchdog sweep.

Root cause of the first 5b failure — Kaneo 2.47.0's outbound field sync (syncLatestTaskValue: issue state/title/description) string-compares integration.config text against JSON.stringify(JSON.parse(config)). The jsonb_set(...)::text writes used by the containment fix (and the guard's heal) leave jsonb-spaced text, so the comparison always failed and outbound state sync silently aborted on all four GitHub integrations — labels (parsed comparison) kept working, which masked it. All four configs were rewritten semantically-identical in compact form; the guard now treats non-compact config text as drift and rewrites it compactly after healing (live-verified: induced format drift → DRIFT + HEALED, exit 1).

Credentials for the automation account live only in fleet secrets, by name: kaneo.muse-automation-password, kaneo.api-key-muse-automation (documented in the doc's new section). No secret values in this PR.

Closes the documentation half of #10140; evidence comment is on #10140 itself.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…use; guard heals config text format

Fixture 5b (human Done move in Kaneo -> issue closes) initially failed:
Kaneo applied status:done but never closed the issue. Root cause:
syncLatestTaskValue string-compares integration.config text against
JSON.stringify(JSON.parse(config)); the jsonb_set writes used by the
containment fix and the guard heal leave jsonb-spaced text, silently
aborting outbound state/title/description sync on all 4 integrations.

- All 4 configs rewritten in compact JSON.stringify form (semantically
  identical); 5b re-run passes (#10308 closed by bot 17:51:21Z).
- Guard now treats non-compact config text as drift and rewrites it
  compactly after healing (verified live both ways).
- Doc: 5b row updated, caution on the re-apply SQL, new section with
  root cause + the dedicated Muse Automation account record
  (credentials by fleet-secret name only).
@dezren39
dezren39 requested a review from a team as a code owner November 14, 2026 17:59
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T17:59:38.249088Z
We couldn’t complete this review. Comment @codex review to try again.
dfde242 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a9583580-fdff-4fdc-8ce1-327c5edf51b8
Commits

Reviewing files that changed from the base of the PR and between e99011d and 6d1efbe.

Files selected for processing: 2

  • pm-stack/KANEO-GITHUB-SYNC.md
  • pm-stack/kaneo-sync-guard.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Member Author

Please make the final persisted text the combined acceptance oracle with #10316, not just the parsed statusTransitions map. I checked #10316's patch: its current Python compact serialization is not always byte-equal to Kaneo’s JSON.stringify(JSON.parse(config)) (integer-like property keys and 1.0 differ in a local fixture), and a value containing an apostrophe skips the compact UPDATE without an error. A fixture with one permitted extra, one forbidden extra, and an unrelated string containing an apostrophe should assert the exact JS predicate on the post-write readback plus preservation and full transition invariants. Prefer one parameterized/encoded atomic write with a failed-write readback check; avoid a JSONB-to-text intermediate write that can regress outbound sync. Existing owners retain their claims; no deploy requested.

# Conflicts:
#	pm-stack/KANEO-GITHUB-SYNC.md
#	pm-stack/kaneo-sync-guard.py
@dezren39
dezren39 merged commit 18c8b74 into main Nov 17, 2026
@dezren39
dezren39 deleted the docs/kaneo-sync-config-format-10140 branch November 17, 2026 01:04
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.

2 participants