Repository navigation
Conversation
…licas Hourly backups rewrote whole yearly JSONL files when a few rows changed, so archives grew far faster than their data. Schema 9 splits content by UTC day and stores frequently changing observations separately, keeping every field and the existing merge rules. Adds an opt-in backup.readOnly setting for pull-only replicas. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR introduces smaller schema-9 backup shards, separates mutable observations from content, and adds an optional pull-only replica setting. Example: A stored tweet created on 2026-11-13 receives an updated like count.
Review scores
ProductKind: Performance · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open: reducing backup churn has clear value, but the format and replica-setting changes need owner direction, and the patch introduces an unknown-date routing regression. Priority: P2 Decision needed
Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe backup subsystem exports portable SQLite rows into validated JSONL Git archives and imports remote archives through the existing merge codecs. flowchart TD
A[SQLite portable rows] --> B[Backup codecs]
B --> C[Partitioned content and observations]
C --> D[Validated staged publication]
D --> E[Git backup repository]
E --> F[Import reassembly]
F --> B
Technical reviewBest possible solution: Preserve unknown-date bucketing and accurate layout documentation within the existing backup pipeline, with an owner-approved rollout for schema 9 and the replica setting. Do we have a high-confidence way to reproduce the issue? Current main groups tweets by year and several other mutable tables into single logical shards, so changed rows rewrite large blobs; source also establishes the epoch-routing regression without running target code. Is this the best way to solve the issue? Smaller deterministic shards and observation separation address blob churn while retaining merge ownership, but the unknown-date sentinel must survive and the separate replica feature needs an explicit product decision. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 8d99c040638d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 6:23 PM ET / 23:23 UTC. |
Hey peter hope you're doing good.
been using birdclaw lately but it was filling up my disk. after some clanking it seems that the file format isn't append only, so if you run birclaw every hour, it writes a bunch of JSON about history or whatever, even if nothing changed. this means your birdclaw git archives rapidly balloon to like tens of GB or whatever even if you dont have anywhere near that in tweets.
clanked up something here to keep it as API compatible as possible but keeping the storage as slim as possible. ideally i would have gone for an append-only log, but clankers recommended against it as that would be too much of a rewrite. (if you're feeling like prompting this in, imo its a good idea)
clanker description is below:
Hourly backups repeatedly write new versions of large JSONL blobs when only a few rows change. Git's loose-object storage keeps each complete blob until packing, so archive size can grow much faster than its data.
Split tweet, revision, collection, account-edge and DM content by UTC day; partition profiles by stable identifier buckets; store frequently changing observations separately. Schema 9 retains every field and reconstructs complete rows before the unchanged merge codecs run. Accounts, DM conversations and unaffected tables retain their paths. Commands and flags are unchanged. Older archives still import; older binaries cannot read schema 9, so all readers and writers must upgrade before its first export. Direct JSONL consumers must update their paths and join observations where needed.
Add an opt-in
backup.readOnlysetting for replicas: automatic backup checks pull and merge, including after local writes, while explicit export/sync and pending-push recovery cannot publish to the configured repository. The default remains bidirectional. Local research remains local; exports to other paths are still allowed.Validation covers legacy migration, fresh-database restore/export byte identity, repeated unchanged fixture sync to a local Git remote, multi-instance freshness and local-only rows, malformed observations, pull-only research and pending-push recovery, the existing backup transaction suite, and offline full-day replays. Existing profile identity reconciliation behavior is unchanged. No new dependencies or Git maintenance behavior are introduced.