FullAgenticStack:Everything-as-Code 目录

发布: (2026年2月26日 GMT+8 11:15)
5 分钟阅读
原文: Dev.to

I’m happy to translate the article for you, but I don’t have the full text of the post available. Could you please paste the content you’d like translated (excluding the source line you already provided)? Once I have the article text, I’ll translate it into Simplified Chinese while preserving the original formatting, markdown, and any code blocks or URLs.

规范词汇表 — Agentic Everything-as-Code

基础准则(适用于任何 X-as-Code)

只有满足以下条件的工件才属于该分类法:

  • 具备可版本化的声明式表示
  • 拥有解释引擎
  • 生成可验证的证据
  • 支持可重执行或确定性验证

Structural-as-Code

  • Infrastructure-as-Code – 可由供应引擎执行的基础设施拓扑的声明式表示。
  • Platform-as-Code – 运行时、托管服务、网关等运营环境的声明式定义。
  • Configuration-as-Code – 可版本化且可自动应用的运营参数。
  • Pipeline-as-Code – 构建、测试和部署流程的声明式定义。

Behavioral-as-Code

  • Flow-as-Code – 用于描述原子单元执行逻辑顺序的声明式 DSL。
  • State-as-Code – 对可能状态模型及其有效转换的正式定义。
  • Intent-as-Code – 可识别意图及其分类标准的声明式目录。
  • Atomic-Behavior-as-Code – 最小可执行单元:
    • 幂等的
    • 可隔离的
    • 可版本化的
    • 语义自包含的
  • Executor-as-Code(盲执行器) – 执行声明式描述且不包含领域逻辑的引擎。
    • 正式化: Execution = f(EventStream, StateSnapshot, SpecVersion)

Governance-as-Code

  • Policy-as-Code – 可自动评估、限制系统行为的规则。
  • Invariants-as-Code – 在执行过程中必须保持为真的属性。
  • Specification-as-Code – 对实体、流程和模块预期特性的正式契约。
  • Invariant-Integrity-Protocol-as-Code(IIP) – 验证以下之间一致性的机制:
    • 规范(Specification)
    • 流程(Flow)
    • 策略(Policy)
    • 不变量(Invariants)

Observability-as-Code

  • Evidence-as-Code – 由执行产生的结构化事实模型(非叙事日志)。
  • Execution-Trace-as-Code – 将执行的因果链路表示为领域数据。
  • Audit-as-Code – 基于证据的自动合规性验证规则。
  • Replay-as-Code – 确定性重执行的声明式策略。

Cognitive/Agentic-as-Code

  • Healing-as-Code – 面对故障的声明式恢复策略。
  • Intent-Healing-as-Code – 将故障视为可恢复意图的处理。
  • Interactive-Intent-Healing-as-Code – 允许将人为干预作为流程中的正式事件。
  • Adaptive-Observability-Negotiation-as-Code – 动态调整证据水平的策略。

完整概念图

flowchart TB
    subgraph INPUT["External Channels"]
        EVT
        EXEC
        SPEC
        TRACE
    end

    subgraph BEH["Behavioral Layer"]
        BEH
    end

    subgraph GOV["Governance Layer"]
        GOV
    end

    subgraph OBS["Observability Layer"]
        OBS
    end

    subgraph COG["Cognitive Layer"]
        COG
    end

    EVT --> INT
    EXEC --> EVID
    SPEC --> IIP
    TRACE --> HEAL

此图表明确说明:

  • 基础设施不是核心焦点。
  • 执行是派生的。
  • 证据是结构性的。
  • 治愈是受治理的。

RFC — Agentic Everything-as-Code 分类法

RFC-0001

标题
Agentic Extension to Everything-as-Code

摘要
此 RFC 定义了对传统 Everything-as-Code 模型的语义扩展,加入行为层、证据层和确定性恢复层。

动机
经典的 Everything-as-Code 模型专注于基础设施和配置。

Definitions

  • Executor Cego – 不包含领域规则的运行时。
  • Unidade Atômica – 最小可执行、幂等且可隔离的单元。
  • Evidência – 结构化且可验证的执行记录。
  • Healing – 基于声明式策略的正式恢复过程。

Layer Model

  • 结构层
  • 行为层
  • 治理层
  • 可观测性层
  • 认知层

Normative Requirements

  • 每次执行必须生成结构化的 Evidence
  • 每个可执行单元必须是原子的。
  • Executor 不得包含领域逻辑。
  • 故障应被视为可恢复的意图进行处理。

Non-Goals

  • 替代传统的 IaC 模型。
  • 创建未经形式化的新专有语言。

Future Work

  • 确定性的数学形式化。
  • 与单体架构的比较度量。
  • 对 MTTR 缩短的实证验证。
0 浏览
Back to Blog

相关文章

阅读更多 »