feat: run the main thread as a native Claude session under Herdr - #69
Merged
Merged
Conversation
Adds native agent sessions under Herdr (delivery ledger, journal mirror, resume) and the context model on top: main-thread window owned by rotation, topics, a token-scoped `mainloop` CLI with server-side policy, and topic-tagged delegation to a child agent whose report returns to the main thread. Status is answered from Postgres and adds no native turns. Behind MAIN_THREAD_MODE=native; the SDK chat path is unchanged and stays the default. Local-kind only: the spike-herdr overlay and spikes/ are local exceptions to GitOps. Known gap: the per-binding token is not a security boundary while the rest of the backend API is unauthenticated. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lint failed on every run with HTTP 404 fetching trivy v0.68.2. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
mainloopCLI with server-side policy, and topic-tagged delegation to a child agent whose report returns to the main thread.MAIN_THREAD_MODE=native; the SDK chat path is unchanged and remains the default.Scope and caveats
k8s/apps/mainloop/overlays/spike-herdrandspikes/are local exceptions to GitOps; trunk checkov/trivy ignores extended tospikes/**for that reason.Specs:
docs/specs/chat.md,docs/specs/sessions.md; measurements and open items:docs/spikes/native-main-thread-context.md.🤖 Generated with Claude Code