Commit 009807b
docs(runtime): add bilingual YAML field reference, sample, CI gate notes
Three documentation gaps surfaced while landing the PR4-6 runtime work:
1. The YAML schema chapter in docs/{en,zh}/runtime.md only pointed at an
external design doc (projects/.../runtime-cli-design.md), which is
useless to end users reading the published reference.
2. There was no copy-pasteable starter spec to pair with `ar runtime apply`.
3. AGENTS.md only mentioned `make lint`; the actual CI gate also runs
ruff format --check, mypy, and the 95%-coverage pytest job — local
contributors had no signal that those were blocking.
Changes:
- docs/{en,zh}/runtime-yaml.md (new): field-level reference covering
every key the parser accepts. Sections for metadata, container,
registryConfig, resources, protocol, network, healthCheck, log, env,
nas, ossMount, endpoints/scaling; CLI auto-injection rules
(system_tags, artifact_type, default endpoint); exhaustive validation
table mirroring agentruntime_yaml.py; runnable minimal / production
(ACREE + private network + NAS + canary) / custom-registry examples;
YAML -> SDK field map. EN/ZH mirrored 1:1 per AGENTS.md doc parity.
diskSize is documented as MB (not GB, which the design doc had wrong).
- docs/{en,zh}/runtime.md: replace the external design-doc pointer with
a link to runtime-yaml.md.
- docs/{en,zh}/index.md: add the YAML reference next to runtime.md in
the command-groups table.
- agentruntime.yaml (new, repo root): runnable starter spec mirroring
superagent.yaml's placement. Renders cleanly via
`ar runtime render -f agentruntime.yaml`. Commented-out blocks point
at the common optional knobs (VPC, SLS log, scaling).
- AGENTS.md:
- "CI Lint Gate" section listing all four blocking checks (ruff check,
ruff format --check, mypy, pytest --cov-fail-under=95) with the
local commands and Make targets that reproduce CI.
- Commands block updated with make format-check, `mypy src/agentrun_cli`,
and `make coverage`.
- Docs layout diagram updated to include runtime.md / runtime-yaml.md.
Signed-off-by: Sodawyx <sodawyx@126.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sodawyx <sodawyx@126.com>1 parent 9e2a966 commit 009807b
8 files changed
Lines changed: 957 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
41 | 45 | | |
42 | 46 | | |
43 | 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 | + | |
44 | 84 | | |
45 | 85 | | |
46 | 86 | | |
| |||
83 | 123 | | |
84 | 124 | | |
85 | 125 | | |
| 126 | + | |
| 127 | + | |
86 | 128 | | |
87 | 129 | | |
88 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
0 commit comments