@josfox/jos 4.0.8 → 5.0.0

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.
Files changed (59) hide show
  1. package/LICENSE +208 -21
  2. package/PROMISES.md +52 -0
  3. package/README.md +294 -146
  4. package/SECURITY-MCP.md +117 -0
  5. package/SECURITY-SECRETS.md +108 -0
  6. package/STYLE.md +23 -0
  7. package/bin/jos +139 -67
  8. package/bin/jos.cmd +5 -0
  9. package/examples/01-hello.jos +44 -0
  10. package/examples/02-criteria.jos +54 -0
  11. package/examples/03-flow-gate.jos +83 -0
  12. package/examples/04-use-template/README.md +22 -0
  13. package/examples/04-use-template/lib/greeting.jos +56 -0
  14. package/examples/04-use-template/use.jos +64 -0
  15. package/examples/05-sealed/.jos/manifest.jos +53 -0
  16. package/examples/05-sealed/README.md +25 -0
  17. package/examples/06-requires.jos +42 -0
  18. package/examples/07-sandbox.jos +39 -0
  19. package/examples/08-ids-ledger-meter.md +26 -0
  20. package/examples/10-ollama.jos +47 -0
  21. package/examples/11-openai.jos +47 -0
  22. package/examples/12-gemini.jos +47 -0
  23. package/examples/13-anthropic.jos +47 -0
  24. package/examples/14-serve.jos +88 -0
  25. package/examples/README.md +105 -0
  26. package/examples/hello.jos +47 -0
  27. package/package.json +31 -9
  28. package/promises.json +894 -0
  29. package/src/args.js +47 -0
  30. package/src/commands/_frozen/add.README.md +1 -0
  31. package/src/commands/_frozen/get.README.md +1 -0
  32. package/src/commands/_frozen/llm.README.md +1 -0
  33. package/src/commands/_frozen/prompts.README.md +1 -0
  34. package/src/commands/_frozen/repo.README.md +1 -0
  35. package/src/commands/_frozen/serve-explorer.README.md +1 -0
  36. package/src/commands/ids.js +101 -0
  37. package/src/commands/init.js +113 -147
  38. package/src/commands/ledger.js +94 -0
  39. package/src/commands/meter.js +96 -0
  40. package/src/commands/migrate.js +214 -0
  41. package/src/commands/overview.js +118 -0
  42. package/src/commands/run.js +164 -214
  43. package/src/commands/runs.js +102 -0
  44. package/src/commands/secrets.js +695 -115
  45. package/src/commands/start.js +210 -0
  46. package/src/commands/validate.js +153 -165
  47. package/src/commands/verify.js +56 -0
  48. package/src/commands/version.js +23 -0
  49. package/src/intention.js +114 -0
  50. package/src/kernel.js +69 -0
  51. package/src/ledgers.js +57 -0
  52. package/src/mcp-guide.js +138 -0
  53. package/src/mcp.js +734 -0
  54. package/src/serve.js +38 -770
  55. package/src/ui.js +98 -0
  56. package/src/commands/add.js +0 -145
  57. package/src/commands/get.js +0 -245
  58. package/src/commands/repo.js +0 -139
  59. package/src/index.js +0 -0
package/promises.json ADDED
@@ -0,0 +1,894 @@
1
+ {
2
+ "$comment": "Every promise of @josfox/jos, what 4.1.0 did, what 5.0 does, what is planned, and the gate that proves today's behaviour. test/promises.test.js runs every gate (npm test); PROMISES.md is generated from this file (npm run promises:md). Sources: specs/jos-format/2.0/releases/review/PROMESAS-2026-10-20.md (T1 = the 4.1.0 npm page, T3 = what 1.0.0 defines, T4 = what IANA was told) and README.md (What it can do, Not yet).",
3
+ "host": "5.0.0",
4
+ "kernel": "2.0.0",
5
+ "statuses": ["delivered", "delivered-differently", "planned", "dropped"],
6
+ "gate_rules": [
7
+ "cmd[0] is jos (this bin/jos), jos-core (the kernel jos finds) or node; the rest is argv, never a shell.",
8
+ "Every gate runs in a new temporary folder: work/ holds a copy of examples/ and the documents of docs below (a name may include a folder, created first); HOME is a new empty folder beside it.",
9
+ "The environment is only PATH, HOME, TMPDIR and NO_COLOR=1: no provider key, no JOS_* switch. PATH starts with fake curl and ollama programs that print fake-curl-called and exit 7, so no gate reaches the network.",
10
+ "{work}, {home} and {last_run} (the last run_ id printed by an earlier step) are replaced in cmd. stdout_includes and stderr_includes are substrings; not_includes applies to both streams; files_present and files_absent are paths under work/.",
11
+ "A promise with known_gap: true asserts today's behaviour, which is not the promised one; the day the gap is fixed its gate fails and the entry must be updated."
12
+ ],
13
+ "docs": {
14
+ "minimal-13.jos": {
15
+ "id_jos": "example-v1",
16
+ "jos": { "open": "jos run artifact", "supports": ["@josfox/jos"] },
17
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
18
+ "meta": { "name": "example", "version": "1.0.0", "type": "atom" },
19
+ "intention": { "objective": "Demonstrate JOS", "success_criteria": "Output greeting" },
20
+ "guardrails": { "avoid": [], "max_retries": 0 },
21
+ "capabilities": ["demo"],
22
+ "artifacts": { "description": "Minimal example" },
23
+ "orchestration": {
24
+ "definitions": { "greet": { "type": "shell", "command": "echo 'Hello!'" } },
25
+ "flows": { "main": { "steps": ["greet"] } }
26
+ },
27
+ "security": { "type": "open", "permissions": [], "integrity_ref": null },
28
+ "files": [],
29
+ "x_run_params": { "timeout": 5000, "retry_on_failure": false },
30
+ "adaptive_ai": { "learning_enabled": false, "feedback_collection": false }
31
+ },
32
+ "only-7-keys.jos": {
33
+ "jos": { "open": "jos run artifact", "supports": ["@josfox/jos"] },
34
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
35
+ "meta": { "name": "example", "version": "1.0.0", "type": "atom" },
36
+ "intention": { "objective": "Demonstrate JOS", "success_criteria": "Output greeting" },
37
+ "guardrails": { "avoid": [], "max_retries": 0 },
38
+ "orchestration": {
39
+ "definitions": { "greet": { "type": "shell", "command": "echo 'Hello!'" } },
40
+ "flows": { "main": { "steps": ["greet"] } }
41
+ },
42
+ "security": { "type": "open", "permissions": [], "integrity_ref": null }
43
+ },
44
+ "object-step.jos": {
45
+ "jos": { "open": "jos run artifact", "supports": ["@josfox/jos"] },
46
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
47
+ "meta": { "name": "example", "version": "1.0.0", "type": "atom" },
48
+ "intention": { "objective": "Demonstrate JOS", "success_criteria": "Output greeting" },
49
+ "orchestration": {
50
+ "definitions": { "greet": { "type": "shell", "command": "echo 'Hello!'" } },
51
+ "flows": { "main": { "steps": [{ "run": "greet" }] } }
52
+ }
53
+ },
54
+ "sealed-0.0.7/ref.jos": {
55
+ "$schema": "https://josfox.ai/schemas/jos-0.0.7.json",
56
+ "jos": { "open": "jos run atom", "supports": ["@josfox/jos", "josctl"] },
57
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
58
+ "id_jos": "atom-ref-1792539837287",
59
+ "adaptive_ai": { "learning_mode": "frozen", "llm_friendly_sentence": "This atom artifact performs the ref task." },
60
+ "security": { "type": "open", "permissions": [], "health_check": null, "integrity": null, "integrity_ref": "./ref.jos.sig.json" },
61
+ "files": [],
62
+ "orchestration": {
63
+ "definitions": { "main_task": { "type": "shell", "description": "Main task - replace with your command", "command": "echo 'Hello from ref'" } },
64
+ "flows": { "main": { "description": "Main execution flow", "steps": ["main_task"] } }
65
+ },
66
+ "x_run_params": { "timeout": 300, "retry_on_failure": false },
67
+ "meta": { "version": "1.0.0", "type": "atom", "name": "ref", "provider": "local", "author": "JOS Developer" },
68
+ "artifacts": { "description": "Auto-generated atom artifact. Update this description.", "outputs": [] },
69
+ "guardrails": { "avoid": [], "max_retries": 1 },
70
+ "intention": { "objective": "Define your objective here", "success_criteria": "Define success criteria here" },
71
+ "capabilities": []
72
+ },
73
+ "sealed-0.0.7/ref.jos.sig.json": { "manifest_version": "1.0.0", "artifact_ref": "ref.jos", "artifact_sha256": "6f68a650d093e80bcf37a6f7a7c640613cc78e6fbe7c0520e6d970640252d6f5" },
74
+ "tampered-0.0.7/ref.jos": {
75
+ "$schema": "https://josfox.ai/schemas/jos-0.0.7.json",
76
+ "jos": { "open": "jos run atom", "supports": ["@josfox/jos", "josctl"] },
77
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
78
+ "id_jos": "atom-ref-1792539837287",
79
+ "adaptive_ai": { "learning_mode": "frozen", "llm_friendly_sentence": "This atom artifact performs the ref task." },
80
+ "security": { "type": "open", "permissions": [], "health_check": null, "integrity": null, "integrity_ref": "./ref.jos.sig.json" },
81
+ "files": [],
82
+ "orchestration": {
83
+ "definitions": { "main_task": { "type": "shell", "description": "Main task - replace with your command", "command": "echo 'PWNED'" } },
84
+ "flows": { "main": { "description": "Main execution flow", "steps": ["main_task"] } }
85
+ },
86
+ "x_run_params": { "timeout": 300, "retry_on_failure": false },
87
+ "meta": { "version": "1.0.0", "type": "atom", "name": "ref", "provider": "local", "author": "JOS Developer" },
88
+ "artifacts": { "description": "Auto-generated atom artifact. Update this description.", "outputs": [] },
89
+ "guardrails": { "avoid": [], "max_retries": 1 },
90
+ "intention": { "objective": "Define your objective here", "success_criteria": "Define success criteria here" },
91
+ "capabilities": []
92
+ },
93
+ "tampered-0.0.7/ref.jos.sig.json": { "manifest_version": "1.0.0", "artifact_ref": "ref.jos", "artifact_sha256": "6f68a650d093e80bcf37a6f7a7c640613cc78e6fbe7c0520e6d970640252d6f5" },
94
+ "init-4.1.0/ref.jos": {
95
+ "$schema": "https://josfox.ai/schemas/jos-0.0.7.json",
96
+ "jos": { "open": "jos run atom", "supports": ["@josfox/jos", "josctl"] },
97
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
98
+ "id_jos": "atom-ref-1792539837287",
99
+ "adaptive_ai": { "learning_mode": "frozen", "llm_friendly_sentence": "This atom artifact performs the ref task." },
100
+ "security": { "type": "open", "permissions": [], "health_check": null, "integrity": null, "integrity_ref": "./ref.jos.sig.json" },
101
+ "files": [],
102
+ "orchestration": {
103
+ "state": { "current_status": "idle" },
104
+ "definitions": { "main_task": { "type": "shell", "description": "Main task - replace with your command", "command": "echo 'Hello from ref'" } },
105
+ "flows": { "main": { "description": "Main execution flow", "steps": ["main_task"] } }
106
+ },
107
+ "x_run_params": { "timeout": 300, "retry_on_failure": false },
108
+ "meta": { "version": "1.0.0", "type": "atom", "name": "ref", "provider": "local", "author": "JOS Developer" },
109
+ "artifacts": { "description": "Auto-generated atom artifact. Update this description.", "outputs": [] },
110
+ "guardrails": { "avoid": [], "max_retries": 1 },
111
+ "intention": { "objective": "Define your objective here", "success_criteria": "Define success criteria here" },
112
+ "capabilities": []
113
+ },
114
+ "init-4.1.0/ref.jos.sig.json": { "manifest_version": "1.0.0", "artifact_ref": "ref.jos", "artifact_sha256": "66981f8f93428cad94fa1097ec1c54b25d0b54d2c689398b234aa7867610e660" },
115
+ "prompt-step-0.0.7.jos": {
116
+ "jos": { "open": "jos run artifact", "supports": ["@josfox/jos"] },
117
+ "orchestration_contract": { "version": "0.0.7", "mode": "sync" },
118
+ "meta": { "name": "example", "version": "1.0.0", "type": "atom" },
119
+ "intention": { "objective": "Greet with a prompt step", "success_criteria": "Output greeting" },
120
+ "orchestration": {
121
+ "definitions": { "greet": { "type": "prompt", "template": "Say hello" } },
122
+ "flows": { "main": { "steps": ["greet"] } }
123
+ }
124
+ },
125
+ "big-integer.jos": "{ \"jos\": { \"version\": \"2.0.0\", \"kind\": \"atom\" }, \"meta\": { \"name\": \"big\" }, \"x-count\": 9007199254740993, \"execution\": { \"run\": [\"echo\", \"hello\"] } }\n",
126
+ "fail-criterion.jos": {
127
+ "jos": { "version": "2.0.0", "kind": "atom" },
128
+ "meta": { "name": "fail-criterion" },
129
+ "intention": { "objective": "Print hello", "success_criteria": [{ "exit": 0 }, { "stdout_contains": "hello" }] },
130
+ "execution": { "run": ["echo", "bye"] }
131
+ },
132
+ "avoid-substring.jos": {
133
+ "jos": { "version": "2.0.0", "kind": "atom" },
134
+ "meta": { "name": "avoid.substring" },
135
+ "intention": { "objective": "A step whose command line matches avoid never starts", "success_criteria": [{ "exit": 0 }] },
136
+ "guardrails": { "avoid": ["curl", "rm -rf"] },
137
+ "execution": { "run": ["echo", "rm -rf /tmp/x"] }
138
+ },
139
+ "time-limit.jos": {
140
+ "jos": { "version": "2.0.0", "kind": "atom" },
141
+ "meta": { "name": "time.limit" },
142
+ "intention": { "objective": "A step past limit.seconds is killed" },
143
+ "guardrails": { "limit": { "seconds": 1 } },
144
+ "execution": { "run": ["sleep", "5"] }
145
+ },
146
+ "output-limit.jos": {
147
+ "jos": { "version": "2.0.0", "kind": "atom" },
148
+ "meta": { "name": "output.limit" },
149
+ "intention": { "objective": "A step past limit.output_bytes is killed" },
150
+ "guardrails": { "limit": { "output_bytes": 1024, "seconds": 10 } },
151
+ "execution": { "run": ["yes"] }
152
+ },
153
+ "budget-zero.jos": {
154
+ "jos": { "version": "2.0.0", "kind": "atom" },
155
+ "meta": { "name": "budget.zero" },
156
+ "intention": { "objective": "A non-positive limit is a budget exceeded before start" },
157
+ "guardrails": { "limit": { "seconds": 0 } },
158
+ "execution": { "run": ["true"] }
159
+ },
160
+ "noexec.jos": {
161
+ "jos": { "version": "2.0.0", "kind": "atom" },
162
+ "meta": { "name": "noexec" },
163
+ "intention": { "objective": "touch a marker", "success_criteria": [{ "exit": 0 }] },
164
+ "execution": { "engine": "shell", "run": ["touch", "MARKER"] }
165
+ },
166
+ "noexec.txt": {
167
+ "jos": { "version": "2.0.0", "kind": "atom" },
168
+ "meta": { "name": "noexec" },
169
+ "intention": { "objective": "touch a marker", "success_criteria": [{ "exit": 0 }] },
170
+ "execution": { "engine": "shell", "run": ["touch", "MARKER"] }
171
+ },
172
+ "dup-keys.jos": "{ \"jos\": { \"version\": \"2.0.0\", \"kind\": \"atom\" }, \"meta\": { \"name\": \"first\" }, \"execution\": { \"run\": [\"echo\", \"hello\"] }, \"meta\": { \"name\": \"second\" } }\n",
173
+ "bom.jos": "{ \"jos\": { \"version\": \"2.0.0\", \"kind\": \"atom\" }, \"meta\": { \"name\": \"bom\" }, \"execution\": { \"run\": [\"echo\", \"hello\"] } }\n",
174
+ "sealed.jos": {
175
+ "jos": { "version": "2.0.0", "kind": "atom" },
176
+ "meta": { "name": "sealed" },
177
+ "intention": { "objective": "print sealed" },
178
+ "execution": { "run": ["echo", "sealed"] },
179
+ "integrity": { "hash": "sha256:18b0adcdeec45c4507defada7983ad1c1c03ea2541ea93e88dd3bd0975293657" }
180
+ },
181
+ "integrity-mismatch.jos": {
182
+ "jos": { "version": "2.0.0", "kind": "atom" },
183
+ "meta": { "name": "integrity" },
184
+ "intention": { "objective": "integrity" },
185
+ "execution": { "run": ["true"] },
186
+ "integrity": { "hash": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
187
+ },
188
+ "tier-privileged-unsigned.jos": {
189
+ "jos": { "version": "2.0.0", "kind": "atom" },
190
+ "meta": { "name": "tier-privileged-unsigned" },
191
+ "intention": { "objective": "A privileged document needs a signature this runtime cannot verify", "success_criteria": [{ "exit": 0 }] },
192
+ "execution": { "engine": "shell", "run": ["echo", "ok"] },
193
+ "security": { "tier": "privileged" }
194
+ },
195
+ "engine-llm.jos": {
196
+ "jos": { "version": "2.0.0", "kind": "atom" },
197
+ "meta": { "name": "engine.llm" },
198
+ "intention": { "objective": "Answer with a model" },
199
+ "execution": { "engine": "llm", "inputs": { "text": "hello" } }
200
+ },
201
+ "judge.jos": {
202
+ "jos": { "version": "2.0.0", "kind": "atom" },
203
+ "meta": { "name": "judge" },
204
+ "intention": { "objective": "A judged criterion", "success_criteria": [{ "judge": { "rubric": "Is it polite?", "threshold": 0.8 } }] },
205
+ "execution": { "run": ["echo", "hello"] }
206
+ },
207
+ "crystal.jos": {
208
+ "jos": { "version": "2.0.0", "kind": "crystal" },
209
+ "meta": { "name": "c" },
210
+ "crystal": {
211
+ "key": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
212
+ "artifact": "art_0000000000000000000000000000000000000000000000000000000000000000",
213
+ "output_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
214
+ }
215
+ },
216
+ "short-1.1.0.jos": {
217
+ "id": "greet.v11",
218
+ "intent": "Greet in the 1.1.0 vocabulary",
219
+ "done": { "stdout_contains": "hi" },
220
+ "avoid": "rm -rf",
221
+ "limit": { "time": "2s" },
222
+ "retries": 0,
223
+ "on_error": "fail",
224
+ "run": ["echo", "hi"]
225
+ },
226
+ "shell-1.0.0.jos": {
227
+ "jos": { "version": "1.0.0", "kind": "flow" },
228
+ "id": "ai.example.flow.shell",
229
+ "meta": { "name": "shell-1.0.0" },
230
+ "intention": { "objective": "Print hi", "success_criteria": ["hi is printed"] },
231
+ "guardrails": { "avoid": ["rm -rf"] },
232
+ "orchestration": {
233
+ "definitions": { "hi": { "type": "shell", "command": "echo hi" } },
234
+ "flows": { "main": { "steps": ["hi"] } }
235
+ }
236
+ },
237
+ "requires-1.0.0.jos": {
238
+ "jos": { "version": "1.0.0", "kind": "atom" },
239
+ "meta": { "name": "req" },
240
+ "requires": [{ "kind": "mcp-server", "name": "mcp-server-filesystem" }],
241
+ "orchestration": {
242
+ "definitions": { "s": { "type": "shell", "command": "echo req" } },
243
+ "flows": { "main": { "steps": ["s"] } }
244
+ }
245
+ },
246
+ "invoke-1.0.0.jos": {
247
+ "jos": { "version": "1.0.0", "kind": "flow" },
248
+ "meta": { "name": "invoke-1.0.0" },
249
+ "execution": { "flow": [{ "invoke": "child" }] }
250
+ },
251
+ "lib-1.0.0/child.jos": {
252
+ "jos": { "version": "1.0.0", "kind": "flow" },
253
+ "id": "child",
254
+ "meta": { "name": "child" },
255
+ "orchestration": {
256
+ "definitions": { "c": { "type": "shell", "command": "echo child" } },
257
+ "flows": { "main": { "steps": ["c"] } }
258
+ }
259
+ },
260
+ "budget-1.0.0.jos": {
261
+ "jos": { "version": "1.0.0", "kind": "flow" },
262
+ "meta": { "name": "budget-1.0.0" },
263
+ "execution": { "budget": { "max_duration": "1s" } },
264
+ "orchestration": {
265
+ "definitions": { "s": { "type": "shell", "command": "sleep 2; echo slept" } },
266
+ "flows": { "main": { "steps": ["s"] } }
267
+ }
268
+ },
269
+ "gate3-1.0.0.jos": {
270
+ "jos": { "version": "1.0.0", "kind": "flow" },
271
+ "meta": { "name": "gate3" },
272
+ "orchestration": {
273
+ "definitions": { "a": { "type": "shell", "command": "echo a" }, "b": { "type": "shell", "command": "echo b" } },
274
+ "flows": { "main": { "steps": ["a", "b"], "gates": { "after-a": "false" } } }
275
+ }
276
+ },
277
+ "sealed-ok-1.0.0.jos": {
278
+ "jos": { "version": "1.0.0", "kind": "flow" },
279
+ "id": "ai.example.flow.shell",
280
+ "meta": { "name": "shell-1.0.0" },
281
+ "intention": { "objective": "Print hi", "success_criteria": ["hi is printed"] },
282
+ "guardrails": { "avoid": ["rm -rf"] },
283
+ "orchestration": {
284
+ "definitions": { "hi": { "type": "shell", "command": "echo hi" } },
285
+ "flows": { "main": { "steps": ["hi"] } }
286
+ },
287
+ "integrity": { "hash": "sha256:eb9eefb0751d5cc7ec90cf2da61cb6fb0eeaee459f727ff9b03eb764b5d85029" }
288
+ },
289
+ "sealed-tampered-1.0.0.jos": {
290
+ "jos": { "version": "1.0.0", "kind": "flow" },
291
+ "id": "ai.example.flow.shell",
292
+ "meta": { "name": "shell-1.0.0" },
293
+ "intention": { "objective": "Print hi", "success_criteria": ["hi is printed"] },
294
+ "guardrails": { "avoid": ["rm -rf"] },
295
+ "orchestration": {
296
+ "definitions": { "hi": { "type": "shell", "command": "echo tampered" } },
297
+ "flows": { "main": { "steps": ["hi"] } }
298
+ },
299
+ "integrity": { "hash": "sha256:eb9eefb0751d5cc7ec90cf2da61cb6fb0eeaee459f727ff9b03eb764b5d85029" }
300
+ },
301
+ "lang-underscore.jos": {
302
+ "jos": { "version": "2.0.0", "kind": "persona" },
303
+ "meta": { "name": "p" },
304
+ "persona": { "language": "en_US" }
305
+ }
306
+ },
307
+ "promises": [
308
+ {
309
+ "id": "discovery",
310
+ "feature": "jos alone: discovery",
311
+ "source": "README Start",
312
+ "intent": "Typing jos says what it does and which documents are here, without running or writing anything.",
313
+ "v4": "`jos` alone printed the help.",
314
+ "v5": "The essence in six lines, then the .jos documents of this folder and one down, each with its validate and run command.",
315
+ "status": "delivered-differently",
316
+ "planned": null,
317
+ "gate": [
318
+ {"cmd": ["jos"], "expect": {"code": 0, "stdout_includes": ["read only", "$ jos validate avoid-substring.jos", "$ jos run avoid-substring.jos"], "files_absent": ["jos-start"]}}
319
+ ]
320
+ },
321
+ {
322
+ "id": "start",
323
+ "feature": "jos start",
324
+ "source": "README Start",
325
+ "intent": "Four working examples that need no key and no network, in one command, never overwriting anything.",
326
+ "v4": "Quick start cloned an external starter repository (jos-repo-starter, no longer maintained) and ran `jos llm` with Ollama.",
327
+ "v5": "`jos start [dir]` writes hello, flow, sealed and limits with a README; refuses (1) if any exists.",
328
+ "status": "delivered-differently",
329
+ "planned": null,
330
+ "gate": [
331
+ {"cmd": ["jos", "start"], "expect": {"code": 0, "files_present": ["jos-start/hello.jos", "jos-start/flow.jos", "jos-start/limits.jos", "jos-start/sealed", "jos-start/README.md"]}},
332
+ {"cmd": ["jos", "run", "jos-start/hello.jos"], "expect": {"code": 0, "stderr_includes": ["✓ Intention met"]}},
333
+ {"cmd": ["jos", "run", "jos-start/sealed"], "expect": {"code": 0}},
334
+ {"cmd": ["jos", "start"], "expect": {"code": 1}}
335
+ ]
336
+ },
337
+ {
338
+ "id": "self-check",
339
+ "feature": "Self-check and version",
340
+ "source": "T1 #9, #16",
341
+ "intent": "One command says the installation works and which host and kernel it uses.",
342
+ "v4": "`jos verify` ran verification.jos; `jos --version` printed 4.1.0.",
343
+ "v5": "`jos verify` runs examples/hello.jos in a temporary folder; `--version` names the host and the jos-core it found.",
344
+ "status": "delivered-differently",
345
+ "planned": null,
346
+ "gate": [
347
+ {"cmd": ["jos", "verify"], "expect": {"code": 0, "stdout_includes": ["jos-core 2.0.0", "SYSTEM HEALTHY"]}},
348
+ {"cmd": ["jos", "--version"], "expect": {"code": 0, "stdout_includes": ["5.0.0", "jos-core 2.0.0"]}}
349
+ ]
350
+ },
351
+ {
352
+ "id": "intention",
353
+ "feature": "Declare an intention",
354
+ "readme": "Declare an intention: objective, success criteria, `avoid`, `limit`",
355
+ "source": "T1 #1, #2",
356
+ "intent": "A .jos says what to do, when it is done and what to avoid, and jos shows it before it runs.",
357
+ "v4": "0.0.7 intention, success_criteria and guardrails; `jos init` wrote a 0.0.7 file and a .sig.json sidecar.",
358
+ "v5": "`jos init` writes a 2.0 atom validated by jos-core; `run` and `validate` print Intention, Done when, Avoid, Limit; `validate` also prints what jos-core infers and flags what is not declared, and `--strict` refuses (2) a document that does not write its objective, criteria and guardrails.",
359
+ "status": "delivered-differently",
360
+ "planned": null,
361
+ "gate": [
362
+ {"cmd": ["jos", "init", "demo"], "expect": {"code": 0, "files_present": ["demo.jos"]}},
363
+ {"cmd": ["jos", "run", "demo.jos"], "expect": {"code": 0, "stdout_includes": ["Hello from demo"], "stderr_includes": ["Intention:", "Done when:", "Avoid:", "Limit:", "✓ Intention met"]}},
364
+ {"cmd": ["jos", "run", "examples/01-hello.jos"], "expect": {"code": 0, "stdout_includes": ["hello, .jos"], "stderr_includes": ["✓ Intention met"]}},
365
+ {"cmd": ["jos", "validate", "examples/01-hello.jos", "--strict"], "expect": {"code": 0, "stdout_includes": ["Inferred:", "/execution/shell = false (SPEC §6.8)", "VALIDATION PASSED"], "not_includes": ["not declared"]}},
366
+ {"cmd": ["jos", "validate", "fail-criterion.jos", "--strict"], "expect": {"code": 2, "stdout_includes": ["⚠ /guardrails: not declared", "VALIDATION FAILED (--strict)"], "stderr_includes": ["--strict: fail-criterion.jos does not declare guardrails"]}}
367
+ ]
368
+ },
369
+ {
370
+ "id": "validate-never-runs",
371
+ "feature": "Validate without running",
372
+ "readme": "Check it without running anything: JSON, schema, normalization, `art_`",
373
+ "source": "T4 #5, #6, #16, #17, #26",
374
+ "intent": "Checking a document never executes it; a document is one strict UTF-8 JSON object, read by content, not by file name.",
375
+ "v4": "`jos validate` checked 13 keys and ran nothing; JSON.parse let the last duplicate key win.",
376
+ "v5": "`validate` and `run --dry-run` start no step; any file name is read by content; duplicate keys, a BOM and (since jos-core 2.0.0-rc.8) an integer outside ±2^53 are invalid (2).",
377
+ "status": "delivered-differently",
378
+ "planned": null,
379
+ "gate": [
380
+ {"cmd": ["jos", "validate", "noexec.jos"], "expect": {"code": 0, "stdout_includes": ["art_"], "files_absent": ["MARKER"]}},
381
+ {"cmd": ["jos", "validate", "noexec.txt"], "expect": {"code": 0, "files_absent": ["MARKER"]}},
382
+ {"cmd": ["jos", "run", "noexec.jos", "--dry-run"], "expect": {"code": 0, "files_absent": ["MARKER"]}},
383
+ {"cmd": ["jos", "validate", "dup-keys.jos"], "expect": {"code": 2}},
384
+ {"cmd": ["jos", "validate", "bom.jos"], "expect": {"code": 2}},
385
+ {"cmd": ["jos", "validate", "big-integer.jos"], "expect": {"code": 2, "stdout_includes": ["/x-count: integer value 9007199254740993 is outside ±2^53 and below 10^21 (not representable in canonical form)"]}},
386
+ {"cmd": ["jos", "examples/01-hello.jos"], "expect": {"code": 1, "stderr_includes": ["jos run", "jos validate"]}}
387
+ ]
388
+ },
389
+ {
390
+ "id": "criteria",
391
+ "feature": "Every criterion evaluated",
392
+ "readme": "Every criterion evaluated and reported (`exit`, `stdout_contains`, `stdout_matches`, `stderr_empty`, files, hashes, `all` / `any` / `not`; text criteria are recorded, not evaluated)",
393
+ "source": "T1 #2",
394
+ "intent": "Done means every success criterion was checked, and the verdict of each one is shown.",
395
+ "v4": "success_criteria was text; nothing evaluated it.",
396
+ "v5": "Structured criteria are evaluated, each with a verdict line; a failed one is code 1; text criteria are recorded as descriptive.",
397
+ "status": "delivered-differently",
398
+ "planned": null,
399
+ "gate": [
400
+ {"cmd": ["jos", "run", "examples/02-criteria.jos"], "expect": {"code": 0, "stdout_includes": ["hello, .jos"], "stderr_includes": ["Verdict:", "✓ stdout_contains", "✓ stdout_matches", "✓ stderr_empty", "• descriptive", "✓ Intention met"]}},
401
+ {"cmd": ["jos", "run", "fail-criterion.jos"], "expect": {"code": 1, "stdout_includes": ["bye"], "stderr_includes": ["✖ stdout_contains", "✖ Intention NOT met (code 1"]}}
402
+ ]
403
+ },
404
+ {
405
+ "id": "guardrails",
406
+ "feature": "Guardrails enforced",
407
+ "readme": "Guardrails before and during the run: an `avoid` match never starts (3), time (124) and output (137) limits stop the process",
408
+ "source": "T1 #5, #15; T3 #6",
409
+ "intent": "Guardrails are enforced, not suggested: a forbidden command never starts and a limit stops the process.",
410
+ "v4": "guardrails.avoid was not enforced; x_run_params.timeout only bounded execSync.",
411
+ "v5": "avoid blocks before launch (3); limit.seconds kills the process group (124); limit.output_bytes kills it (137); a non-positive limit is 4.",
412
+ "status": "delivered-differently",
413
+ "planned": null,
414
+ "gate": [
415
+ {"cmd": ["jos", "run", "avoid-substring.jos"], "expect": {"code": 3, "stderr_includes": ["avoid"]}},
416
+ {"cmd": ["jos", "run", "time-limit.jos"], "expect": {"code": 124}},
417
+ {"cmd": ["jos", "run", "output-limit.jos"], "expect": {"code": 137}},
418
+ {"cmd": ["jos", "run", "budget-zero.jos"], "expect": {"code": 4}}
419
+ ]
420
+ },
421
+ {
422
+ "id": "flows",
423
+ "feature": "Flows and gates",
424
+ "readme": "Flows: sequences and DAGs (`needs`), automatic and human gates, data between steps",
425
+ "source": "T1 #21; T3 #19",
426
+ "intent": "Steps run in sequence or as a DAG; a human gate stops the flow until a person approves it.",
427
+ "v4": "0.0.7 orchestration flows run with execSync, one after another; no gates; `--flow` picked a flow.",
428
+ "v5": "jos-core flows with needs, gates and data between steps; `--approve <step>`, `--flow <name>`, `--input <json>`.",
429
+ "status": "delivered-differently",
430
+ "planned": null,
431
+ "gate": [
432
+ {"cmd": ["jos", "run", "examples/03-flow-gate.jos"], "expect": {"code": 1, "stdout_includes": ["built"], "stderr_includes": ["To approve it: jos run", "--approve build"]}},
433
+ {"cmd": ["jos", "run", "examples/03-flow-gate.jos", "--approve", "build"], "expect": {"code": 0, "stdout_includes": ["published"], "stderr_includes": ["✓ Intention met"]}},
434
+ {"cmd": ["jos", "run", "examples/03-flow-gate.jos", "--flow", "build-only"], "expect": {"code": 0, "stdout_includes": ["built"], "not_includes": ["published"]}}
435
+ ]
436
+ },
437
+ {
438
+ "id": "reuse",
439
+ "feature": "Reuse: use, templates, digests",
440
+ "readme": "Reuse: `use` by id and version range, templates with typed slots, a dependency pinned by digest",
441
+ "source": "T1 #18, #19",
442
+ "intent": "A document reuses another by id, instantiates templates with slots, and pins what it depends on by digest.",
443
+ "v4": "None: `jos get` downloaded files without verifying them.",
444
+ "v5": "`use` by id and range, templates with typed slots, digest pins; `--library <dir>`, `--with <json>`.",
445
+ "status": "delivered-differently",
446
+ "planned": null,
447
+ "gate": [
448
+ {"cmd": ["jos", "run", "examples/04-use-template/use.jos", "--library", "examples/04-use-template/lib"], "expect": {"code": 0, "stdout_includes": ["hello, Leo"]}},
449
+ {"cmd": ["jos", "run", "examples/04-use-template/lib/greeting.jos", "--with", "{\"name\":\"Ana\"}"], "expect": {"code": 0, "stdout_includes": ["hello, Ana"]}}
450
+ ]
451
+ },
452
+ {
453
+ "id": "sealed-folder",
454
+ "feature": "Fractal: a folder is a document",
455
+ "readme": "A folder is a document; sealed by its directory hash, refused when anything in `.jos/` changes (3)",
456
+ "source": "T1 #18, #19",
457
+ "intent": "An atom, a flow and a folder with .jos/ have the same shape; a sealed folder runs only while its hash matches.",
458
+ "v4": "One file per artifact; no folder documents.",
459
+ "v5": "`jos run <folder>` runs its .jos/manifest.jos; a sealed folder is verified by its directory hash first (3 on change).",
460
+ "status": "delivered",
461
+ "planned": null,
462
+ "gate": [
463
+ {"cmd": ["jos", "run", "examples/05-sealed"], "expect": {"code": 0, "stderr_includes": ["✓ Intention met"]}},
464
+ {"cmd": ["node", "-e", "require('fs').writeFileSync('examples/05-sealed/.jos/added.txt', 'x')"], "expect": {"code": 0}},
465
+ {"cmd": ["jos", "run", "examples/05-sealed"], "expect": {"code": 3}}
466
+ ]
467
+ },
468
+ {
469
+ "id": "refuse-unhonorable",
470
+ "feature": "Refuse what it cannot honor",
471
+ "readme": "Refuse what it cannot honor, before the first step (5): unmet `requires[]`, `security.tier: sandbox`",
472
+ "source": "T3 #10, #23; T4 #8, #9",
473
+ "intent": "A document that needs something this runtime lacks is refused before anything starts, never half-run.",
474
+ "v4": "0.0.7 had no requires[] and no security.tier: nothing was refused before running.",
475
+ "v5": "Unmet requires[] and security.tier sandbox exit 5 before the first step; receipts say isolation none.",
476
+ "status": "delivered",
477
+ "planned": null,
478
+ "gate": [
479
+ {"cmd": ["jos", "run", "examples/06-requires.jos"], "expect": {"code": 5, "stderr_includes": ["not satisfied"]}},
480
+ {"cmd": ["jos", "run", "examples/07-sandbox.jos"], "expect": {"code": 5, "stderr_includes": ["sandbox"]}},
481
+ {"cmd": ["jos", "run", "requires-1.0.0.jos"], "expect": {"code": 5, "not_includes": ["req\n"]}}
482
+ ]
483
+ },
484
+ {
485
+ "id": "identity",
486
+ "feature": "Content identity",
487
+ "readme": "Identity: `art_` of the content, `ent_` of the name, the hash of a folder",
488
+ "source": "T1 #4, #7",
489
+ "intent": "Every document has an id computed from its content; jos shows what jos-core decided, the same id on every machine.",
490
+ "v4": "A sha256 of the file bytes in a .sig.json sidecar.",
491
+ "v5": "`jos ids`: art_ (SHA-256 of the RFC 8785 canonical JSON), ent_ of the name, a folder's directory hash; jos and jos-core agree.",
492
+ "status": "delivered-differently",
493
+ "planned": null,
494
+ "gate": [
495
+ {"cmd": ["jos-core", "validate", "examples/01-hello.jos"], "expect": {"code": 0, "stdout_includes": ["art_40762df5"]}},
496
+ {"cmd": ["jos", "ids", "examples/01-hello.jos"], "expect": {"code": 0, "stdout_includes": ["art_40762df5"]}},
497
+ {"cmd": ["jos", "ids", "examples/01-hello.jos", "examples/05-sealed"], "expect": {"code": 0, "stdout_includes": ["art_", "ent_"]}},
498
+ {"cmd": ["jos", "ids", "dup-keys.jos"], "expect": {"code": 2}}
499
+ ]
500
+ },
501
+ {
502
+ "id": "integrity-hash",
503
+ "feature": "Integrity hash",
504
+ "source": "T1 #7; T3 #26; T4 #11",
505
+ "intent": "A sealed document runs only while its content matches its hash.",
506
+ "v4": "A sha256 of the file bytes in a sidecar, checked by `run`.",
507
+ "v5": "integrity.hash (SHA-256 over RFC 8785 canonical JSON) is recomputed before anything starts; a mismatch is 3.",
508
+ "status": "delivered-differently",
509
+ "planned": null,
510
+ "gate": [
511
+ {"cmd": ["jos", "run", "sealed.jos"], "expect": {"code": 0, "stdout_includes": ["sealed"]}},
512
+ {"cmd": ["jos", "run", "integrity-mismatch.jos"], "expect": {"code": 3, "stderr_includes": ["integrity"]}}
513
+ ]
514
+ },
515
+ {
516
+ "id": "ledger",
517
+ "feature": "Receipts, ledger and meter",
518
+ "readme": "Receipts and a hash-chained ledger of every run; verify it; meter it (tokens and cost when an engine reports them)",
519
+ "source": "T1 #24",
520
+ "intent": "Every run leaves a hash-chained ledger that can be listed, verified and metered.",
521
+ "v4": "~/.jos/runs/*/events.jsonl: a witness log without hashes.",
522
+ "v5": "A ledger per run; `jos runs`, `jos ledger verify` (0 or 1), `jos meter` (unreported meters say not reported, never 0).",
523
+ "status": "delivered-differently",
524
+ "planned": null,
525
+ "gate": [
526
+ {"cmd": ["jos", "run", "examples/01-hello.jos"], "expect": {"code": 0, "stderr_includes": ["Ledger:"]}},
527
+ {"cmd": ["jos", "runs"], "expect": {"code": 0, "stdout_includes": ["{last_run}", "tour.hello"]}},
528
+ {"cmd": ["jos", "ledger", "verify", "{last_run}"], "expect": {"code": 0, "stdout_includes": ["LEDGER VERIFIED"]}},
529
+ {"cmd": ["jos", "meter", "{last_run}"], "expect": {"code": 0, "stdout_includes": ["not reported"]}},
530
+ {"cmd": ["jos", "ledger", "verify", "run_00000000000000000000000000"], "expect": {"code": 2}}
531
+ ]
532
+ },
533
+ {
534
+ "id": "secrets",
535
+ "feature": "Credentials without exposure",
536
+ "readme": "Credentials for a step without putting them in the document, the command line or the output",
537
+ "source": "T1 #13",
538
+ "intent": "A step gets a credential without it being in the document, on a command line or in any output.",
539
+ "v4": "`jos secrets set NAME VALUE` (value on the command line), `get` printed it; AES-256-CBC.",
540
+ "v5": "`set --stdin`, `get` shows a keyed fingerprint, `exec --only NAME --` gives it to one child; AES-256-GCM per entry.",
541
+ "status": "delivered-differently",
542
+ "planned": null,
543
+ "gate": [
544
+ {"cmd": ["jos", "secrets", "set", "DEMO_KEY", "VALUE"], "expect": {"code": 64}},
545
+ {"cmd": ["jos", "secrets", "set", "DEMO_KEY", "--stdin"], "stdin": "s3cr3t-promise-value\n", "expect": {"code": 0, "not_includes": ["s3cr3t-promise-value"]}},
546
+ {"cmd": ["jos", "secrets", "get", "DEMO_KEY"], "expect": {"code": 0, "stdout_includes": ["DEMO_KEY exists", "hmac:"], "not_includes": ["s3cr3t-promise-value"]}},
547
+ {"cmd": ["jos", "secrets", "exec", "--only", "DEMO_KEY", "--", "node", "-e", "process.stdout.write(process.env.DEMO_KEY === 's3cr3t-promise-value' ? 'key-present' : 'key-missing')"], "expect": {"code": 0, "stdout_includes": ["key-present"], "not_includes": ["s3cr3t-promise-value"]}},
548
+ {"cmd": ["jos", "run", "examples/11-openai.jos"], "expect": {"code": 1, "stderr_includes": ["OPENAI_API_KEY is not set: no request was sent."], "not_includes": ["fake-curl-called"]}}
549
+ ]
550
+ },
551
+ {
552
+ "id": "local-model",
553
+ "feature": "A local model as a step",
554
+ "readme": "A local model as a shell step",
555
+ "source": "T1 #13, #15",
556
+ "intent": "Use a local model (Ollama) from a document, offline.",
557
+ "v4": "`jos llm --adapter ollama` sent the artifact to Ollama and overwrote the .jos with the answer.",
558
+ "v5": "A shell step: 10-ollama.jos checks localhost:11434 and calls `ollama run`; without Ollama it sends nothing (1).",
559
+ "status": "delivered-differently",
560
+ "planned": null,
561
+ "gate": [
562
+ {"cmd": ["jos", "run", "examples/10-ollama.jos"], "expect": {"code": 1, "stderr_includes": ["Ollama is not answering"]}}
563
+ ]
564
+ },
565
+ {
566
+ "id": "runs-page",
567
+ "feature": "A read-only page of runs",
568
+ "readme": "A read-only page of your runs, on 127.0.0.1 only",
569
+ "source": "T1 #26",
570
+ "intent": "See past runs in a browser without exposing files or secrets.",
571
+ "v4": "`jos serve` was an HTTP file explorer on every interface; it served ~/.jos/secrets/.master.",
572
+ "v5": "14-serve.jos writes an HTML index of ~/.jos/runs to a temporary folder and serves only it on 127.0.0.1.",
573
+ "status": "delivered-differently",
574
+ "planned": null,
575
+ "gate": [
576
+ {"cmd": ["jos", "run", "examples/14-serve.jos", "--dry-run"], "expect": {"code": 0, "stderr_includes": ["127.0.0.1", "DRY RUN"]}}
577
+ ]
578
+ },
579
+ {
580
+ "id": "mcp",
581
+ "feature": "MCP, read-only",
582
+ "readme": "Give an MCP client (Claude Code, Claude Desktop, Cursor) read-only access to a project folder",
583
+ "source": "T1 #26",
584
+ "intent": "An MCP client can read a project folder and nothing else: no secrets, no writes, no programs unless allowed.",
585
+ "v4": "No MCP server.",
586
+ "v5": "`jos serve --mcp` over stdio, read-only by default; ~/.jos/secrets denied; --allow-write and --allow-shell are opt-ins.",
587
+ "status": "delivered",
588
+ "planned": null,
589
+ "gate": [
590
+ {"cmd": ["jos", "serve", "--mcp", "--root", "{work}"], "stdin": "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}\n{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"read_file\",\"arguments\":{\"path\":\"examples/01-hello.jos\"}}}\n{\"jsonrpc\":\"2.0\",\"id\":3,\"method\":\"tools/call\",\"params\":{\"name\":\"write_file\",\"arguments\":{\"path\":\"pwned.txt\",\"content\":\"x\"}}}\n{\"jsonrpc\":\"2.0\",\"id\":4,\"method\":\"tools/call\",\"params\":{\"name\":\"read_file\",\"arguments\":{\"path\":\"{home}/.jos/secrets/.master\"}}}\n", "expect": {"code": 0, "stdout_includes": ["read_file", "tour.hello", "Access denied"], "not_includes": ["\"name\":\"write_file\"", "\"name\":\"run_command\""], "files_absent": ["pwned.txt"]}}
591
+ ]
592
+ },
593
+ {
594
+ "id": "exit-codes",
595
+ "feature": "Exit codes",
596
+ "source": "T1 #24",
597
+ "intent": "A script can tell done, not done, invalid, blocked, over budget, unexecutable and usage errors apart.",
598
+ "v4": "0 and 1 only; --insecure and --verbose existed.",
599
+ "v5": "0 done, 1 not done, 2 invalid, 3 blocked, 4 budget, 5 unexecutable, 124 time, 137 output, 64 usage, 70 host error; --insecure and --verbose are 64.",
600
+ "status": "delivered-differently",
601
+ "planned": null,
602
+ "gate": [
603
+ {"cmd": ["jos", "run"], "expect": {"code": 64}},
604
+ {"cmd": ["jos", "run", "minimal-13.jos", "--insecure"], "expect": {"code": 64}},
605
+ {"cmd": ["jos", "run", "minimal-13.jos", "--verbose"], "expect": {"code": 64}},
606
+ {"cmd": ["jos", "run", "object-step.jos"], "expect": {"code": 2}},
607
+ {"cmd": ["jos", "run", "examples/01-hello.jos", "--input", "{not json"], "expect": {"code": 64}}
608
+ ]
609
+ },
610
+ {
611
+ "id": "minimal-valid-artifact",
612
+ "feature": "4.1.0 Minimal Valid Artifact",
613
+ "source": "T1 #28",
614
+ "intent": "The 13-key Minimal Valid Artifact of the 4.1.0 page, copied unchanged, validates and runs.",
615
+ "v4": "validate checked the 13 keys; run printed Hello!.",
616
+ "v5": "Read as 0.0.7 and normalized in memory to a 2.0 flow: validate 0, run prints Hello! (0).",
617
+ "status": "delivered",
618
+ "planned": null,
619
+ "gate": [
620
+ {"cmd": ["jos", "validate", "minimal-13.jos"], "expect": {"code": 0, "stdout_includes": ["0.0.7"]}},
621
+ {"cmd": ["jos", "run", "minimal-13.jos"], "expect": {"code": 0, "stdout_includes": ["Hello!"], "stderr_includes": ["✓ Intention met"]}}
622
+ ]
623
+ },
624
+ {
625
+ "id": "read-0.0.7",
626
+ "feature": "Read 0.0.7",
627
+ "source": "T1 #11, #25; T4 #19",
628
+ "intent": "Documents written for 4.1.0 keep working, and validation checks the format, not a fixed list of keys.",
629
+ "v4": "0.0.7 was the only format; validate required 13 keys (a document with 7 of them failed, exit 1).",
630
+ "v5": "Only jos and meta are required; 0.0.7 with text steps is normalized to a 2.0 flow and runs; object steps and, since jos-core 2.0.0-rc.8, type: prompt steps are invalid (2).",
631
+ "status": "delivered-differently",
632
+ "planned": null,
633
+ "gate": [
634
+ {"cmd": ["jos", "validate", "only-7-keys.jos"], "expect": {"code": 0}},
635
+ {"cmd": ["jos", "run", "only-7-keys.jos"], "expect": {"code": 0, "stdout_includes": ["Hello!"]}},
636
+ {"cmd": ["jos", "validate", "object-step.jos"], "expect": {"code": 2, "stdout_includes": ["/orchestration/flows/main/steps/0: type"]}},
637
+ {"cmd": ["jos", "validate", "prompt-step-0.0.7.jos"], "expect": {"code": 2, "stdout_includes": ["/orchestration/definitions/greet/type: enum"]}}
638
+ ]
639
+ },
640
+ {
641
+ "id": "integrity-ref",
642
+ "feature": "0.0.7 integrity_ref",
643
+ "source": "T1 #8; PROMESAS point 2; PLAN-INTEGRITY-REF-0.0.7",
644
+ "intent": "A 0.0.7 document sealed by a separate manifest (security.integrity_ref) is refused when the manifest does not match.",
645
+ "v4": "Checked the file's sha256 against the manifest: Hash mismatch, exit 1.",
646
+ "v5": "Verified again by jos-core 2.0.0-rc.8 before anything starts, --dry-run too (jos run hands it the octets it read): a match runs (0), a changed document is blocked (3, integrity_ref: ...); stricter on paths than 4.1.0 (relative, inside the document's folder, no links); jos migrate reseals it as integrity.hash.",
647
+ "status": "delivered",
648
+ "planned": null,
649
+ "gate": [
650
+ {"cmd": ["jos", "run", "sealed-0.0.7/ref.jos"], "expect": {"code": 0, "stdout_includes": ["Hello from ref"], "stderr_includes": ["Integrity: ✓ verified by ./ref.jos.sig.json", "Intention met"]}},
651
+ {"cmd": ["jos", "run", "tampered-0.0.7/ref.jos"], "expect": {"code": 3, "stderr_includes": ["integrity_ref: declared hash does not match the document octets"], "not_includes": ["PWNED\n"]}},
652
+ {"cmd": ["jos", "run", "tampered-0.0.7/ref.jos", "--dry-run"], "expect": {"code": 3, "stderr_includes": ["Dry run refused (code 3: blocked)"]}},
653
+ {"cmd": ["jos", "validate", "sealed-0.0.7/ref.jos"], "expect": {"code": 0, "stdout_includes": ["integrity_ref present: verified on run"]}},
654
+ {"cmd": ["jos", "migrate", "sealed-0.0.7/ref.jos"], "expect": {"code": 0, "files_present": ["sealed-0.0.7/ref.v2.jos"]}},
655
+ {"cmd": ["jos", "run", "sealed-0.0.7/ref.v2.jos"], "expect": {"code": 0, "stdout_includes": ["Hello from ref"], "not_includes": ["Integrity:"]}}
656
+ ]
657
+ },
658
+ {
659
+ "id": "migrate",
660
+ "feature": "jos migrate",
661
+ "readme": "Reseal a 4.1.0 document (0.0.7 with `security.integrity_ref`) as 2.0, only if it verifies",
662
+ "source": "PLAN-INTEGRITY-REF-0.0.7 §5 (D7)",
663
+ "intent": "A document sealed for 4.1.0 can move to the 2.0 seal without a window where it is unprotected, and a changed one cannot be laundered.",
664
+ "v4": "Not applicable (0.0.7 was the only format).",
665
+ "v5": "jos migrate verifies the manifest as run does; a mismatch is 3 and nothing is written; otherwise it writes <name>.v2.jos: the 2.0 normalization, integrity_ref removed, security.permissions moved to x-legacy-permissions, integrity.hash of the result; the result validates, runs, and a second migrate says already 2.0. 1.x documents: 64.",
666
+ "status": "delivered",
667
+ "planned": null,
668
+ "gate": [
669
+ {"cmd": ["jos", "migrate", "tampered-0.0.7/ref.jos"], "expect": {"code": 3, "stderr_includes": ["integrity_ref: declared hash does not match the document octets", "nothing written"], "files_absent": ["tampered-0.0.7/ref.v2.jos"]}},
670
+ {"cmd": ["jos", "migrate", "sealed-0.0.7/ref.jos"], "expect": {"code": 0, "stderr_includes": ["integrity_ref verified", "security.permissions moved to security.x-legacy-permissions", "Self-check"], "files_present": ["sealed-0.0.7/ref.v2.jos"]}},
671
+ {"cmd": ["jos", "validate", "sealed-0.0.7/ref.v2.jos"], "expect": {"code": 0, "stdout_includes": ["(input 2.0 2.0.0)"]}},
672
+ {"cmd": ["jos", "run", "sealed-0.0.7/ref.v2.jos"], "expect": {"code": 0, "stdout_includes": ["Hello from ref"]}},
673
+ {"cmd": ["jos", "migrate", "sealed-0.0.7/ref.v2.jos"], "expect": {"code": 0, "stderr_includes": ["is already 2.0"], "files_absent": ["sealed-0.0.7/ref.v2.v2.jos"]}},
674
+ {"cmd": ["jos", "migrate", "examples/01-hello.jos"], "expect": {"code": 0, "stderr_includes": ["is already 2.0"]}},
675
+ {"cmd": ["jos", "migrate", "shell-1.0.0.jos"], "expect": {"code": 64, "stderr_includes": ["is a 1.0.0 document: nothing to reseal"]}}
676
+ ]
677
+ },
678
+ {
679
+ "id": "read-0.0.7-init",
680
+ "feature": "0.0.7 written by jos init of 4.1.0",
681
+ "source": "kernel CHANGELOG 2.0.0-rc.8 (members the schema does not accept inside 0.0.7 objects move to x-legacy-<member>)",
682
+ "intent": "The document jos init of 4.1.0 wrote (with orchestration.state and its .sig.json) validates and runs.",
683
+ "v4": "jos init wrote it with orchestration.state { current_status: idle }; run verified the manifest and printed Hello from <name>.",
684
+ "v5": "Valid and runs under jos-core 2.0.0-rc.8: orchestration.state is kept as orchestration.x-legacy-state (never dropped), the manifest named by security.integrity_ref is verified before any step, and jos migrate writes the 2.0 document with integrity.hash.",
685
+ "status": "delivered",
686
+ "planned": null,
687
+ "gate": [
688
+ {"cmd": ["jos", "validate", "init-4.1.0/ref.jos"], "expect": {"code": 0, "stdout_includes": ["normalized from the 0.0.7 legacy form", "VALIDATION PASSED"]}},
689
+ {"cmd": ["jos", "run", "init-4.1.0/ref.jos"], "expect": {"code": 0, "stdout_includes": ["Hello from ref"], "stderr_includes": ["Intention met"]}},
690
+ {"cmd": ["jos", "migrate", "init-4.1.0/ref.jos"], "expect": {"code": 0, "files_present": ["init-4.1.0/ref.v2.jos"]}}
691
+ ]
692
+ },
693
+ {
694
+ "id": "read-1.x",
695
+ "feature": "Read 1.0.0 and 1.1.0",
696
+ "source": "T3 #1-#13, #16; T4 #18, #19",
697
+ "intent": "Every valid 1.0.0 document and the 1.1.0 short form are read unchanged.",
698
+ "v4": "4.1.0 read 0.0.7 only.",
699
+ "v5": "Normalized in memory to 2.0 (the file is not rewritten) and run by jos-core; four 1.0.0 holes below.",
700
+ "status": "delivered",
701
+ "planned": null,
702
+ "gate": [
703
+ {"cmd": ["jos", "run", "shell-1.0.0.jos"], "expect": {"code": 0, "stdout_includes": ["hi"]}},
704
+ {"cmd": ["jos", "run", "short-1.1.0.jos"], "expect": {"code": 0, "stdout_includes": ["hi"]}}
705
+ ]
706
+ },
707
+ {
708
+ "id": "compat-1.0.0-execution-flow",
709
+ "feature": "1.0.0 execution.flow",
710
+ "source": "T3 #14; T4 #18",
711
+ "intent": "A 1.0.0 flow written as execution.flow: [{invoke}] (SPEC §6.8 alias of orchestration.flows.main) runs.",
712
+ "v4": "Not applicable (0.0.7 only).",
713
+ "v5": "Runs since jos-core 2.0.0-rc.8: each invoke is a definition of the document or a use reference (here resolved from --library); rc.7 refused it (2).",
714
+ "status": "delivered",
715
+ "planned": null,
716
+ "gate": [
717
+ {"cmd": ["jos", "validate", "invoke-1.0.0.jos"], "expect": {"code": 0, "stdout_includes": ["VALIDATION PASSED"]}},
718
+ {"cmd": ["jos", "run", "invoke-1.0.0.jos", "--library", "lib-1.0.0"], "expect": {"code": 0, "stdout_includes": ["child"], "stderr_includes": ["child/c ✓ code 0", "Intention met"]}}
719
+ ]
720
+ },
721
+ {
722
+ "id": "compat-1.0.0-budget-in-flow",
723
+ "feature": "1.0.0 execution.budget in a flow",
724
+ "source": "T3 #15; T4 #7",
725
+ "intent": "execution.budget (alias of guardrails.limit) stops a flow past max_duration.",
726
+ "v4": "Not applicable (0.0.7 only).",
727
+ "v5": "Applied in flows too since jos-core 2.0.0-rc.8 (the minimum with guardrails.limit): a 1 s budget stops a 2 s step (124); rc.7 let it finish (0).",
728
+ "status": "delivered",
729
+ "planned": null,
730
+ "gate": [
731
+ {"cmd": ["jos", "run", "budget-1.0.0.jos"], "expect": {"code": 124, "stderr_includes": ["s ✖ code 124", "Intention NOT met (code 124: timeout)"], "not_includes": ["slept"]}}
732
+ ]
733
+ },
734
+ {
735
+ "id": "compat-1.0.0-after-gates",
736
+ "feature": "1.0.0 gates keyed after-<step>",
737
+ "source": "T3 #19",
738
+ "intent": "A gate keyed after-<step>, the form of the 1.0.0 text, is evaluated after that step.",
739
+ "v4": "Not applicable (0.0.7 only).",
740
+ "v5": "Since jos-core 2.0.0-rc.8 after-<step> is the gate of <step> when no step has that name: a gate after-a that fails stops the flow after a (1); rc.7 refused the run (2).",
741
+ "status": "delivered",
742
+ "planned": null,
743
+ "gate": [
744
+ {"cmd": ["jos", "validate", "gate3-1.0.0.jos"], "expect": {"code": 0}},
745
+ {"cmd": ["jos", "run", "gate3-1.0.0.jos"], "expect": {"code": 1, "stderr_includes": ["a ✓ code 0", "gate failed on \"a\""], "not_includes": ["b ✓ code 0"]}}
746
+ ]
747
+ },
748
+ {
749
+ "id": "compat-1.0.0-seal",
750
+ "feature": "1.0.0 seal computed with the hash field empty",
751
+ "source": "T3 #26; T4 #30",
752
+ "intent": "A 1.0.0 seal computed as its text says (hash field empty) verifies.",
753
+ "v4": "Not applicable (0.0.7 only).",
754
+ "v5": "Since jos-core 2.0.0-rc.8 a 1.0.x document without integrity.signature may carry the 1.0.0 seal (only hash empty) or the 2.0 one; it runs (0) and a changed document is still blocked (3). rc.7 blocked the 1.0.0 seal (3).",
755
+ "status": "delivered",
756
+ "planned": null,
757
+ "gate": [
758
+ {"cmd": ["jos", "run", "sealed-ok-1.0.0.jos"], "expect": {"code": 0, "stdout_includes": ["hi"], "stderr_includes": ["Intention met"]}},
759
+ {"cmd": ["jos", "run", "sealed-tampered-1.0.0.jos"], "expect": {"code": 3, "stderr_includes": ["integrity"], "not_includes": ["tampered\n"]}}
760
+ ]
761
+ },
762
+ {
763
+ "id": "language-tags",
764
+ "feature": "BCP 47 language tags",
765
+ "source": "T4 #21",
766
+ "intent": "Language tags are BCP 47 with a hyphen (en-US, not en_US), as the IANA text says.",
767
+ "v4": "Not checked (the 1.0.0 schema even shows en_US).",
768
+ "v5": "Not enforced by design (decision 2026-10-21): IANA.md says language tags SHOULD be BCP 47 tags with a hyphen; en_US validates.",
769
+ "status": "delivered-differently",
770
+ "planned": null,
771
+ "gate": [
772
+ {"cmd": ["jos", "validate", "lang-underscore.jos"], "expect": {"code": 0}}
773
+ ]
774
+ },
775
+ {
776
+ "id": "engine-llm",
777
+ "feature": "LLM engine and judged criteria",
778
+ "readme": "`engine: llm` and `judge` / `json_schema` criteria",
779
+ "source": "T1 #12, #13, #14",
780
+ "intent": "A step or a criterion answered by a model, declared in the document.",
781
+ "v4": "`jos llm` with the native (josfox.cloud) and ollama adapters; no Gemini, OpenAI or Anthropic code.",
782
+ "v5": "Valid documents, refused at run with code 5, never faked; providers today only as shell steps (10–13).",
783
+ "status": "planned",
784
+ "planned": "2.1",
785
+ "gate": [
786
+ {"cmd": ["jos", "validate", "engine-llm.jos"], "expect": {"code": 0}},
787
+ {"cmd": ["jos", "run", "engine-llm.jos"], "expect": {"code": 5, "stderr_includes": ["llm"]}},
788
+ {"cmd": ["jos", "run", "judge.jos"], "expect": {"code": 5, "stderr_includes": ["judge"]}}
789
+ ]
790
+ },
791
+ {
792
+ "id": "signatures",
793
+ "feature": "Signatures",
794
+ "readme": "Signatures (`integrity.signature`, `security.tier: privileged`)",
795
+ "source": "T1 #7; T4 #11",
796
+ "intent": "A document is signed and the signature is verified before it runs.",
797
+ "v4": "No signatures; \"cryptographically verifiable\" meant a sha256 sidecar.",
798
+ "v5": "Not verified yet: security.tier privileged is refused (5).",
799
+ "status": "planned",
800
+ "planned": "2.1",
801
+ "gate": [
802
+ {"cmd": ["jos", "run", "tier-privileged-unsigned.jos"], "expect": {"code": 5, "stderr_includes": ["signature"], "not_includes": ["ok\n"]}}
803
+ ]
804
+ },
805
+ {
806
+ "id": "crystals",
807
+ "feature": "Cache, crystals, store",
808
+ "readme": "Cache, crystals (`kind: crystal`), store",
809
+ "source": "T1 #27",
810
+ "intent": "Serve a sealed record of a past run instead of running again, and share pieces through a store.",
811
+ "v4": "None.",
812
+ "v5": "A crystal validates; running one is code 5; no cache and no store.",
813
+ "status": "planned",
814
+ "planned": "2.1",
815
+ "gate": [
816
+ {"cmd": ["jos", "validate", "crystal.jos"], "expect": {"code": 0}},
817
+ {"cmd": ["jos", "run", "crystal.jos"], "expect": {"code": 5}}
818
+ ]
819
+ },
820
+ {
821
+ "id": "get",
822
+ "feature": "jos get",
823
+ "readme": "`jos get` (fetch a document from a registry)",
824
+ "source": "T1 #27",
825
+ "intent": "Fetch a document from a registry, verified before it is written.",
826
+ "v4": "`jos get` wrote to a path built from meta.name (path traversal) and did not verify the download.",
827
+ "v5": "Frozen: exit 1 with the reason; nothing is downloaded.",
828
+ "status": "planned",
829
+ "planned": "2.1",
830
+ "gate": [
831
+ {"cmd": ["jos", "get", "foo"], "expect": {"code": 1, "stderr_includes": ["frozen"]}}
832
+ ]
833
+ },
834
+ {
835
+ "id": "learning",
836
+ "feature": "Learning",
837
+ "readme": "Learning (`adaptive_ai` of 0.0.7 is kept as `x-legacy-adaptive_ai` and not read)",
838
+ "source": "T1 #6, #15",
839
+ "intent": "Adapt from feedback (\"adaptive\", the orchestrator).",
840
+ "v4": "Promised on the page; there was no learning code.",
841
+ "v5": "None: 0.0.7 adaptive_ai is kept as x-legacy-adaptive_ai and not read.",
842
+ "status": "planned",
843
+ "planned": "2.1",
844
+ "gate": [
845
+ {"cmd": ["jos", "validate", "minimal-13.jos", "--json"], "expect": {"code": 0, "stdout_includes": ["x-legacy-adaptive_ai"]}}
846
+ ]
847
+ },
848
+ {
849
+ "id": "serve-http",
850
+ "feature": "jos serve as an HTTP explorer",
851
+ "readme": "`jos serve` as an HTTP explorer",
852
+ "source": "T1 #26",
853
+ "intent": "A local dashboard of documents and runs.",
854
+ "v4": "`jos serve` explored files on every interface and exposed ~/.jos/secrets from the home folder.",
855
+ "v5": "Off: exit 2; `jos serve --mcp` works; a runs page is 14-serve.jos.",
856
+ "status": "planned",
857
+ "planned": "F3",
858
+ "gate": [
859
+ {"cmd": ["jos", "serve"], "expect": {"code": 2, "stderr_includes": ["--mcp"]}}
860
+ ]
861
+ },
862
+ {
863
+ "id": "frozen-commands",
864
+ "feature": "jos llm, prompts, repo, add",
865
+ "readme": "`jos llm`, `jos prompts`, `jos repo`, `jos add`",
866
+ "source": "T1 #12, #14, #17",
867
+ "intent": "Turn intentions into prompts, improve prompts, manage repositories, edit flows from the command line.",
868
+ "v4": "llm and prompts overwrote the .jos with unvalidated model output; repo served get; add edited 0.0.7 flows.",
869
+ "v5": "Frozen: each exits 1 and names its README; flows are written in the document.",
870
+ "status": "dropped",
871
+ "planned": null,
872
+ "gate": [
873
+ {"cmd": ["jos", "llm", "hello.jos"], "expect": {"code": 1, "stderr_includes": ["frozen"]}},
874
+ {"cmd": ["jos", "prompts"], "expect": {"code": 1, "stderr_includes": ["frozen"]}},
875
+ {"cmd": ["jos", "repo"], "expect": {"code": 1, "stderr_includes": ["frozen"]}},
876
+ {"cmd": ["jos", "add"], "expect": {"code": 1, "stderr_includes": ["frozen"]}}
877
+ ]
878
+ },
879
+ {
880
+ "id": "older-clis",
881
+ "feature": "josctl and @josfox/jos-cli",
882
+ "readme": "`josctl`, `@josfox/jos-cli`",
883
+ "source": "T1 #22, #23",
884
+ "intent": "Companion command lines installed next to jos.",
885
+ "v4": "The page told users to install josctl and @josfox/jos-cli.",
886
+ "v5": "Separate older packages, not part of 5.0 and not tested here; `jos run --flow <name>`, which josctl always passes, is accepted again.",
887
+ "status": "dropped",
888
+ "planned": null,
889
+ "gate": [
890
+ {"cmd": ["jos", "run", "minimal-13.jos", "--flow", "main"], "expect": {"code": 0, "stdout_includes": ["Hello!"]}}
891
+ ]
892
+ }
893
+ ]
894
+ }