Skip to content

chore: drop dead code and neutralize the legacy post-PR gate - #206

Open
outof-place wants to merge 6 commits into
mainfrom
chore/dead-code-and-ci-cleanup
Open

chore: drop dead code and neutralize the legacy post-PR gate#206
outof-place wants to merge 6 commits into
mainfrom
chore/dead-code-and-ci-cleanup

Conversation

@outof-place

@outof-place outof-place commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Two things, kept in separate commits so either can be reverted alone: the legacy post-PR gate goes off, and confirmed-dead code gets deleted.

Net: 99 files, +383 / -17506.

The legacy post-PR gate is off (88708b8)

apps/worker/post-pr-gate.yaml was committed and enabling the gate, so it published AI Workflow / code-hygiene alongside the editable Post-PR review workflow's AI Workflow / Review on the same head SHA, and spent one Claude Haiku call per changed file on every bot pull request. docs/plans/2026-08-04-legacy-post-pr-gate-neutralization.md documented this and its own runbook, but the runbook had never been applied. This applies section 2 of it verbatim.

The gate machinery under src/post-pr-gate/, the code-hygiene step, and the gate_locks / gate_dedupe / gate_current tables are all left in place on purpose, so git revert 88708b8 is a complete rollback. Deleting the file would not have worked: on ENOENT the built-in default in config.ts:10 takes over and the gate is live again.

Three tests in config.test.ts now read the shipped yaml and fail if anyone re-enables the gate. Mutation-checked: restoring the old config fails exactly those assertions.

Two consequences worth knowing, both recorded in the plan document:

  • The three fall-through vectors in section 5 of that document now produce no check at all rather than a duplicate one. A bot pull request in a repository excluded by a definition's repositoryScope pin previously got code-hygiene as its only coverage.
  • cancelPreviousRun becomes unreachable, so a gate check left in progress by an earlier crashed run cannot self-heal. Verified empty here at the time of writing: one open pull request, on a non-managed branch, carrying no AI Workflow / check. Worth re-checking on a tenant before syncing.

This propagates to the Arthur tenant on the next release sync. That was a deliberate decision, not an oversight.

Worker test CPU: split out, not included here

An earlier revision of this PR cached the test database schema as a PGlite data-directory snapshot instead of replaying all 39 migrations on every createTestDb() call. It was 34% faster and used 38% less CPU, and it broke CI twice: once killed by SIGTERM at 107s, once still running when the job hit its 20 minute timeout.

Controlled measurement, same machine, 4 forks on both sides to match the runner:

                     wall     test CPU   peak RSS
main                 195.46s  710.09s    5.28 GB
snapshot (gzip)      128.14s  438.41s    9.37 GB
snapshot (no gzip)    95.41s  307.33s   11.74 GB

The snapshot trades memory for speed, and memory is exactly what the runner is short of: 4 vCPU, 16 GB, with the dashboard suite running concurrently. Dropping the commit puts peak RSS back at 5.32 GB, level with main.

The underlying problem is older than that commit: no test ever closes the database it creates, so instances accumulate inside each fork. Restoring a data directory allocates more per instance than replaying migrations does, which is why the snapshot pushed an already-heavy suite over the edge. Closing databases via onTestFinished would cut peak memory on both paths and is the prerequisite for the snapshot being worth having. That touches all 63 database test files and wants its own PR.

The commit is preserved on perf/test-db-snapshot, including the sequence-reset fix described below.

Dead code removed (1ed0e61, ae104ee)

Every deletion was verified with a word-boundary search showing the symbol appears only in its own definition and its own test.

Worker, 2035 lines:

  • lib/overview/collect-cost.ts and collect-kpis.ts plus tests. The live routes use costAgg and runKpis from db/queries/runs-read.ts; these were superseded and left behind.
  • lib/step-adapters.ts merged into lib/adapters.ts. The two differed only in an unused vcsTarget parameter and memoization of a vcs getter that none of the 29 call sites read.
  • lib/branch-prefix.ts, a re-export shim with zero references repo-wide.
  • 20 further exported symbols with no callers, including the identity function normalizeDefinitionForExecution whose docstring described behavior that no longer exists.

Dashboard, 1373 lines:

  • components/cockpit/tweaks-panel.tsx (691 lines, zero importers). The useTweaks hook is live and stays; only the panel that nobody ever mounted goes.
  • lib/integrations/vercel.ts and env.ts, referenced only from a planning document.
  • SearchBox (superseded by spotlight-search.tsx), BarRow, Histogram, CkTopbar (an empty div), and 9 helpers whose only consumer was their own test.
  • Three GET proxy routes that nothing calls, because server components fetch the worker directly and these proxies exist only for client-side mutations.

Also package-lock.json, 14064 lines, tracked and 4 months stale on a project that runs entirely on pnpm.

Suites CI never ran (3a06d0f)

  • scripts/release-notes has no package.json, so it is not a workspace member and pnpm -r test skipped its 43 tests. Now wired in, 2.4s.
  • workflow-sdk-tests sits beside src/ and falls outside vitest.config.ts's include glob. Now wired in, 11 tests, 9.5s. Its script was also missing the build:shared && prefix every sibling has, so it failed cold on a fresh checkout.
  • check:prompt-drift was left alone deliberately. It opens a real Neon connection to compare shipped constants against production rows, so it is meaningless in CI.

Verification

full worker suite 274 files, 4090 tests, green (peak RSS 5.32 GB, level with main)
dashboard 617 tests, green
pnpm run typecheck exit 0
workflow-sdk 11 tests
release-notes 43 tests

Deliberately not done

  • The gate machinery stays, so the documented rollback keeps working.
  • recordWorkflowBlockAttemptObservation and the saveWorkflowDefinitionVersion / restoreWorkflowDefinitionVersion pair have no production callers, but their tests interleave with live functions in shared integration files. Deleting them means rewriting real coverage of live code, which does not belong in a cleanup pass.
  • e2e/tier2/us22-gate-skips-non-bot.test.ts and us26-gate-runon-filters.test.ts assert the absence of gate checks and now pass unconditionally. They regain meaning if the gate is reverted, so they stay, noted in the plan document.

Follow-ups

  • Close test databases via onTestFinished, then revisit perf/test-db-snapshot. That branch also carries a fix worth keeping either way: loadDataDir resumes sequences from the WAL high-water mark rather than their true value (Postgres logs them in blocks of 32), so an id that should be 4 comes back as 34. It breaks 22 hardcoded id assertions across 12 files.
  • Decide whether the legacy gate machinery and its three tables should go once the neutralization is permanent.
  • README.md claimed Linear triggers and Slack, alert, webhook and schedule inputs that do not exist, while its own Roadmap listed the same items as future work. Corrected here (903513f), along with documenting five ENABLE_* flags that existed only in env.ts.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-workflow-app-dashboard Ready Ready Preview Aug 5, 2026 3:38pm

Request Review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@outof-place, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 14 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d70bb9fd-94b8-40ca-a925-91a61984c145

📥 Commits

Reviewing files that changed from the base of the PR and between ae47b2b and 0f2f740.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (99)
  • .github/workflows/ci.yml
  • README.md
  • SETUP.md
  • apps/dashboard/app/api/approvals/handler.ts
  • apps/dashboard/app/api/approvals/route.test.ts
  • apps/dashboard/app/api/approvals/route.ts
  • apps/dashboard/app/api/pre-pr-checks/handler.ts
  • apps/dashboard/app/api/pre-pr-checks/route.test.ts
  • apps/dashboard/app/api/pre-pr-checks/route.ts
  • apps/dashboard/app/api/workflow-definitions/[id]/restore/route.ts
  • apps/dashboard/app/api/workflow-definitions/handler.ts
  • apps/dashboard/app/api/workflow-definitions/route.test.ts
  • apps/dashboard/app/api/workflow-definitions/route.ts
  • apps/dashboard/components/charts.tsx
  • apps/dashboard/components/cockpit/chrome.tsx
  • apps/dashboard/components/cockpit/controls.tsx
  • apps/dashboard/components/cockpit/tweaks-panel.tsx
  • apps/dashboard/lib/data/mock.ts
  • apps/dashboard/lib/integrations/env.ts
  • apps/dashboard/lib/integrations/vercel.ts
  • apps/dashboard/lib/rng.ts
  • apps/dashboard/lib/theme.ts
  • apps/dashboard/lib/workflow-editor/clipboard.test.ts
  • apps/dashboard/lib/workflow-editor/clipboard.ts
  • apps/dashboard/lib/workflow-editor/edges.test.ts
  • apps/dashboard/lib/workflow-editor/edges.ts
  • apps/dashboard/lib/workflow-editor/graph-edit.test.ts
  • apps/dashboard/lib/workflow-editor/graph-edit.ts
  • apps/dashboard/lib/workflow-editor/keyboard-actions.test.ts
  • apps/dashboard/lib/workflow-editor/keyboard-actions.ts
  • apps/dashboard/lib/workflow-editor/layout-geometry.test.ts
  • apps/dashboard/lib/workflow-editor/layout-geometry.ts
  • apps/dashboard/lib/workflow-editor/repository-scope.test.ts
  • apps/dashboard/lib/workflow-editor/repository-scope.ts
  • apps/worker/package.json
  • apps/worker/post-pr-gate.yaml
  • apps/worker/src/clarifications/store.ts
  • apps/worker/src/lib/auth/roles.ts
  • apps/worker/src/lib/branch-prefix.ts
  • apps/worker/src/lib/logger.ts
  • apps/worker/src/lib/overview/collect-cost.test.ts
  • apps/worker/src/lib/overview/collect-cost.ts
  • apps/worker/src/lib/overview/collect-kpis.test.ts
  • apps/worker/src/lib/overview/collect-kpis.ts
  • apps/worker/src/lib/step-adapters.ts
  • apps/worker/src/lib/trigger-delivery-store.ts
  • apps/worker/src/post-pr-gate/config.test.ts
  • apps/worker/src/post-pr-gate/types.ts
  • apps/worker/src/pre-sandbox/types.ts
  • apps/worker/src/routes/api/v1/approvals.test.ts
  • apps/worker/src/routes/api/v1/approvals/[id]/approve.post.ts
  • apps/worker/src/routes/api/v1/approvals/[id]/reject.post.ts
  • apps/worker/src/routes/api/v1/clarifications.test.ts
  • apps/worker/src/routes/api/v1/clarifications/[id]/answer.post.ts
  • apps/worker/src/sandbox/agents/pricing.ts
  • apps/worker/src/sandbox/agents/protocol.ts
  • apps/worker/src/sandbox/agents/shared.ts
  • apps/worker/src/sandbox/disposable-review-workspace.test.ts
  • apps/worker/src/sandbox/disposable-review-workspace.ts
  • apps/worker/src/sandbox/trusted-workspace-publisher.test.ts
  • apps/worker/src/sandbox/trusted-workspace-publisher.ts
  • apps/worker/src/workflow-definition/bindings.test.ts
  • apps/worker/src/workflow-definition/bindings.ts
  • apps/worker/src/workflow-definition/harness-profile-runtime.ts
  • apps/worker/src/workflow-definition/resolve-agent.test.ts
  • apps/worker/src/workflow-definition/resolve-agent.ts
  • apps/worker/src/workflow-definition/schema.ts
  • apps/worker/src/workflow-definition/store.test.ts
  • apps/worker/src/workflow-definition/store.ts
  • apps/worker/src/workflow-definition/v2-migration.ts
  • apps/worker/src/workflows/agent-input.test.ts
  • apps/worker/src/workflows/agent-input.ts
  • apps/worker/src/workflows/agent-provider-fences.test.ts
  • apps/worker/src/workflows/agent.ts
  • apps/worker/src/workflows/blocks/agent-sandbox.test.ts
  • apps/worker/src/workflows/blocks/agent-sandbox.ts
  • apps/worker/src/workflows/blocks/io-blocks.edge.test.ts
  • apps/worker/src/workflows/blocks/post-ticket-comment.test.ts
  • apps/worker/src/workflows/blocks/post-ticket-comment.ts
  • apps/worker/src/workflows/blocks/prepare-workspace.test.ts
  • apps/worker/src/workflows/blocks/prepare-workspace.ts
  • apps/worker/src/workflows/blocks/send-plan-approval.test.ts
  • apps/worker/src/workflows/blocks/send-plan-approval.ts
  • apps/worker/src/workflows/clarification-snapshot-steps.test.ts
  • apps/worker/src/workflows/clarification-snapshot-steps.ts
  • apps/worker/src/workflows/definition-step.test.ts
  • apps/worker/src/workflows/definition-step.ts
  • apps/worker/src/workflows/loader-triggers.edge.test.ts
  • apps/worker/src/workflows/pr-external-resources.test.ts
  • apps/worker/src/workflows/pr-external-resources.ts
  • apps/worker/src/workflows/run-ownership-steps.test.ts
  • apps/worker/src/workflows/run-ownership-steps.ts
  • apps/worker/src/workflows/ticket-transition-step.test.ts
  • apps/worker/src/workflows/ticket-transition-step.ts
  • apps/worker/src/workflows/workflow-ticket.test.ts
  • apps/worker/src/workflows/workflow-ticket.ts
  • apps/worker/verify-sequences.mjs
  • docs/plans/2026-08-04-legacy-post-pr-gate-neutralization.md
  • package.json
📝 Walkthrough

Walkthrough

This pull request removes legacy dashboard and worker surfaces, migrates worker call sites to createAdapters(), neutralizes the shipped post-PR gate, adds sequence reset logic for restored PGlite test databases, and updates CI scripts and documentation.

Changes

Dashboard legacy cleanup

Layer / File(s) Summary
Dashboard API route removals
apps/dashboard/app/api/approvals/*, apps/dashboard/app/api/pre-pr-checks/*, apps/dashboard/app/api/workflow-definitions/*
The dashboard no longer exposes the approvals list GET, pre-PR checks GET, workflow-definitions GET, or workflow-definition restore route. Related forwarding tests were removed.
Dashboard UI and editor helper removals
apps/dashboard/components/charts.tsx, apps/dashboard/components/cockpit/*, apps/dashboard/lib/integrations/*, apps/dashboard/lib/rng.ts, apps/dashboard/lib/theme.ts, apps/dashboard/lib/workflow-editor/*, apps/dashboard/lib/data/mock.ts
Unused cockpit, chart, integration, theme, RNG, mock-export, and workflow-editor helper surfaces were removed. Related tests were reduced to match the remaining exports.

Worker runtime and compatibility cleanup

Layer / File(s) Summary
Shared adapter factory wiring
apps/worker/src/routes/api/v1/*, apps/worker/src/sandbox/*, apps/worker/src/workflows/*, apps/worker/src/workflows/blocks/*, apps/worker/src/lib/step-adapters.ts
Worker routes, workflows, and sandbox code now use createAdapters() instead of createStepAdapters(). Tests were updated to mock lib/adapters.js. The legacy step-adapters.ts module was removed.
Workflow definition loader and store cleanup
apps/worker/src/workflow-definition/*, apps/worker/src/workflows/definition-step.*, apps/worker/src/workflows/loader-triggers.edge.test.ts
Legacy workflow-definition wrappers and helper exports were removed. loadWorkflowDefinitionFor remains the trigger-specific entrypoint. Schema-v1 definitions now return stored nodes and edges directly. Tests were rewritten around the remaining loader behavior.
Clarification, trigger, and helper surface cleanup
apps/worker/src/clarifications/store.ts, apps/worker/src/workflows/agent-input.ts, apps/worker/src/workflows/run-ownership-steps.ts, apps/worker/src/workflows/pr-external-resources.ts, apps/worker/src/lib/trigger-delivery-store.ts, apps/worker/src/lib/logger.ts, apps/worker/src/lib/branch-prefix.ts, apps/worker/src/sandbox/agents/*, apps/worker/src/lib/overview/*
Additional legacy worker helpers were removed, including clarification backfill helpers, clarification-origin helpers, clarification parking, old overview aggregators, and several compatibility exports.
Roles and type alias cleanup
apps/worker/src/lib/auth/roles.ts, apps/worker/src/post-pr-gate/types.ts, apps/worker/src/pre-sandbox/types.ts
canCancelWorkflowRuns was removed, canDeleteAgentMemory was added, and older exported type aliases were removed from gate and pre-sandbox types.

Infrastructure, gate, and documentation updates

Layer / File(s) Summary
Restored test database sequence handling
apps/worker/src/db/test-db.ts, apps/worker/verify-sequences.mjs
Test database setup now restores new PGlite instances from a cached migrated snapshot and resets owned sequences after restore. The new verification script exercises dump, restore, and sequence reset behavior.
Post-PR gate neutralization
apps/worker/post-pr-gate.yaml, apps/worker/src/post-pr-gate/config.test.ts, docs/plans/2026-08-04-legacy-post-pr-gate-neutralization.md
The shipped gate config now uses a disabled sentinel base branch and an empty steps list. Tests verify that state, and the runbook records the applied neutralization.
CI and documentation updates
.github/workflows/ci.yml, package.json, apps/worker/package.json, README.md, SETUP.md
CI now runs release-notes and workflow SDK tests. Root and worker package scripts expose the workflow SDK command. Documentation updates refine trigger descriptions and add optional environment variable entries.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

  • Blazity/ai-workflow#108: This pull request continues the adapter migration by replacing createStepAdapters usages with createAdapters across worker routes, workflows, and sandbox code.
  • Blazity/ai-workflow#86: This pull request directly changes the post-pr-gate.yaml surface introduced there and neutralizes the shipped gate configuration.
  • Blazity/ai-workflow#140: This pull request removes workflow-definition restore and compatibility surfaces that overlap with the v2 loader and store work in the same area.

Poem

I hopped through old tunnels at dawn,
and carried stale helpers away.
The gate now sleeps under a sign,
while tests still nibble through the hay.
Fresh sequences line up in rows,
and tidy burrows brighten the day.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 30.56% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: removing dead code and disabling the legacy post-PR gate mechanism.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
apps/worker/verify-sequences.mjs (1)

78-79: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Fail when the reset produces an incorrect next value.

This output does not compare an expected value and does not fail the process. A broken reset can therefore report success. After the reset, insert into a known sequence-backed table or call nextval, then throw unless the value equals MAX(column) + 1.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/worker/verify-sequences.mjs` around lines 78 - 79, Update the post-reset
verification in verify-sequences around the restored.query call so it exercises
a known sequence-backed table or calls nextval, computes the expected next value
as MAX(column) + 1, and throws when the returned value differs; retain the
existing diagnostic output as needed but ensure mismatches fail the process.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/worker/post-pr-gate.yaml`:
- Around line 23-24: Replace the disabled sentinel in
apps/worker/post-pr-gate.yaml at lines 23-24 with a Git-invalid ref component
such as __ai-workflow-gate-disabled__.lock, and update the matching assertions
in apps/worker/src/post-pr-gate/config.test.ts at lines 153-167 plus any
documented sentinel values to use the same value. Ensure
checkPostPrGateEligibility recognizes the invalid sentinel consistently.

In `@docs/plans/2026-08-04-legacy-post-pr-gate-neutralization.md`:
- Around line 3-6: Update the legacy YAML gate status section in the document to
describe the pre-neutralization state instead of claiming it is live. Revise the
rollback instructions to include the dependent post-pr-gate test change,
specifically apps/worker/src/post-pr-gate/config.test.ts, so the documented
rollback accurately restores a passing state rather than claiming the YAML file
alone is sufficient.

In `@README.md`:
- Line 57: Update README.md’s broader trigger and integration descriptions,
including the claims near the earlier overview sections and the roadmap list, so
they no longer present messages, alerts, webhooks, or schedules as currently
supported inputs. Reword them to list only supported triggers or explicitly mark
unsupported integrations as planned, while preserving the supported Jira and
PR/MR lifecycle trigger wording.

---

Nitpick comments:
In `@apps/worker/verify-sequences.mjs`:
- Around line 78-79: Update the post-reset verification in verify-sequences
around the restored.query call so it exercises a known sequence-backed table or
calls nextval, computes the expected next value as MAX(column) + 1, and throws
when the returned value differs; retain the existing diagnostic output as needed
but ensure mismatches fail the process.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 53277260-2dea-4335-91b9-ac6e65840fff

📥 Commits

Reviewing files that changed from the base of the PR and between ae47b2b and 8916eb7.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (100)
  • .github/workflows/ci.yml
  • README.md
  • SETUP.md
  • apps/dashboard/app/api/approvals/handler.ts
  • apps/dashboard/app/api/approvals/route.test.ts
  • apps/dashboard/app/api/approvals/route.ts
  • apps/dashboard/app/api/pre-pr-checks/handler.ts
  • apps/dashboard/app/api/pre-pr-checks/route.test.ts
  • apps/dashboard/app/api/pre-pr-checks/route.ts
  • apps/dashboard/app/api/workflow-definitions/[id]/restore/route.ts
  • apps/dashboard/app/api/workflow-definitions/handler.ts
  • apps/dashboard/app/api/workflow-definitions/route.test.ts
  • apps/dashboard/app/api/workflow-definitions/route.ts
  • apps/dashboard/components/charts.tsx
  • apps/dashboard/components/cockpit/chrome.tsx
  • apps/dashboard/components/cockpit/controls.tsx
  • apps/dashboard/components/cockpit/tweaks-panel.tsx
  • apps/dashboard/lib/data/mock.ts
  • apps/dashboard/lib/integrations/env.ts
  • apps/dashboard/lib/integrations/vercel.ts
  • apps/dashboard/lib/rng.ts
  • apps/dashboard/lib/theme.ts
  • apps/dashboard/lib/workflow-editor/clipboard.test.ts
  • apps/dashboard/lib/workflow-editor/clipboard.ts
  • apps/dashboard/lib/workflow-editor/edges.test.ts
  • apps/dashboard/lib/workflow-editor/edges.ts
  • apps/dashboard/lib/workflow-editor/graph-edit.test.ts
  • apps/dashboard/lib/workflow-editor/graph-edit.ts
  • apps/dashboard/lib/workflow-editor/keyboard-actions.test.ts
  • apps/dashboard/lib/workflow-editor/keyboard-actions.ts
  • apps/dashboard/lib/workflow-editor/layout-geometry.test.ts
  • apps/dashboard/lib/workflow-editor/layout-geometry.ts
  • apps/dashboard/lib/workflow-editor/repository-scope.test.ts
  • apps/dashboard/lib/workflow-editor/repository-scope.ts
  • apps/worker/package.json
  • apps/worker/post-pr-gate.yaml
  • apps/worker/src/clarifications/store.ts
  • apps/worker/src/db/test-db.ts
  • apps/worker/src/lib/auth/roles.ts
  • apps/worker/src/lib/branch-prefix.ts
  • apps/worker/src/lib/logger.ts
  • apps/worker/src/lib/overview/collect-cost.test.ts
  • apps/worker/src/lib/overview/collect-cost.ts
  • apps/worker/src/lib/overview/collect-kpis.test.ts
  • apps/worker/src/lib/overview/collect-kpis.ts
  • apps/worker/src/lib/step-adapters.ts
  • apps/worker/src/lib/trigger-delivery-store.ts
  • apps/worker/src/post-pr-gate/config.test.ts
  • apps/worker/src/post-pr-gate/types.ts
  • apps/worker/src/pre-sandbox/types.ts
  • apps/worker/src/routes/api/v1/approvals.test.ts
  • apps/worker/src/routes/api/v1/approvals/[id]/approve.post.ts
  • apps/worker/src/routes/api/v1/approvals/[id]/reject.post.ts
  • apps/worker/src/routes/api/v1/clarifications.test.ts
  • apps/worker/src/routes/api/v1/clarifications/[id]/answer.post.ts
  • apps/worker/src/sandbox/agents/pricing.ts
  • apps/worker/src/sandbox/agents/protocol.ts
  • apps/worker/src/sandbox/agents/shared.ts
  • apps/worker/src/sandbox/disposable-review-workspace.test.ts
  • apps/worker/src/sandbox/disposable-review-workspace.ts
  • apps/worker/src/sandbox/trusted-workspace-publisher.test.ts
  • apps/worker/src/sandbox/trusted-workspace-publisher.ts
  • apps/worker/src/workflow-definition/bindings.test.ts
  • apps/worker/src/workflow-definition/bindings.ts
  • apps/worker/src/workflow-definition/harness-profile-runtime.ts
  • apps/worker/src/workflow-definition/resolve-agent.test.ts
  • apps/worker/src/workflow-definition/resolve-agent.ts
  • apps/worker/src/workflow-definition/schema.ts
  • apps/worker/src/workflow-definition/store.test.ts
  • apps/worker/src/workflow-definition/store.ts
  • apps/worker/src/workflow-definition/v2-migration.ts
  • apps/worker/src/workflows/agent-input.test.ts
  • apps/worker/src/workflows/agent-input.ts
  • apps/worker/src/workflows/agent-provider-fences.test.ts
  • apps/worker/src/workflows/agent.ts
  • apps/worker/src/workflows/blocks/agent-sandbox.test.ts
  • apps/worker/src/workflows/blocks/agent-sandbox.ts
  • apps/worker/src/workflows/blocks/io-blocks.edge.test.ts
  • apps/worker/src/workflows/blocks/post-ticket-comment.test.ts
  • apps/worker/src/workflows/blocks/post-ticket-comment.ts
  • apps/worker/src/workflows/blocks/prepare-workspace.test.ts
  • apps/worker/src/workflows/blocks/prepare-workspace.ts
  • apps/worker/src/workflows/blocks/send-plan-approval.test.ts
  • apps/worker/src/workflows/blocks/send-plan-approval.ts
  • apps/worker/src/workflows/clarification-snapshot-steps.test.ts
  • apps/worker/src/workflows/clarification-snapshot-steps.ts
  • apps/worker/src/workflows/definition-step.test.ts
  • apps/worker/src/workflows/definition-step.ts
  • apps/worker/src/workflows/loader-triggers.edge.test.ts
  • apps/worker/src/workflows/pr-external-resources.test.ts
  • apps/worker/src/workflows/pr-external-resources.ts
  • apps/worker/src/workflows/run-ownership-steps.test.ts
  • apps/worker/src/workflows/run-ownership-steps.ts
  • apps/worker/src/workflows/ticket-transition-step.test.ts
  • apps/worker/src/workflows/ticket-transition-step.ts
  • apps/worker/src/workflows/workflow-ticket.test.ts
  • apps/worker/src/workflows/workflow-ticket.ts
  • apps/worker/verify-sequences.mjs
  • docs/plans/2026-08-04-legacy-post-pr-gate-neutralization.md
  • package.json
💤 Files with no reviewable changes (51)
  • apps/worker/src/lib/branch-prefix.ts
  • apps/dashboard/lib/integrations/env.ts
  • apps/worker/src/workflow-definition/store.ts
  • apps/worker/src/lib/trigger-delivery-store.ts
  • apps/dashboard/lib/workflow-editor/graph-edit.ts
  • apps/dashboard/lib/workflow-editor/repository-scope.ts
  • apps/dashboard/lib/rng.ts
  • apps/dashboard/lib/workflow-editor/clipboard.test.ts
  • apps/dashboard/lib/integrations/vercel.ts
  • apps/dashboard/components/charts.tsx
  • apps/worker/src/lib/logger.ts
  • apps/worker/src/lib/overview/collect-cost.test.ts
  • apps/dashboard/lib/workflow-editor/edges.test.ts
  • apps/worker/src/workflows/pr-external-resources.test.ts
  • apps/worker/src/lib/overview/collect-kpis.test.ts
  • apps/worker/src/post-pr-gate/types.ts
  • apps/worker/src/pre-sandbox/types.ts
  • apps/dashboard/lib/workflow-editor/keyboard-actions.ts
  • apps/worker/src/workflow-definition/v2-migration.ts
  • apps/dashboard/app/api/approvals/handler.ts
  • apps/worker/src/workflows/agent-input.ts
  • apps/dashboard/lib/workflow-editor/keyboard-actions.test.ts
  • apps/dashboard/components/cockpit/chrome.tsx
  • apps/dashboard/lib/workflow-editor/layout-geometry.test.ts
  • apps/dashboard/lib/theme.ts
  • apps/worker/src/workflows/pr-external-resources.ts
  • apps/worker/src/lib/overview/collect-cost.ts
  • apps/worker/src/lib/overview/collect-kpis.ts
  • apps/worker/src/sandbox/agents/protocol.ts
  • apps/worker/src/lib/step-adapters.ts
  • apps/worker/src/sandbox/agents/shared.ts
  • apps/dashboard/lib/data/mock.ts
  • apps/worker/src/sandbox/agents/pricing.ts
  • apps/dashboard/app/api/approvals/route.test.ts
  • apps/worker/src/workflow-definition/resolve-agent.ts
  • apps/worker/src/clarifications/store.ts
  • apps/dashboard/lib/workflow-editor/repository-scope.test.ts
  • apps/dashboard/lib/workflow-editor/edges.ts
  • apps/dashboard/lib/workflow-editor/layout-geometry.ts
  • apps/worker/src/workflow-definition/schema.ts
  • apps/worker/src/workflow-definition/harness-profile-runtime.ts
  • apps/dashboard/lib/workflow-editor/clipboard.ts
  • apps/dashboard/app/api/workflow-definitions/[id]/restore/route.ts
  • apps/dashboard/app/api/pre-pr-checks/handler.ts
  • apps/dashboard/app/api/workflow-definitions/handler.ts
  • apps/dashboard/components/cockpit/tweaks-panel.tsx
  • apps/dashboard/app/api/approvals/route.ts
  • apps/worker/src/lib/auth/roles.ts
  • apps/worker/src/workflow-definition/store.test.ts
  • apps/dashboard/app/api/workflow-definitions/route.test.ts
  • apps/worker/src/workflow-definition/bindings.ts

Comment thread apps/worker/post-pr-gate.yaml Outdated
Comment thread docs/plans/2026-08-04-legacy-post-pr-gate-neutralization.md Outdated
Comment thread README.md
@outof-place
outof-place force-pushed the chore/dead-code-and-ci-cleanup branch from 8916eb7 to 1ed0e61 Compare August 5, 2026 15:31
@outof-place outof-place changed the title chore: drop dead code, halve worker test CPU, and neutralize the legacy post-PR gate chore: drop dead code and neutralize the legacy post-PR gate Aug 5, 2026
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