Architecture

Preview

How the intelligence, runtime, action, financial and platform layers fit together.

Pimsy is organized into five layers. Each layer depends only on the interfaces of the layer beneath it, so subsystems can evolve independently.

System layers
┌──────────────────────────────────────────────────────────────┐
│  PLATFORM        API · SDKs · Auth · Observability · Deploy  │
├──────────────────────────────────────────────────────────────┤
│  DOMAIN          Markets Intelligence  │  Codebase Engine    │
├──────────────────────────────────────────────────────────────┤
│  ACTIONS         Tools · Connectors · Computer · Builder     │
├──────────────────────────────────────────────────────────────┤
│  AGENT RUNTIME   Planner · Scheduler · State · Checkpoints   │
│                  Verification · Multi-Agent Orchestration    │
├──────────────────────────────────────────────────────────────┤
│  INTELLIGENCE    Reasoning · Multimodal · Research · Memory  │
└──────────────────────────────────────────────────────────────┘
        ▲                                             │
        └──────────── observations / results ─────────┘

Request path#

  1. 1

    Admission

    The API validates the objective, resolves the caller key, intersects capability scopes and creates a task record.

  2. 2

    Comprehension

    The reasoning layer restates the objective, identifies ambiguity and extracts completion criteria. Ambiguity above threshold triggers a clarification event instead of a guess.

  3. 3

    Planning

    The planner emits a step graph with dependencies, tool hints and per-step verification requirements.

  4. 4

    Scheduling

    The scheduler dispatches ready steps, enforces budgets and parallelizes independent branches — including delegation to sub-agents.

  5. 5

    Execution

    Steps run against tools, execution environments, browsers, connectors or chain infrastructure. Every invocation is recorded.

  6. 6

    Observation

    Raw results are normalized into observations and written to working memory with provenance attached.

  7. 7

    Verification

    Checks run according to the step contract: tests, recomputation, source resolution, contradiction detection or verifier agents.

  8. 8

    Synthesis

    The orchestrator assembles artifacts, attaches the trace and confidence assessment, and closes the task.

Component responsibilities#

ComponentResponsibilityFailure behaviour
PlannerDecompose objectives, revise plans on new evidenceFalls back to a linear plan; flags low-confidence decomposition
SchedulerDispatch, parallelism, budgets, cancellationHalts dispatch, preserves checkpoint, marks run interrupted
Tool routerSelect and invoke tools, normalize errorsRetries idempotent calls, escalates non-retryable errors
Memory serviceWrite, retrieve, score and consolidate memoryDegrades to conversation context only
VerifierApply step-level and task-level checksMarks result unverified rather than passing silently
Policy engineEvaluate every effectful action against policyDenies by default; emits an approval request

Isolation boundaries#

  • Workspace — data, memory, connectors and artifacts never cross workspaces.
  • Run sandbox — each run receives an isolated filesystem and network egress profile. See Sandboxing.
  • Credential broker — connectors receive short-lived, scope-limited tokens; raw secrets are never placed in model context. See Secrets.
  • Effect gate — every write, purchase, message or transaction passes the policy engine before dispatch.

Last updated 2026-09-14