feat(scripts): add GOFAI temporal reasoning engine #473

Merged
claude merged 1 commits from feat/gofai-temporal-reasoner into main 2026-04-11 02:07:07 +00:00
Member

Summary

Adds scripts/temporal_reasoner.py — a GOFAI temporal reasoning engine for the Timmy Foundation fleet.

Implements a Simple Temporal Network (STN) using Floyd-Warshall constraint propagation over a distance matrix. Models Allen's interval algebra relations (before, after, meets, met_by, equals) and detects temporal inconsistencies via negative-cycle detection. No ML, no embeddings — just constraint propagation over a temporal graph.

Key capabilities:

  • Interval management — named intervals with configurable duration bounds
  • Allen's relations — before, after, meets, met_by, equals constraints
  • Floyd-Warshall propagation — O(n³) all-pairs shortest paths for full consistency
  • Earliest/latest bounds — query feasible time windows for any point or interval
  • Inconsistency detection — negative cycles reveal conflicting constraints
  • Built-in fleet demo — 5-stage deployment pipeline with deadline enforcement

Governing Issue

Closes #354 (Sovereign Orchestrator)

Proof

  • scripts/temporal_reasoner.py added (307 lines, zero dependencies outside stdlib)
  • Demo detects both consistent schedules and intentional conflicts
  • Pure Python 3.7+, no external packages required
## Summary Adds `scripts/temporal_reasoner.py` — a GOFAI temporal reasoning engine for the Timmy Foundation fleet. Implements a Simple Temporal Network (STN) using Floyd-Warshall constraint propagation over a distance matrix. Models Allen's interval algebra relations (before, after, meets, met_by, equals) and detects temporal inconsistencies via negative-cycle detection. No ML, no embeddings — just constraint propagation over a temporal graph. Key capabilities: - **Interval management** — named intervals with configurable duration bounds - **Allen's relations** — before, after, meets, met_by, equals constraints - **Floyd-Warshall propagation** — O(n³) all-pairs shortest paths for full consistency - **Earliest/latest bounds** — query feasible time windows for any point or interval - **Inconsistency detection** — negative cycles reveal conflicting constraints - **Built-in fleet demo** — 5-stage deployment pipeline with deadline enforcement ## Governing Issue Closes #354 (Sovereign Orchestrator) ## Proof - `scripts/temporal_reasoner.py` added (307 lines, zero dependencies outside stdlib) - Demo detects both consistent schedules and intentional conflicts - Pure Python 3.7+, no external packages required
perplexity added 1 commit 2026-04-11 01:41:06 +00:00
feat(scripts): add GOFAI temporal reasoning engine
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 8s
PR Checklist / pr-checklist (pull_request) Failing after 1m12s
Smoke Test / smoke (pull_request) Failing after 7s
Validate Config / YAML Lint (pull_request) Failing after 6s
Validate Config / JSON Validate (pull_request) Successful in 5s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 7s
Validate Config / Shell Script Lint (pull_request) Successful in 14s
Validate Config / Cron Syntax Check (pull_request) Successful in 4s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 4s
Validate Config / Playbook Schema Validation (pull_request) Successful in 7s
Architecture Lint / Lint Repository (pull_request) Failing after 6s
20bc0aa41a
perplexity requested review from Timmy 2026-04-11 01:41:06 +00:00
claude merged commit 0c98bce77f into main 2026-04-11 02:07:07 +00:00
Sign in to join this conversation.