docs - establish Prism relational reasoning north star (RFC 065, RFC 066) - #105
Merged
Conversation
dannymeijer
marked this pull request as ready for review
July 27, 2026 16:04
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.
Summary
This documentation-only PR adds the Polyglot SQL AST boundary RFC, a Prism relational-reasoning research whitepaper, and RFC 066: the normative North Star for bounded memo optimization, workload-level shared-work reasoning, heterogeneous placement, provider-neutral planning evidence, and adaptive Prism re-entry across local, cluster, bounded, continuous, and explicitly modeled graph or recursive work.
RFC 065 makes Polyglot an optional typed SQL ingress and egress boundary while retaining Prism as semantic owner. RFC 066 defines Prism as one standalone reasoning engine operating in pre-execution and bounded adaptive re-entry modes over the same authored graph, semantic rules, memo, property model, and explanation contract. Local execution is the one-placement case of distributed planning; streaming adds boundedness, update, time, progress, and state legality; graph work adds explicit identity, path, recursion, fixpoint, and termination semantics. Target lowerers,
Session, adapters, Catalyst/AQE, DataFusion, PostgreSQL, graph targets, and other target optimizers retain representation-specific lowering, physical planning, runtime adaptation, and execution ownership.The PR also amends RFC 008 and RFC 048 so externally retained cross-execution evidence, distributed target facts, continuous frontiers, and state-compatibility evidence enter the architecture without giving Prism execution or storage responsibilities. The whitepaper treats Spark Catalyst/AQE, GRainDB, DuckPGQ, and differential dataflow as specific prior art, connects Prism evidence to local plan-diff and blast-radius inputs, and defines reproducible research without making a performance or operational-cause claim.
Type of change
docs/rfcs/*)Area(s)
Select the primary areas touched (labels sync from checked lines when the triage workflow runs):
Key details
Sessionor another coordinator owns observation collection, safe checkpoints, completed work, committed progress, state lifecycle, fallback policy, and the decision to request replanning. Target engines retain target-local physical adaptation.EXPLAINdifferences, the separation between Prism and Polyglot prototypes, and the incomplete DataFusion lane.Testing / verification
make ci(ormake fmt-check,make build,make test)Manual verification notes:
git diff --cached --checkandgit diff --checkpassed.InQL,adaptive-reentry, initial-spike, session-only evidence, or internal-review wording in the reviewed documents.Docs impact
If docs updated:
docs/rfcs/008_optimizer_boundary_stats_cbo_aqe.md,docs/rfcs/048_cluster_execution_backend_mode.md,docs/rfcs/065_polyglot_sql_ast_ingress_and_egress.md,docs/rfcs/066_prism_relational_reasoning_and_shared_work_optimization.md,docs/whitepapers/prism_relational_reasoning.mdChecklist