orchestrata_ultimate.gates

Reference › orchestrata_ultimate › gates › init

Package entry for the Prolog gate layer: facts from the AST snapshot, policy as rules. It imports from fact_extractor so that callers can reach it from orchestrata_ultimate.gates, and it defines nothing itself. See the gates package page.

At a glance

Source src/orchestrata_ultimate/gates/__init__.py
Lines of code 20
Classes 0
Functions 0
Imports (internal) orchestrata_ultimate.gates.fact_extractor
Imported by none
Tests that import it none

Class diagram

No classes; see Functions.

Dependency diagram

Dependency diagram orchestrata_ultimate.gates

API

No public API: the module defines no classes, functions or constants.

Source

Permalink: https://gitlab.com/MSamy/orchestrata-ultimate-architecture/-/blob/a4cbc2bdf/src/orchestrata_ultimate/gates/__init__.py

"""The Prolog gate layer — facts from the AST snapshot, policy as rules.

Contract: ``plans/contracts/prolog-gates.contract.json``.
Plan: ``plans/prolog-gates-implementation-plan.md``.

Every gate in this project is, today, a hand-written checker that re-reads and
re-parses source the AST snapshot already holds — up to four parses of the same
file per gate run — and several of them implement the same rule differently
without anything reconciling them. This package replaces that with one fact
base and one rule layer: the facts describe the code, the rules describe the
policy, and a rule that cannot fire can be asked *why not*.
"""

from orchestrata_ultimate.gates.fact_extractor import (
    FactExtractor,
    FactStats,
    SnapshotMissingError,
)

__all__ = ["FactExtractor", "FactStats", "SnapshotMissingError"]