Spaces:
Sleeping
Sleeping
Create osint_core/__init__.py
Browse files- osint_core/__init__.py +44 -0
osint_core/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
osint_core package
|
| 3 |
+
==================
|
| 4 |
+
|
| 5 |
+
Core logic for the Passive OSINT Control Panel.
|
| 6 |
+
|
| 7 |
+
This package is intentionally structured to separate:
|
| 8 |
+
- validation (input trust boundary)
|
| 9 |
+
- policy enforcement (allowed behavior)
|
| 10 |
+
- enrichment (passive intelligence gathering)
|
| 11 |
+
- drift detection (state vs expectation)
|
| 12 |
+
- correction (controlled mutation decisions)
|
| 13 |
+
- audit (traceability)
|
| 14 |
+
|
| 15 |
+
Design principles:
|
| 16 |
+
- No module should perform implicit state mutation.
|
| 17 |
+
- Validation is the first gate; nothing downstream should re-validate.
|
| 18 |
+
- Public API is explicitly exported via __all__.
|
| 19 |
+
- Internal modules remain decoupled and testable.
|
| 20 |
+
"""
|
| 21 |
+
|
| 22 |
+
from .validators import (
|
| 23 |
+
validate_indicator,
|
| 24 |
+
assert_valid_or_raise,
|
| 25 |
+
ValidationResult,
|
| 26 |
+
ValidationErrorCode,
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
# Future modules (to be added as you build them)
|
| 30 |
+
# from .policy import enforce_policy
|
| 31 |
+
# from .enrichment import run_passive_enrichment
|
| 32 |
+
# from .drift import detect_drift
|
| 33 |
+
# from .correction import choose_correction
|
| 34 |
+
# from .audit import write_audit_event
|
| 35 |
+
|
| 36 |
+
__all__ = [
|
| 37 |
+
# validation
|
| 38 |
+
"validate_indicator",
|
| 39 |
+
"assert_valid_or_raise",
|
| 40 |
+
"ValidationResult",
|
| 41 |
+
"ValidationErrorCode",
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
__version__ = "0.1.0"
|