Phase 1: implicit-any fix, autonomy schema tables, real migrate --check - #36
Open
cryptoxdog wants to merge 1 commit into
Open
Phase 1: implicit-any fix, autonomy schema tables, real migrate --check#36cryptoxdog wants to merge 1 commit into
cryptoxdog wants to merge 1 commit into
Conversation
…rate --check R-02: annotate the two implicit-any callback parameters in getDailySpend's DB-outage fallback with RoutingDecision, clearing the tsc --noEmit errors. R-04: add agentJobs, budgetViolations, and compensationLog Drizzle table definitions (ADR-0008 autonomy runtime controls) to schema-extensions.ts, along with the integer/numeric/bigserial pg-core imports they require. R-05: rewrite migrate.ts so --check performs a genuine read-only dry-run against drizzle-orm's __drizzle_migrations history table (folderMillis vs latest applied created_at), instead of the flag being silently ignored. Validated: tsc --noEmit 0 errors, eslint src/ 0 errors, vitest 134/134. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SjcHn8jZErKo37ZJi6qybX
|
This was referenced Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Stacked PR — 1 of 3
Base of the stack (targets
main). Phase 2 stacks on this branch, Phase 3 on Phase 2.What this does
Phase 1 of the SEO-Bot instantiation remediation (R-02, R-04, R-05).
src/services/llm.tsgetDailySpend's DB-outage fallback withRoutingDecision, clearing thetsc --noEmiterrorssrc/core/database/schema-extensions.tsagentJobs,budgetViolations,compensationLogDrizzle tables (ADR-0008 autonomy runtime controls) + theinteger/numeric/bigserialpg-core imports they needsrc/core/database/migrate.ts--checkperforms a genuine read-only dry-run against drizzle-orm's__drizzle_migrationshistory table (folderMillisvs latest appliedcreated_at), instead of the flag being silently ignoredNotes
drizzle-kit@0.28.1 generateis a pre-existing tooling defect on this repo's NodeNext imports (reproduces on an unmodified baseline), and hand-authoring a snapshot would risk format drift. The schema source is added; migration generation remains a separate blocker.Validation
tsc --noEmit0 errors ·eslint src/0 errors ·vitest134/134Generated by Claude Code