Skip to content

Document milestone 4.1.5 formula model and normalisation pipeline (#111) - #437

Draft
leynos wants to merge 3 commits into
mainfrom
issue-111-document-milestone-4-1-5-formula-model-and-normalisation-pipeline-in-developers-guide-md
Draft

leynos wants to merge 3 commits into
mainfrom
issue-111-document-milestone-4-1-5-formula-model-and-normalisation-pipeline-in-developers-guide-md

Conversation

@leynos

@leynos leynos commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a Milestone 4.1.5 section to docs/developers-guide.md documenting the canonical Formula and Atom model, the Decorated<T> wrapper, the legacy and v2 normalization paths, semantic validation, and Engine::compile_yaml wiring introduced by PR #104.

Closes #111

Changes

  • Document Formula variants and the distinction between match candidates and constraint forms.
  • Document every Decorated<T> metadata field and the fallback span behaviour.
  • Document the five-step normalization algorithm and the legacy/v2 mapping tables.
  • Document InvalidNotInOr, MissingPositiveTermInAnd, and the depth limit with their diagnostic codes.
  • Document engine wiring and the validated QueryPlan formula payload.
  • Document the where clause constraint parsing boundary.

Validation

  • make check-fmt
  • make markdownlint (includes the spelling gate)
  • make nixie
  • coderabbit review --agent --committed --base main: 0 findings

References

🤖 Generated with Claude Code

Summary by Sourcery

Document the milestone 4.1.5 formula model and normalization pipeline for developers.

Enhancements:

  • Document the canonical Formula and Atom model, Decorated metadata, normalization mappings, semantic validation rules, engine compilation flow, and where-clause parsing boundary for milestone 4.1.5.

Documentation:

  • Add comprehensive developer-guide documentation for the formula normalization and validation pipeline introduced in milestone 4.1.5.

leynos and others added 3 commits November 19, 2026 13:11
Add a developer's guide section describing the canonical Formula and Atom
model, the Decorated<T> metadata wrapper, both normalization paths, the
semantic validation rules, and the Engine::compile_yaml wiring introduced
by PR #104. The section also records the constraint parsing boundary and
the legacy/v2 mapping tables that normalization implements.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Record that the project-depends-on payload is dropped during lowering
rather than retained for execution, describe the subtree-clearing
behaviour of Not, Inside, and Anywhere during positivity analysis, and
add the missing semicolon to the Rust formula example.

Co-Authored-By: Claude Code <noreply@anthropic.com>
State that the optional fallback span supplies a diagnostic location only
when one is available, and that a node without any span carries no
location.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@sourcery-ai

sourcery-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Add a developer-guide section documenting the canonical formula model, normalization and constraint parsing, semantic validation, and engine wiring introduced by PR #104.

  • docs/developers-guide.md L2554-2837

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

This branch has not been deployed

No deployments
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.

Document milestone 4.1.5 Formula model and normalisation pipeline in developers-guide.md

1 participant