Skip to content

chore(beads): adopt Dolt-backed sync via refs/dolt/data; stop tracking issues.jsonl - #117

Merged
ncipollina merged 1 commit into
mainfrom
chore/beads-dolt-sync
Nov 24, 2026
Merged

ncipollina merged 1 commit into
mainfrom
chore/beads-dolt-sync

Conversation

@ncipollina

Copy link
Copy Markdown
Contributor

Beads: cdkc-lqw.

Summary

Owner decision (2026-11-24): this repository now uses the same Dolt-backed Beads synchronization model as Jedi Duel. The embedded Dolt database is authoritative and synchronizes through refs/dolt/data and the Beads-managed __dolt_remote_info__ branch (bd dolt push / bd dolt pull). The committed .beads/issues.jsonl export is no longer the store.

  • Stop tracking .beads/issues.jsonl, and ignore JSONL exports (.beads/.gitignore). The records themselves are not deleted; they live in the Dolt database and its remote.

  • .beads/config.yaml:

    • removed export.auto: true / git-add, so no automatic JSONL export;
    • removed no-git-ops: true (stealth mode);
    • kept issue-prefix, sync.remote and dolt.auto-push: false.

    This matches Jedi Duel's configuration.

  • CLAUDE.md: a new "Issue Tracking (Beads)" section covering storage and sync rules, the protected refs, no committed exports, fresh-clone bootstrap, and agent roles.

Migration evidence (actually run, 2026-11-24)

  1. Backup:

    • a tarball of the complete .beads/ directory, including embeddeddolt/ and the local backup/;
    • a full bd export of the pre-migration state.

    Both are kept outside the repository.

  2. Remote refs inspected first: neither refs/dolt/data nor __dolt_remote_info__ existed (the earlier accidental refs had been deleted). Nothing was overwritten.

  3. Superset check: every record in main's tracked .beads/issues.jsonl (39) exists in the database (50). No record existed only in Git. The 6 status differences are newer database states (3.0.0: drop net8/net9, update all dependencies, SDK and workflows, Compono-first tests #109 closed, gates closed, 3.0.0: LambdaFunctionConstruct alias name, alias-only permissions, public alias, scoped log policy, S3 artifacts #110/3.0.0: private static-assets construct (Block Public Access, CloudFront OAC, optional DNS, immutable deployment) #111 in progress).

  4. First push: bd dolt push, no force. It created refs/dolt/data (d09d35a) and refs/heads/__dolt_remote_info__ (91d8ded).

  5. Fresh clone of main: bd bootstrap --dry-run reported "clone from remote, Database: cdkc". After bd bootstrap --yes, 4,440 chunks were synced and the records matched the pre-migration export exactly:

    Issues Dependency edges Content digest Dependency digest IDs
    before 50 104 1f46150d… 9d5211ef… same set
    fresh clone 50 104 identical identical identical

    The content digest covers id, title, status, type, priority, description, notes, acceptance criteria, labels, external ref, created/closed timestamps and close reason. No record was renumbered.

  6. Two-way synchronization:

    • the primary created cdkc-lqw and pushed;
    • the fresh clone pulled it, wrote a note and pushed;
    • the primary pulled and saw the note.
  7. Fresh clone of this branch (with no tracked JSONL): bootstrap again cloned from the remote and returned 51 records (50 + cdkc-lqw), including the sync-test note.

Open PRs

After merge

The primary checkout pulls main. Its working copy then stops auto-exporting JSONL (export.auto removed), and the untracked local issues.jsonl is ignored.

No code, package, release or AWS change.

🤖 Generated with Claude Code

…g issues.jsonl

Owner decision 2026-11-24: cdk-constructs uses the same Dolt-backed Beads
synchronization model as Jedi Duel. The Dolt database is authoritative and
syncs through refs/dolt/data and the __dolt_remote_info__ branch
(bd dolt push/pull); the committed JSONL export is no longer the store.

- untrack .beads/issues.jsonl and ignore JSONL exports
- config: drop export.auto and no-git-ops (stealth mode); keep sync.remote
  and dolt.auto-push false
- CLAUDE.md: Beads storage, sync rules, fresh-clone bootstrap, agent roles

Verified before this commit: 50 issues / 104 dependency edges identical
(content and dependency digests) between the pre-migration export and a
fresh clone bootstrapped from the remote; two-way push/pull tested.

Beads: cdkc-lqw

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ncipollina ncipollina added type: chore Maintenance task internal Internal change, exclude from release notes labels Nov 24, 2026
@ncipollina

Copy link
Copy Markdown
Contributor Author

@codex review — focus: (1) that untracking .beads/issues.jsonl and the config change (removing export.auto and no-git-ops) cannot lose Beads records or break bd bootstrap from the Dolt remote; (2) accuracy of the new CLAUDE.md Beads section.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T12:49:57.206347Z d167e55 Manual request
ℹ️ 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

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: d167e55a9a

ℹ️ 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".

@ncipollina
ncipollina merged commit 25f5623 into main Nov 24, 2026
9 checks passed
@ncipollina
ncipollina deleted the chore/beads-dolt-sync branch November 24, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Internal change, exclude from release notes type: chore Maintenance task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant