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

Decouple plan from sql - #15

Merged
wmadden merged 3 commits into
mainfrom
decouple-plan-from-sql
Nov 14, 2025
Merged

wmadden merged 3 commits into
mainfrom
decouple-plan-from-sql

Conversation

@wmadden

@wmadden wmadden commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@wmadden
wmadden merged commit cc8f0e0 into main Nov 14, 2025
@wmadden
wmadden deleted the decouple-plan-from-sql branch November 14, 2025 15:37
wmadden added a commit that referenced this pull request May 8, 2026
…wn> casts at heterogeneous-storage boundary

AC-CB-5 explicitly forbids `as` casts at the registry boundary;
the heterogeneous-storage type test was casting both descriptor
fixtures `as CodecDescriptor<unknown>` to assign them into a
`Map<string, CodecDescriptor<unknown>>`. The casts mask a real
variance violation: `CodecDescriptor<P>` is invariant in `P`, so
concrete subclasses (`CodecDescriptorImpl<void>`, `CodecDescriptorImpl<VectorParams>`)
are NOT assignable to `CodecDescriptor<unknown>`.

Per spec § Q-3c (commit `d3ac5d8b2`), the canonical erasure type
is `AnyCodecDescriptor = CodecDescriptor<any>`. Switching the
storage signature to `Map<string, AnyCodecDescriptor>` removes both
casts and the assignments typecheck directly via structural
compatibility with the `any`-erased boundary.

The expanded comment block names AC-CB-5, the variance constraint,
and why `AnyCodecDescriptor` (not `CodecDescriptor<unknown>`) is the
shape that makes the test demonstrate the property the AC requires.

Refs: TML-2357 M0 R2 F6, decision #15.
wmadden added a commit that referenced this pull request May 9, 2026
…wn> casts at heterogeneous-storage boundary

AC-CB-5 explicitly forbids `as` casts at the registry boundary;
the heterogeneous-storage type test was casting both descriptor
fixtures `as CodecDescriptor<unknown>` to assign them into a
`Map<string, CodecDescriptor<unknown>>`. The casts mask a real
variance violation: `CodecDescriptor<P>` is invariant in `P`, so
concrete subclasses (`CodecDescriptorImpl<void>`, `CodecDescriptorImpl<VectorParams>`)
are NOT assignable to `CodecDescriptor<unknown>`.

Per spec § Q-3c (commit `d3ac5d8b2`), the canonical erasure type
is `AnyCodecDescriptor = CodecDescriptor<any>`. Switching the
storage signature to `Map<string, AnyCodecDescriptor>` removes both
casts and the assignments typecheck directly via structural
compatibility with the `any`-erased boundary.

The expanded comment block names AC-CB-5, the variance constraint,
and why `AnyCodecDescriptor` (not `CodecDescriptor<unknown>`) is the
shape that makes the test demonstrate the property the AC requires.

Refs: TML-2357 M0 R2 F6, decision #15.
wmadden added a commit that referenced this pull request May 9, 2026
…wn> casts at heterogeneous-storage boundary

AC-CB-5 explicitly forbids `as` casts at the registry boundary;
the heterogeneous-storage type test was casting both descriptor
fixtures `as CodecDescriptor<unknown>` to assign them into a
`Map<string, CodecDescriptor<unknown>>`. The casts mask a real
variance violation: `CodecDescriptor<P>` is invariant in `P`, so
concrete subclasses (`CodecDescriptorImpl<void>`, `CodecDescriptorImpl<VectorParams>`)
are NOT assignable to `CodecDescriptor<unknown>`.

Per spec § Q-3c (commit `d3ac5d8b2`), the canonical erasure type
is `AnyCodecDescriptor = CodecDescriptor<any>`. Switching the
storage signature to `Map<string, AnyCodecDescriptor>` removes both
casts and the assignments typecheck directly via structural
compatibility with the `any`-erased boundary.

The expanded comment block names AC-CB-5, the variance constraint,
and why `AnyCodecDescriptor` (not `CodecDescriptor<unknown>`) is the
shape that makes the test demonstrate the property the AC requires.

Refs: TML-2357 M0 R2 F6, decision #15.
wmadden added a commit that referenced this pull request May 9, 2026
…wn> casts at heterogeneous-storage boundary

AC-CB-5 explicitly forbids `as` casts at the registry boundary;
the heterogeneous-storage type test was casting both descriptor
fixtures `as CodecDescriptor<unknown>` to assign them into a
`Map<string, CodecDescriptor<unknown>>`. The casts mask a real
variance violation: `CodecDescriptor<P>` is invariant in `P`, so
concrete subclasses (`CodecDescriptorImpl<void>`, `CodecDescriptorImpl<VectorParams>`)
are NOT assignable to `CodecDescriptor<unknown>`.

Per spec § Q-3c (commit `d3ac5d8b2`), the canonical erasure type
is `AnyCodecDescriptor = CodecDescriptor<any>`. Switching the
storage signature to `Map<string, AnyCodecDescriptor>` removes both
casts and the assignments typecheck directly via structural
compatibility with the `any`-erased boundary.

The expanded comment block names AC-CB-5, the variance constraint,
and why `AnyCodecDescriptor` (not `CodecDescriptor<unknown>`) is the
shape that makes the test demonstrate the property the AC requires.

Refs: TML-2357 M0 R2 F6, decision #15.
wmadden added a commit that referenced this pull request May 9, 2026
…wn> casts at heterogeneous-storage boundary

AC-CB-5 explicitly forbids `as` casts at the registry boundary;
the heterogeneous-storage type test was casting both descriptor
fixtures `as CodecDescriptor<unknown>` to assign them into a
`Map<string, CodecDescriptor<unknown>>`. The casts mask a real
variance violation: `CodecDescriptor<P>` is invariant in `P`, so
concrete subclasses (`CodecDescriptorImpl<void>`, `CodecDescriptorImpl<VectorParams>`)
are NOT assignable to `CodecDescriptor<unknown>`.

Per spec § Q-3c (commit `d3ac5d8b2`), the canonical erasure type
is `AnyCodecDescriptor = CodecDescriptor<any>`. Switching the
storage signature to `Map<string, AnyCodecDescriptor>` removes both
casts and the assignments typecheck directly via structural
compatibility with the `any`-erased boundary.

The expanded comment block names AC-CB-5, the variance constraint,
and why `AnyCodecDescriptor` (not `CodecDescriptor<unknown>`) is the
shape that makes the test demonstrate the property the AC requires.

Refs: TML-2357 M0 R2 F6, decision #15.
wmadden added a commit that referenced this pull request May 12, 2026
Captures the design pass driven by the example-app forcing function:

- decisions.md: canonical decision log (A1-A7 TS authoring, B1-B6 PSL
  authoring, C1-C8 cross-cutting). Records the closes on holes #1, #2,
  #3, #4, #5, #15, #16, #17 and the elevation of roles/posture/extension
  structure to first-class concepts.

- design-holes.md: marks resolved holes against decisions, updates the
  blocking-holes summary table.

- rls.md: rewritten to the .rls([...]) array form (TS) and top-level
  policy <name> { key = value } blocks (PSL), with ref() helper semantics
  documented.

- overview.md: refreshed at-a-glance snippet, capability bullets, stretch
  goals to align with the array-of-descriptors RLS surface and the
  out-of-scope-for-v0.1 framing of functions-as-IR.

- example/src/prisma/contract.ts: rewritten to exercise the settled
  surface (composite uniques in .attributes(), .rls([...]) descriptor
  array, ref() helper for cross-model predicates, no capability flag).

- extension-package.md, posture.md, README.md: cross-reference updates
  pointing at decisions.md and reflecting the role IR + subpath
  entrypoint decisions.
wmadden added a commit that referenced this pull request May 13, 2026
Captures the design pass driven by the example-app forcing function:

- decisions.md: canonical decision log (A1-A7 TS authoring, B1-B6 PSL
  authoring, C1-C8 cross-cutting). Records the closes on holes #1, #2,
  #3, #4, #5, #15, #16, #17 and the elevation of roles/posture/extension
  structure to first-class concepts.

- design-holes.md: marks resolved holes against decisions, updates the
  blocking-holes summary table.

- rls.md: rewritten to the .rls([...]) array form (TS) and top-level
  policy <name> { key = value } blocks (PSL), with ref() helper semantics
  documented.

- overview.md: refreshed at-a-glance snippet, capability bullets, stretch
  goals to align with the array-of-descriptors RLS surface and the
  out-of-scope-for-v0.1 framing of functions-as-IR.

- example/src/prisma/contract.ts: rewritten to exercise the settled
  surface (composite uniques in .attributes(), .rls([...]) descriptor
  array, ref() helper for cross-model predicates, no capability flag).

- extension-package.md, posture.md, README.md: cross-reference updates
  pointing at decisions.md and reflecting the role IR + subpath
  entrypoint decisions.
wmadden added a commit that referenced this pull request May 13, 2026
Captures the design pass driven by the example-app forcing function:

- decisions.md: canonical decision log (A1-A7 TS authoring, B1-B6 PSL
  authoring, C1-C8 cross-cutting). Records the closes on holes #1, #2,
  #3, #4, #5, #15, #16, #17 and the elevation of roles/posture/extension
  structure to first-class concepts.

- design-holes.md: marks resolved holes against decisions, updates the
  blocking-holes summary table.

- rls.md: rewritten to the .rls([...]) array form (TS) and top-level
  policy <name> { key = value } blocks (PSL), with ref() helper semantics
  documented.

- overview.md: refreshed at-a-glance snippet, capability bullets, stretch
  goals to align with the array-of-descriptors RLS surface and the
  out-of-scope-for-v0.1 framing of functions-as-IR.

- example/src/prisma/contract.ts: rewritten to exercise the settled
  surface (composite uniques in .attributes(), .rls([...]) descriptor
  array, ref() helper for cross-model predicates, no capability flag).

- extension-package.md, posture.md, README.md: cross-reference updates
  pointing at decisions.md and reflecting the role IR + subpath
  entrypoint decisions.

Signed-off-by: Will Madden <[email protected]>
wmadden added a commit that referenced this pull request May 13, 2026
Captures the design pass driven by the example-app forcing function:

- decisions.md: canonical decision log (A1-A7 TS authoring, B1-B6 PSL
  authoring, C1-C8 cross-cutting). Records the closes on holes #1, #2,
  #3, #4, #5, #15, #16, #17 and the elevation of roles/posture/extension
  structure to first-class concepts.

- design-holes.md: marks resolved holes against decisions, updates the
  blocking-holes summary table.

- rls.md: rewritten to the .rls([...]) array form (TS) and top-level
  policy <name> { key = value } blocks (PSL), with ref() helper semantics
  documented.

- overview.md: refreshed at-a-glance snippet, capability bullets, stretch
  goals to align with the array-of-descriptors RLS surface and the
  out-of-scope-for-v0.1 framing of functions-as-IR.

- example/src/prisma/contract.ts: rewritten to exercise the settled
  surface (composite uniques in .attributes(), .rls([...]) descriptor
  array, ref() helper for cross-model predicates, no capability flag).

- extension-package.md, posture.md, README.md: cross-reference updates
  pointing at decisions.md and reflecting the role IR + subpath
  entrypoint decisions.

Signed-off-by: Will Madden <[email protected]>
wmadden added a commit that referenced this pull request May 13, 2026
Captures the design pass driven by the example-app forcing function:

- decisions.md: canonical decision log (A1-A7 TS authoring, B1-B6 PSL
  authoring, C1-C8 cross-cutting). Records the closes on holes #1, #2,
  #3, #4, #5, #15, #16, #17 and the elevation of roles/posture/extension
  structure to first-class concepts.

- design-holes.md: marks resolved holes against decisions, updates the
  blocking-holes summary table.

- rls.md: rewritten to the .rls([...]) array form (TS) and top-level
  policy <name> { key = value } blocks (PSL), with ref() helper semantics
  documented.

- overview.md: refreshed at-a-glance snippet, capability bullets, stretch
  goals to align with the array-of-descriptors RLS surface and the
  out-of-scope-for-v0.1 framing of functions-as-IR.

- example/src/prisma/contract.ts: rewritten to exercise the settled
  surface (composite uniques in .attributes(), .rls([...]) descriptor
  array, ref() helper for cross-model predicates, no capability flag).

- extension-package.md, posture.md, README.md: cross-reference updates
  pointing at decisions.md and reflecting the role IR + subpath
  entrypoint decisions.

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