@@ -111,13 +111,28 @@ uapi → HTTP + React adapters only
111111```
112112@bitcode/execution-generics Execution + Executor (lowest runtime primitive)
113113 ↑
114- @bitcode/agent-generics Agent : Executor, PTRR steps, failsafes, Thinkings
114+ @bitcode/agent-generics Agent : Executor, PTRR steps over generations
115115 ↑
116116@bitcode/generic-agents/* Base agents (VCS, danger-wall, code-editor, …)
117117 ↑
118118@bitcode/pipeline-asset-pack Deposit/read SDIVF agents (setup/discovery/…)
119119```
120120
121+ ### 3.1.1 Generations (failsafes + thinkings)
122+
123+ ```
124+ @bitcode/generation-generics Generation type + failsafe/thinkings enums
125+ ↑
126+ @bitcode/generic-generations-failsafes failsafes/ — prepared-context types + base
127+ @bitcode/generic-generations-thinkings thinkings/ — Reason→Judge→StructuredOutput base
128+ ↑
129+ @bitcode/agent-generics composes failsafes/thinkings into PTRR Agents
130+ ↑
131+ @bitcode/pipeline-asset-pack product synthesis / phase agents (no reimplementation)
132+ ```
133+
134+ Package path: ` packages/generic-generations/{failsafes,thinkings}/ ` .
135+
121136** PTRR** (Plan / Try / Refine / Retry) is the agent step model. Each step runs a
122137** Failsafes** sequence:
123138
@@ -127,6 +142,14 @@ uapi → HTTP + React adapters only
127142
128143Each failsafe’s generation is ** Thinkings** : Reason → Judge → StructuredOutput.
129144
145+ Prepared-context types (` PreparedContext ` , ` prepareConciseContext ` , …) live with
146+ ** failsafes** (` @bitcode/generic-generations-failsafes ` ), not a free-floating
147+ context domain. ` @bitcode/context ` retains only process-global ` GlobalContext `
148+ (+ BC re-exports of failsafe prepared-context helpers).
149+
150+ LLM-bound failsafe/thinkings ** factories** still execute via ` AgentExecution `
151+ inside ` agent-generics ` until inverted onto pure Execution + LLM registry.
152+
130153Factories: ` factoryAgent ` , ` factoryAgentWithPTRR ` in ` agent-generics ` .
131154
132155### 3.2 Tools
@@ -239,14 +262,17 @@ Grouped by role. Names are `@bitcode/<name>` unless noted.
239262| Package | Responsibility |
240263| --- | --- |
241264| ` execution-generics ` | ` Execution ` state tree, ` Executor ` , sequential/parallel/pipe |
242- | ` agent-generics ` | Agent = Executor + PTRR + failsafes + generations |
265+ | ` agent-generics ` | Agent = Executor + PTRR composition over generations |
243266| ` tools-generics ` | ` Tool ` class, factories, MCP bridges |
244267| ` pipelines-generics ` | Pipeline / PhaseDelegator primitives / stream hooks (re-exports SDIVF) |
245268| ` generic-pipelines-sdivf ` | SDIVF base loop (` packages/generic-pipelines/SDIVF ` ) |
269+ | ` generation-generics ` | Generation primitive + failsafe/thinkings enums |
270+ | ` generic-generations-failsafes ` | Failsafe base + prepared-context types |
271+ | ` generic-generations-thinkings ` | Thinkings base vocabulary surface |
246272| ` llm-generics ` | Pure LLM call contracts |
247273| ` registry ` | Hierarchical registry (Prompt is a Registry) |
248274| ` prompts ` | Prompt + PromptPart + ** all** raw prompt parts |
249- | ` context ` | Prepared context types for failsafes |
275+ | ` context ` | Process-global ` GlobalContext ` only (failsafe context → failsafes package) |
250276| ` logger ` | Shared logging |
251277
252278### 5.2 Generic implementations
@@ -257,6 +283,7 @@ Grouped by role. Names are `@bitcode/<name>` unless noted.
257283| ` generic-tools/* ` | Nested base tools: editing, git, VCS, LSP, web-search, repository-setup, … |
258284| ` generic-pipelines/* ` | Nested base pipelines: SDIVF, … |
259285| ` generic-llms/* ` | Nested providers (xAI, OpenAI, Anthropic, Google), defaults, registry aggregator |
286+ | ` generic-generations/* ` | Nested generation bases: failsafes, thinkings |
260287| ` generic-doc-comment-plugins/* ` | Nested doc-comment plugins |
261288
262289### 5.3 Product domain (AssetPack / BTD / market)
0 commit comments