chore(handover): remove generic AI scaffolding + scrub residual internal naming (COW-1012 follow-up)#104
Merged
jeffersonBastos merged 1 commit intoJun 17, 2026
Conversation
…nal naming (COW-1012 follow-up) Follow-up to the COW-1012 public-handover QA pass. Removes generic AI agent scaffolding that was shipping in the public tree, scrubs residual C1–C5 mechanism naming, and clears dead code + doc drift. Removed (generic, not project-specific): - .claude/commands/* — 12 generic commands (kept project-specific debug-ponder.md) - .claude/agents/* — 6 generic codebase/thoughts/web-search agents - hack/* — tracked boilerplate scripts - opencode.json + .opencode symlink — OpenCode tool config C1–C5 naming residue -> semantic handler names: - blockHandler.ts: 6 withTimeout/log labels (c1/c2/c4/c5 -> OrderDiscoveryPoller/CandidateConfirmer/OwnerBackfill/CancellationWatcher) - constants.ts: comment - schema/tables.ts: index identifiers (generator_c1c5_poll_idx -> generator_poll_idx, discrete_order_c3_status_idx -> discrete_order_status_idx). Schema is recreated per deploy (DATABASE_SCHEMA per git-sha), so no migration is required. - debug-ponder.md: removed stale kill-switch section referencing already-removed env flags; fixed label example Dead code: - removed unused pollerInterval() + its import in ponder.config.ts - removed unused ChainConfig/SupportedChainId barrel re-exports in src/chains Doc drift (AGENTS.md): "all supported order types" instead of stale list of 5; src/chains/ (not src/data.ts) as chain-config source; .env.example (not .env.local.example). Verified: pnpm codegen, typecheck, lint, test (106 passing). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up cleanup to the COW-1012 public-handover QA pass (#97). Three categories, all in the same spirit: get the repo ready for a clean public/OSS handover to CoW.
1. Removed generic AI scaffolding (was shipping in the public tree)
Deleted only generic tooling; kept anything project-specific.
.claude/commands/*— 12 generic HumanLayer commands removed. Keptdebug-ponder.md(project-specific) — scrubbed inside it..claude/agents/*— 6 generic agents (codebase-*,thoughts-*,web-search-researcher).hack/*— tracked boilerplate scripts (worktree/port/setup helpers).opencode.json+.opencodesymlink — OpenCode tool config..claude/settings.json(benign permission allowlist) and all ofagent_docs/per review.2. Scrubbed residual C1–C5 mechanism naming → semantic handler names
blockHandler.ts: 6withTimeout/log labels (c1/c2/c4/c5:*→OrderDiscoveryPoller/CandidateConfirmer/OwnerBackfill/CancellationWatcher:*).constants.ts: aC1/C2comment.schema/tables.ts: index identifiersgenerator_c1c5_poll_idx→generator_poll_idx,discrete_order_c3_status_idx→discrete_order_status_idx. No migration needed — the schema is recreated per deploy (DATABASE_SCHEMAper git-sha), so a fresh deploy gets the new index names automatically.debug-ponder.md: removed a stale "kill-switch" section referencing the already-removed env flagsDISABLE_POLL_RESULT_CHECK/DISABLE_DETERMINISTIC_CANCEL_SWEEP; fixed ac2:*label example.3. Dead code + doc drift
pollerInterval()and its import (ponder.config.tsinlines the interval).ChainConfig/SupportedChainIdbarrel re-exports insrc/chains.AGENTS.md: "all supported order types" instead of a stale list of 5;src/chains/(notsrc/data.ts) as the chain-config source;.env.example(not.env.local.example).Verification
pnpm codegen·pnpm typecheck·pnpm lint·pnpm test→ 106 tests passing.Not included (left for your call)
agent_docs/code-patterns.mdstill has one[COW:Cx]reference;agent_docs/project-structure.mdstill references.env.local.example. Left untouched since you asked to keepagent_docs/as-is — easy one-line fixes if you want them.🤖 Generated with Claude Code