Repository navigation
chore: harden Beads synchronization and corrective state - #2834
Conversation
The active pre-push hook ran mypy and every generated-surface check even when the complete pushed diff only changed .beads/. A typical bookkeeping push spent 71 seconds proving product code that had not changed. Parse Git pre-push update lines once, classify the complete published diff, and run only JSONL dependency-integrity checks D1/D2 for Beads-only pushes. Mixed or code pushes retain the full quick gate, and the update stream is replayed to the Beads hook. Both active and template hooks share the selector. Behavioral tests cover existing/new/mixed refs and malformed input. Co-Authored-By: Codex <[email protected]>
The corrective design state had two independent deficits: 24 execution records lacked standalone acceptance criteria, and Beads 1.0.4 server-mode auto-import could replay stale branch JSONL over newer live rows. Add behavior-level AC to all 24 records, reconcile area/horizon/dependency/ref hygiene, preserve optional marker adoption pending declaration-recall evidence, record the disabled billing-locked workflows, and close the completed server migration/root incident. Keep generalized monotonic import receipts and concurrent bootstrap hardening on gxjh.1. The current 777-record export has zero backlog-hygiene findings, no graph cycles, no inversions, no duplicate labels, and no missing AC. All 29 fields from the earlier corrective reconciliation remain exact substrings of their current records. Co-Authored-By: Codex <[email protected]>
Normalize the corrective JSONL against the current master ordering after conflict resolution. This removes serialization-only churn while retaining all 50 semantic record changes and the new monotonic-sync follow-up. Co-Authored-By: Claude <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (7)
🔥 Files not summarized due to errors (1)
📝 WalkthroughWalkthroughPre-push hooks now pass push updates to a Python gate. The gate computes changed paths, runs D1/D2 hygiene checks for Beads-only pushes, and runs stamped quick verification for other pushes. Hygiene checks support filtering and stricter Bead-reference matching. ChangesPre-push verification gate
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related issues
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant Git
participant PrePushHook
participant PrePushGate
participant GitDiff
participant VerifyBacklogHygiene
participant DevtoolsVerify
Git->>PrePushHook: provide update lines
PrePushHook->>PrePushGate: pass temporary updates file
PrePushGate->>GitDiff: compute changed paths
GitDiff-->>PrePushGate: return changed paths
alt Beads-only changes
PrePushGate->>VerifyBacklogHygiene: run checks D1,D2
else Other changes
PrePushGate->>DevtoolsVerify: run verify --quick when needed
end
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b498df8d1
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Makes the July corrective design synthesis durable and independently auditable in Beads, repairs backlog hygiene across the full export, and prevents Beads-only pushes from paying the full Polylogue quick-gate cost.
Problem
The Beads 1.0.4 server fallback auto-imported the checked-out JSONL before every mutation without checking whether the database was empty. In a branch-heavy shared checkout this could replay stale rows over newer live state. The corrective synthesis also left 24 open records without executable acceptance criteria and several label, priority, dependency, and design-hygiene defects. Finally, Beads-only pushes were running the same mypy/render gate as product-code pushes.
Ref polylogue-gxjh and polylogue-gxjh.1.
Solution
polylogue-stcmeasures declaration recall before any future mandate.devtools verify --quick.The upstream Beads server-empty guard itself is deployed from Sinnix commit
fd47118; this repository records the incident and proof rather than vendoring the binary patch.Verification
devtools test tests/unit/devtools/test_pre_push_hook.py tests/unit/devtools/test_verify_backlog_hygiene.py— 14 passed.devtools verify --quick— 15/15 steps passed; 36.06s; run20260713T074947Z-quick-3660747-df0fafca..agent/scripts/bd-graph-lint— no dependency cycles; duplicate labels=0, inversions=0, missing AC=0.python3 devtools/verify_backlog_hygiene.py— zero unhandled findings across 777 issues.GitHub-hosted workflows are disabled while the account is billing-locked, so local gates above are the publication evidence for this PR.
Summary by CodeRabbit
New Features
Bug Fixes
Tests