This repository was archived by the owner on Nov 25, 2026. It is now read-only.
Repository navigation
Decouple plan from sql - #15
Merged
Merged
Conversation
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]>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.