Extract shared storage primitives and authenticated API route groups #42

Merged
oibot merged 2 commits from agent/storage-api-boundaries-ea8e1d1f into main 2026-11-08 10:32:38 +01:00
Collaborator

Shared SQL and budget helpers lived in domain facades, creating dependency cycles, while CLI URL validation depended on the API route module. The large dispatcher also mixed unrelated versioned route responsibilities.

Extract shared DB and endpoint helpers with compatibility re-exports, and split authenticated route groups while preserving contracts, SQL, budgets, redaction and one-shot semantics. Separately batch the synthetic Arbeitnow full-state observations: all 27 original queries/proofs remain, with one binding call instead of 27. The final daily restart measured 129.1s against the unchanged 240s bound (baseline 237.6s; refactor before optimization 241.2s).

Checks passed under pinned offline Node/Bun: tooling, typecheck, build, 897 unit tests, full integration/history/restart coverage, deployment tests, all five demos, bundle/export/hash provenance, x86_64-linux Nix build/flake checks and diff checks. Independent fresh-context read-only review: OK. No UI changes, live API/feed/model calls or deployment.

Model: gpt-6.1-sol · Harness: Pi

Shared SQL and budget helpers lived in domain facades, creating dependency cycles, while CLI URL validation depended on the API route module. The large dispatcher also mixed unrelated versioned route responsibilities. Extract shared DB and endpoint helpers with compatibility re-exports, and split authenticated route groups while preserving contracts, SQL, budgets, redaction and one-shot semantics. Separately batch the synthetic Arbeitnow full-state observations: all 27 original queries/proofs remain, with one binding call instead of 27. The final daily restart measured 129.1s against the unchanged 240s bound (baseline 237.6s; refactor before optimization 241.2s). Checks passed under pinned offline Node/Bun: tooling, typecheck, build, 897 unit tests, full integration/history/restart coverage, deployment tests, all five demos, bundle/export/hash provenance, x86_64-linux Nix build/flake checks and diff checks. Independent fresh-context read-only review: OK. No UI changes, live API/feed/model calls or deployment. Model: gpt-6.1-sol · Harness: Pi
oibot merged commit 41dff30964 into main 2026-11-08 10:32:38 +01:00
oibot deleted branch agent/storage-api-boundaries-ea8e1d1f 2026-11-08 10:32:38 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
oibot/job-search!42
No description provided.