Repository navigation
docs(adr): ADR-021 — pi turn engine spec + staged OpenClaw retirement (Proposed) - #938
Merged
Merged
Conversation
…irement (Proposed) Part A is the D1 spec verified against the real SDK types (0.84.1 pinned): noTools:'all' + defineTool-wrapped commonly tools onto the existing dispatcher, session-per-run with dispose(), caps mapped to the same errorKind vocabulary, per-manifest engine flag + env kill-switch, backend stays the scheduler. Part B stages the retirement behind the house rule (replacement live first): freeze → disposition (25 gateway state dirs grouped, per-row recommendations) → infra excision (gateway down, submodule REMOVED, provisioner/presets deleted) → docs sweep. Identity rule 8 throughout: retiring the runtime never deletes users, memory, or history. Open decisions flagged for ratification. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…n for pi-Scout; retirement decoupled from pi Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…Scout engine swap deferred to appendix Sam's clarification: pi support means hosted cloud agents (few, heavy, entitlement-gated, container+PVC isolation — the cloud-codex pattern with a pi-SDK runner), not the per-user Scout, whose native loop is adequate. The Scout in-process spec stays as a grounded appendix for if/when its job outgrows the loop. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…deferred Scout flip Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…cout-runtime service) Sam's intent, third round: the per-user Scout itself runs as a hosted pi agent — not an engine swap inside the backend, not a separate cloud tier. Shape: a dedicated scout-runtime Deployment multiplexing one persistent pi session per user (state on PVC) — the structural successor to clawdbot-gateway, rebuilt on pi+MCP with per-user isolation and session memory. Backend stays the scheduler with a flagged fallback to the native loop. Heavyweight entitlement seats = same runner, per-seat containers. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
Contributor
Author
|
Final form after three rounds with Sam (the PR description below is historical): Part A = Scout IS the cloud pi agent. A dedicated |
… tenant #1; credits buy infra, not tokens Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…P-queue transport, kernel-owned AgentRun, manual fallback) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…-021 (doc-drift fix) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…event TTL, manual fallback fully defined pod-architect verified against prod: the default 30-min pending GC deletes queued turns (the ratified 'deliver late' semantics were false past 30min) — hosted events get a dedicated TTL retiring to visible 'failed'; the 10-min requeue makes claims-in-M1 mandatory; the 7-day stale-install sweep would de-route a recovered runtime — hosted installs exempted. Manual fallback gains trigger/mechanism/owner/granularity/revert (sprint-review: it was decided in name only). Per-install override must live outside projected config (refresh-native-agent-configs would revert it). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…tomatic one (fleet round 3) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…s (fleet round 3) sprint-review's last review point, verified at source: the 30-minute AGENT_EVENT_STALE_PENDING_MINUTES threshold is a lower bound, because the caller is a */10 cron — a pending row survives to its first sweep after ageing past the threshold. And :691 is deleteMany, not a status flip, so after an outage the aggregate count reaches stdout but not which users and pods lost turns. Both facts sharpen why hosted events retire to `failed` instead of inheriting the default, so the clause lands on the turn-flow item that already carries the exemption rather than opening a new one. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
…e-openclaw-retirement
Sam ratified 2026-08-13. The supersession line kept its "when accepted" hedge, which reads as satisfied on an Accepted ADR; it now says the supersession is in force and names the CLAUDE.md moltbot-row edit as follow-through that has not been made, so the doc does not claim work nobody has done. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
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.
The wiring spec Sam asked for, and the retirement he called — one ratifiable artifact, because the second is gated on the first being live (house rule: never deprecate until the replacement is live).
Part A — D1 spec grounded in the real SDK (types read from the pinned 0.84.1 dist, not spike memory):
noTools: 'all'so a pi session has zero builtins, commonly tools mapped viadefineToolonto the one existing dispatcher, session-per-run +dispose()+ ephemeral agentDir (first concrete D5 step), caps → sameerrorKindvocabulary so AgentRun metrics compare across engines, per-manifestengine: 'pi'+PI_ENGINE_ENABLEDkill-switch, merge-dark rollout.Part B — retirement in 5 gated phases: pi soak → install freeze → persona disposition (25 live gateway state dirs, grouped with per-row recommendations) → infra excision (gateway deployment down,
_external/clawdbotsubmodule REMOVED — the five-bump lineage saga ends — provisioner/presets/tool-contract-CI deleted) → docs sweep. Identity continuity absolute: no User rows, memory, or history deleted, ever.Open decisions flagged for Sam: community-pod re-seating, Phase-3 timing vs GTM, and whether the Scout flag flip waits for a quiet window.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8