Skip to content

chore(handover): remove generic AI scaffolding + scrub residual internal naming (COW-1012 follow-up)#104

Merged
jeffersonBastos merged 1 commit into
developfrom
chore/cow-1012-handover-cleanup-followup
Jun 17, 2026
Merged

chore(handover): remove generic AI scaffolding + scrub residual internal naming (COW-1012 follow-up)#104
jeffersonBastos merged 1 commit into
developfrom
chore/cow-1012-handover-cleanup-followup

Conversation

@jeffersonBastos

Copy link
Copy Markdown
Contributor

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. Kept debug-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 + .opencode symlink — OpenCode tool config.
  • Kept .claude/settings.json (benign permission allowlist) and all of agent_docs/ per review.

2. Scrubbed residual C1–C5 mechanism naming → semantic handler names

  • blockHandler.ts: 6 withTimeout/log labels (c1/c2/c4/c5:*OrderDiscoveryPoller/CandidateConfirmer/OwnerBackfill/CancellationWatcher:*).
  • constants.ts: a C1/C2 comment.
  • schema/tables.ts: index identifiers generator_c1c5_poll_idxgenerator_poll_idx, discrete_order_c3_status_idxdiscrete_order_status_idx. No migration needed — the schema is recreated per deploy (DATABASE_SCHEMA per 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 flags DISABLE_POLL_RESULT_CHECK / DISABLE_DETERMINISTIC_CANCEL_SWEEP; fixed a c2:* label example.

3. Dead code + doc drift

  • Removed unused pollerInterval() and its import (ponder.config.ts inlines the interval).
  • Removed unused ChainConfig/SupportedChainId barrel re-exports in src/chains.
  • AGENTS.md: "all supported order types" instead of a stale list of 5; src/chains/ (not src/data.ts) as the chain-config source; .env.example (not .env.local.example).

Verification

pnpm codegen · pnpm typecheck · pnpm lint · pnpm test106 tests passing.

Not included (left for your call)

  • agent_docs/code-patterns.md still has one [COW:Cx] reference; agent_docs/project-structure.md still references .env.local.example. Left untouched since you asked to keep agent_docs/ as-is — easy one-line fixes if you want them.

🤖 Generated with Claude Code

…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>
@linear-code

linear-code Bot commented Jun 17, 2026

Copy link
Copy Markdown

COW-1012

@jeffersonBastos jeffersonBastos marked this pull request as ready for review June 17, 2026 14:53
@jeffersonBastos jeffersonBastos merged commit 821ff78 into develop Jun 17, 2026
4 checks passed
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