Как работает бэкенд
Тридцать решений, которые формируют наш бэкенд агентов: как они работают, почему мы их приняли и что выяснилось. Код и примеры.
Дешёвый маршрутизатор, сильный автор: decision model в ReAct-цикле
Следующий tool call выбирает decision model; аргументы записывает один структурированный chat call. Потерять правки не дают fail-closed guard'ы.
Модели решений и оркестрация
01–073/7Не каждый аргумент tool требует своей модели
Аргументы инструмента не равноценны: часть берётся из кода, часть — одним решением, часть пишет чат-модель.
Guardrail, который редактирует action space
В повторе метки end_agent_run уже нет, а причина названа прямо. System prompt не меняется.
A Dedicated DECISION Model Role
Why decisions are their own harness role with separate MANAGED and BYOK semantics.
Decision-Field Extraction Before the Agent
Pre-compute stated choice fields outside the ReAct loop and attribute them to the extractor.
Two Retry Layers, Fresh Checkpoint Namespaces
Model retries and whole-editor-run retries, with |retry-N isolating failed attempts.
Hiding Helper-Model Internals Twice Over
Wire-level reasoning suppression plus the langsmith:nostream tag.
Собственный протокол агентов
08–151/8События LangGraph v3 — ещё не ваш API: projection, replay и retraction
streamEvents в LangGraph v3 помечен как экспериментальный и заточен под движок. Над ним собран типизированный протокол: Socket.IO rooms, replay и retraction.
Feature Descriptors as the Transport Contract
One descriptor declares the bus channel, WS event, room prefix and scope.
Subagent Attribution From a Namespace Tree
Deepest-prefix matching on checkpoint namespaces attributes nested delegated runs.
Retract Streamed Messages by ID
Accumulate deltas per messageId, discard the abandoned bubble, commit only the keeper.
Live-Only Notices vs Append-Only Replay
What the UI shows is not what the log stores — and both share the same sequence.
Event-Time Stamping for Coherent Replay
Stamp backend-generated events with the last engine timestamp so replay order holds.
Typed Human-in-the-Loop Over Untyped Channels
Resume correlation, decision validation and re-seeded tool calls on interrupt.
Joining Callback Spans to Protocol Events
A one-shot map turns a tool card into a deep link to its exact trace span.
Детерминизм вне агента
16–200/5A Middleware That Stops Tool Loops
Canonical argument comparison blocks repeated successful calls; failed retries stay legal.
Hiding Internal Pricing From the LLM
Data minimization as a hallucination and exfiltration defense.
Compiled Rules That Can Replace a Model Reply
Plugin hooks return jumpTo and result; side effects are once-guarded and fail open.
Explainability for Non-LLM Decisions
PLUGIN_EFFECT and PLUGIN_OUTCOME events with stable pluginCallId and source path.
Media Understanding as an Honest Pre-Step
Typed skip reasons rendered into the prompt instead of pretending extraction happened.
Версионирование, генерация кода и песочница
21–280/8Git-Like Releases in MongoDB With CAS
Immutable revisions, append-only file maps and a compare-and-swap environment pointer.
Per-Thread Copy-on-Write Workspaces
A conversation owns a pointer map; opening it copies ObjectIds, not bytes.
Commit as an Optimistic Transaction
Source guard, artifact validation, a deterministic test suite, release, CAS, event log.
Mark-and-Sweep GC for Immutable Releases
Reachability-based cleanup with event-log pinning and an in-flight merge cutoff.
Time-Travel Thread Forking
Branch an agent conversation by checkpoint, message or turn index — with rollback.
A VM Sandbox With Two Independent Timeouts
Allow-listed globals, no code generation, and a Promise deadline for async hooks.
The Catalog Accessor as Capability and Audit Log
Every read becomes pricing provenance; direct data access is statically rejected.
One Source of Truth: Zod → TypeScript → JS
Schema interfaces rendered into generated artifacts and validated on write.
Наблюдаемость и самовосстановление
29–300/2MongoDB as a Drop-In LangSmith Tracer
Keep LangChain run DTOs, swap the backend, derive lean summaries at read time.
Self-Healing Turn State
Lost-run detection, stale interrupt hiding and self-expiring retry notices.
Ничего не найдено.