commandagi 0.6.8__tar.gz → 0.6.9__tar.gz

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 (155) hide show
  1. {commandagi-0.6.8 → commandagi-0.6.9}/CHANGELOG.md +318 -1
  2. {commandagi-0.6.8 → commandagi-0.6.9}/PKG-INFO +29 -13
  3. {commandagi-0.6.8 → commandagi-0.6.9}/README.md +28 -12
  4. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/__init__.py +5 -4
  5. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/_generated.py +9 -9
  6. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/client.py +4 -3
  7. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/__init__.py +1 -1
  8. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/agents.py +38 -12
  9. commandagi-0.6.9/commandagi/design/brands.py +115 -0
  10. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/business.py +87 -8
  11. commandagi-0.6.9/commandagi/design/business_equity.py +32 -0
  12. commandagi-0.6.9/commandagi/design/business_finance.py +46 -0
  13. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/cad.py +56 -12
  14. commandagi-0.6.9/commandagi/design/carts.py +88 -0
  15. commandagi-0.6.9/commandagi/design/classification.py +139 -0
  16. commandagi-0.6.9/commandagi/design/company_deals.py +71 -0
  17. commandagi-0.6.9/commandagi/design/company_formation.py +39 -0
  18. commandagi-0.6.9/commandagi/design/company_governance.py +66 -0
  19. commandagi-0.6.9/commandagi/design/company_profile.py +48 -0
  20. commandagi-0.6.9/commandagi/design/connectors.py +310 -0
  21. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/eda.py +32 -14
  22. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/element.py +4 -1
  23. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/evals.py +21 -1
  24. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/fab.py +3 -3
  25. commandagi-0.6.9/commandagi/design/factory.py +170 -0
  26. commandagi-0.6.9/commandagi/design/facts.py +45 -0
  27. commandagi-0.6.9/commandagi/design/flows.py +276 -0
  28. commandagi-0.6.9/commandagi/design/infra.py +287 -0
  29. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/ir.py +10 -0
  30. commandagi-0.6.9/commandagi/design/logistics.py +304 -0
  31. commandagi-0.6.9/commandagi/design/market.py +242 -0
  32. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/media.py +480 -87
  33. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/office.py +73 -9
  34. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/ontology.py +124 -23
  35. commandagi-0.6.9/commandagi/design/opportunities.py +392 -0
  36. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/part_fields.py +115 -21
  37. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/pcb.py +183 -27
  38. commandagi-0.6.9/commandagi/design/people_ops.py +50 -0
  39. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/postal.py +12 -5
  40. commandagi-0.6.9/commandagi/design/products.py +278 -0
  41. commandagi-0.6.9/commandagi/design/records.py +273 -0
  42. commandagi-0.6.9/commandagi/design/routing.py +39 -0
  43. commandagi-0.6.9/commandagi/design/scene_agents.py +64 -0
  44. commandagi-0.6.9/commandagi/design/scene_people.py +415 -0
  45. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/schematic.py +63 -32
  46. commandagi-0.6.9/commandagi/design/scouts.py +529 -0
  47. commandagi-0.6.9/commandagi/design/scripts.py +511 -0
  48. commandagi-0.6.9/commandagi/design/skills.py +127 -0
  49. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/source.py +12 -3
  50. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/standards.py +1 -1
  51. commandagi-0.6.9/commandagi/design/standards_data.py +14 -0
  52. commandagi-0.6.9/commandagi/design/storefronts.py +151 -0
  53. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/study.py +34 -2
  54. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/systems.py +77 -15
  55. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/tasks.py +3 -3
  56. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/threed.py +124 -23
  57. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/threed_elements.py +871 -219
  58. commandagi-0.6.9/commandagi/design/threed_schema.py +4 -0
  59. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/tolerances.py +1 -1
  60. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/twod.py +77 -30
  61. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/kernel.py +4 -3
  62. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi-sdk.schema.json +26 -27
  63. commandagi-0.6.9/examples/drive_a_sim.py +22 -0
  64. commandagi-0.6.9/tests/company_deals.json +55 -0
  65. commandagi-0.6.9/tests/company_formation.json +34 -0
  66. commandagi-0.6.9/tests/company_governance.json +670 -0
  67. commandagi-0.6.9/tests/company_profile.json +51 -0
  68. commandagi-0.6.9/tests/contacts.json +9 -0
  69. commandagi-0.6.9/tests/factory_operations.json +42 -0
  70. commandagi-0.6.9/tests/kernel_specs.json +1247 -0
  71. commandagi-0.6.9/tests/materials.json +199 -0
  72. commandagi-0.6.9/tests/pattern_operation.json +19 -0
  73. commandagi-0.6.9/tests/scene_agents.json +21 -0
  74. commandagi-0.6.9/tests/scene_people.json +147 -0
  75. commandagi-0.6.9/tests/script_wake.json +31 -0
  76. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_agents.py +26 -4
  77. commandagi-0.6.9/tests/test_brands.py +64 -0
  78. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_business.py +33 -2
  79. commandagi-0.6.9/tests/test_business_finance.py +32 -0
  80. commandagi-0.6.9/tests/test_carts.py +43 -0
  81. commandagi-0.6.9/tests/test_company_deals.py +48 -0
  82. commandagi-0.6.9/tests/test_company_formation.py +32 -0
  83. commandagi-0.6.9/tests/test_company_governance.py +38 -0
  84. commandagi-0.6.9/tests/test_company_profile.py +30 -0
  85. commandagi-0.6.9/tests/test_connectors.py +110 -0
  86. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_design.py +67 -1
  87. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_evals.py +9 -0
  88. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_fab.py +5 -5
  89. commandagi-0.6.9/tests/test_factory.py +41 -0
  90. commandagi-0.6.9/tests/test_flows.py +113 -0
  91. commandagi-0.6.9/tests/test_infra.py +110 -0
  92. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_logistics.py +79 -1
  93. commandagi-0.6.9/tests/test_logistics_plan.py +118 -0
  94. commandagi-0.6.9/tests/test_market.py +169 -0
  95. commandagi-0.6.9/tests/test_media.py +352 -0
  96. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_mounts.py +1 -1
  97. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_office.py +37 -0
  98. commandagi-0.6.9/tests/test_ontology.py +230 -0
  99. commandagi-0.6.9/tests/test_opportunities.py +112 -0
  100. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_pcb.py +106 -4
  101. commandagi-0.6.9/tests/test_people_ops.py +51 -0
  102. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_postal.py +7 -0
  103. commandagi-0.6.9/tests/test_products.py +104 -0
  104. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_records.py +51 -1
  105. commandagi-0.6.9/tests/test_routing.py +25 -0
  106. commandagi-0.6.9/tests/test_scene_agents.py +33 -0
  107. commandagi-0.6.9/tests/test_scene_people.py +37 -0
  108. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_schematic.py +61 -5
  109. commandagi-0.6.9/tests/test_scouts.py +226 -0
  110. commandagi-0.6.9/tests/test_scripts.py +207 -0
  111. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_sdk.py +10 -5
  112. commandagi-0.6.9/tests/test_skills.py +63 -0
  113. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_standards.py +1 -1
  114. commandagi-0.6.9/tests/test_storefronts.py +68 -0
  115. commandagi-0.6.9/tests/test_study.py +127 -0
  116. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_systems.py +43 -5
  117. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_testplans.py +1 -1
  118. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_threed.py +227 -13
  119. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_twod.py +80 -5
  120. commandagi-0.6.8/commandagi/design/flows.py +0 -155
  121. commandagi-0.6.8/commandagi/design/monitors.py +0 -329
  122. commandagi-0.6.8/commandagi/design/records.py +0 -124
  123. commandagi-0.6.8/commandagi/design/standards_data.py +0 -14
  124. commandagi-0.6.8/commandagi/design/threed_schema.py +0 -4
  125. commandagi-0.6.8/examples/drive_a_sim.py +0 -19
  126. commandagi-0.6.8/tests/test_flows.py +0 -55
  127. commandagi-0.6.8/tests/test_media.py +0 -194
  128. commandagi-0.6.8/tests/test_monitors.py +0 -140
  129. commandagi-0.6.8/tests/test_ontology.py +0 -133
  130. commandagi-0.6.8/tests/test_study.py +0 -67
  131. {commandagi-0.6.8 → commandagi-0.6.9}/.gitignore +0 -0
  132. {commandagi-0.6.8 → commandagi-0.6.9}/LICENSE +0 -0
  133. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/cadquery.py +0 -0
  134. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/circuit_checks.py +0 -0
  135. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/documents.py +0 -0
  136. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/firmware.py +0 -0
  137. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/graph.py +0 -0
  138. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/mounts.py +0 -0
  139. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/pdf.py +0 -0
  140. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/schema.py +0 -0
  141. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/solids.py +0 -0
  142. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/testplans.py +0 -0
  143. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/tsx.py +0 -0
  144. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/twod_schema.py +0 -0
  145. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/design/workbook_schema.py +0 -0
  146. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/gym_env.py +0 -0
  147. {commandagi-0.6.8 → commandagi-0.6.9}/commandagi/lerobot.py +0 -0
  148. {commandagi-0.6.8 → commandagi-0.6.9}/pyproject.toml +0 -0
  149. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_kernel.py +0 -0
  150. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_pdf.py +0 -0
  151. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_source.py +0 -0
  152. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_tasks.py +0 -0
  153. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_tolerances.py +0 -0
  154. {commandagi-0.6.8 → commandagi-0.6.9}/tests/test_tsx.py +0 -0
  155. {commandagi-0.6.8 → commandagi-0.6.9}/uv.lock +0 -0
@@ -4,6 +4,313 @@ One entry for each release. A release is the tag `v<version>` in this repository
4
4
  TypeScript and Rust SDKs carry the same version number. A version promises nothing about the next one (README
5
5
  § Versions): read this file before you change the version you pin.
6
6
 
7
+ ## 0.6.9 (2026-11-23)
8
+
9
+ Added
10
+
11
+ - Connectors: an entry's `picture` (the source's own picture of it: a url, absolute or under the base, on a declared
12
+ host; its files inherit it), and the template filter `|fit:<px>` (of a list of images, the narrowest at least px wide).
13
+ - 3D documents: `<replaceFace face surface>`; `<trimSurface toolBody>` (trim by another surface; `tool` is now
14
+ optional); `<untrimSurface edges>` (fill the opening an open edge bounds).
15
+ - 3D documents: surfaces (`surface` on `<extrude>`, `<revolve>`, `<sweep>`, `<loft>`; `<trimSurface>`,
16
+ `<untrimSurface>`, `<extendSurface>`, `<stitch>`, `<offsetSurface>`; `<thicken bodies>`), construction geometry
17
+ (`<datumPlane method>` with midplane, two edges, axis and point, three points, tangent, along an edge and
18
+ perpendicular; `<datumAxis>`; `<datumPoint>`; an axis `{ type: "datum", axis }` and a point `PointRef`), a tapped
19
+ hole (`<hole style="tapped" thread threadDepth threadKind>`), and the history's groups and rollback marker on the root
20
+ (`<part groups rollback>`).
21
+ - `commandagi.design.scene_agents`: the agents a design's scene attaches to its robots or their joints:
22
+ `check_scene_agents`, the same as the TypeScript SDK's `scene-agents.ts`.
23
+ - `commandagi.design.scene_people`: a person in a scene: the human avatar's look, the humanoid policy, the goal, motors and assist
24
+ commands, `HUMANOID_JOINTS` and their checks, the same as the TypeScript SDK's `scene-people.ts`.
25
+ - `commandagi.design.factory`: a station's `energy_j` and `cell`, as the TypeScript SDK's.
26
+ - `commandagi.design.factory`: a factory in a design's scene, the `flow` system: `check_flow_system` and `machines_for`,
27
+ the same as the TypeScript SDK's `factory-flow.ts`.
28
+ - `Storefront(banner=…)` and `Company(banner=…)`: the banner of the profile, a ref to a picture (relative to the file, or
29
+ an address) or a colour (`#1f6feb`). A file that names none keeps the colour its name gives.
30
+ - `Storefront(checkout=…)`: who completes a relisted purchase, `agent` (the holder buys or books it for the person, and its price holds)
31
+ or `seller` (the person is sent to the seller's own checkout; no hold). Any other value is refused.
32
+
33
+ Changed (a company file that wrote `Compliance(industries=…)` needs an edit)
34
+
35
+ - Classification (`classification.py`; CommandAGI's docs/formats.md § classification): `Company`, a company's `Product`
36
+ and a `product` take `codes` (standard codes as `scheme:code`: business schemes naics, nace, isic, sic, anzsic, jsic;
37
+ product schemes unspsc, gs1, hs) and `tags` (free words, lower case, trimmed). A code of an unknown scheme or out of its
38
+ scheme's grammar is refused by name; a product takes product schemes only. `Compliance(industries=…)` is removed: write the
39
+ codes on the company (`Company(..., codes=["naics:541370"])`); the register reads the company's business codes.
40
+
41
+ Changed (a song written before this needs an edit)
42
+
43
+ - The sound kernel's presets `nylonGuitar`, `steelGuitar`, `electricBass`, `harp`, `grandPiano`, `pianoFelt`, `violin`, `viola`, `cello`, `doubleBass`, `marimba`, `vibraphone`, `glockenspiel`, `flute`, `clarinet`, `saxophone`, `trumpet`, `electricPiano` and `pipeOrgan` are tones measured on real instruments, of the kind `measured`. A song that names
44
+ one with the kind it had (`instrument(kind="string", preset="violin")`) is refused by name: write `instrument(kind="measured", preset="violin")`, or the preset alone
45
+ (`instrument(preset="violin")`). The fields of the kinds they were (`bow`, `hardness`, `bore`, `operators` …) are not theirs; the fields
46
+ of `measured` are `brightness` (dB an octave), and factors on what was measured: `attack`, `decay`, `release`,
47
+ `noise`, `vibrato`.
48
+ - `voiceRemove()` and `voiceIsolate()` take `method` `"model"` (the default: a trained separation model, where the place that runs the song has
49
+ it) or `"classical"` (it was `"combined"`); `"center"`, `"melody"` and `"repet"` stay. Where no model runs, `"model"`
50
+ is the classical method.
51
+ - A song's meter is `song(meter=...)` (it was `song(time_signature=...)`); `time_signature_of` is `meter_of`. A meter may be written in groups (`"2+2+3/8"`).
52
+ - A track's instrument is `instrument(kind=..., preset=...)` of the sound kernel, and an effect's fields are the
53
+ kernel's. `synth` and `sampler` are removed: write `instrument(kind="subtractive", oscillators=[{"shape":
54
+ "triangle"}])` (or a preset: `instrument(preset="grandPiano")`) and `instrument(kind="sampler", zones=[{"src":
55
+ "media/tone.wav", "root": 69}])`. The five effects with fields of their own take the kernel's: `gain(gain_db=...)`,
56
+ `filter(hz=...)`, `delay(time=...)` (seconds), `reverb(rt60=...)`, `eq(bands=[...])`. An effect node's spec is
57
+ `{"kind": ..., fields as written}`, with no default added. `WAVES`, `SYNTH`, `ENVELOPE`, `SAMPLER` and
58
+ `SONG_EFFECTS` are removed.
59
+
60
+ Added (media)
61
+
62
+ - The sound kernel's instrument kind `measured`: an instrument as the tones measured on a real one. It names one of
63
+ the kernel's tables (`instrument(kind="measured", table="cello")`), or holds its own `held` and `tones`.
64
+ - A song's effects `voiceRemove()` (the lead voice taken out of a recording: an instrumental) and `voiceIsolate()` (the
65
+ voice kept alone), the sound kernel's two outputs of one separation; their fields are the kernel's (`amount`,
66
+ `method`, the weights, `width`, `low_hz`, `high_hz`, `percussion`, `latency`, `history`).
67
+ - The sound kernel's instrument kinds `wavetable`, `granular`, `stack` and `fx`, and the drum machines as a `drums`
68
+ instrument's `kit` (`"808"`, `"909"`), are `instrument(kind=...)` with their fields as keywords:
69
+ `instrument(kind="fx", sound="riser")`, `instrument(kind="stack", layers=[{"instrument": {"preset": "taiko"}}])`.
70
+ An instrument with no kind names the kinds in its refusal.
71
+ - A song's `note` may say its expression, passed to the sound kernel as written: `articulation`, `pitch_curve`,
72
+ `amp_curve` and `timbre_curve` (points `[seconds, value]` over the note's own time) and `params` (the per-note
73
+ values its instrument reads). Its `pitch` may be a number with a fraction (a note read from a recording).
74
+ - A song's structure and performance: its `key`, `style`, `seed`, `form`, `rules` and `tuningHz`, and `player`, `instrument(kind=..., preset=...)`, `motif`, `section(harmony=...)`, `voice` with `notes`, `use(motif=..., transform=...)`, `counterpoint`, `accompany`, `harmonize`, `drums` and `rest`, `phrase`, `tempo`, `ending`, `groove`, `room`, `bus`, `send` and `master`.
75
+ `SONG_STRUCTURE` names every tag, its attributes and what it holds. Each element is one `score.<tag>` node with its
76
+ attributes as written; the CommandAGI music app reads them as a score, performs it and renders it.
77
+ - The sound kernel's other effect kinds by tag: `pitchShift`, `harmonizer`, `autotune`, `shimmer`, `bitcrush`, `ringMod`,
78
+ `frequencyShift`, `waveshape`, `tapeStop`, `stutter`, `reverse`, `lofi`, `granular`, `spectralFreeze`, `haas`, `autopan`,
79
+ `rotary`, `denoise`, `declick`, `dehum`, `dcBlock`, `polarity`, `loudnessMatch`, `clipper`, `dynamicEq`, `upwardCompressor`
80
+ and `expander`. An audio clip's `stretch` (0.25 to 4: its span that many times as long at the same pitch),
81
+ `stretchMode` (`vocoder` or `wsola`) and `reverse`.
82
+ - An effect's `sidechain`: the name of a track, a player or a bus whose sound the effect listens to (a pad ducked
83
+ by the kick). The sound kernel's `duck` (down by its amount while the key sounds) and `vocoder` (its sound played at
84
+ the key's level in each band).
85
+ - The sound kernel's instruments on a track (an instrument with a `kind`) and its 21 effect kinds by tag (`gain`,
86
+ `pan`, `width`, `eq`, `filter`, `compressor`, `multiband`, `limiter`, `gate`, `transient`, `deesser`, `saturate`,
87
+ `exciter`, `delay`, `chorus`, `flanger`, `phaser`, `tremolo`, `vibrato`, `reverb`, `convolve`); a track's `place`,
88
+ `out` and sends.
89
+
90
+ Added
91
+
92
+ - `commandagi.design.storefronts`: `Storefront(name=..., venue=..., seller=..., seller_record=..., seller_id=..., url=...,
93
+ source=..., hold=...)` with at most one `Offers(listings=..., read=...)` and any `Offer(name=..., kind="service"|"good",
94
+ price="25.00 USD", unit=..., codes=[...], tags=[...])`: the storefront document of `<name>.storefront.py` (CommandAGI's
95
+ docs/formats.md § a storefront in code). The holder is the account whose Drive holds the file, never an attribute.
96
+ - `commandagi.design.company_profile`: `Company(website=...)`, `Address`, `Stock` and `Owner`, the company's legal
97
+ profile, read as the document's `website`, `addresses`, `stock` and `owners`.
98
+ - `commandagi.design.scripts`: `publish(rule=..., when=...)`, the script's own records folded into plain files by a
99
+ rule of the ontology, by program (`PUBLISH_RULES`: `capital`); a script's `publishes` is always a list.
100
+ - `commandagi.design.market`: an option contract is one `sym` in one spelling, `AAPL 2026-12-18 C 200` (the
101
+ underlying, the expiry, C or P, the strike, and `x<multiplier>` only when it is not 100). `option_symbol` writes it,
102
+ `parse_option` reads it, and a `sym` with a space spelled any other way is refused by name. An `order` and an `amend`
103
+ may say `effect` (`open` or `close`).
104
+ - `commandagi.design.opportunities`: an opportunity (`<name>.opportunity.py`) and an experiment (`<name>.experiment.py`),
105
+ the same documents as the TypeScript SDK's `.opportunity.tsx` and `.experiment.tsx` (`opportunity`, `contact`,
106
+ `action`, `evidence`, `move`, `draft`, `experiment`, `arm`, `objective`, `decision`; `from_` is `from`, `approved_by`
107
+ is `approvedBy`). Each refusal is by name.
108
+ - `commandagi.design.products`: a product, `<name>.product.py`, the same document as the TypeScript SDK's
109
+ `<name>.product.tsx` (`product`, `variant`, `discount`; keywords in snake_case: `price_cents`, `compare_at_cents`,
110
+ `stock`, `options`, `weight_grams`, `amount_cents`, `starts_at`, `ends_at`, `usage_limit`). A physical product with
111
+ stock and a pre-order `deposit`, or a digital product with each variant's `file`; a discount takes a `percent` or an
112
+ `amount_cents` off, by its `code`, in a window. Each refusal is by name.
113
+ - `commandagi.design.carts`: a buyer's cart at one seller, `Carts/<seller>.cart.py` (`cart`, `item`, `offer`). A cart
114
+ names no price.
115
+
116
+ - `commandagi.design.connectors`: a remote API as a folder tree, `<name>.connector.py`, the same document as the TypeScript SDK's
117
+ `<name>.connector.tsx` (`connector`, `credential`, `licence`, `folder`, `request`, `here`, `each`, `dir`, `file`; the
118
+ attributes `in`, `as` and `is` are `in_`, `as_`, `is_`). A connector that would make an impolite or unreadable request is
119
+ refused with why.
120
+
121
+ - A fact a company or a brand does not know is `unknown("<why>")` (`{"unknown": …}`), and one it knows only roughly
122
+ `about(<value>)` (`commandagi.design.facts`). Any attribute takes either, a required one too.
123
+ - `Product(id, name, about, maker, seller, status, file)` and `Relationships(file)` in a `Company`;
124
+ `Compliance(horizon=…)`; `IpAsset(claimants=[…])`.
125
+ - A brand's `Site(url=…, host=…, project=…)` for a site hosted elsewhere; `Domain(transfer_lock=…)`;
126
+ `Mailbox(address=…, kind=…)`.
127
+ - Scripts (`scripts.py`; CommandAGI's docs/scripts.md): a `<name>.script.py` declares one `script(title, class_,
128
+ about, readme, same_as)` with `source(… stream)`, `tail(of, when, stream)`, `derive(… stream)`, `wake(when | every)`,
129
+ `discover(...)` and `judge(...)`. A tail, a derive's port and a discover's `of` name a file (a script, a run's
130
+ `records.jsonl`) or a series (`fred:DGS10`), never a folder (`tail_ref_problem`). A wake's `when` is a record
131
+ predicate. `script_with_defaults` fills `stream: "records"`. One golden fixture of a wake for the three SDKs,
132
+ `tests/script_wake.json`. Scripts replace monitors.
133
+ - A script's `param(id, type, label, default, required, choices, accept)` (`SCRIPT_PARAM_FIELDS`,
134
+ `SCRIPT_PARAM_TYPES`: file, device, world, unit, channel, run, stream, number, string, choice) makes it a template;
135
+ its document's `params` is always a list, and `script_with_defaults` fills `label`, `default`, `choices` and
136
+ `accept` as None and `required` as True. A choice names its choices; a param declared twice is refused. A
137
+ placeholder `${name}` as a whole value passes a tail's, a derive's port's and a discover's file checks
138
+ (`tail_ref_problem`, a discover's `class_`): its copy fills it. The same as the TypeScript SDK's `scripts.ts`.
139
+ - A session names the scripts that read through it: `session(uses(script="<ref to a script file>"))` (document
140
+ `uses: [{"script": …}]`, `session_with_defaults` `uses: [<ref>, …]`), in place of `uses(monitor="<folder>")`.
141
+ - A company's deals (`company_deals.py`): `Deal(id=, title=, counterparty=, stage=, value=, currency=, expected=,
142
+ closed=, owner=, since=, source=, note=)` in a `Company`, its sales pipeline, imported from
143
+ `commandagi.design.business`. The company document gains `deals` only when the file writes one. The same in the
144
+ TypeScript and Rust SDKs (one golden fixture, `tests/company_deals.json`).
145
+ - A board's `fab(...)` states the house's other least dimensions, as KiCad's board setup states them:
146
+ `min_via_diameter`, `min_hole_clearance` (copper to a hole), `min_hole_to_hole` and `min_edge_clearance` (mm), and
147
+ `via_in_pad` (True or False: the house fills and caps a via in a pad, so a net's via may stand in its own pads).
148
+ The same in the TypeScript and Rust SDKs.
149
+ - A definition's declared bounds and interlocks (`ontology.py`): `bound(channel, field, min?, max?, max_rate?,
150
+ max_speed?, why?)` folds into its channel's `bounds`, and `interlock(name, channel, requires, why, verbs?, when?)`
151
+ into the definition's `interlocks`; a world's `interlock(unit=…)` guards one of its units by another's state. The
152
+ host's admission gate holds them for every channel, driver or not. A `bounds` or `interlocks` attribute is refused.
153
+ - A company's governance, compliance, IP and insurance (`company_governance.py`): `Seat`, `Compliance`, `Obligation`,
154
+ `Evidence`, `IpAsset`, `Assignment` and `Policy` in a `Company`, and `Vote` in a `Paper` (which gains `body`,
155
+ `threshold` and `quorum`), imported from `commandagi.design.business`. The same in the TypeScript, Python and Rust
156
+ SDKs (one golden fixture, `tests/company_governance.json`).
157
+ - `Company` takes `Subsidiary(file=, ownership=, since=, method=)` (each its own company file, by ref) and
158
+ `Paper(Signature(...), Version(...), kind=, file=, status=, parties=, effective=, expires=, renewal=, notice_days=)`.
159
+ The document gains `subsidiaries` and `papers`, absent when the file names none. The same in the TypeScript and Rust
160
+ SDKs (CommandAGI's docs/company-substrate.md).
161
+ - `body(material=…)` is a physically based material: a `preset` (now with `anodized-aluminum`, `stainless-steel`,
162
+ `abs`, `pbt`, `pc`, `petg`, `pla`, `glass`, `pcb`) and the fields it changes (`ior`, `transmission`, `thickness`,
163
+ `clearcoat`, `clearcoatRoughness`, `anisotropy`, `emissive`, `emissiveIntensity`, `texture`), checked against the
164
+ schema's `BodyMaterial`. The same in the TypeScript, Python and Rust SDKs (one golden fixture, `tests/materials.json`).
165
+ A material given as a string is refused: it is an object.
166
+ - `<wake agent maxSpend>`: a wake names an agent of the account (the thread seats it and the wake goes to it) and bounds what
167
+ one wake may spend on model calls, in US dollars. The same in the TypeScript, Python and Rust SDKs (one golden fixture).
168
+ - ``contact(id=, a=, b=, collide=, friction=, restitution=, report=)``: a contact pair of a 3D document
169
+ (``dynamics.contacts``), the same in the TypeScript, Python and Rust SDKs (one golden fixture): its sides named as a
170
+ check names bodies (no ``b``: the floor), its own friction and restitution, and what a run records of it.
171
+ - A scout's `kernel` check takes a part's whole spec, the same in the TypeScript, Python and Rust SDKs (one golden fixture): a size as
172
+ deviations, a range or an ISO 286 class by name (`{ nominal: 30, class: "H7" }`, checked against the SDK's own class
173
+ tables); `holes` as groups (`count`, `diameter`, `through`, `depth`, `axis`, `at`, `position`); `mass` with its density;
174
+ `gap`; `gaps`, a gap for each named pair of bodies; and `faces`, the distance between two named flat faces (`{ body?, at,
175
+ normal? }`, as a PMI anchor names a face), for a wall's thickness or a step's height. A malformed one is refused by name.
176
+ - `rod(…)` and `port(…)`: a rod (a wire, a lead, a string, a hair, a flat flex) is a 3D feature with its section, its material (a
177
+ rods row: a wire's layers) and its ends held at ports or on bodies; a port is where a rod's end can be held (a pad,
178
+ a socket, a breadboard's row of them), the document's `ports`. A placement's `ends` holds its file's rods' ends.
179
+
180
+ Changed
181
+
182
+ - `check(sweep=...)` names the joints it moves: `sweep={'joints': ['X', 'Z'], 'step': 10}` (was `'joint'`). Several joints are swept as a grid, and a loop a swept joint closes is solved at each pose. The same as the TypeScript SDK.
183
+
184
+ Added
185
+
186
+ - A workflow step waits for an approval: `step(..., approval='agent:reviewer role:release-manager')` names who may
187
+ give it: a principal (`agent:<id>`, `person:<id>`), a role (`role:<name>`) or the holder of a grant that covers an
188
+ address (`grant:<address>`). A note step takes none. The same as the TypeScript SDK.
189
+ - `commandagi.design.monitors`: `judge(id="claims", of="task", rubric="./rubric.md", model="fireworks/glm-5p3")`, a judge of the monitor's thread: when a turn (`of="turn"`) or a task's turn (`of="task"`) ends, the model reads the trace with the rubric and its verdict is a record of the thread. `judges` is always a list. The same as the TypeScript SDK.
190
+ - A tactile skin on a face of a body: `tactile(id='pad', body='Jaw', at=[-20, 0, 20], normal=[1, 0, 0], along=[0, 1, 0], rows=4, cols=4, pitch=5)` (the document's `tactile` list). The same as the TypeScript SDK.
191
+ - A scout's case may be checked by the kernel: `check={"kernel": {"as": "plate.3d.tsx", "expect": {"volume": 13928.8, "bbox": [60, 40, 6], "bodies": 1, "holes": 4}}}` builds the answer as a solid and holds its measures; `"as": "divider.sch.tsx"` reads it into its netlist and holds `parts`, `nets` and `connections`. The same as the TypeScript SDK.
192
+ - `joint(requires={'j_lid': 100})`: a joint moves only while other joints sit at a pose (a value, or a range `[from, to]`), and `check(sweep={'joints': ['j_lift'], 'with': {'guard': 60}})` holds other joints at a value. The same as the TypeScript SDK. For microfab: IC1-22 and PCBC-24 are closed; ROUTER-12 (the whole machine's check at fine sweep steps) does not reproduce: the router at steps 5 / 5 / 2 runs whole in 107 s with the same verdicts as at 20 / 10 / 5.
193
+ - `commandagi.design.schematic`: a part says KiCad's reference when another part has it too, `part("POLY_2", reference="POLY", …)` (said only when it is not the name). `commandagi.design.pcb`: `component(library=…)` takes a footprint id with no library nickname as KiCad wrote it, `footprint="POLY"`. The same as the TypeScript SDK.
194
+ - `commandagi.design.media`: a speaker's track, `track(kind="audio", speaker="Cici", turns=passes["C"], src="stems/take.voices.wav")`, makes that speaker's turns in the pass its clips; `denoise(reduction, floor)` and `loudness(target, peak)` are audio effects. The same as the TypeScript SDK.
195
+ - `commandagi.design`: a sketch's builder draws `s.point([x, y])` and `s.line([[x, y], ...])` (an open polyline), and `sketch()` takes a sketch that draws nothing yet (`lambda s: s`). A part with no call yet gives its run the file's map, so the editor writes its first call. The same as the TypeScript SDK.
196
+ - `commandagi.design.eda`: a footprint dict takes `courtyard` (two corners or a polygon of `{x, y}` in mm): the part's F.CrtYd (B.CrtYd on the bottom). The same as the TypeScript SDK's `Footprint.courtyard`.
197
+ - `commandagi.design.records`: a calibration's `joint()` may carry its measured travel `min`/`max` (the bus's raw values, min < max) and `reversed`; `calibration()` takes `by` and `at` (who measured it and when). The same documents and refusals as the TypeScript SDK.
198
+ - `commandagi.design.infra`: a VPN exit, a logged-in state and a vantage as `exit.py`, `session.py` and `vantage.py`, the same
199
+ elements and documents as the TypeScript SDK's `exit.tsx`, `session.tsx` and `vantage.tsx`, with the same refusals.
200
+ `exit_with_defaults`, `session_with_defaults` and `vantage_with_defaults` fill what a file does not say. The
201
+ CommandAGI platform runs only the TSX files: its monitors read `vantage.tsx` and `session.tsx`, and `make infra-plan`
202
+ reads `exit.tsx`.
203
+ - A machining setup's `machine` states its own travel: `travelMm` (`travel_mm` in Python and Rust), `[x, y, z]` in mm. A
204
+ stated travel holds a setup that names no unit, and the unit's definition does not replace it.
205
+ - An `override(artboard=…)` takes `no_keys` (`no_keys=["opacity"]`): the clip's keys of those properties do not show on
206
+ that artboard. An `override` in an `effect` holds `keyframe(param=…)`s, that artboard's own keys of the param, and
207
+ takes `no_keys` of params.
208
+ - A part states its steady `draw` (`draw="120 mA"` or `"1.2 W"`, a KiCad property `Draw`). A system's load that states
209
+ no current or power names a circuit part (`part="ee/main.circuit.ts#U1"`), and `commandagi check` reads the part's draw.
210
+ - A link budget: `quantity="rf-link"` with `frequency` (Hz) and `range` (m) on the budget, and contributions in `dBm`
211
+ (with `end="tx"`, the power sent, or `end="rx"`, the receiver's sensitivity) and in `dB` (gains +, losses -). The
212
+ check adds the free-space path loss and passes when the margin is at least the limit (dB).
213
+ - An interface states its `<channel format dir medium dialect transport>`; `commandagi check` holds a definition or a
214
+ unit side's channel to each field it states.
215
+ - A part's features and a circuit's components keep the call that declared them (`cad.py`, `eda.py`), and the source
216
+ map gives each list its entries, so an editor writes an edit into the literals of `box(…)` or `component(…)`.
217
+ - A data sheet: `sheet(name=…, source=…, query=…, format=…)` reads a file beside the workbook, an http(s) URL or
218
+ `surface:<id>`, as the TypeScript SDK's `<sheet source>` does; it holds no cells, columns or rows.
219
+
220
+ - A video's `clip(link=…)`: two clips of one video file with the same `link` are its picture and its sound, patched to
221
+ two tracks at once. A video file on an audio track is its sound (a clip of kind `audio`); a still there is refused.
222
+ - A drawing's compound shape is `compound(…, op=…)` (`unite`, `minus`, `intersect` or `exclude`): it holds its shapes
223
+ and draws their Pathfinder result live, so each shape stays editable. It replaces `boolean`, which a drawing no longer
224
+ reads; a file that wrote `boolean(…, op="subtract")` writes `compound(…, op="minus")`.
225
+ - A camera unit's calibration takes `camera(channel=…, intrinsics=…, extrinsics=…, residual=…, robot=…, marker=…,
226
+ run=…, reality=…, at=…, by=…)`, one per video channel: the lens, the camera in the world, the residual and the run
227
+ that measured it with its reality (the TypeScript SDK's `<camera>`).
228
+ - A board's `<component>` takes `locked` (KiCad's footprint lock, `true` or left out), so a KiCad board's locked footprints keep the
229
+ lock through the code and back to a `.kicad_pcb`.
230
+ - A schematic's code part takes `suppressed` (`code(name, source=…, suppressed=True)`): a suppressed part is not run
231
+ and declares nothing (the graph's disabled node).
232
+ - A board's `trace(…)` takes `rule`, its routing rule: "45", "90" or "any" (the default). A value off these three is
233
+ refused.
234
+ - A market recording (`<name>.market.py`, `commandagi.design.market`): `market(...)` holds one element per record, in
235
+ time order: `note`, `quote`, `trade`, `book` (its `bid` and `ask` levels), `news`, `position`, `order`,
236
+ `order_update`, `cancel`, `cancel_update`, `amend`, `amend_update`, `fill` and `account` (its `holding`,
237
+ `open_order` and `problem` children). Every attribute is text; a price or a quantity is decimal text (`"185.09"`),
238
+ and a number there is refused by name. It declares `{"records": [...]}`.
239
+ - A step-response study's `tune(joint=…, kp=[low, high], kv=[low, high])`: the bounds the validation planner may
240
+ search a joint's gains in when the study fails; what it finds is proposed as an edit of the unit's calibration.
241
+ - A study of kind `step-response` (`units="rad-s"`, `STEP_RESPONSE_UNITS`): `step(id=…, joint=…, from_=…, to=…)` (each
242
+ solved alone), `gains(joint=…, kp=…, kv=…)` (the gains to try on a joint), `response(duration=…, dt=…, band=…)`; a
243
+ `criterion` names the `step` it reads. Its `part` is a `definition.tsx` or a unit of a world (`world.tsx#<uid>`).
244
+ - A unit's calibration (`<name>.calibration.py`, `commandagi.design.records`): `calibration(device=…, serial=…, note=…)`
245
+ with `joint(name=…, zero=…, kp=…, kv=…, run=…)` and `rezero(joint=…, zero=…, at=…, by=…, reason=…)`, the unit's
246
+ re-zeros oldest first. A world unit names it by `calibration`.
247
+ - A side places the interface's frame by `rotation` (degrees, counter-clockwise) and `face` (`back`: read from the
248
+ mating part, the frame mirrored through its y axis, so a hole or pin placed on it is mirrored too).
249
+ - A painting's or a photo's `mask(of="Name")` names a layer the stack shows, by its `name`, and wires the masked node to it; the element holds no layer of its own.
250
+ - `sch_style`: a placement's De Morgan body style (`unit("U1", 2, …, sch_style=2)`), which selects the pins and body the library draws for it. 1 is the default and writes nothing.
251
+ - `commandagi.design.scouts`: the scouts' two documents, the same as the TypeScript SDK's `scouts.ts` (docs/scouts.md
252
+ in the CommandAGI repository):
253
+ - `scout(case(...), configuration(...), workload(...), judge(...), budget=…, …)` (`<name>.scout.py`): one comparison
254
+ of configurations on the cases of each workload, scored by a check (`exact`, `oneOf`, `number`, `contains`,
255
+ `regex`, `json`, `letter`, `literal`, `tool`, `program`) or by a judge panel, with the verdict's rules (`budget`,
256
+ `repeats`, `margin`, `relative_margin`, `error_floor`, `min_calls`, `min_cases`, `resamples`, `alpha`, `seed`,
257
+ `max_cases`). A case's `from_` is `public`, `synthetic` or `own-run`; nothing else may be a case.
258
+ - `replacement(layer(capability(evidence(...))), decision(...), product=…, as_of=…)` (`<name>.replacement.py`): what
259
+ replacing a product would cost, by layer and capability, with the decision and the economics.
260
+
261
+ - A monitor source names the connected account it reads as (`<source connection="gmail@jacobfv123@gmail.com">`); the api worker reads it (`via="worker"` only).
262
+ - `<component refRot={90}>`: how far a part's reference text is turned where it sits, in degrees, in the footprint's own frame (the placer turns a text it has no upright place for).
263
+
264
+ - A world unit declares `tilt_deg`: how far its front is raised above level, in degrees (positive up; absent is
265
+ level). A video channel declares its lens as `fieldOfViewDeg`, `frameAspect` and `lensAtMm`, which the world view and a
266
+ world's coverage test read alike.
267
+
268
+ Added
269
+
270
+ - A load states its `duty`: the share of time it draws (`duty={0.25}`, a number in (0, 1]). A power budget takes
271
+ its average draw; a peak budget takes the whole draw at the peak. A load's `inrushCurrent` (A) is its peak at
272
+ switch-on when it is more than its peak draw.
273
+ - An agent declares its `supervisor` (`<agent supervisor="agent:lead">`, `agent:<id>` or `person:<id>`): a thread's
274
+ membership takes it at join, and a person's supervise of that member overrides it.
275
+ - An interface's `<param>` states a number with its unit, or a text a channel states (a `format`, a `dialect`,
276
+ a `transport`: `<param id="framing" value="8N1" />`) and then no unit. A side's `params` maps such a field
277
+ to it, and the check compares the texts: a definition's channel and a firmware `#define` alike.
278
+ - A side states where the interface's frame sits on it with `rotation` (degrees counter-clockwise) and `face`
279
+ (`top`, or `bottom` for the side seen from the mating board, whose frame is mirrored): a 3D deck turned a
280
+ quarter turn, or read from underneath, matches the same hole pattern.
281
+
282
+ Changed (a document written for 0.6.8 may need an edit)
283
+
284
+ - `compound(…, op="zork")` is refused at declaration, in the draw graph's words: `compound.op is unite, minus, intersect or exclude,
285
+ not "zork"`. It used to declare and then fail to draw. An `op` that is not a string was drawn as `unite` and is
286
+ refused too. No `op` is still `unite`.
287
+ - A board holds its copper to what it has: a `trace`, `arc`, `via` or `pour` on a layer that is in neither the
288
+ board's layer table (`BOARD_LAYERS` when it gives none) nor a conductor of its `stack` is refused at declaration
289
+ ("the board has no copper layer X.Cu (it has F.Cu, B.Cu)"). A via whose two ends are one layer is refused. A board
290
+ with inner copper states it, in `layers` or a `stack`.
291
+ - `commandagi.design.evals`: a metric's `probe` names a task file (`{"kind": "task", "task": "<ref>"}`, an
292
+ `alignment`'s `reference.task`) or another metric file (a `composite` input's `metric`) by ref; a probe that names
293
+ one by node id (`taskId`, `metricId`) is refused with why, as the platform's routes and reader refuse it.
294
+
295
+ Fixed
296
+
297
+ - A part's `eda.part.` type and a placement's `sch.symbol.` type hash UTF-16 code units, as the format's rule says and
298
+ as the TypeScript and Rust SDKs do, so a pin name above U+FFFF gives the same type in all three. A pin's name is
299
+ trimmed as JavaScript trims.
300
+ - 3D: a placed file's `<joint>`s come with it, as `<placement id>/<joint id>` at any depth (`dock_a/palletLift`,
301
+ `bay_1/dock_a/palletLift`). Each is placed as the file's bodies are (its anchor, axis and references), with its
302
+ `fixed` chain, so a sweep in any document above moves what the joint moves in its file:
303
+ `sweep={{ joint: "dock_a/palletLift" }}`. No level restates a joint (CORE-58, IC1-20, PCBC-22, ROUTER-02). A joint
304
+ whose `a` or `b` the placement leaves out (`omit`) goes with it; a `moves` entry that moves only its `a` along the
305
+ joint (a latch closed, a lid opened) shifts its `limits` by that value, so the sweep still stops where the file
306
+ says. Needs a host of this version (`commandagi check` links the placed files).
307
+
308
+ Removed
309
+
310
+ - `Domain(mail=…)`: a domain receives mail when the brand names a `Mailbox` at it.
311
+ - The monitors vocabulary (`commandagi.design.monitors`, `monitors.py`: `monitor`, `follows`, `monitor_with_defaults`):
312
+ scripts (`commandagi.design.scripts`) replace it. A session's `uses(monitor=…)` is `uses(script=…)`.
313
+
7
314
  ## 0.6.8 (2026-10-23)
8
315
 
9
316
  Added
@@ -57,6 +364,17 @@ Fixed
57
364
  HFS5-2080's ix was 5.04 % over MISUMI's again. The repository's tables now hold it: each section's area, ix, iy and
58
365
  mass are within 3.1 % of MISUMI's, and the repository's test holds 5 %.
59
366
 
367
+ - Silent failures are errors (microfab 0.6.6). The vocabulary's descriptions say so; what reads a document does it:
368
+ - CORE-59: `<externalPart omit moves>` take a placed file's id for everything placed under it (`omit={["pallet"]}`
369
+ is `pallet/*`, its `<item>`s too), and an entry that names nothing of the file is an error that names it.
370
+ - CORE-63: an `<accept check>` or a `<permitted check>` that is no check of the document is an error
371
+ (`accept-unknown-check`, `permitted-unknown-check`); a `<permitted body>` that names no body is one too
372
+ (`permitted-unknown-body`). A circuit's `<accept check>` of no check is an ERC error.
373
+ - CORE-64: a placement's `quaternion` is a unit quaternion: within 1e-5 of unit length (6 decimals) it is read as
374
+ the rotation it rounds; further off it is refused, so a placement never scales a part.
375
+ - LABS-27: `commandagi task approve | decline` is a person's own act: refused from an agent's shell or with an
376
+ agent's key, and typed at a terminal; the record names the person.
377
+
60
378
  ## 0.6.7 (2026-10-23)
61
379
 
62
380
  Added
@@ -462,7 +780,6 @@ Changed
462
780
  `Body.acts_on()` are what it has.
463
781
  - A union's refusal names the field at fault (`edges/0/select/vertical: is not one of its fields`).
464
782
 
465
-
466
783
  The first release that contains `commandagi.design`. PyPI 0.4.0 was built on 2026-09-23, before the design layer was
467
784
  written; the version in the source stayed at 0.4.0 for the 106 commits after it, so the source and the package had
468
785
  one number and different contents.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: commandagi
3
- Version: 0.6.8
3
+ Version: 0.6.9
4
4
  Summary: The CommandAGI SDK for Python — agent threads, memory and integrations, and live computers, robots and simulated worlds you watch and control.
5
5
  Project-URL: Homepage, https://commandagi.com
6
6
  Project-URL: Documentation, https://github.com/CommandAGI/commandagi-sdk-python/blob/main/README.md
@@ -38,6 +38,8 @@ export COMMANDAGI_API_KEY=cagi_... # Settings → API keys
38
38
  ```
39
39
 
40
40
  ```python
41
+ import time
42
+
41
43
  from commandagi import CommandAGI
42
44
 
43
45
  cagi = CommandAGI() # reads COMMANDAGI_API_KEY
@@ -47,10 +49,12 @@ t = cagi.threads.create(intent="Summarise this week's robotics news in five bull
47
49
  cagi.threads.send(t["threadId"], "Add a link for each one.")
48
50
 
49
51
  # Embodiments: launch a world YOU drive (no agent in it), watch it, control it.
50
- with cagi.launch("simulation/warehouse") as world:
52
+ with cagi.launch("simulation/arm-cell") as world:
51
53
  print(world.controls()) # what it accepts right now, with payload schemas
52
- world.sim.ik(target=[0.3, 0.0, 0.4]) # typed robot/sim control
53
- jpeg = world.observe(fresh=True) # the next frame, after the move
54
+ world.sim.run() # a launched simulation starts paused
55
+ world.sim.ik(target=[0.08, -0.12, 0.86]) # typed robot/sim control: the arm's tool point, in metres
56
+ time.sleep(2) # an answer is not a state: let it move, then read
57
+ print(world.describe()["world"]["robots"][0]["sites"]) # where the tool point is now, in mm
54
58
  # leaving the block stops the world and releases the machine
55
59
 
56
60
  # Anything else: every platform tool by name.
@@ -104,7 +108,7 @@ the CommandAGI monorepo.
104
108
  | `session.describe()` | the live world a sim or robot runtime reports |
105
109
  | `session.close()` / `stop()` | stop watching / also stop a world this session launched |
106
110
 
107
- Snapshot ids come from `cagi.call("list_snapshots")`, e.g. `simulation/warehouse` or
111
+ Snapshot ids come from `cagi.call("list_snapshots")`, e.g. `simulation/arm-cell` or
108
112
  `computer/software-engineer`.
109
113
 
110
114
  ## Design in code: `commandagi.design`
@@ -126,21 +130,33 @@ vocabulary, one function per tag, named by the tag:
126
130
  | `commandagi.design.pcb` | a board in code (`board`) |
127
131
  | `commandagi.design.threed` | a 3D part or assembly |
128
132
  | `commandagi.design.fab` | a machining setup (`cam`), a slicing setup (`slicing`) |
129
- | `commandagi.design.study` | a study of a part (`study`: material, fixtures, load cases, mesh, criteria, revise; docs/formats.md § studies) |
133
+ | `commandagi.design.study` | a study (`study`: `structural`, `flow` or `step-response`; material, fixtures, load cases, mesh, steps, gains, criteria, revise; docs/formats.md § studies) |
130
134
  | `commandagi.design.testplans` | a test plan (`testplan`: conditions, fixtures, steps) |
135
+ | `commandagi.design.factory` | a plant in a scene (`check_operations_system`, `machines_for`: the `operations` system a `.3d.py`'s scene holds) |
136
+ | `commandagi.design.scene_agents` | the agents of a scene (`check_scene_agents`: model agents attached to its robots or their joints) |
137
+ | `commandagi.design.scene_people` | a person in a scene (`check_look`, `check_goal`, `check_humanoid_policy`, `check_motors`, `check_assist`, `HUMANOID_JOINTS`) |
131
138
  | `commandagi.design.firmware` | a firmware release (`firmware`: supported revisions), a rollout (`rollout`: health checks, targets) |
132
139
  | `commandagi.design.office` | a workbook, a page, a deck |
133
140
  | `commandagi.design.twod` | a drawing, a painting, a photo, a nest |
134
141
  | `commandagi.design.media` | a video (clips, `composition(src="Intro.vid.py")`: another video drawn live from its own code, `artboard(src="Poster.draw.py")`: a drawing's page drawn live), a song |
135
- | `commandagi.design.ontology` | a world, a device definition, a dashboard, a geo project, a node graph |
142
+ | `commandagi.design.ontology` | a world, a device definition, a dashboard, a geo project (and its shocks, scenarios, models, parameter sets, layers, formulas, views, reports and graphs), a node graph |
136
143
  | `commandagi.design.business` | a company, an RFC, a case |
144
+ | `commandagi.design.classification` | what kind of business or product a thing is: `codes` (`scheme:code`) and `tags`, `classification_problem`, `matches_prefix` |
137
145
  | `commandagi.design.tasks` | a task, a project |
138
146
  | `commandagi.design.mounts` | a thread's mounted tasks (`mounts.py`, in the thread's run folder) |
147
+ | `commandagi.design.products` | a product a seller sells (`name.product.py`): `product`, `variant`, `discount` |
148
+ | `commandagi.design.carts` | a buyer's cart at one seller (`Carts/<seller>.cart.py`): `cart`, `item`, `offer`; no price |
149
+ | `commandagi.design.storefronts` | a storefront its holder lists (`<name>.storefront.py`): `Storefront`, `Offers`, `Offer` |
150
+ | `commandagi.design.connectors` | a remote API as a folder tree a mount can list (`name.connector.py`): `connector`, `credential`, `licence`, `folder`, `request`, `here`, `each(in_=…, as_=…)`, `dir`, `file` |
151
+ | `commandagi.design.infra` | a VPN exit (`exit.py`), a logged-in state (`session.py`), a vantage (`vantage.py`). The CommandAGI platform does not run these: its scripts read `vantage.tsx` and `session.tsx`, and `make infra-plan` reads `exit.tsx` |
139
152
  | `commandagi.design.evals` | an eval (`eval`: its `case`s), a metric (`metric`) |
140
- | `commandagi.design.monitors` | a monitor (`monitor.py`, in the folder of the thing it follows) |
153
+ | `commandagi.design.scripts` | a script (`<name>.script.py`, anywhere in a Drive: its sources, the files it tails, its wakes; with `param`s, a template) |
154
+ | `commandagi.design.scouts` | a scout's comparison (`scout.py`), a replacement-cost analysis (`replacement.py`) |
141
155
  | `commandagi.design.agents` | an agent harness (`harness.py`; `realtime`: what its model takes and gives live), an agent (`agent.py`: a base or a fork) |
142
- | `commandagi.design.records` | a contract, a product instance |
156
+ | `commandagi.design.records` | a contract, a product instance, a hardware release, a unit's calibration (`calibration`: joints, re-zeros) |
143
157
  | `commandagi.design.postal` | a letter, a postcard |
158
+ | `commandagi.design.logistics` | a supplier, a logistics plan |
159
+ | `commandagi.design.market` | a market recording (`market`: quotes, books, trades, news, orders and their outcomes, fills, account read-backs; prices are decimal text) |
144
160
  | `commandagi.design.pdf` | a PDF assembled from pages, comments, stamps, signatures, redactions, fields and bookmarks |
145
161
 
146
162
  The rules of a call, the same in every module:
@@ -248,7 +264,7 @@ A URL in `COMMANDAGI_THREED` is that running service only. Both places speak one
248
264
  `observe(doc)`, `export(doc, "step" | "iges", bodies=)`, `measure(doc, "distance" | "angle" | "radius" | "closest", a,
249
265
  b)`, `measure_all(doc, [{"quantity", "a", "b"}, …])` (many on one build), `interference(doc, clearance=, bodies=)`,
250
266
  `drawing(doc, direction=, up=, section=)`, `tessellate(doc, deflection)`. `doc` is what a file declares, its
251
- graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"body": "body_0", "kind": "face" | "edge" |
267
+ graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"body": "base", "kind": "face" | "edge" |
252
268
  "vertex" | "body", "index": n}`, with the index as `observe` lists it.
253
269
 
254
270
  - **A build in which a feature failed is not whole.** `observe` answers it with `status: "failed"` and `failures`.
@@ -286,11 +302,11 @@ graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"bod
286
302
  ## Versions
287
303
 
288
304
  - A release is the tag `v<version>` in this repository and the same version on PyPI. Pin an exact version:
289
- `pip install commandagi==0.6.8`, or in a virtual environment uv made (it has no pip)
290
- `uv pip install --python .venv/bin/python commandagi==0.6.8`. A range (`^`, `~=`, `>=`) takes the next release
305
+ `pip install commandagi==0.6.9`, or in a virtual environment uv made (it has no pip)
306
+ `uv pip install --python .venv/bin/python commandagi==0.6.9`. A range (`^`, `~=`, `>=`) takes the next release
291
307
  without asking you.
292
308
  - After an upgrade, check what runs: `python -c "import commandagi; print(commandagi.__version__)"`, and
293
- `commandagi --version` for the host that runs the local 3D kernel (`npm install -g @commandagi/host@0.6.8`). The two
309
+ `commandagi --version` for the host that runs the local 3D kernel (`npm install -g @commandagi/host@0.6.9`). The two
294
310
  are upgraded apart, and a kernel of another version may read a document differently.
295
311
  - The three SDKs (Python, TypeScript, Rust) carry one version number. A vocabulary at version X in one language is
296
312
  the vocabulary at version X in the others.
@@ -10,6 +10,8 @@ export COMMANDAGI_API_KEY=cagi_... # Settings → API keys
10
10
  ```
11
11
 
12
12
  ```python
13
+ import time
14
+
13
15
  from commandagi import CommandAGI
14
16
 
15
17
  cagi = CommandAGI() # reads COMMANDAGI_API_KEY
@@ -19,10 +21,12 @@ t = cagi.threads.create(intent="Summarise this week's robotics news in five bull
19
21
  cagi.threads.send(t["threadId"], "Add a link for each one.")
20
22
 
21
23
  # Embodiments: launch a world YOU drive (no agent in it), watch it, control it.
22
- with cagi.launch("simulation/warehouse") as world:
24
+ with cagi.launch("simulation/arm-cell") as world:
23
25
  print(world.controls()) # what it accepts right now, with payload schemas
24
- world.sim.ik(target=[0.3, 0.0, 0.4]) # typed robot/sim control
25
- jpeg = world.observe(fresh=True) # the next frame, after the move
26
+ world.sim.run() # a launched simulation starts paused
27
+ world.sim.ik(target=[0.08, -0.12, 0.86]) # typed robot/sim control: the arm's tool point, in metres
28
+ time.sleep(2) # an answer is not a state: let it move, then read
29
+ print(world.describe()["world"]["robots"][0]["sites"]) # where the tool point is now, in mm
26
30
  # leaving the block stops the world and releases the machine
27
31
 
28
32
  # Anything else: every platform tool by name.
@@ -76,7 +80,7 @@ the CommandAGI monorepo.
76
80
  | `session.describe()` | the live world a sim or robot runtime reports |
77
81
  | `session.close()` / `stop()` | stop watching / also stop a world this session launched |
78
82
 
79
- Snapshot ids come from `cagi.call("list_snapshots")`, e.g. `simulation/warehouse` or
83
+ Snapshot ids come from `cagi.call("list_snapshots")`, e.g. `simulation/arm-cell` or
80
84
  `computer/software-engineer`.
81
85
 
82
86
  ## Design in code: `commandagi.design`
@@ -98,21 +102,33 @@ vocabulary, one function per tag, named by the tag:
98
102
  | `commandagi.design.pcb` | a board in code (`board`) |
99
103
  | `commandagi.design.threed` | a 3D part or assembly |
100
104
  | `commandagi.design.fab` | a machining setup (`cam`), a slicing setup (`slicing`) |
101
- | `commandagi.design.study` | a study of a part (`study`: material, fixtures, load cases, mesh, criteria, revise; docs/formats.md § studies) |
105
+ | `commandagi.design.study` | a study (`study`: `structural`, `flow` or `step-response`; material, fixtures, load cases, mesh, steps, gains, criteria, revise; docs/formats.md § studies) |
102
106
  | `commandagi.design.testplans` | a test plan (`testplan`: conditions, fixtures, steps) |
107
+ | `commandagi.design.factory` | a plant in a scene (`check_operations_system`, `machines_for`: the `operations` system a `.3d.py`'s scene holds) |
108
+ | `commandagi.design.scene_agents` | the agents of a scene (`check_scene_agents`: model agents attached to its robots or their joints) |
109
+ | `commandagi.design.scene_people` | a person in a scene (`check_look`, `check_goal`, `check_humanoid_policy`, `check_motors`, `check_assist`, `HUMANOID_JOINTS`) |
103
110
  | `commandagi.design.firmware` | a firmware release (`firmware`: supported revisions), a rollout (`rollout`: health checks, targets) |
104
111
  | `commandagi.design.office` | a workbook, a page, a deck |
105
112
  | `commandagi.design.twod` | a drawing, a painting, a photo, a nest |
106
113
  | `commandagi.design.media` | a video (clips, `composition(src="Intro.vid.py")`: another video drawn live from its own code, `artboard(src="Poster.draw.py")`: a drawing's page drawn live), a song |
107
- | `commandagi.design.ontology` | a world, a device definition, a dashboard, a geo project, a node graph |
114
+ | `commandagi.design.ontology` | a world, a device definition, a dashboard, a geo project (and its shocks, scenarios, models, parameter sets, layers, formulas, views, reports and graphs), a node graph |
108
115
  | `commandagi.design.business` | a company, an RFC, a case |
116
+ | `commandagi.design.classification` | what kind of business or product a thing is: `codes` (`scheme:code`) and `tags`, `classification_problem`, `matches_prefix` |
109
117
  | `commandagi.design.tasks` | a task, a project |
110
118
  | `commandagi.design.mounts` | a thread's mounted tasks (`mounts.py`, in the thread's run folder) |
119
+ | `commandagi.design.products` | a product a seller sells (`name.product.py`): `product`, `variant`, `discount` |
120
+ | `commandagi.design.carts` | a buyer's cart at one seller (`Carts/<seller>.cart.py`): `cart`, `item`, `offer`; no price |
121
+ | `commandagi.design.storefronts` | a storefront its holder lists (`<name>.storefront.py`): `Storefront`, `Offers`, `Offer` |
122
+ | `commandagi.design.connectors` | a remote API as a folder tree a mount can list (`name.connector.py`): `connector`, `credential`, `licence`, `folder`, `request`, `here`, `each(in_=…, as_=…)`, `dir`, `file` |
123
+ | `commandagi.design.infra` | a VPN exit (`exit.py`), a logged-in state (`session.py`), a vantage (`vantage.py`). The CommandAGI platform does not run these: its scripts read `vantage.tsx` and `session.tsx`, and `make infra-plan` reads `exit.tsx` |
111
124
  | `commandagi.design.evals` | an eval (`eval`: its `case`s), a metric (`metric`) |
112
- | `commandagi.design.monitors` | a monitor (`monitor.py`, in the folder of the thing it follows) |
125
+ | `commandagi.design.scripts` | a script (`<name>.script.py`, anywhere in a Drive: its sources, the files it tails, its wakes; with `param`s, a template) |
126
+ | `commandagi.design.scouts` | a scout's comparison (`scout.py`), a replacement-cost analysis (`replacement.py`) |
113
127
  | `commandagi.design.agents` | an agent harness (`harness.py`; `realtime`: what its model takes and gives live), an agent (`agent.py`: a base or a fork) |
114
- | `commandagi.design.records` | a contract, a product instance |
128
+ | `commandagi.design.records` | a contract, a product instance, a hardware release, a unit's calibration (`calibration`: joints, re-zeros) |
115
129
  | `commandagi.design.postal` | a letter, a postcard |
130
+ | `commandagi.design.logistics` | a supplier, a logistics plan |
131
+ | `commandagi.design.market` | a market recording (`market`: quotes, books, trades, news, orders and their outcomes, fills, account read-backs; prices are decimal text) |
116
132
  | `commandagi.design.pdf` | a PDF assembled from pages, comments, stamps, signatures, redactions, fields and bookmarks |
117
133
 
118
134
  The rules of a call, the same in every module:
@@ -220,7 +236,7 @@ A URL in `COMMANDAGI_THREED` is that running service only. Both places speak one
220
236
  `observe(doc)`, `export(doc, "step" | "iges", bodies=)`, `measure(doc, "distance" | "angle" | "radius" | "closest", a,
221
237
  b)`, `measure_all(doc, [{"quantity", "a", "b"}, …])` (many on one build), `interference(doc, clearance=, bodies=)`,
222
238
  `drawing(doc, direction=, up=, section=)`, `tessellate(doc, deflection)`. `doc` is what a file declares, its
223
- graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"body": "body_0", "kind": "face" | "edge" |
239
+ graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"body": "base", "kind": "face" | "edge" |
224
240
  "vertex" | "body", "index": n}`, with the index as `observe` lists it.
225
241
 
226
242
  - **A build in which a feature failed is not whole.** `observe` answers it with `status: "failed"` and `failures`.
@@ -258,11 +274,11 @@ graph (`run_module(...)["graph"]`) or the graph's JSON text. An entity is `{"bod
258
274
  ## Versions
259
275
 
260
276
  - A release is the tag `v<version>` in this repository and the same version on PyPI. Pin an exact version:
261
- `pip install commandagi==0.6.8`, or in a virtual environment uv made (it has no pip)
262
- `uv pip install --python .venv/bin/python commandagi==0.6.8`. A range (`^`, `~=`, `>=`) takes the next release
277
+ `pip install commandagi==0.6.9`, or in a virtual environment uv made (it has no pip)
278
+ `uv pip install --python .venv/bin/python commandagi==0.6.9`. A range (`^`, `~=`, `>=`) takes the next release
263
279
  without asking you.
264
280
  - After an upgrade, check what runs: `python -c "import commandagi; print(commandagi.__version__)"`, and
265
- `commandagi --version` for the host that runs the local 3D kernel (`npm install -g @commandagi/host@0.6.8`). The two
281
+ `commandagi --version` for the host that runs the local 3D kernel (`npm install -g @commandagi/host@0.6.9`). The two
266
282
  are upgraded apart, and a kernel of another version may read a document differently.
267
283
  - The three SDKs (Python, TypeScript, Rust) carry one version number. A vocabulary at version X in one language is
268
284
  the vocabulary at version X in the others.
@@ -8,9 +8,10 @@ Drive the whole platform as code: agent threads, memory, integrations — and li
8
8
  cagi = CommandAGI() # reads COMMANDAGI_API_KEY
9
9
  cagi.threads.create(intent="Summarise this week's robotics news")
10
10
 
11
- with cagi.launch("simulation/warehouse") as world: # a world YOU drive (no agent)
12
- world.sim.ik(target=[0.3, 0.0, 0.4])
13
- jpeg = world.observe(fresh=True)
11
+ with cagi.launch("simulation/arm-cell") as world: # a world YOU drive (no agent)
12
+ world.sim.run() # a launched simulation starts paused
13
+ world.sim.ik(target=[0.08, -0.12, 0.86]) # the arm's tool point, in metres
14
+ print(world.describe()["world"]["robots"]) # the world now
14
15
 
15
16
  The typed surface is generated from the CommandAGI SDK schema (``commandagi-sdk.schema.json``),
16
17
  identically for every language; ``call(tool, args)`` reaches any tool.
@@ -60,4 +61,4 @@ __all__ = [
60
61
  "ENV_THREAD_ID",
61
62
  "DEFAULT_BASE_URL",
62
63
  ]
63
- __version__ = "0.6.8"
64
+ __version__ = "0.6.9"