Skip to content

Commit 55dc40f

Browse files
authored
Merge pull request #9 from sopify-ai/feature/plan-a-boundary-core
feat(boundary-core): add P0 fail-close contract assets and offline validation [tracked spike]
2 parents 2d94724 + 54a79cf commit 55dc40f

32 files changed

Lines changed: 6315 additions & 72 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
raise SystemExit(1)
5959
PY
6060
61+
- name: Check fail-close contract
62+
run: python3 scripts/check-fail-close-contract.py
63+
6164
- name: Run runtime and installer unit tests
6265
run: python3 -m unittest discover tests -v
6366

.sopify-skills/plan/20260403_plan-a-risk-adaptive-interruption/design.md

Lines changed: 313 additions & 28 deletions
Large diffs are not rendered by default.

.sopify-skills/plan/20260403_plan-a-risk-adaptive-interruption/machine-contract-overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
本文用于概述 Plan A 当前设计口径下的 machine contract 执行闭环,帮助宿主、设计者与实现者快速对齐全链路。
66

77
本文是总览导读,不新增 machine truth,也不替代 runtime code、state 文件、三张真理表或 checkpoint contract;细节规则以 `design.md``runtime/*``current_handoff.json` 与各 checkpoint state 为准。
8+
`feature/context-boundary-core` 首笔受控 spike 相关的资产路径、schema 路线、熔断键与记分规则,以 `design.md` §0 与 `tasks.md` §9 / §11 / §16 / §18 为唯一真相源;本文只做交叉引用,不重复展开。
89

910
## 2. 一句话总括
1011

.sopify-skills/plan/20260403_plan-a-risk-adaptive-interruption/tasks.md

Lines changed: 82 additions & 38 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,35 @@ This changelog is maintained manually (not auto-generated).
66

77
## [Unreleased]
88

9+
## [2026-04-08.160810] - 2026-04-08
10+
11+
### Runtime
12+
13+
- Updated runtime internals:
14+
- `runtime/contracts/decision_tables.schema.json`
15+
- `runtime/contracts/decision_tables.yaml`
16+
- `runtime/contracts/host_message_templates.schema.json`
17+
- `runtime/contracts/side_effect_mapping_table.schema.json`
18+
- `runtime/contracts/signal_priority_table.schema.json`
19+
- `runtime/decision_tables.py`
20+
- `runtime/failure_recovery.py`
21+
- `runtime/message_templates.py`
22+
23+
### Scripts
24+
25+
- Adjusted maintenance scripts:
26+
- `scripts/check-fail-close-contract.py`
27+
28+
### Tests
29+
30+
- Updated automated coverage:
31+
- `tests/fixtures/context_fail_close_contract.yaml`
32+
- `tests/test_runtime_decision_tables.py`
33+
- `tests/test_runtime_engine.py`
34+
- `tests/test_runtime_failure_recovery.py`
35+
- `tests/test_runtime_gate.py`
36+
- `tests/test_runtime_message_templates.py`
37+
938
## [2026-04-02.224459] - 2026-04-02
1039

1140
### Docs

Claude/Skills/CN/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- bootstrap: lang=zh-CN; encoding=UTF-8 -->
2-
<!-- SOPIFY_VERSION: 2026-04-02.224459 -->
2+
<!-- SOPIFY_VERSION: 2026-04-08.160810 -->
33
<!-- ARCHITECTURE: Adaptive Workflow + Layered Rules -->
44

55
# Sopify - 自适应 AI 编程助手

Claude/Skills/EN/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- bootstrap: lang=en-US; encoding=UTF-8 -->
2-
<!-- SOPIFY_VERSION: 2026-04-02.224459 -->
2+
<!-- SOPIFY_VERSION: 2026-04-08.160810 -->
33
<!-- ARCHITECTURE: Adaptive Workflow + Layered Rules -->
44

55
# Sopify - Adaptive AI Programming Assistant

Codex/Skills/CN/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- bootstrap: lang=zh-CN; encoding=UTF-8 -->
2-
<!-- SOPIFY_VERSION: 2026-04-02.224459 -->
2+
<!-- SOPIFY_VERSION: 2026-04-08.160810 -->
33
<!-- ARCHITECTURE: Adaptive Workflow + Layered Rules -->
44

55
# Sopify - 自适应 AI 编程助手

Codex/Skills/EN/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- bootstrap: lang=en-US; encoding=UTF-8 -->
2-
<!-- SOPIFY_VERSION: 2026-04-02.224459 -->
2+
<!-- SOPIFY_VERSION: 2026-04-08.160810 -->
33
<!-- ARCHITECTURE: Adaptive Workflow + Layered Rules -->
44

55
# Sopify - Adaptive AI Programming Assistant

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE)
1010
[![Docs](https://img.shields.io/badge/docs-CC%20BY%204.0-green.svg)](./LICENSE-docs)
11-
[![Version](https://img.shields.io/badge/version-2026--04--02.224459-orange.svg)](#version-history)
11+
[![Version](https://img.shields.io/badge/version-2026--04--08.160810-orange.svg)](#version-history)
1212
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)
1313

1414
English · [简体中文](./README.zh-CN.md) · [Quick Start](#quick-start) · [Configuration](#configuration) · [Contributors](./CONTRIBUTORS.md)

0 commit comments

Comments
 (0)