augerd commited on
Commit
ad58360
·
verified ·
1 Parent(s): b19b605

Deploy aug_gc — temporal composition Space

Browse files
Files changed (1) hide show
  1. atman_backbone.py +24 -3
atman_backbone.py CHANGED
@@ -51,9 +51,30 @@ MODEL = "claude-opus-4-8"
51
  MAX_TOKENS = 16000
52
  EFFORT = "medium" # balance latency/cost across the 4-call chain; raise to "high" for depth
53
 
54
- # Shared temporal archive — the atmanOS manuscript (repo root), overridable via env.
55
- # parents[2] of .../FHP/aug_gc/atman_backbone.py == the XNMk repo root.
56
- _DEFAULT_MANUSCRIPT = Path(__file__).resolve().parents[2] / "temporal_manuscript.json"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
 
59
  # ── Faculty system prompts (STATIC — cached via cache_control) ──────────────────
 
51
  MAX_TOKENS = 16000
52
  EFFORT = "medium" # balance latency/cost across the 4-call chain; raise to "high" for depth
53
 
54
+ # Shared temporal archive — the atmanOS manuscript. Resolution order:
55
+ # 1. $AUGGC_MANUSCRIPT — explicit override
56
+ # 2. ~/atmanOS-claude/temporal_manuscript — the live atmanOS archive (when present)
57
+ # 3. the XNMk repo root — parents[2] of .../FHP/aug_gc/...
58
+ # parents[2]/[3] are guarded: shallow layouts (HF Space at /app) lack the deep nesting.
59
+ _parents = Path(__file__).resolve().parents
60
+ _repo_root = _parents[2] if len(_parents) > 2 else _parents[-1]
61
+ _home = _parents[3] if len(_parents) > 3 else _repo_root
62
+
63
+
64
+ def _first_existing(*paths):
65
+ for p in paths:
66
+ if p and Path(p).exists():
67
+ return Path(p)
68
+ return None
69
+
70
+
71
+ _DEFAULT_MANUSCRIPT = (
72
+ Path(os.environ["AUGGC_MANUSCRIPT"]) if os.environ.get("AUGGC_MANUSCRIPT")
73
+ else _first_existing(
74
+ _home / "atmanOS-claude" / "temporal_manuscript.json",
75
+ _repo_root / "temporal_manuscript.json",
76
+ ) or (_repo_root / "temporal_manuscript.json")
77
+ )
78
 
79
 
80
  # ── Faculty system prompts (STATIC — cached via cache_control) ──────────────────