Files
markitect-main/markitect/infospace/__init__.py
tegwick f8c9ab33f0 feat(infospace): add structured evaluation output with history and diffing (S1.5)
Add data models (ScoreEntry, EntityEvaluation, EvaluationSnapshot,
SnapshotDiff) and I/O utilities for YAML frontmatter evaluation files,
snapshot persistence, history append, and snapshot diffing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 01:35:22 +01:00

76 lines
1.6 KiB
Python

"""
Infospace analysis package.
Provides tooling for extracting structured metadata from entity markdown
files and analysing infospace collections.
"""
from .models import EntityMeta
from .entity_parser import parse_entity_file, parse_entity_directory
from .schema import (
ECONOMIC_ENTITY_SCHEMA,
EntitySchema,
EnumConstraint,
SectionRequirement,
SectionRule,
)
from .validator import (
BatchComplianceResult,
ComplianceDiagnostic,
ComplianceResult,
validate_entities,
validate_entity,
)
from .evaluation import (
EntityEvaluation,
EvaluationSnapshot,
MetricChange,
MetricValue,
ScoreChange,
ScoreEntry,
SnapshotDiff,
)
from .evaluation_io import (
append_to_history,
diff_snapshots,
read_entity_evaluation,
read_history,
read_snapshot,
write_entity_evaluation,
write_snapshot,
)
__all__ = [
"EntityMeta",
"parse_entity_file",
"parse_entity_directory",
# Schema
"ECONOMIC_ENTITY_SCHEMA",
"EntitySchema",
"EnumConstraint",
"SectionRequirement",
"SectionRule",
# Validator
"BatchComplianceResult",
"ComplianceDiagnostic",
"ComplianceResult",
"validate_entities",
"validate_entity",
# Evaluation models
"EntityEvaluation",
"EvaluationSnapshot",
"MetricChange",
"MetricValue",
"ScoreChange",
"ScoreEntry",
"SnapshotDiff",
# Evaluation I/O
"append_to_history",
"diff_snapshots",
"read_entity_evaluation",
"read_history",
"read_snapshot",
"write_entity_evaluation",
"write_snapshot",
]