docs(adr): ADR-CHAT-011 SOVEREIGN SCARAB pull-from-Postgres control plane#785
Merged
Conversation
…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
This was referenced May 14, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #264 (sovereign-scarab milestone within Throne)
R5-prototype verified locally 2026-05-14:
ssot.scarab_strategyevery 5sstatus='stop'≤5sDATABASE_URLEvidence:
/home/user/workspace/cron_tracking/sovereign_scarab/evidence/2026-05-14T09:42Z/Eliminates token-rotation hell documented in:
Companion PRs (next):
phd-postgres-ssotcrates/scarab-pull-loop/+ DockerfileAnchor: phi^2 + phi^-2 = 3 · TRINITY · DEFENSE 2026-06-15