Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.

Extract control plane executor - #12

Merged
wmadden merged 14 commits into
mainfrom
extract-control-plane-executor
Nov 14, 2025
Merged

wmadden merged 14 commits into
mainfrom
extract-control-plane-executor

Conversation

@wmadden

@wmadden wmadden commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@wmadden
wmadden merged commit 27af5b2 into main Nov 14, 2025
@aqrln
aqrln deleted the extract-control-plane-executor branch December 15, 2025 13:54
wmadden added a commit that referenced this pull request Mar 30, 2026
Updates design-questions.md:
- Note High priority signal from MongoDB team on polymorphism/inheritance
- Add design question #11 (introspection from existing databases)
- Add design question #12 (extension packs for Vector Search, Atlas Search, geospatial)
- Add design question #13 (CSFLE / queryable encryption)

Updates user-promise.md:
- Add introspection to the domain model promise
- Add extension pack ecosystem (Vector Search, Atlas Search, geospatial)
- Add CSFLE to non-promises section
- Expand ecosystem comparison table with polymorphism, Vector/Atlas Search,
  change streams, and introspection rows
wmadden added a commit that referenced this pull request Mar 30, 2026
Updates design-questions.md:
- Note High priority signal from MongoDB team on polymorphism/inheritance
- Add design question #11 (introspection from existing databases)
- Add design question #12 (extension packs for Vector Search, Atlas Search, geospatial)
- Add design question #13 (CSFLE / queryable encryption)

Updates user-promise.md:
- Add introspection to the domain model promise
- Add extension pack ecosystem (Vector Search, Atlas Search, geospatial)
- Add CSFLE to non-promises section
- Expand ecosystem comparison table with polymorphism, Vector/Atlas Search,
  change streams, and introspection rows
wmadden added a commit that referenced this pull request Mar 31, 2026
Updates design-questions.md:
- Note High priority signal from MongoDB team on polymorphism/inheritance
- Add design question #11 (introspection from existing databases)
- Add design question #12 (extension packs for Vector Search, Atlas Search, geospatial)
- Add design question #13 (CSFLE / queryable encryption)

Updates user-promise.md:
- Add introspection to the domain model promise
- Add extension pack ecosystem (Vector Search, Atlas Search, geospatial)
- Add CSFLE to non-promises section
- Expand ecosystem comparison table with polymorphism, Vector/Atlas Search,
  change streams, and introspection rows
jkomyno pushed a commit that referenced this pull request Apr 1, 2026
Updates design-questions.md:
- Note High priority signal from MongoDB team on polymorphism/inheritance
- Add design question #11 (introspection from existing databases)
- Add design question #12 (extension packs for Vector Search, Atlas Search, geospatial)
- Add design question #13 (CSFLE / queryable encryption)

Updates user-promise.md:
- Add introspection to the domain model promise
- Add extension pack ecosystem (Vector Search, Atlas Search, geospatial)
- Add CSFLE to non-promises section
- Expand ecosystem comparison table with polymorphism, Vector/Atlas Search,
  change streams, and introspection rows
jkomyno added a commit that referenced this pull request May 8, 2026
* #7 — SQLite AFTER-trigger mitigation: decision recorded as defer.
  JSDoc on buildRowIdentityCriterion + Query Lanes.md paragraph remain
  the documented mitigation; no runtime guard added until the SQLite
  adapter actually exercises id-less + AFTER-trigger contracts.

* #8 — Asymmetric `returning` gate: comment at executeUpdateCount
  records the explicit design choice. Surface-level updateCount/
  deleteCount require the capability; FK-rewrite cleanup
  (disconnect/setNull) does not, since no row data is read.

* #9 — Trim WHAT-restating sentence from buildRowIdentityCriterion
  comment block. Remaining lines explain the genuinely non-obvious
  WHY: RETURNING-by-construction invariant + duplicate-tuple caveat
  + SQLite AFTER-trigger caveat.

* #10 — Add typed `withoutPrimaryKey<TTable>(contract, table)` helper
  to test/helpers.ts mirroring `withCapabilities`. Migrate four call
  sites (createIdlessTagsCollection, createIdlessUsersCollection, two
  unit tests in mutation-executor.test.ts) from inline
  `as unknown as TestContract` casts to the helper. Cast lives in one
  place now.

* #11 — Drop redundant `updateCount returns zero` integration test
  on id-less Tags. The zero-match path is already covered by unit
  tests on PK contracts and does not exercise id-less specifics.

* #12 — Extract `getPrimaryKeyColumns(contract, tableName): readonly
  string[]` helper in collection-contract.ts. Replaces three
  duplicated raw-storage accesses (resolvePrimaryKeyColumn,
  pickCountReturningColumn, buildRowIdentityCriterion, the new P1
  guard).

* #13 — Plan doc references the post-rename name throughout.

* #14 — Trim `resolvePrimaryKeyColumn` error to one sentence; the
  API guidance prose duplicated content already in Query Lanes.md.

All 8 P3 todos marked complete. pnpm test:packages 110/110 green;
pnpm lint:deps 0 violations. sql-orm-client suite is 501 (one fewer
than before due to dropped redundant test).
wmadden added a commit that referenced this pull request May 26, 2026
…e PR

D1 (M, Composer-2.5) hard-cuts the source surface: IR typing, validator,
serializer hydration + folded TML-2658, verifier, emitter codegen,
authoring lowering, and Postgres target read/write paths — document-
scoped storage.types preserved as out-of-scope guard. fixtures:check is
explicitly a non-gate for D1; expected to fail until D2 runs. Re-
decomposition trigger at >25 package files or >30-file typecheck cascade
splits into D1a (contract IR + family) + D1b (authoring + postgres
target).

D2 (M, Composer-2.5) grep-audits enum-bearing committed contracts, runs
pnpm fixtures:emit, gates on pnpm fixtures:check, and runs the A4
migration-replay probe on pre-#534 bookends. Bookend regen is
conditional on replay falsification; if A4 needs >3 source files the
dispatch halts (promote per spec edge #12).

D3 (S, Composer-2.5) closes the slice: PDoD3 grep gate, SDoD2 edge-case
disposition audit, SDoD7 TML-2658 verification, and the full slice
validation gate (typecheck, test:packages, test:integration,
fixtures:check, lint:deps). No implementation changes expected; >3
straggler files routes failure back to D1 or D2 rather than band-aiding
in D3.

Risk #5 (Per-dispatch DoR overlay) is wired per-dispatch with explicit
brief-assembly discipline drawn from drive/retro/findings.md 2026-05-21:
do not lift spec table rows into a "do not relitigate" block without
the (a) non-redundancy justification per row; default stance for S1.B
is retire framework-encoded Postgres identity, do not add parallel
slot registries; if (b) answer is "hydration/validation already enforce
this", the dispatch must not introduce that structure.

Each dispatch carries refusal triggers naming F1 (no read-fallback
shim), F5 (no destructive git), F6 (no redundant descriptor fields),
F7 (no unbriefed-blocker workarounds) from drive/calibration/
failure-modes.md. Hard-cut path is preserved.

Refs TML-2623.

Signed-off-by: Will Madden <[email protected]>
wmadden added a commit that referenced this pull request May 26, 2026
…e PR

D1 (M, Composer-2.5) hard-cuts the source surface: IR typing, validator,
serializer hydration + folded TML-2658, verifier, emitter codegen,
authoring lowering, and Postgres target read/write paths — document-
scoped storage.types preserved as out-of-scope guard. fixtures:check is
explicitly a non-gate for D1; expected to fail until D2 runs. Re-
decomposition trigger at >25 package files or >30-file typecheck cascade
splits into D1a (contract IR + family) + D1b (authoring + postgres
target).

D2 (M, Composer-2.5) grep-audits enum-bearing committed contracts, runs
pnpm fixtures:emit, gates on pnpm fixtures:check, and runs the A4
migration-replay probe on pre-#534 bookends. Bookend regen is
conditional on replay falsification; if A4 needs >3 source files the
dispatch halts (promote per spec edge #12).

D3 (S, Composer-2.5) closes the slice: PDoD3 grep gate, SDoD2 edge-case
disposition audit, SDoD7 TML-2658 verification, and the full slice
validation gate (typecheck, test:packages, test:integration,
fixtures:check, lint:deps). No implementation changes expected; >3
straggler files routes failure back to D1 or D2 rather than band-aiding
in D3.

Risk #5 (Per-dispatch DoR overlay) is wired per-dispatch with explicit
brief-assembly discipline drawn from drive/retro/findings.md 2026-05-21:
do not lift spec table rows into a "do not relitigate" block without
the (a) non-redundancy justification per row; default stance for S1.B
is retire framework-encoded Postgres identity, do not add parallel
slot registries; if (b) answer is "hydration/validation already enforce
this", the dispatch must not introduce that structure.

Each dispatch carries refusal triggers naming F1 (no read-fallback
shim), F5 (no destructive git), F6 (no redundant descriptor fields),
F7 (no unbriefed-blocker workarounds) from drive/calibration/
failure-modes.md. Hard-cut path is preserved.

Refs TML-2623.

Signed-off-by: Will Madden <[email protected]>
wmadden added a commit that referenced this pull request May 27, 2026
…e PR

D1 (M, Composer-2.5) hard-cuts the source surface: IR typing, validator,
serializer hydration + folded TML-2658, verifier, emitter codegen,
authoring lowering, and Postgres target read/write paths — document-
scoped storage.types preserved as out-of-scope guard. fixtures:check is
explicitly a non-gate for D1; expected to fail until D2 runs. Re-
decomposition trigger at >25 package files or >30-file typecheck cascade
splits into D1a (contract IR + family) + D1b (authoring + postgres
target).

D2 (M, Composer-2.5) grep-audits enum-bearing committed contracts, runs
pnpm fixtures:emit, gates on pnpm fixtures:check, and runs the A4
migration-replay probe on pre-#534 bookends. Bookend regen is
conditional on replay falsification; if A4 needs >3 source files the
dispatch halts (promote per spec edge #12).

D3 (S, Composer-2.5) closes the slice: PDoD3 grep gate, SDoD2 edge-case
disposition audit, SDoD7 TML-2658 verification, and the full slice
validation gate (typecheck, test:packages, test:integration,
fixtures:check, lint:deps). No implementation changes expected; >3
straggler files routes failure back to D1 or D2 rather than band-aiding
in D3.

Risk #5 (Per-dispatch DoR overlay) is wired per-dispatch with explicit
brief-assembly discipline drawn from drive/retro/findings.md 2026-05-21:
do not lift spec table rows into a "do not relitigate" block without
the (a) non-redundancy justification per row; default stance for S1.B
is retire framework-encoded Postgres identity, do not add parallel
slot registries; if (b) answer is "hydration/validation already enforce
this", the dispatch must not introduce that structure.

Each dispatch carries refusal triggers naming F1 (no read-fallback
shim), F5 (no destructive git), F6 (no redundant descriptor fields),
F7 (no unbriefed-blocker workarounds) from drive/calibration/
failure-modes.md. Hard-cut path is preserved.

Refs TML-2623.

Signed-off-by: Will Madden <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant