Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a09c77-b1a9-7eb3-b501-6cb24b458c97
20 lines
772 B
Python
20 lines
772 B
Python
"""Isolated, synthetic workflow demonstration."""
|
|
import json
|
|
from pathlib import Path
|
|
import sys
|
|
import tempfile
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
from intelligence_radar.__main__ import draft, ledger, record
|
|
|
|
fixture = json.loads((Path(__file__).resolve().parents[1] / 'examples/observation.json').read_text())
|
|
with tempfile.TemporaryDirectory(prefix='intelligence-radar-demo-') as directory:
|
|
root = Path(directory)
|
|
ident = record(root, fixture)
|
|
assert record(root, fixture) == ident
|
|
assert len(ledger(root)) == 1
|
|
for period in ('2026-09-13', '2026-W37'):
|
|
path = draft(root, period)
|
|
assert ident in path.read_text()
|
|
print(path.read_text())
|
|
print('Demo passed; temporary synthetic ledger removed.')
|