Open
Conversation
Move schedule storage and firing out of the controller. Schedules become a Postgres-backed domain resource owned by the api-server; trigger delivery moves from `kubectl exec` to the harness port. Supersedes ADR-008 for the scheduled trigger path. Filed as draft for discussion. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: 1000810000 user <1000810000@inst-2ff9ebb0-0.inst-2ff9ebb0.humr-agents.svc.cluster.local>
Contributor
|
🛡️ Humr — Code Review PR #347: docs(adrs): draft ADR — app-owned schedulingAuthor: tomkis | Branch: docs/adr-app-owned-scheduling → main | Changes: +66 −0 (2 files) SummaryThis PR adds a draft ADR proposing to migrate agent scheduling from the K8s controller (ConfigMap-backed with a Go RRULE implementation and Findings
VerdictCOMMENT — The ADR is well-structured and architecturally sound, but two gaps (leader-loss recovery story and harness authentication for trigger delivery) should be addressed before the decision is finalized. Review by Humr · automated code guardian |
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
Draft ADR proposing schedules move out of the K8s controller into the api-server, with Postgres as the substrate.
agent-scheduleConfigMaps →schedulesPostgres table (api-server owned)kubectl exec+ trigger files → HTTP POST to the agent-runtime harness portschedule_firesoutbox table with retry-until-ackedFiled as
Proposed/ DRAFT — opening for review of the framing and the alternatives before any code lands. The motivation, alternatives, and consequences sections are written to be the artifact discussion happens against; happy to iterate inline.Related ADRs touched conceptually: 006 (ConfigMaps over CRDs — rationale clarified, not invalidated), 008 (superseded for scheduled path), 022 (harness API server — already accepts trigger receipt), 031 (RRULE/quiet hours — semantics unchanged, implementation moves to TS), 032 (reachability primitive — load-bearing for the new firing path).
Test plan
This PR is doc-only; nothing to test. Implementation will land as separate PRs after the ADR is accepted.
DRAFT-app-owned-scheduling.md→NNN-app-owned-scheduling.md, move row in index, mark ADR-008Superseded by ADR-NNN🤖 Generated with Claude Code