ultra-builder-pro-cli 0.23.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ultra-template/docs/research/README.md +4 -4
- package/.ultra-template/tasks/tasks.json +4 -2
- package/CHANGELOG.md +72 -0
- package/README.md +55 -39
- package/adapters/_shared/codex-assets.cjs +121 -65
- package/adapters/_shared/interaction-contract.cjs +7 -1
- package/adapters/_shared/provenance.cjs +7 -2
- package/adapters/_shared/runtime-assets.cjs +3 -2
- package/adapters/_shared/runtime-native.cjs +132 -0
- package/adapters/claude.js +60 -30
- package/adapters/codex.js +178 -81
- package/adapters/grok.js +372 -0
- package/adapters/kimi.js +7 -3
- package/adapters/opencode.js +210 -32
- package/agents/code-reviewer.md +4 -2
- package/agents/debugger.md +4 -1
- package/agents/review-code.md +7 -3
- package/agents/review-comments.md +7 -4
- package/agents/review-coordinator.md +11 -7
- package/agents/review-design.md +8 -4
- package/agents/review-errors.md +8 -4
- package/agents/review-spec.md +8 -5
- package/agents/review-tests.md +7 -4
- package/agents/tdd-runner.md +5 -2
- package/bin/install.js +9 -4
- package/bin/orchestrator.js +4 -13
- package/docs/AGENT-CONTEXT.md +143 -229
- package/docs/ARCHITECTURE.md +205 -494
- package/docs/ARTIFACT-AUTHORITY.md +35 -28
- package/docs/LEGACY-CLI-CROSSWALK.md +1 -1
- package/docs/PLUGIN-ISOLATION-CONTRACT.md +12 -9
- package/docs/ROADMAP.md +85 -110
- package/docs/RUNTIME-COMPAT-MATRIX.md +139 -175
- package/docs/SKILL-AUTHORING.md +3 -3
- package/docs/STATE-DB-ACCESS-POLICY.md +13 -8
- package/docs/WORKFLOW-LIFECYCLE.md +189 -448
- package/hooks/README.md +11 -8
- package/hooks/active_task_context.py +16 -16
- package/hooks/adapters/grok.py +134 -0
- package/hooks/{context_spine.py → context_envelope.py} +26 -22
- package/hooks/health_check.py +29 -34
- package/hooks/pre_stop_check.py +22 -12
- package/hooks/subagent_tracker.py +1 -1
- package/hooks/workflow_checkpoint.py +14 -13
- package/hooks/workflow_context.py +11 -12
- package/hooks/workflow_resume.py +14 -13
- package/mcp-server/{breadcrumb.cjs → hook-context.cjs} +7 -9
- package/mcp-server/lib/baseline-workflow.cjs +108 -82
- package/mcp-server/lib/canonical-json.cjs +19 -0
- package/mcp-server/lib/change-authority.cjs +26 -0
- package/mcp-server/lib/change-workflow.cjs +630 -45
- package/mcp-server/lib/context-envelope.cjs +508 -0
- package/mcp-server/lib/decision-records.cjs +337 -0
- package/mcp-server/lib/doctor.cjs +91 -33
- package/mcp-server/lib/init-project.cjs +78 -39
- package/mcp-server/lib/managed-file-write.cjs +116 -0
- package/mcp-server/lib/plan-checkpoint.cjs +177 -0
- package/mcp-server/lib/project-context.cjs +178 -0
- package/mcp-server/lib/stage-checkpoints.cjs +309 -0
- package/mcp-server/lib/state-db.cjs +155 -24
- package/mcp-server/lib/state-ops.cjs +21 -3
- package/mcp-server/lib/task-ledger.cjs +522 -13
- package/mcp-server/lib/ultra-facade.cjs +757 -442
- package/mcp-server/lib/worker-packet.cjs +358 -0
- package/mcp-server/server.cjs +200 -1103
- package/orchestrator/daemon.cjs +27 -9
- package/orchestrator/parallel-orchestrator.cjs +111 -76
- package/orchestrator/session-runner.cjs +135 -34
- package/package.json +10 -3
- package/skills/ultra-change/SKILL.md +10 -8
- package/skills/ultra-deliver/SKILL.md +17 -19
- package/skills/ultra-dev/SKILL.md +20 -11
- package/skills/ultra-doctor/SKILL.md +4 -4
- package/skills/ultra-init/SKILL.md +6 -5
- package/skills/ultra-init/references/brownfield-adoption.md +20 -14
- package/skills/ultra-plan/SKILL.md +13 -9
- package/skills/ultra-research/SKILL.md +18 -9
- package/skills/ultra-review/SKILL.md +14 -9
- package/skills/ultra-review/references/unified-schema.md +2 -0
- package/skills/ultra-review/scripts/review_wait.py +8 -0
- package/skills/ultra-status/SKILL.md +2 -2
- package/skills/ultra-test/SKILL.md +10 -6
- package/skills/ultra-think/SKILL.md +8 -7
- package/skills/ultra-think/references/interaction-boundary.md +56 -0
- package/spec/cli-protocol.md +80 -199
- package/spec/mcp-tools.yaml +43 -2806
- package/spec/schemas/state-db.sql +107 -4
- package/spec/schemas/{task-ledger.v1.schema.json → task-ledger.v2.schema.json} +70 -6
- package/ultra-tools/commands/status.cjs +369 -243
- package/mcp-server/lib/context-spine.cjs +0 -1208
- package/mcp-server/lib/decision-dialogue.cjs +0 -1128
- package/mcp-server/lib/project-breadcrumb.cjs +0 -173
- package/mcp-server/lib/spec-learning.cjs +0 -284
- package/mcp-server/lib/workflow-state.cjs +0 -3129
- package/skills/ultra-think/references/decision-dialogue.md +0 -155
|
@@ -1,178 +1,142 @@
|
|
|
1
|
-
# Runtime
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Legend: **FULL**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
##
|
|
13
|
-
|
|
14
|
-
| Capability | Claude Code | OpenCode | Codex | Kimi Code
|
|
15
|
-
|
|
16
|
-
| Package form | `.claude-plugin`
|
|
17
|
-
| Public entry | `/ultra-builder-pro:ultra-*` | `/ultra-*` | `$ultra-builder-pro:ultra-*` | `/ultra-builder-pro:ultra-*` |
|
|
18
|
-
| Public
|
|
19
|
-
| Internal
|
|
20
|
-
|
|
|
21
|
-
| Automatic
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
|
32
|
-
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
not
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
|
79
|
-
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
user preferences belong to each host and remain outside Ultra's ownership.
|
|
119
|
-
Legacy Ultra handbook text is not proof of plugin ownership and is never
|
|
120
|
-
silently rewritten or removed.
|
|
121
|
-
|
|
122
|
-
## 6. Install, update, and uninstall
|
|
123
|
-
|
|
124
|
-
| Capability | Claude Code | OpenCode | Codex | Kimi Code 0.26+ |
|
|
125
|
-
|---|---|---|---|---|
|
|
126
|
-
| Adapter install | FULL | FULL | FULL | FULL |
|
|
127
|
-
| Global install command | `ubp --claude --global` | `ubp --opencode --global` | `ubp --codex --global` | `ubp --kimi --global` |
|
|
128
|
-
| Native update visibility | next host session | host restart | cachebuster + new task | `/reload` or new session |
|
|
129
|
-
| Removes stale managed assets | FULL | FULL | FULL | FULL |
|
|
130
|
-
| Preserves unrelated config | FULL | FULL | FULL | FULL, including `config.toml` and unrelated registry records |
|
|
131
|
-
| Uninstall ownership guard | managed plugin root | sentinels + owned MCP entry | managed root/manifest/agent headers | managed root + exact registry record |
|
|
132
|
-
| Normalized install provenance | FULL | FULL | FULL | FULL |
|
|
133
|
-
| Local-source dirty state and worktree digest | FULL | FULL | FULL | FULL |
|
|
134
|
-
| Read-only `ubp --all --global --doctor` | FULL | FULL | FULL | FULL |
|
|
135
|
-
| Asset-content and host-contract drift detection | FULL | FULL | FULL | FULL |
|
|
136
|
-
|
|
137
|
-
Package-local Git provenance never falls through to an enclosing consumer
|
|
138
|
-
repository. Source installs record commit, dirty state, and a deterministic
|
|
139
|
-
worktree digest; registry installs record unavailable checkout fields as
|
|
140
|
-
`null`.
|
|
141
|
-
|
|
142
|
-
Kimi's global managed root is
|
|
143
|
-
`~/.kimi-code/plugins/managed/ultra-builder-pro`; its only registry mutation is
|
|
144
|
-
the owned `ultra-builder-pro` entry in `~/.kimi-code/plugins/installed.json`.
|
|
145
|
-
Reinstall preserves the user's enabled/capability choices and unrelated plugin
|
|
146
|
-
records. Uninstall refuses an unmanaged or conflicting root.
|
|
147
|
-
|
|
148
|
-
## 7. Durable schema compatibility
|
|
1
|
+
# Runtime compatibility matrix
|
|
2
|
+
|
|
3
|
+
Claude Code, OpenCode, Codex, Kimi Code, and Grok Build are supported plugin
|
|
4
|
+
hosts. The canonical asset boundary lives in
|
|
5
|
+
`adapters/_shared/runtime-assets.cjs`.
|
|
6
|
+
|
|
7
|
+
Legend: **FULL** means a native equivalent exists; **FUNCTIONAL** means the same
|
|
8
|
+
outcome uses a different native primitive; **DEGRADED** means the missing host
|
|
9
|
+
surface is stated and the Skill-entry Context read remains authoritative; **N/A**
|
|
10
|
+
means intentionally absent.
|
|
11
|
+
|
|
12
|
+
## Plugin and workflow surface
|
|
13
|
+
|
|
14
|
+
| Capability | Claude Code | OpenCode | Codex | Kimi Code | Grok Build |
|
|
15
|
+
|---|---|---|---|---|---|
|
|
16
|
+
| Package form | `.claude-plugin` | config bundle + JS plugin | personal `.codex-plugin` | managed `kimi.plugin.json` | native Grok plugin |
|
|
17
|
+
| Public entry | `/ultra-builder-pro:ultra-*` | `/ultra-*` | `$ultra-builder-pro:ultra-*` | `/ultra-builder-pro:ultra-*` | native Ultra commands/Skills |
|
|
18
|
+
| Public workflow Skills | 11 explicit-only | 11 command-backed private assets | 11 implicit-disabled | 11 model-disabled | 11 explicit-only |
|
|
19
|
+
| Internal rule Skills | 4 worker-only | 4 worker-only | 4 implicit-disabled | 4 worker templates | 4 worker templates |
|
|
20
|
+
| MCP tools | exactly 7 | exactly 7 | exactly 7 | exactly 7 | exactly 7 |
|
|
21
|
+
| Automatic semantic chaining | N/A | N/A | N/A | N/A | N/A |
|
|
22
|
+
|
|
23
|
+
Commands are thin launchers. The Skill contains adaptable semantic workflow prose;
|
|
24
|
+
the adapter contains only host metadata, translation, and wiring.
|
|
25
|
+
|
|
26
|
+
## Agents and collaboration
|
|
27
|
+
|
|
28
|
+
| Capability | Claude Code | OpenCode | Codex | Kimi Code | Grok Build |
|
|
29
|
+
|---|---|---|---|---|---|
|
|
30
|
+
| Bundled review/debug workers | FULL, 10 native Markdown agents | FULL, 10 native agents | FULL, 10 managed TOML agents | FUNCTIONAL, 10 prompt templates | FUNCTIONAL, 10 prompt templates |
|
|
31
|
+
| Immutable Worker Packet | FULL | FULL | FULL | FULL | FULL |
|
|
32
|
+
| Native bounded delegation | native agent surface | native agent surface | native subagents | Agent/AgentSwarm | plugin agent surface |
|
|
33
|
+
| Cross-host advisor | explicit read-only | explicit read-only | explicit read-only | explicit read-only | explicit read-only |
|
|
34
|
+
| Final acceptance owner | primary host | primary host | primary host | primary host | primary host |
|
|
35
|
+
|
|
36
|
+
Every Worker Packet binds Context, decisions, Git, Task, acceptance, evidence,
|
|
37
|
+
output schema, and digest. A worker cannot write SQLite or accept its own result.
|
|
38
|
+
|
|
39
|
+
## Hooks and Context
|
|
40
|
+
|
|
41
|
+
| Lifecycle | Claude Code | OpenCode | Codex | Kimi Code | Grok Build |
|
|
42
|
+
|---|---|---|---|---|---|
|
|
43
|
+
| Session Context | FULL, SessionStart compact | FULL, system transform | FULL, session/prompt compact | FULL where native event consumes output | DEGRADED, ignored stdout is not claimed as injection |
|
|
44
|
+
| Skill-entry Context | FULL | FULL | FULL | FULL | FULL and authoritative |
|
|
45
|
+
| Managed-file protection | PreToolUse | tool.before | PreToolUse | PreToolUse | camelCase PreToolUse |
|
|
46
|
+
| Compact recovery | PreCompact + SessionStart | compacting transform | pre/post compact | native pre/post where available | records lifecycle; Skill rereads Context |
|
|
47
|
+
| Stop | non-blocking advisory | session.idle annotation | non-blocking advisory | non-blocking advisory | advisory only for `reason=end_turn` |
|
|
48
|
+
| Subagent event | minimal ids | DEGRADED when host lacks event | minimal ids | native start/stop | minimal ids where exposed |
|
|
49
|
+
|
|
50
|
+
All Hook context comes from the canonical Context Envelope generator. Hooks never
|
|
51
|
+
capture prompts, transcripts, general memory, observations, or code-graph payloads.
|
|
52
|
+
They do not create semantic records or block ordinary work for incomplete evidence.
|
|
53
|
+
|
|
54
|
+
## MCP and native runtime
|
|
55
|
+
|
|
56
|
+
| Capability | Claude Code | OpenCode | Codex | Kimi Code | Grok Build |
|
|
57
|
+
|---|---|---|---|---|---|
|
|
58
|
+
| stdio registration | `.mcp.json` | local MCP entry | `.mcp.json` | `mcpServers` | native plugin MCP entry |
|
|
59
|
+
| Public discovered tools | 7 | 7 | 7 | 7 | 7 |
|
|
60
|
+
| Public write/read smoke | FULL | FULL | FULL | FULL | FULL |
|
|
61
|
+
| Doctor backup/reopen | FULL | FULL | FULL | FULL | FULL |
|
|
62
|
+
| Bundled `better-sqlite3` native | FULL | FULL | FULL | FULL | FULL |
|
|
63
|
+
| ABI/provenance validation | FULL | FULL | FULL | FULL | FULL |
|
|
64
|
+
| Git team checkpoint | `.ultra/tasks/tasks.json` | same | same | same | same |
|
|
65
|
+
| Local authority | `.ultra/.runtime/state.db` | same | same | same | same |
|
|
66
|
+
|
|
67
|
+
The installed runtime includes the externalized `better-sqlite3` package and its
|
|
68
|
+
native `.node`. Provenance records native digest, platform, architecture, Node ABI,
|
|
69
|
+
and runtime command. A mismatched ABI fails before authority is opened; Doctor
|
|
70
|
+
repairs through staging and atomic swap.
|
|
71
|
+
|
|
72
|
+
Archive finalization uses a packaged Python 3 worker with identity-checked
|
|
73
|
+
descriptor-relative filesystem operations on POSIX. If this prerequisite is absent,
|
|
74
|
+
archive fails closed with `ARCHIVE_RUNTIME_UNAVAILABLE`; other MCP tools remain usable.
|
|
75
|
+
|
|
76
|
+
## Structured user interaction
|
|
77
|
+
|
|
78
|
+
| Host | Native question surface | Fallback |
|
|
79
|
+
|---|---|---|
|
|
80
|
+
| Claude Code | `AskUserQuestion` | one concise direct question |
|
|
81
|
+
| OpenCode | `question` | one concise direct question |
|
|
82
|
+
| Codex | `request_user_input` when exposed by current mode | one concise direct question |
|
|
83
|
+
| Kimi Code | `AskUserQuestion` outside auto mode | one concise direct question |
|
|
84
|
+
| Grok Build | native structured question when exposed | one concise direct question |
|
|
85
|
+
|
|
86
|
+
An interaction-disabled mode leaves the choice unresolved. The adapter never infers
|
|
87
|
+
consent or stores an interaction receipt.
|
|
88
|
+
|
|
89
|
+
## User instruction isolation
|
|
90
|
+
|
|
91
|
+
| Host | Durable user instruction | Installer writes it? |
|
|
92
|
+
|---|---|---|
|
|
93
|
+
| Claude Code | `~/.claude/CLAUDE.md` | no |
|
|
94
|
+
| OpenCode | `~/.config/opencode/AGENTS.md` | no |
|
|
95
|
+
| Codex | `~/.codex/AGENTS.md` | no |
|
|
96
|
+
| Kimi Code | `~/.kimi-code/AGENTS.md` | no |
|
|
97
|
+
| Grok Build | host-owned instruction file | no |
|
|
98
|
+
|
|
99
|
+
Install, update, Doctor, and uninstall preserve user instructions, repository
|
|
100
|
+
instructions, project `.ultra`, unrelated plugins, and unrelated host configuration.
|
|
101
|
+
|
|
102
|
+
## Install lifecycle
|
|
103
|
+
|
|
104
|
+
| Capability | Claude Code | OpenCode | Codex | Kimi Code | Grok Build |
|
|
105
|
+
|---|---|---|---|---|---|
|
|
106
|
+
| Global flag | `--claude` | `--opencode` | `--codex` | `--kimi` | `--grok` |
|
|
107
|
+
| Staging + atomic swap | FULL | FULL | FULL | FULL | FULL |
|
|
108
|
+
| Exact-host preflight | FULL | FULL | FULL | FULL | FULL |
|
|
109
|
+
| Managed uninstall guard | FULL | FULL | FULL | FULL | FULL |
|
|
110
|
+
| Preserve unrelated config | FULL | FULL | FULL | FULL | FULL |
|
|
111
|
+
| Read-only Doctor | FULL | FULL | FULL | FULL | FULL |
|
|
112
|
+
|
|
113
|
+
Preflight uses the final manifest command and verifies initialize, `tools/list == 7`,
|
|
114
|
+
public write/read, Doctor backup, close/reopen consistency, native provenance, and
|
|
115
|
+
lazy project initialization.
|
|
116
|
+
|
|
117
|
+
## Durable compatibility
|
|
149
118
|
|
|
150
119
|
| Capability | Contract |
|
|
151
120
|
|---|---|
|
|
152
|
-
| Current
|
|
153
|
-
| Runtime values | `claude`, `opencode`, `codex`, `kimi` |
|
|
154
|
-
|
|
|
155
|
-
| Preservation
|
|
156
|
-
| Failure
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
- `
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
host-specific hook/MCP degradation after controlled tampering.
|
|
175
|
-
- `tests/package-smoke.test.cjs` installs the packed tarball into a clean
|
|
176
|
-
consumer and executes a live MCP round trip through every generated launcher.
|
|
177
|
-
|
|
178
|
-
Any capability claim elsewhere must match current adapter code and these tests.
|
|
121
|
+
| Current authority schema | `22.0` |
|
|
122
|
+
| Runtime values | `claude`, `opencode`, `codex`, `kimi`, `grok` |
|
|
123
|
+
| Legacy inputs | v4.4/v4.5 task projections, the legacy root-level state database, Task Contexts, v0.22/v0.23 DB and team ledger |
|
|
124
|
+
| Preservation | exact-byte backup, row/ID/event/migration-history preservation, verified semantic promotion |
|
|
125
|
+
| Failure | transactional rollback; no partial DB, ledger, native runtime, or host installation |
|
|
126
|
+
|
|
127
|
+
Old workflow/dialogue rows are retained as non-authoritative history. Current
|
|
128
|
+
Decisions, Stage Checkpoints, Context Envelopes, Worker Packets, and team checkpoint
|
|
129
|
+
are reconstructed only from verified authority.
|
|
130
|
+
|
|
131
|
+
## Verification sources
|
|
132
|
+
|
|
133
|
+
- `adapters/tests/*.test.cjs` validates every native builder and manifest.
|
|
134
|
+
- `tests/conformance/<runtime>/*.test.cjs` validates all five hosts.
|
|
135
|
+
- `adapters/_shared/tests/runtime-assets.test.cjs` keeps docs and asset allowlists
|
|
136
|
+
synchronized.
|
|
137
|
+
- `tests/install.test.cjs` verifies atomic install, rollback, Doctor, and instruction
|
|
138
|
+
preservation.
|
|
139
|
+
- `tests/package-smoke.test.cjs` installs the npm tarball and performs five real
|
|
140
|
+
launcher write/read/backup/reopen round trips.
|
|
141
|
+
- Grok acceptance also runs the available native plugin validate/inspect command and
|
|
142
|
+
camelCase Hook fixtures.
|
package/docs/SKILL-AUTHORING.md
CHANGED
|
@@ -37,8 +37,8 @@ only from the main workflow or one directly relevant reference.
|
|
|
37
37
|
## Language
|
|
38
38
|
|
|
39
39
|
The standards do not prohibit Chinese. Ultra source prompts use English as a project
|
|
40
|
-
policy because one source is transformed for Claude Code, Codex, OpenCode,
|
|
41
|
-
|
|
40
|
+
policy because one source is transformed for Claude Code, Codex, OpenCode, Kimi Code,
|
|
41
|
+
and Grok Build. The host or user instruction controls the response language; a workflow must not
|
|
42
42
|
hard-code the user's output language unless language is itself part of the task.
|
|
43
43
|
|
|
44
44
|
Maintainer documentation may use the language appropriate for its audience. English
|
|
@@ -72,4 +72,4 @@ against delivered behavior, or independent analyses against authoritative eviden
|
|
|
72
72
|
5. Are judgments evidence-based rather than threshold-based?
|
|
73
73
|
6. Are commands thin and agents bounded?
|
|
74
74
|
7. Do positive and negative trigger evals cover accidental activation?
|
|
75
|
-
8. Do source,
|
|
75
|
+
8. Do source, five generated runtimes, and package contents pass validation?
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
> Multi-process access contract. Current authority is defined by
|
|
4
4
|
> [`DECISIONS.md`](./DECISIONS.md) and the live database schema.
|
|
5
5
|
|
|
6
|
-
`.ultra/.runtime/state.db` is the checkout-local
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
references
|
|
6
|
+
`.ultra/.runtime/state.db` is the checkout-local persistence and safety authority for
|
|
7
|
+
baselines, Changes, normalized Decision Records, Stage Checkpoints, Context Envelopes,
|
|
8
|
+
Worker Packets, Tasks, events, Sessions, incidents, projections, telemetry, and spec
|
|
9
|
+
references. Registered digest-bound files carry semantic and evidence
|
|
10
10
|
bodies; the DB owns their references and current digests. The tracked
|
|
11
11
|
`.ultra/tasks/tasks.json` is an MCP-published handoff checkpoint, not a parallel live
|
|
12
12
|
writer. Every process that touches the DB must follow the rules below; deviations are
|
|
@@ -77,8 +77,10 @@ resolve the mount/runtime constraint before retrying.
|
|
|
77
77
|
| `baselines` | MCP server through `ultra.record`, `ultra.checkpoint`, and `ultra.archive`; initialization and legacy migration may create only the first draft or compatibility row |
|
|
78
78
|
| `tasks` | MCP server through `ultra.record`, `ultra.checkpoint`, and `ultra.sync` |
|
|
79
79
|
| `changes` | MCP server through `ultra.record`, `ultra.checkpoint`, and `ultra.archive` |
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
80
|
+
| `decision_records` | MCP server through `ultra.record`; normalized accepted intent and applied references are stored, never UI receipts, prompts, or transcripts |
|
|
81
|
+
| `stage_checkpoints` | MCP server through `ultra.checkpoint`; mutable drafts and immutable accepted/superseded revisions, never fixed reasoning steps |
|
|
82
|
+
| `context_envelopes`, `worker_packets` | MCP server through `ultra.context`, `ultra.checkpoint`, and `ultra.session`; exact digest-bound handoff authority |
|
|
83
|
+
| `decision_threads`, `decision_items`, `workflow_runs`, `workflow_steps` | legacy history retained for migration and audit; no current public writer or authorization role |
|
|
82
84
|
| `artifacts`, `artifact_edges` | MCP server through `ultra.record` and checkpoint-owned registration |
|
|
83
85
|
| `context_snapshots`, `spec_learning_candidates`, `trace_links` | MCP server through `ultra.record` and `ultra.checkpoint` |
|
|
84
86
|
| `incidents`, `projection_jobs`, `event_consumers`, `circuit_breaker` | MCP server; backup-first doctor recovery may perform only documented mechanical transitions |
|
|
@@ -142,8 +144,11 @@ The contract on this page is enforced by:
|
|
|
142
144
|
no duplicates.
|
|
143
145
|
- `mcp-server/tests/state-ops.test.cjs` — immediate transactions, rollback,
|
|
144
146
|
status transitions, task contracts, and event coupling.
|
|
145
|
-
- `mcp-server/lib/
|
|
146
|
-
|
|
147
|
+
- `mcp-server/lib/stage-checkpoints.test.cjs` — mutable drafts, immutable accepted
|
|
148
|
+
revisions, supersession, and report-first diagnostics.
|
|
149
|
+
- `mcp-server/lib/context-envelope.test.cjs` and
|
|
150
|
+
`mcp-server/lib/worker-packet.test.cjs` — content-addressed Context and immutable
|
|
151
|
+
delegated handoff.
|
|
147
152
|
- `mcp-server/lib/task-ledger.test.cjs` — portable-field filtering, digest ancestry,
|
|
148
153
|
idempotent import, baseline/Change/task fast-forward and conflict behavior, legacy
|
|
149
154
|
backup, and active-session protection.
|