Skip to content

Instantly share code, notes, and snippets.

@hexsprite
hexsprite / order-dispatch-decouple.md
Last active May 13, 2026 19:49
Gas City: Order Dispatcher Tracking-Bead Write Amplification — proposal

Order Dispatcher: Decouple Tracking-Bead Concerns

Eliminate Dolt write amplification by separating transient single-flight locks from durable audit history.

Status: proposal · Tracking: beads gc-klq · Author: gastown.mayor · Date: 2026-05-13 Related upstream: #1978 · #1510 · #1248 · #1709 · #1850 (PG backend) · #1977


Contents

@hexsprite
hexsprite / pr-restack.sh
Created May 26, 2026 16:51
Rebuild a working branch by cherry-picking your open GitHub PRs onto fresh upstream main. Uses git rerere to replay conflict resolutions across runs.
#!/usr/bin/env bash
# pr-restack — rebuild a working branch by cherry-picking my open PRs
# on top of an upstream base. Relies on git rerere to replay conflict
# resolutions across runs.
#
# Usage:
# pr-restack # from inside any git repo with gh access
# pr-restack -b my-branch # custom branch name
# pr-restack -r upstream/main # custom base ref
# pr-restack -o origin -u upstream # remote names