@skein-code/cli 0.3.10 → 0.3.12

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 CHANGED
@@ -43,6 +43,14 @@ inspectable index for code retrieval and no retrieval service dependency.
43
43
  source spans, and rebuild it explicitly when needed.
44
44
  - **Visible trust:** per-category permissions, deny rules, hooks, workspace path
45
45
  enforcement, changed-file telemetry, and persisted tool results.
46
+ - **Bounded tool context:** large tool results cannot crowd the task out of the
47
+ model window. Skein keeps a token-budgeted head/tail receipt and, when the
48
+ producer captured the complete result, retains a redacted session-scoped
49
+ artifact for bounded readback.
50
+ - **Measurable token economy:** every model request records a privacy-safe
51
+ receipt for stable, dynamic, history, retrieval, tool-result, and tool-schema
52
+ estimates, alongside actual provider usage when available. Receipts retain
53
+ only counts and runtime decisions, never prompt or source content.
46
54
  - **Reversible work:** Skein snapshots affected files before mutation without
47
55
  touching your Git history.
48
56
  - **Resumable by default:** conversations, tasks, usage, and changed files live
@@ -78,7 +86,7 @@ To build, verify, and install a local package artifact from this checkout:
78
86
 
79
87
  ```bash
80
88
  npm run verify:package -- --output-dir artifacts/package
81
- npm install -g ./artifacts/package/skein-code-cli-0.3.10.tgz
89
+ npm install -g ./artifacts/package/skein-code-cli-0.3.12.tgz
82
90
  ```
83
91
 
84
92
  To install the published package from npm:
@@ -183,6 +191,19 @@ compacted session summary, and durable retrieval layer separately. Model-
183
191
  suggested durable memories can be reviewed with `/memory candidates` and then
184
192
  approved or rejected.
185
193
 
194
+ Tool output has three explicit boundaries. Shell capture is bounded while the
195
+ process runs; completed MCP responses are reduced to a 5 MiB adapter result
196
+ before entering the runner. This MCP boundary limits transcript amplification,
197
+ but it is not a process sandbox or a streaming transport limit. The runner then
198
+ uses the remaining session/context headroom to expose at most 1,024–8,192
199
+ estimated tokens to the model. An oversized result becomes a head/tail receipt
200
+ that preserves completion or failure state, exit code, changed files, original
201
+ size, and a SHA-256-bound `read_tool_artifact` continuation when the complete
202
+ captured result is available. Artifacts are redacted before persistence, belong
203
+ only to the originating session, expire after seven days, and are removed when
204
+ that session is deleted. A receipt marked `source-truncated` is honest about
205
+ bytes already omitted by the producing tool; those bytes cannot be recovered.
206
+
186
207
  At 96 columns and wider, a fresh session uses a two-column welcome surface. The
187
208
  left side keeps Skein's brand, workspace path, and next actions close to the
188
209
  composer; the right side reports the actual model, mode, local index file/chunk
@@ -387,6 +408,12 @@ are stale, moved, symlinked, binary, or outside the workspace. Retrieval is
387
408
  evidence only: the model must still confirm factual claims with read or other
388
409
  workspace tools.
389
410
 
411
+ Retrieval budgets are adaptive and treat `context.maxTokens` as a ceiling:
412
+ focused requests start at 2k estimated tokens, ordinary implementation/debug
413
+ work at 4k, cross-module work at 8k, and only explicit exhaustive repository
414
+ work can use 12k. The context receipt reports the chosen tier, reason, candidate
415
+ and selected hit counts, overlap drops, and evidence above the focused base.
416
+
390
417
  To measure a local index change, run the reproducible benchmark with an explicit
391
418
  query-to-relevant-file manifest:
392
419
 
@@ -499,8 +526,11 @@ Add both `.mosaic/` and `.skein/` to `.gitignore` unless the team intentionally
499
526
  shares a sanitized configuration file elsewhere.
500
527
 
501
528
  Session JSON also keeps a bounded audit trail of permission decisions, tool
502
- outcomes, changed files, and checkpoint ids. `skein session export` includes
503
- that trail in the Markdown export.
529
+ outcomes, changed files, checkpoint ids, and artifact receipts, never artifact
530
+ contents. `skein session export` includes the audit trail in the Markdown
531
+ export. Oversized result contents live separately under the active project
532
+ namespace's `tool-artifacts/` directory and are governed by session deletion,
533
+ expiry, per-item size, total-storage, and integrity checks.
504
534
 
505
535
  ## Development
506
536