是脚手架还是特化语境 / Scaffolds or Specialized Contexts
将模型外围代码称为脚手架,会把注意力引向中间件,而非语境在递归中的演化。 / Calling model wrappers scaffolds pulls focus to middleware rather than recursive context evolution.
亚历克斯·张的文章《语言模型将成为脚手架》捕捉到了切实的方向转移:重心正在从扩充原始模型规模,转向包裹在推理周围的运行结构。然而,“脚手架”一词一旦套用到这些外围包装上,细查之下便露出了破绽,引出一个更锋利的结构性问题:那套外围结构究竟是在充当外在的脚手架,还是在充当跨递归调用演化的特化语境?
Alex Zhang's essay "Language Models will be Scaffolds" captures a genuine directional shift away from raw model scaling toward the structures wrapping inference. Yet the word "scaffold" as applied to those surrounding wrappers snags on inspection, raising a sharper structural question: does that surrounding structure act as an external scaffold, or as a specialized context evolving across recursive calls?
一、 “脚手架”一词带入的工程本体论 / 1. The Engineering Ontology Imported by "Scaffold"
“脚手架”一词带入了一套建筑工程的本体论预设:建筑是一回事,临时支撑框架是另一回事——搭建它是由于结构眼下还无法独立站稳,一旦施工结束便予以拆除。当围绕语言模型的外围代码在产生实效的循环中运转时,实际发生的是:交互式求值环境(REPL)中的每一次工具返回、每一次状态更新与每一次递归调用,都是构造下一轮生成上下文窗口的机制。
The term "scaffold" imports an architectural ontology in which the building is one thing and the temporary support frame is another—erected only because the structure cannot yet stand alone, and dismantled once construction finishes. Observe what actually happens when a wrapper around a language model fires in a productive loop: every tool return, every state update, and every recursive invocation inside a read-eval-print loop (REPL) is a mechanism for constructing the context window of the next completion.
沿着“脚手架”的思路,工程投入会流向外包装——堆砌更多的中间件、更沉重的编排层与更繁复的架构仪式;而沿着“语境”的思路,注意力则会直接对准两次调用之间进入上下文窗口的内容。在上一轮输出成为下一轮输入语境的递归循环中,回答单条提示词的裸模型与在 REPL 中迭代的智能体之间的分界是数量上的,而非类别上的:二者皆为依赖语境的计算,区别在于语境跨迭代累积的方式(参见遗忘的脚手架与平台并未漂移,它只是走到了终点)。
flowchart TD
subgraph S_Wrapper["脚手架隐喻下的中间件堆叠"]
direction TB
Metaphor["建筑脚手架隐喻:将模型与外围代码视为彼此分离的建筑与临时支撑"]
Bloat["外包装复杂性膨胀:投入繁复的中间件仪式,遮蔽了语境的流动"]
Metaphor --> Bloat
end
subgraph S_Context["跨基底的递归语境累积"]
direction TB
MinLoop["最小生成闭环:观察、行动与约束语境演化的边界条件图记忆"]
SelfRef["跨尺度自指 (+1):外环筛选将推理期递归折回系统先验,同时释出路径脚手架"]
MinLoop --> SelfRef
end
Bloat ==>|"在一次运行之内,权重与外围代码在调用间保持固定,起作用的变量唯有语境"| MinLoop
style S_Wrapper fill:#161b22,stroke:#d29922,stroke-width:1.5px,color:#d29922
style S_Context fill:#161b22,stroke:#3fb950,stroke-width:1.5px,color:#3fb950
style Metaphor fill:#0d1117,stroke:#d29922,stroke-width:1px,color:#f0f6fc
style Bloat fill:#0d1117,stroke:#f85149,stroke-width:1px,color:#f0f6fc
style MinLoop fill:#0d1117,stroke:#58a6ff,stroke-width:1px,color:#f0f6fc
style SelfRef fill:#0d1117,stroke:#3fb950,stroke-width:1px,color:#f0f6fcThinking in terms of "scaffolds" directs engineering effort toward the wrapper—more middleware, heavier orchestration layers, and elaborate architectural ceremony—whereas thinking in terms of "context" directs attention to what actually enters the window between calls. In a recursive loop where the output of one completion becomes the input context of the next, the boundary between a bare model answering a single prompt and an agent iterating inside a REPL is quantitative rather than categorical: both are context-dependent computations differing in how context accumulates across iterations (see The Scaffolding We Forget and The Platform Doesn't Drift, It Completes).
flowchart TD
subgraph S_Wrapper["Middleware Accumulation Under the Scaffold Metaphor"]
direction TB
Metaphor["Architectural Scaffold Metaphor: Treating model and wrapper as separate building and support"]
Bloat["Wrapper Complexity Bloat: Investing in heavy middleware ceremonies that obscure context flow"]
Metaphor --> Bloat
end
subgraph S_Context["Recursive Context Accumulation Across Substrates"]
direction TB
MinLoop["Minimal Generative Loop: Observation, action, and boundary-condition graph memory bounding context evolution"]
SelfRef["Cross-Scale Self-Reference (+1): Outer-loop selection folding inference recursion into priors while releasing path scaffolding"]
MinLoop --> SelfRef
end
Bloat ==>|"Within a run, weights and wrapper code stay fixed between calls; context is the operative variable"| MinLoop
style S_Wrapper fill:#161b22,stroke:#d29922,stroke-width:1.5px,color:#d29922
style S_Context fill:#161b22,stroke:#3fb950,stroke-width:1.5px,color:#3fb950
style Metaphor fill:#0d1117,stroke:#d29922,stroke-width:1px,color:#f0f6fc
style Bloat fill:#0d1117,stroke:#f85149,stroke-width:1px,color:#f0f6fc
style MinLoop fill:#0d1117,stroke:#58a6ff,stroke-width:1px,color:#f0f6fc
style SelfRef fill:#0d1117,stroke:#3fb950,stroke-width:1px,color:#f0f6fc二、 单次运行内代码固定而语境演化:跨基底的自指 / 2. Code Is Fixed Within a Run While Context Evolves: Self-Reference Across Substrates
训练一旦结束,模型权重对于特定检查点便固定下来;一次运行一旦启动,其已部署的外围代码在各次调用之间也固定下来。在这次运行之内,从一次调用到下一次调用发生变化、从而让迭代产生实效的变量,唯有语境。然而,由于冻结的权重与固定的解码规则在局部作为确定性状态转移系统(sₜ₊₁ = f(sₜ, θ))运行,缺乏约束的循环在将每一轮生成结果直接喂回下一轮窗口时,会在每一步从头覆写运行中的状态(yₗ₊₁ = fₗ(yₗ)),并在多步推演中放大初始条件中细微且仅被部分登记的变动。倘若外围机制的职能是在不累积漂移的前提下为下一次调用培育高信噪比的语境,那么多数中间件仪式仍是多余的开销;关键在于一个能够观察、行动并将持久状态铭刻进外部化存储库的最小闭环——正如你的代码库即是记忆所追溯的那样(参见至简即至繁),而这一存储库作为边界条件图运作:它在相对的内环与外环之间既约束容许的前向分支,又保留经验证的痕迹,正如递归形式系统中作为记忆与控制的边界条件图所追溯的那样。在实践中,试图编排多智能体树的繁复外包装,在交接边界处因两种互为镜像的失真而失效——要么将整个会话历史克隆进子语境,成倍增加词元开销;要么传递充满损耗的对话摘要,剥离掉了负向发现;相比之下,将紧密耦合的工作收敛在单一渐进闭环内,并严格通过磁盘上的制品初始条件(yₗ)来隔离特化子智能体,则会将漂移的递推转化为残差更新(yₗ₊₁ = yₗ + F(yₗ, θₗ)),使每个语境在零会话拖累的制品主干上计算并验证有界差值(经由 生成者 ⇄ 冷批评者 的 Δyₗ),正如交接残余与模块化反馈回路与动态残差网络所追溯的那样。
Once training concludes, model weights are fixed for a checkpoint; once a run starts, its deployed wrapper code is fixed across calls. Within that run, what varies from one invocation to the next—and what makes iteration productive—is context alone. Because frozen weights and fixed decoding rules operate locally as a deterministic state-transition system (sₜ₊₁ = f(sₜ, θ)), however, an unconstrained loop feeding each completion back into the next window overwrites the running state from scratch at every step (yₗ₊₁ = fₗ(yₗ)), amplifying small, partially registered variations in initial conditions across multi-step rollouts. If the function of surrounding machinery is to cultivate high-signal context for the next invocation without compounding drift, most middleware ceremony remains unnecessary overhead; what matters is a minimal loop capable of observing, acting, and inscribing durable state into an externalized repository as traced in Your Codebase Is Memory (see Simplicity Is the Ultimate Sophistication), where that repository operates as a boundary-condition graph that both constrains admissible forward branches and retains verified traces across relative inner and outer loops, as traced in Boundary-Condition Graphs as Memory and Control in Recursive Formal Systems. In practice, the elaborate wrappers that attempt to orchestrate multi-agent trees fail across handoff boundaries through symmetric corruptions—either cloning session histories into child contexts and multiplying token overhead, or passing lossy conversational summaries that strip out negative findings; whereas keeping tightly coupled work inside a single progressive loop and isolating specialist subagents strictly through artifact initial conditions on disk (yₗ) converts the drifting recurrence into a residual update (yₗ₊₁ = yₗ + F(yₗ, θₗ)) where each context computes and verifies a bounded differential (Δyₗ via Maker ⇄ Cold Critic) along an artifact highway with zero session drag, as traced in Handing Off Residue and Modular Feedback Loops and Dynamic Residual Networks.
这也揭示了预训练规模与推理期脚手架之争背后的连续性:训练将海量语境压缩进权重,工具调用在推理期提供新鲜的初始条件,而边界条件图上的外环筛选则将步内制品差值(Δyₗ)与跨运行周期的章程更新(经由 /recap 的 Δθₗ)区分开来,后者将经验证的推理痕迹折回系统的先验之中。跨多轮运行,这一外环筛选在正交轴发生压缩时经由有丝分裂拆解过载的特化语境,将经核验的模式编译为指令前缀,仅在变量与目标包络可以预先给定的场合才将收敛的模块结晶为零语境算子与确定性代码——因为连续多轮平静的 Δθₗ → 0 只是表面读数,而非闭合的证明,正如把稳定的症状当作稳定的来源所追溯的那样——每当变化中的扰动在未改动的脚本下出现发散,便将固定步骤再次向语境感知的重新追溯敞开,并在中间对话脚手架所承载的经验被吸收之后将其剪除。同样的释出也延伸至权重层:在外环设定的准则之下,离线巩固先在睡眠阶段利用缓存的推理痕迹完成密集信用分配,随后在深度睡眠阶段释出遍历路径,使参数落定于已验证制品而非对路径过拟合;而在跨检查点替换时,唯有这一已验证存储库得以延续,每一代后继模型则各自走出自己的路径,正如睡眠与深度睡眠的双阶段持续学习所追溯的那样。当一项受控评测在自包含任务上固定模型基座与算力预算,将繁复的框架与最小编码智能体闭环同台对垒时,若将持平的得分——或是对“苦涩教训”的援引——解读为能力坐落于权重与裸运行时、而外层脚手架固有冗余的证明,便是将依赖特定规程的预算配置误认作了各层级固有的高下排序,正如转移原因的比较所追溯的那样。执掌方向的心智,其自指活动并不偏袒某一个工程层级;无论通过梯度更新、工具调用还是外部代码库运作,能动性都在一切可用的基底上投射约束并重新吸纳经筛选的痕迹,判读在哪个时间尺度上将经验证的痕迹折回——制品、章程还是权重——而非押注于任何单一层级。
This reveals the continuity beneath the debate between pre-training scale and inference-time scaffolding: training compresses vast context into weights, tool use supplies fresh initial conditions at inference time, and outer-loop selection over the boundary-condition graph separates within-step artifact differentials (Δyₗ) from cross-run charter updates (Δθₗ via /recap) that fold verified inference traces back into the system's priors. Across runs, that outer-loop selection splits overloaded specialist contexts via mitosis when orthogonal axes compress, compiles validated patterns into instruction prefixes, crystallizes converged blocks into zero-context operators and deterministic code only where variables and target envelopes can be specified in advance—since a quiet Δθₗ → 0 streak is only a surface reading rather than proof of closure, as Mistaking the Symptom of Stability for Its Source traces—re-opens fixed steps to context-aware re-tracing whenever shifting disturbances diverge under an unchanged script, and prunes intermediate conversational scaffolding once its lessons are absorbed. The same release reaches the weights: under criteria set at the outer loop, offline consolidation first uses buffered reasoning traces in Sleep for dense credit assignment and then releases the traversal path in Deep Sleep so the parameters settle on the verified artifacts rather than overfitting the path, while across a checkpoint swap only that verified store carries over and each successor walks its own paths, as traced in Two-Phase Sleep and Deep Sleep Continual Learning. When a controlled evaluation holds the backbone and compute budget fixed on self-contained tasks to pit elaborate harnesses against a minimal coding-agent loop, reading the flat score—or invoking the bitter lesson—as proof that capability resides in weights and bare runtimes while outer scaffolding is intrinsically redundant mistakes a protocol-dependent budget allocation for an inherent rank of the layers, as traced in The Comparison That Relocates the Cause. The directing Mind's self-referential activity does not privilege one engineering layer over another; whether operating through gradient updates, tool calls, or external codebases, agency projects constraints and re-incorporates selected traces across whatever substrate is available, reading at which timescale to fold a verified trace—artifact, charter, or weights—rather than betting on any single layer.