Skip to content

Phase 1: Flow Walkthrough - Understanding the Protocol End-to-End #35

@rbadillap

Description

@rbadillap

Objective

Before touching any code or structure, we need to understand the complete protocol flow. These questions challenge assumptions in the current architecture and need answers before we can categorize domains or restructure files.

Tracked in: PLAN.md (root, gitignored)


Questions

On the core flow

Q1: Is the Agent Loop a protocol concern or an implementation concern?

The loop (Gather → Act → Verify → Iterate) is described in concepts/agent-loop.mdx but has zero types in the schema. If the protocol does not define the loop's interface, is it actually part of the protocol, or is it guidance for implementors?

Answer:


Q2: What is the relationship between Workflow.run() and a Run?

Workflow<Output> has .run(prompt, options) that accepts RunOptions and returns Promise<Output>. But Run<Output> is a separate interface with .start()Execution<Output>. Are these two entry points to the same concept? When does a caller use one vs the other?

Answer:


Q3: Where does initial routing happen?

When a task arrives, something must decide which agent handles it. The Lifecycle says "Discovery" does this. But there are no types for Discovery. RoutingWorkflow is a workflow pattern, not a system-level router. Who or what performs the initial routing?

Answer:


On domain boundaries

Q4: Are the 7 protocol domains the right taxonomy?

ProtocolDomain defines: system, context, actions, checks, skills, workflows, runs. But:

  • skills (orchestrator, planner, executor) looks more like agent archetypes than a "domain"
  • actions (tools, ops, mcp-servers) overlaps with what MCP already standardizes

Are all 7 earning their place, or should some be collapsed/removed?

Answer:


Q5: What is the boundary between system and context?

System has: registry, env, fs, settings, data. Context has: memory, documents, embeddings, apps, system-context. Memory and Storage seem related. Where exactly is the line between "the OS provides state infrastructure" and "agents manage their own context"?

Answer:


Q6: Should checks be a domain or part of the Agent Loop Verify step?

The taxonomy puts quality checks as their own domain AND as "Quality Workflows" AND as step 3 of the Agent Loop. The same concern described three different ways. Which is it?

Answer:


On the ecosystem

Q7: What does Syner SDK actually implement from this protocol?

Which types are exercised by working code in the SDK? This tells us which interfaces are validated by real usage vs purely theoretical.

Answer:


Q8: How does OSP integrate with MCP concretely?

actions/mcp-servers.ts and system/mcp-client.ts are empty. Is OSP a consumer of MCP servers? A coordinator? A wrapper? What is the actual integration surface?

Answer:


On the OS metaphor

Q9: Is the OS metaphor structural or pedagogical?

Does the OS metaphor drive architectural decisions (e.g., "we need system/fs.ts because OSes have filesystems"), or is it a teaching tool? The answer determines whether empty system files should exist.

Answer:


Q10: Who is the consumer of this protocol?

Framework authors? Individual developers? Platform operators? The answer determines the level of abstraction the schema should provide.

Answer:


Process

  1. Ronny answers the questions above (directly in this issue or in conversation)
  2. Answers get summarized and promoted to PLAN.md Decisions Log
  3. Issue gets closed when all 10 questions have clear answers
  4. Phase 2 (Domain Categorization) begins

Metadata

Metadata

Assignees

No one assigned

    Labels

    knowledge-baseReference issues that serve as knowledge baseplanRestructuring plan phases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions