Research-Stack/4-Infrastructure/shim/gremlin_appflowy_bridge.py
allaun 1c65853243 feat: spectral threshold tuning + Gremlin-to-AppFloyo push
Spectral thresholds:
- Lower signalThreshold from 2.0 to 1.5 (98304 Q16_16 raw)
- colorToShapeName now returns LogogramProjection for blue-only
  (was none, which caused missing_prediction alignment status)
- Result: 0 missing_prediction, 32 aligned_exact, 66 compatible,
  180 alignment_warning across 278 rows

Gremlin bridge:
- Added push_to_appflowy() with auto GoTrue JWT acquisition
- PUSH_APPFLOWY=1 env var triggers push after report generation
- Retained JSON/Markdown file output as primary delivery
2026-06-30 04:36:49 -05:00

31 lines
732 B
Python

#!/usr/bin/env -S uv run
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "gremlinpython",
# "python-dotenv",
# "requests",
# ]
# ///
"""gremlin_appflowy_bridge.py — DEPRECATED. Use gremlin_lean_report.py instead.
The old AppFloyo Cloud REST API (/api/databases) does not exist in
self-hosted v0.16.5. The replacement generates Markdown/JSON reports
that can be imported into AppFloyo via the UI, or consumed by other
automation.
See: gremlin_lean_report.py
signatures/appflowy_deployment_status.json
"""
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
sys.path.insert(0, str(ROOT / "shim"))
from gremlin_lean_report import main
if __name__ == "__main__":
main()