Skip to content

Initial Foundational Semantics Spec #246

Open
willpugh wants to merge 3 commits into
mainfrom
willpugh/foundational_semantics_spec
Open

Initial Foundational Semantics Spec #246
willpugh wants to merge 3 commits into
mainfrom
willpugh/foundational_semantics_spec

Conversation

@willpugh

@willpugh willpugh commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Related Issues

This is MD version of the foundational semantics spec. It started in Google Docs: Proposed Foundational Semantics.

This follows from the discussions in the expression language slack group, and mail

NOTE: There were two comments in the original doc around join direction behaviour (to not lose fact table rows) and null safe joins. These have been addressed in this version, by being explicit about when null safe joins are required and being explicit about joining from the fact tables out.

Checklist

Specification

  • Spec changes are included in core-spec/ and follow the existing structure
  • Spec changes have been discussed on the mailing list or in a linked issue
  • Breaking changes to the spec are clearly called out in the summary

Ontology

  • Ontology changes in ontology/ are consistent with spec changes
  • New or modified terms are defined and documented

Converters

  • Converter logic in converters/ is updated to reflect spec or ontology changes
  • New converters include tests under the converter's test directory

Validation

  • Validation rules in validation/ are updated if the spec changed
  • New validation cases are covered by tests

Documentation

  • docs/ is updated to reflect any user-facing changes
  • New features or behaviors are documented with examples where appropriate
  • CONTRIBUTING.md is updated if the contribution process changed

Examples

  • examples/ are added or updated for any new spec constructs or converter support

Tests

  • All existing tests pass (pytest / CI green)
  • New functionality is covered by tests

Compliance

  • ASF license headers are present on all new source files
  • No third-party dependencies are added without PMC/IPMC approval

@willpugh willpugh changed the title Willpugh/foundational semantics spec Initial Foundational Semantics Spec Jul 22, 2026
@willpugh
willpugh force-pushed the willpugh/foundational_semantics_spec branch from 4fba0e0 to 4ebfd2c Compare July 23, 2026 06:26
willpugh added a commit that referenced this pull request Jul 23, 2026
…e fixes

Documentation:
- Add compliance/ARCHITECTURE.md (spec<->impl<->suite contract, harness
  runtime + adapter flow diagrams, test anatomy, conformance model).
- Rewrite compliance/README.md as the install/run entry point; refresh the
  harness and foundation READMEs.

Tooling:
- Make compliance/ a single uv workspace (pyproject.toml + uv.lock, members
  harness + foundation, dev group for pytest) so `uv sync` installs everything
  and `uv run` works from anywhere. Ignore *.egg-info/.

Spec alignment (point at core-spec/foundational_semantics.md, per #246):
- Repoint every proposals/foundation/Proposed_OSI_Semantics.md and
  foundation-v0.1 reference to core-spec/foundational_semantics.md and
  core-spec/expression_language.md across SPEC.md, decisions.yaml,
  proposals.yaml, conformance.yaml, DATA_TESTS.md, metadata.yaml,
  proposals_check.py, and test_registry_yaml.py.
- Remap anchors to #246's structure: deferred features -> section 3,
  determinism (D-014) -> sections 5.1/6.10.2; error codes -> Appendix A
  (decisions are inline, no Appendix B/C).
- Fix DATA_TESTS format drift (gold_rows.json -> gold.sql).

Harness:
- Implement decisions_coverage.md report (write_decisions_coverage in
  reporter.py, wired into run_suite) so every run surfaces D-NNN coverage
  gaps. Add test_reporter_coverage.py. Note conformance.yaml levels are
  declarative for now.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant