Skip to content

docs(adr): ADR-CHAT-011 SOVEREIGN SCARAB pull-from-Postgres control plane#785

Merged
gHashTag merged 1 commit into
mainfrom
feat/adr-sovereign-scarab
May 14, 2026
Merged

docs(adr): ADR-CHAT-011 SOVEREIGN SCARAB pull-from-Postgres control plane#785
gHashTag merged 1 commit into
mainfrom
feat/adr-sovereign-scarab

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Closes #264 (sovereign-scarab milestone within Throne)

R5-prototype verified locally 2026-05-14:

  • 3 scarabs polling ssot.scarab_strategy every 5s
  • strategy bump → pull-up latency ≤5s
  • graceful shutdown via status='stop' ≤5s
  • ZERO Railway API calls, ZERO PAT tokens — only DATABASE_URL

Evidence: /home/user/workspace/cron_tracking/sovereign_scarab/evidence/2026-05-14T09:42Z/

Eliminates token-rotation hell documented in:

  • trios-railway#156 (RAILWAY_TOKEN_ACC1..7 rotation)
  • B-20 PASS-20 (variableUpsert still NotAuthorized under PAT in edge cases)

Companion PRs (next):

  • trios-railway#NNN — bake schema into production phd-postgres-ssot
  • trios-trainer-igla#NNN — crates/scarab-pull-loop/ + Dockerfile

Anchor: phi^2 + phi^-2 = 3 · TRINITY · DEFENSE 2026-06-15

…lane

R5-prototype verified 2026-05-14 with 3 local scarabs, gen-bump pull-up
latency ~5s, graceful shutdown via status='stop'. Eliminates Railway PAT
token rotation hell from the command path.

Anchor: phi^2 + phi^-2 = 3 · TRINITY · DEFENSE 2026-06-15
@gHashTag gHashTag merged commit cf3099f into main May 14, 2026
13 checks passed
@gHashTag gHashTag deleted the feat/adr-sovereign-scarab branch May 14, 2026 10:03
gHashTag added a commit to gHashTag/trios-railway that referenced this pull request May 14, 2026
…IGN SCARAB) (#163)

Implements gHashTag/trios#785 (ADR-CHAT-011) and companion crate
gHashTag/trios-trainer-igla#143 (scarab-pull-loop/).

Eliminates the Railway-GraphQL command surface from the scarab fleet:
Queen-Hive commands become SELECT bump_strategy(...) calls, scarabs poll
their own strategy row every 30s.

Schema:
- ssot.scarab_strategy (PK service_id, generation bigint, status)
- ssot.scarab_heartbeat (PK service_id, last_seen, current_gen, current_bpb)
- ssot.bump_strategy() — atomic UPDATE + generation++
- ssot.scarab_dead view — > 2-min stale heartbeat detector

R5-prototype verified locally 2026-05-14:
- 3 scarabs, pull-up latency ≤ 5s, graceful stop ≤ 5s
- ZERO Railway API calls, ZERO PAT tokens

Anchor: phi^2 + phi^-2 = 3 · TRINITY · DEFENSE 2026-06-15

Co-authored-by: Trinity Queen Hive <queen-hive@trinity.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

👑 TRINITY HIVE — Queen's Registry & ONE SHOT Dispatch

1 participant