Skip to content

Component map

Companion forecast_agent_architecture.md is not in this repo. C1 and C3 are unnamed in the PRD body.

TODO: recover C1 and C3 names from the missing architecture companion.

  • C4 owns every write. The agent does not write to Postgres except through middleware tools.
  • C2b is additive only. It may insert kind = judgement flags. It may not clear, modify, or contradict a rule flag. It may raise priority, never lower it. It has no path to RAG or weighted value.
  • RAG derives from MEDDIC completeness alone. Analyst output is not an input.
  • Nothing writes to opportunities except through rep approval (or seed/admin reset). Failed stage gates still queue a proposal; apply re-checks the gate.

Deterministic. apps/api/src/services/triage.ts plus config/triage.yaml. Writes flags with kind = 'rule'. See Triage rules.

LLM judgement flags only. Prompt in config/analyst.md. Expiry from judgement_ttl_days. Suppression is an operator edit of the prompt, not automatic.

Fastify in apps/api. Tools, evidence validation, stage gates, session lifecycle, post-call webhook. See Agent tool contracts and Stage gates.

React app in apps/web. Renders server state. No methodology math in the browser.

Seeded from /config, versioned in config_files. Postgres is authoritative at runtime. The admin console holds history, diffs and revert. This doc site does not.

Per-session scores over the tool-call log. Simulation via ElevenLabs is optional. Middleware scenario tests in apps/api/src/services/scenarios.test.ts are the regression that runs in CI without voice.

Unguessable route prefix. Data browser, config editor, operations, tuning map, graduation/suppression candidates.

apps/api/src/services/crm.ts. pushChanges writes mock_crm_writes. Real Salesforce is out of scope.

TODO: export a C1–C8 diagram here once the companion architecture doc is in the repo. Markdown remains the source; any image is an export.