@tuned-tensor/cli 0.9.1 → 0.10.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.
- package/README.md +21 -4
- package/dist/index.js +1007 -676
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -73,7 +73,11 @@ tt cloud support-agent › Ask whether my dataset is ready to train
|
|
|
73
73
|
Ordinary sentences go through the locally orchestrated Pi model session. The
|
|
74
74
|
model can call a
|
|
75
75
|
strict, bounded set of authenticated Tuned Tensor read tools and prepare-only
|
|
76
|
-
mutation tools; it has no shell or filesystem tool.
|
|
76
|
+
mutation tools; it has no shell or general filesystem tool. In `local` mode it
|
|
77
|
+
can prepare one new folder directly beneath the shell's current working
|
|
78
|
+
directory with a validated `tunedtensor.json`. The tool refuses path traversal,
|
|
79
|
+
symlinked workspace roots, existing targets, and unsupported spec fields. It is
|
|
80
|
+
not available to cloud-mode turns. Known CLI commands such as
|
|
77
81
|
`runs list`, `doctor`, and `models list` still execute directly. Prefix a
|
|
78
82
|
command with `:` when you want to make that intent explicit. Commands are
|
|
79
83
|
routed to the mode shown in the prompt; prefix one with `cloud` or `local` to
|
|
@@ -92,9 +96,19 @@ Read operations execute immediately. Creating or updating a behaviour spec is
|
|
|
92
96
|
a prepare-only model operation: the agent shows the exact proposed action, then
|
|
93
97
|
waits for `/approve` or `/reject`. Starting or cancelling training remains an
|
|
94
98
|
explicit `tt runs ...` command outside the model tool loop.
|
|
99
|
+
Local spec creation also waits for `/approve`, never calls the cloud API, requires
|
|
100
|
+
at least two examples for local validation, uses exclusive private folder/file
|
|
101
|
+
creation, and never overwrites an existing path. Secure filesystem mutation is
|
|
102
|
+
currently supported on Linux, where writes are anchored to open workspace and
|
|
103
|
+
destination-directory handles. The proposal is bound to the current workspace
|
|
104
|
+
so changing directories before approval fails safely instead of writing
|
|
105
|
+
somewhere else. Ambiguous write failures remain sealed as `outcome_unknown` for
|
|
106
|
+
manual inspection rather than deleting a path that could belong to a racing
|
|
107
|
+
writer.
|
|
95
108
|
`/approve` executes deterministic local code with an at-most-once mutation
|
|
96
|
-
attempt.
|
|
97
|
-
support; older or incompatible servers are refused.
|
|
109
|
+
attempt. For hosted mutations, before dispatch the CLI requires the API to
|
|
110
|
+
advertise mutation-guard support; older or incompatible servers are refused.
|
|
111
|
+
The server conditionally
|
|
98
112
|
checks approved spec versions and assigns the action ID as an idempotent create
|
|
99
113
|
ID. If a response or final state write is lost after dispatch, the action is
|
|
100
114
|
retained as `outcome_unknown`, cannot be retried automatically, and directs the
|
|
@@ -119,7 +133,10 @@ and `compare` steps; each resolves to `local` or `cloud`. The v1 evaluator is
|
|
|
119
133
|
`evaluate.with.evaluator: "behavior"`. `evaluate.with.model` is `"base"` or
|
|
120
134
|
`{ "from": "step.model" }`; `compare.with.before` and
|
|
121
135
|
`after` are `{ "from": "step.report" }`. References must point to an earlier
|
|
122
|
-
step and to an output the producer actually exposes.
|
|
136
|
+
step and to an output the producer actually exposes. The document contract
|
|
137
|
+
itself is defined by the published `@tuned-tensor/pipeline-contract` package;
|
|
138
|
+
the CLI adds only execution planning (step selection and cross-target
|
|
139
|
+
transfers) on top of it.
|
|
123
140
|
|
|
124
141
|
```bash
|
|
125
142
|
# Generate the canonical four-step recipe for either target.
|