Skip to content

[Agent] Submission layer and orchestrator#229

Merged
aaron-iz merged 6 commits into
mainfrom
feature/aaroni/52/step-e-submission-orchestrator
May 2, 2026
Merged

[Agent] Submission layer and orchestrator#229
aaron-iz merged 6 commits into
mainfrom
feature/aaroni/52/step-e-submission-orchestrator

Conversation

@aaron-iz
Copy link
Copy Markdown
Member

  • IAgentSubmitter + ServiceBackedSubmitter - delegates to existing services (no queue duplication)
  • IAgentConstraintService / IAgentPreferenceService thin adapter interfaces
  • AgentOrchestrator - main entry point (session $\rightarrow$ FSM $\rightarrow$ LLM $\rightarrow$ extraction $\rightarrow$ submission)
  • AgentResponse record
  • 12 new tests (82 total) - submitter delegation, orchestrator e2e flow

aaron-iz and others added 6 commits April 17, 2026 11:25
- Create Chronos.Agent class library (net8.0) + Chronos.Tests.Agent
- Add AgentState enum, ChatMessage record
- Add ConstraintDraft (mutable) and ConstraintProposal (immutable)
- Add ConversationSession with guarded state transitions
- Add IConversationStore + InMemoryConversationStore
- 24 unit tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add ILlmAdapter polymorphic interface with CancellationToken support
- Add LlmResponse and LlmOptions records
- Add OllamaLlmAdapter (university API, JSON mode support)
- Add PuterLlmAdapter (free AI API, isolated DTOs)
- Add OllamaOptions + PuterOptions configuration classes
- 8 new tests (32 total) with HTTP wire contract verification

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add AgentStateMachine with FSM transitions and AgentAction enum
- Add KnownConstraintKeys catalog with IsValid() check
- Add PromptTemplates (conversation + extraction system prompts)
- 32 new tests (64 total)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add ConstraintExtractor (LLM JSON extraction into ConstraintDraft)
- Add ExtractionException for malformed LLM output
- Filters invalid keys against KnownConstraintKeys
- 6 new tests (70 total)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add IAgentSubmitter, IAgentConstraintService, IAgentPreferenceService
- Add ServiceBackedSubmitter (delegates to existing Chronos services)
- Add AgentOrchestrator coordinating full conversation lifecycle
- 12 new tests (82 total)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aaron-iz aaron-iz self-assigned this Apr 23, 2026
@noamarg noamarg self-requested a review April 25, 2026 17:53
Copy link
Copy Markdown
Collaborator

@noamarg noamarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. I also like the comments that describe what each class does - makes it much easier to understand :)

Comment thread tests/Chronos.Tests.Agent/AgentOrchestratorTests.cs
@aaron-iz aaron-iz merged commit 43f4098 into main May 2, 2026
1 check passed
@aaron-iz aaron-iz deleted the feature/aaroni/52/step-e-submission-orchestrator branch May 2, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants