Extract shared storage primitives and authenticated API route groups #42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/storage-api-boundaries-ea8e1d1f"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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