Skip to content

feat: delete legacy Git state projection - #936

Merged
steipete merged 1 commit into
mainfrom
feat/phase3-delete-git-lane
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
feat/phase3-delete-git-lane

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

Phase 3 removes the Git projection for the state lanes that are already canonical in Cloudflare:

  • review records publish to the Durable Object store, with R2 snapshots
  • immutable action ledgers and mutable assets publish to R2
  • canonical-only workflows no longer mint state-repository tokens or check out clawsweeper-state
  • the remaining Git publisher is reduced to one coordinator-serialized fetch/commit/push for operational paths

The former state materializer remains only as a bounded append-window compactor. It drains and acknowledges legacy projection rows so receipt/capacity windows cannot grow without bound, but it has no state-repository checkout or Git output.

Consumer audit

Surface Decision Current owner / reason
records/** Delete Git checkout, staging, reconciliation, and publication fallbacks Durable Object record store plus R2 snapshots
ledger/v1/** Delete Git fallback, lease refs, atomic retries, scratch branches, and recovery R2 immutable blobs
assets/** Delete Git staging and publication fallback R2 mutable blobs
state materializer Git projection Delete commits, pushes, leases, deepening, rebuild, and dispatch machinery Retain drain + ack only to compact the legacy append window
backfill/migration/batching/recovery surfaces Delete workflows, scripts, implementation, tests, and obsolete plans Cutover is complete; no compatibility shim remains
jobs/** Keep Git No canonical replacement yet; repair workers still consume it
results/** Keep Git Dashboard, audit, repair, and intake consumers still depend on it
notifications/** Keep Git Notification lanes have not migrated
apply-report.json, repair-apply-report.json Keep Git Apply/report consumers have not migrated
cluster intake publication Keep a narrow Git writer It now directly owns its jobs/** and results/** mutation plus dispatch recovery
state-repo maintenance/dashboard Keep The repository is not archived or frozen in this PR

See docs/state-storage.md for the resulting ownership model.

Materializer decision

Retain the scheduled workflow as a window compactor. The append window still supplies bounded receipt and drain semantics to other consumers and may contain in-flight legacy rows. The workflow therefore drains and acknowledges rows under fixed row, byte, and runtime limits, while never reading or writing Git state. New canonical record and action-ledger writes do not enqueue projection rows.

Proof

  • Production prerequisite: run 30434628527 completed successfully on base 1024f8729f, with record and ledger hydration sourced from the Worker.
  • Focused migration suite: 454/454 passed across canonical readers/blobs, materializer, Git publisher narrowing, publish-main, workflow invariants, cluster intake, and dashboard publication.
  • pnpm run check: static checks, all builds, lint, formatting, changed coverage, and full coverage completed; the only failures are the five known macOS containment-baseline tests in process-tree-containment.test.ts, where the Linux capset/Landlock symbols are unavailable.
  • node scripts/build-docs-site.mjs and pnpm run check:limits: passed.
  • /Users/steipete/.claude/skills/autoreview/scripts/autoreview --mode local: TruffleHog clean; 4/4 review passes clean; 0 findings; correctness 0.99.
  • git diff --check: passed.

Size

93 files changed: 1,942 insertions, 26,996 deletions (net 25,054 lines removed).

This PR intentionally does not archive or freeze openclaw/clawsweeper-state; that remains a separate operator action after stability and after the remaining operational paths migrate.

@steipete
steipete requested a review from a team as a code owner July 29, 2026 10:37
@steipete
steipete merged commit 926a96b into main Jul 29, 2026
13 checks passed
@steipete
steipete deleted the feat/phase3-delete-git-lane branch July 29, 2026 10:44
steipete added a commit that referenced this pull request Jul 30, 2026
…iew, crawl-remote deploy, finalize-open-PRs, proof nudges, state compaction) (#964)

* chore(deploy): delete the crawl-remote production deployment system

Three runs ever, zero successes (last: 2026-07-29 run stuck waiting).
Removes the 3,056-line deploy-crawl-remote.yml workflow, the pinned
Wrangler toolchain under .github/deploy, and the 3,030-line workflow
shape test. The ci.yml toolchain job and checkout-pin test follow in
the wiring commit.

* chore(state): delete the retired append-window compactor lane

The state-materializer workflow burned a runner every 20 minutes to
report drained=0 acked=0 (latest: run 30551689153). The git projection
it fed was deleted in #936 and no producer posts /internal/state/append
anymore; the DO endpoints and tables are removed in the follow-up
commit.

* chore(state): delete the monthly state-repo history compaction lane

state-compaction.yml rewrote openclaw/clawsweeper-state main to a
single-root commit once a month. The repo's written surface is nearly
retired (records/ledger/assets are Cloudflare-owned) and dropping this
writer moves the archive goal forward. state-repo-size.ts stays: the
exact-review reconcile workflow still runs it.

* chore(repair): delete the dormant finalize-open-PRs dispatch workflow

Last success April 29; workflow_dispatch-only since. The finalizer
module and its --write-report path stay because repair-publish-results
runs them after every worker-result publish.

* chore(review): delete the proof-nudge workflow, doc, and policy test

Proof nudges and bot-proof decisions contributed nothing to weekly
review coverage. The clawsweeper.ts command surgery follows in the
wiring commit; the proof-nudge comment marker constant survives because
the stalled-unproven close policy dates historical proof asks with it.

* chore(commit-review): delete the commit-review lane and finding intake

Zero successes in the last 20 commit-review runs (11 failed, 9
cancelled). Removes the hosted per-commit review workflow, its
classifier and Check Run publisher, the commit-finding repair intake,
and the dispatcher doc. The offline local-review engine survives in
commit-sweeper.ts (trimmed in the wiring commit); existing
commit_finding repair jobs remain executable.

* chore(deploy): drop crawl-remote toolchain CI job and checkout-pin test

* chore(state): remove the producer-free append-window endpoints and tables

/internal/state/{append,drain,ack,dispose} had no remaining producer:
post-#929/#932 every record tuple goes through /records/tuples and the
only drain consumer was the deleted state-materializer workflow. The
Durable Object now drops the five state_append_* tables on upgrade, and
queue status no longer reports the empty window. The internal-route HMAC
test re-targets /internal/state/records/tuples.

* chore(review): remove the proof-nudge and bot-proof command machinery

Deletes proofNudgesCommand/botProofCommand, their eligibility, marker
parsing, rendering, cursor, and candidate-selection helpers plus lane
types and CLI dispatch (about 1,300 lines of clawsweeper.ts). The
PROOF_NUDGE_MARKER_PREFIX constant stays: stalledUnprovenProofRequest
BlockReason still dates historical proof-nudge comments with it, and
hasDispatchableMantisScenario stays for review rendering.

* chore(commit-review): trim the engine to local-review and drop the lane's budget wiring

commit-sweeper.ts keeps only the offline local-review command plus the
shared helpers the main sweeper's --local-range path imports. The
commit_review worker lane leaves limits, workflow-utils, sweep.yml
budget accounting, and the docs; docs/commit-sweeper.md now documents
local-review only.

* chore: update shared workflow-shape invariants, scripts, docs, and changelog

setup-state sites 25->19, git publishers 23->19, records-repo-slugs and
non-fatal-bookkeeping lists shrink accordingly, and all seven deleted
workflows join the stays-deleted list. package.json drops the
proof-nudges/bot-proof/commit-review/commit-reports and
repair:commit-finding-intake scripts. README and CHANGELOG record the
six lane removals.

* chore(docs-site): drop the commit-reports snippet from the landing page

---------

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
…iew, crawl-remote deploy, finalize-open-PRs, proof nudges, state compaction) (openclaw#964)

* chore(deploy): delete the crawl-remote production deployment system

Three runs ever, zero successes (last: 2026-07-29 run stuck waiting).
Removes the 3,056-line deploy-crawl-remote.yml workflow, the pinned
Wrangler toolchain under .github/deploy, and the 3,030-line workflow
shape test. The ci.yml toolchain job and checkout-pin test follow in
the wiring commit.

* chore(state): delete the retired append-window compactor lane

The state-materializer workflow burned a runner every 20 minutes to
report drained=0 acked=0 (latest: run 30551689153). The git projection
it fed was deleted in openclaw#936 and no producer posts /internal/state/append
anymore; the DO endpoints and tables are removed in the follow-up
commit.

* chore(state): delete the monthly state-repo history compaction lane

state-compaction.yml rewrote openclaw/clawsweeper-state main to a
single-root commit once a month. The repo's written surface is nearly
retired (records/ledger/assets are Cloudflare-owned) and dropping this
writer moves the archive goal forward. state-repo-size.ts stays: the
exact-review reconcile workflow still runs it.

* chore(repair): delete the dormant finalize-open-PRs dispatch workflow

Last success April 29; workflow_dispatch-only since. The finalizer
module and its --write-report path stay because repair-publish-results
runs them after every worker-result publish.

* chore(review): delete the proof-nudge workflow, doc, and policy test

Proof nudges and bot-proof decisions contributed nothing to weekly
review coverage. The clawsweeper.ts command surgery follows in the
wiring commit; the proof-nudge comment marker constant survives because
the stalled-unproven close policy dates historical proof asks with it.

* chore(commit-review): delete the commit-review lane and finding intake

Zero successes in the last 20 commit-review runs (11 failed, 9
cancelled). Removes the hosted per-commit review workflow, its
classifier and Check Run publisher, the commit-finding repair intake,
and the dispatcher doc. The offline local-review engine survives in
commit-sweeper.ts (trimmed in the wiring commit); existing
commit_finding repair jobs remain executable.

* chore(deploy): drop crawl-remote toolchain CI job and checkout-pin test

* chore(state): remove the producer-free append-window endpoints and tables

/internal/state/{append,drain,ack,dispose} had no remaining producer:
post-openclaw#929/openclaw#932 every record tuple goes through /records/tuples and the
only drain consumer was the deleted state-materializer workflow. The
Durable Object now drops the five state_append_* tables on upgrade, and
queue status no longer reports the empty window. The internal-route HMAC
test re-targets /internal/state/records/tuples.

* chore(review): remove the proof-nudge and bot-proof command machinery

Deletes proofNudgesCommand/botProofCommand, their eligibility, marker
parsing, rendering, cursor, and candidate-selection helpers plus lane
types and CLI dispatch (about 1,300 lines of clawsweeper.ts). The
PROOF_NUDGE_MARKER_PREFIX constant stays: stalledUnprovenProofRequest
BlockReason still dates historical proof-nudge comments with it, and
hasDispatchableMantisScenario stays for review rendering.

* chore(commit-review): trim the engine to local-review and drop the lane's budget wiring

commit-sweeper.ts keeps only the offline local-review command plus the
shared helpers the main sweeper's --local-range path imports. The
commit_review worker lane leaves limits, workflow-utils, sweep.yml
budget accounting, and the docs; docs/commit-sweeper.md now documents
local-review only.

* chore: update shared workflow-shape invariants, scripts, docs, and changelog

setup-state sites 25->19, git publishers 23->19, records-repo-slugs and
non-fatal-bookkeeping lists shrink accordingly, and all seven deleted
workflows join the stays-deleted list. package.json drops the
proof-nudges/bot-proof/commit-review/commit-reports and
repair:commit-finding-intake scripts. README and CHANGELOG record the
six lane removals.

* chore(docs-site): drop the commit-reports snippet from the landing page

---------

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
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.

1 participant