feat(agent): build agent registry - #106
Merged
Merged
Conversation
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 #26
Description
Ship the read-only
AgentRegistry— typed, filterable queries overagent_instances ⋈ agents— as the central source of truth for running agents. No new table, no migration: persistence ships with the #25 lifecycle model, andAgentInstanceManagerremains the only write path.Implementation
RunningAgentfrozen read model: instance fields + joined definition fields (agent_name,definition_status,assignments);model_bindingdeliberately absent per spec.AgentRegistry.list_instances—agent_id/session_id/instance-statusfilters (AND-composed), deterministiccreated_at, idordering.AgentRegistry.get_instance— raisesInstanceNotFoundErroron miss (same contract as the manager's_get).AgentRegistry.count_by_status— zero-filled per-enum dashboard counter.assignmentsparsing (warn + empty — reporting surface), while bad status enums fail loud.octave.agent(SDK quarantine guard passes).References
.agents/specs/2026-09-27-agent-registry-design.md.agents/specs/2026-09-27-agent-registry.mdChecklist
backend/; +12 new registry tests, no regressions)ruff check .,mypy src/octave/agent/registry.py)