Skip to content

refactor(pstack): drop unused workflow session wake and evidence modules - #17

Open
shishiv wants to merge 1 commit into
feat/robust-port-cloud-leftoversfrom
feat/robust-port-orphan-workflows
Open

refactor(pstack): drop unused workflow session wake and evidence modules#17
shishiv wants to merge 1 commit into
feat/robust-port-cloud-leftoversfrom
feat/robust-port-orphan-workflows

Conversation

@shishiv

@shishiv shishiv commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Why

package.json already exports ./workflows from delegation.ts. Session discovery, wake planning, and MCP evidence mapping had no callers. Disk now matches the export.

Scope

Deleted src/workflows/sessions.ts, src/workflows/wake.ts, and src/workflows/evidence.ts.

test/workflows/workflows.test.mjs keeps the two delegation.ts tests. It drops discoverSessionFiles, planLongRunWake, and mapEvidenceSources.

Sticky mode still uses src/runtime/session.ts. Benny still hardcodes polling: "schedule-wake". Receipts still use src/delivery/evidence.ts.

ls src/workflows is only delegation.ts.

Out of scope: unused delivery barrels.

Blast Radius

Importers of ./workflows are unchanged. Six tests that only guarded the deleted modules are gone. Deterministic verify now has 73 tests.

Verification

rg "discoverSessionFiles|planLongRunWake|mapEvidenceSources" src test is empty.

node --test test/workflows/workflows.test.mjs passed (2 tests).

npm run verify:deterministic passed (format, lint, typecheck, 73 tests, manifest).

Made with Cursor

The package export already points at delegation.ts. Callers live in runtime session, Benny schedules, and delivery evidence. Tests that only guarded the deleted files left with them.

Co-authored-by: Cursor <cursoragent@cursor.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