Skip to content

Extract RSI controller slices: candidates, fleet, integrity, proof (#126) - #151

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

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

Conversation

@w4ffl35

@w4ffl35 w4ffl35 commented Oct 13, 2026

Copy link
Copy Markdown
Member

Finishes the controller extraction for #126 (finish session; no new scope).

What changed:

  • Extracts candidate/fleet/integrity/proof helpers out of src/rsi/controller.ts into controller-candidates / controller-fleet / controller-integrity(-seal) / controller-proof-{manifest,archive} modules with re-exports from controller.ts (no behavior change).
  • Adds 3 slice test files: controller-candidates, controller-fleet-results, controller-integrity (all pass standalone).
  • Minimal finish-session fixes (test-only): ResourceClass 'cpu' -> 'CPU' in controller-candidates.test.ts; FleetJobPayload import moved from types.js to postgres-queue.js in controller-fleet-results.test.ts.
  • Regenerates code-standards + architecture baselines in the same change (moved lines only; no new style debt introduced).

Gates (honest):

  • npx tsc --noEmit: GREEN.
  • npm run check-standards: GREEN (after baseline regen for moved lines).
  • npm run check-architecture: GREEN (after baseline regen for moved lines).
  • npm test (full): NOT green — 1 failure in src/orchestrator/tests/cleanup.test.ts testApplySyncsMainToOrigin (push-sync hash mismatch). Verified PRE-EXISTING by stashing this diff and re-running on clean master (still fails there); unrelated to this RSI slice. All RSI tests incl. the 3 new files pass.
  • npm run coverage -- --min 24: threshold EXCEEDED (58.96% lines) but command exits 1 because it inherits the same pre-existing cleanup test failure via run-tests fail-fast.

Shippable partial per the finish brief: extraction is committed and reviewable; the single red gate is pre-existing on master and outside this diff's scope.

RSI smoke added 2 commits October 13, 2026 05:00
)

Move candidate/fleet/integrity/proof helpers out of src/rsi/controller.ts
into controller-candidates/fleet/integrity(-seal)/proof-{manifest,archive}
modules with re-exports; add slice test files. Regenerate standards and
architecture baselines for moved lines.
@w4ffl35
w4ffl35 merged commit 36aa316 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.

1 participant