Skip to content

Extract shared arg-cursor for orchestrator parsers (#127) - #148

Merged
w4ffl35 merged 2 commits into
masterfrom
issues/w10-2026-10-13
Oct 13, 2026
Merged

w4ffl35 merged 2 commits into
masterfrom
issues/w10-2026-10-13

Conversation

@w4ffl35

@w4ffl35 w4ffl35 commented Oct 13, 2026

Copy link
Copy Markdown
Member

Closes #127 (partial — first slice: arg-cursor extraction).

What

Extracts the duplicated --flag=value / next() argv-cursor idiom (7 copies across src/orchestrator/cli.ts:354 and src/orchestrator/resume.ts:124) into src/orchestrator/arg-cursor.ts:45 (createArgCursor), with unit tests at src/orchestrator/__tests__/arg-cursor.test.ts. Callers in parseOrchestrateArgs, parseStatusArgs, parseStopArgs, parsePipelineArgs, parseReviewArgs, parseReworkArgs, parseResumeArgs now delegate. Also removes stray PLAN.md and regenerates scripts/architecture-baseline.json for moved clone keys.

Gates (honest status)

  • npx tsc --noEmit: GREEN (exit 0)
  • npm run check-standards: GREEN (all baselined, 0 fixed)
  • npm run check-architecture: GREEN after baseline regen (38 moved clone keys re-baselined in same change; 0 fixed since baseline after regen)
  • npm test (full): NOT GREEN — 1 pre-existing failure in src/orchestrator/__tests__/cleanup.test.ts:355 (testApplySyncsMainToOrigin: remote main SHA != local main SHA after cleanup --apply push). Reproduces on the clean tree with this diff stashed, so unrelated to this slice. Docker-provider flake seen once, passes on retry.
  • npm run coverage -- --min 24: BLOCKED by the same cleanup failure (coverage script exits nonzero when the suite fails before reaching the floor check).
  • New test: npx tsx src/orchestrator/__tests__/arg-cursor.test.ts — 6/6 pass.

Shippable partial per brief: slice is committed, no new refactors started.

RSI smoke added 2 commits October 13, 2026 02:16
Dedupes the --flag=value/next() cursor duplicated across cli.ts and resume.ts
into src/orchestrator/arg-cursor.ts with unit tests; regen architecture baseline
for moved clone keys.
@w4ffl35
w4ffl35 merged commit 3e055ba into master Oct 13, 2026
2 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.

Quality: engine loop + orchestrator CLI slim-down (tests-first)

1 participant