@tangle-network/sandbox-cli 0.23.331 → 0.23.333

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
@@ -375,6 +375,9 @@ Concurrent campaigns build that shared base in private staging directories and p
375
375
  Replay admission retains the Harbor owner's asset commitments for the admitted split and probe cases, alongside their execution inputs. Those commitments bind both the default campaign identity and explicit-directory resume. Changed configuration, instructions, environment or verifier assets require a fresh campaign. Historical campaigns without this admission remain intact and cannot be qualified by attaching today's identity. This requires an Eval release exposing imported `assetIdentity`; an older owner refuses before replay. The admission contains commitments, not verifier contents.
376
376
  Each arm position replays its own runs, so identical arm files are two samples,
377
377
  and a settled run whose outputs name no branch is an error, never an empty-patch zero.
378
+ Each arm's `timings` reports the wait for earlier arms apart from dispatch and
379
+ wall time. Wall time includes grading. Older cached cells without a measured
380
+ ordering wait have a null timing entry.
378
381
 
379
382
  The same Harbor source can train an exact graph code candidate through the maintained native generator:
380
383
 
@@ -391,6 +394,15 @@ preserves the protected checks. Harbor grades the resulting patch through
391
394
  the same evaluator used for generated candidates. The authored profile still
392
395
  defines the campaign environment. This mode skips author inference.
393
396
 
397
+ Use `tangle graph candidate search <bundle-roster> <driver> --campaign <directory>`
398
+ to search complete candidate bundles. A trusted driver that requests a held-out
399
+ comparison supplies Eval's `finalEvidence` with the shared policy, final
400
+ scenarios and development scenarios. The CLI keeps its own per-campaign search
401
+ ledger. Eval reserves the held-out units before search and records the selected
402
+ bundles before final execution. The
403
+ [Factory delivery driver](https://github.com/tangle-network/factory/tree/main/benchmarks/tangle-episodes/native)
404
+ shows how to bind a Harbor evaluator to this command.
405
+
394
406
  Candidate admission uses Runtime's loader to bind each admitted task's parameters before checking its served model. Parameterized models, tools and budgets follow the same loader as execution. Candidates need explicit canonical seats and the baseline's measured model. The offline executor replaces Factory's exact repository-scoped GitHub proxy declaration with the case's local Git remote and supplies the replay placeholder to checks declaring `GITHUB_TOKEN`. It refuses other proxy and check secrets. The retained result records both the authored and executed source digests.
395
407
 
396
408
  `--probe` limits the admitted train cases before task assets are opened. The suite owns repetitions and total campaign bounds. The native author and its verifier use the existing single-graph mutation policy. With `--unseal <reason>`, confirmation freezes the selected CodeSurface before loading the test cohort and compares the baseline and candidate under the same parent budget. Eval retains the paired evidence and the candidate stays held for review. The probe limit also applies to the test cohort when confirmation is requested.
@@ -811,6 +823,9 @@ tangle agent prompt sbx_123 "triage issues" \
811
823
  --connection github:github.issues.search,github.issues.create
812
824
  tangle agent prompt sbx_123 "file the report" --connection github:* --allow-writes
813
825
 
826
+ # a repository's tests in a fresh sandbox, deleted when they end; exits with their exit code
827
+ tangle sandbox run --repo https://github.com/acme/app.git --ref <sha> -- 'pnpm install && pnpm test'
828
+
814
829
  # temporary GPU for an eval; omitted provider picks the cheapest configured cloud
815
830
  tangle sandbox gpu run sbx_123 \
816
831
  --accelerator-kind nvidia-rtx-3090 \
package/SKILL.md CHANGED
@@ -138,6 +138,19 @@ tangle sandbox expose <id> --port 3000
138
138
  tangle sandbox urls <id>
139
139
  ```
140
140
 
141
+ ## Run tests or CI in a fresh sandbox
142
+
143
+ `tangle sandbox run` runs a repository at a commit, or a gzip tar of a working tree, with one command in a new sandbox.
144
+ It streams the output, prints a receipt (stage timings, cache, cost), deletes the sandbox, and exits with the command's exit code: 124 timed out, 75 retry later (no spare room, sandbox lost), 130 cancelled.
145
+
146
+ ```bash
147
+ tangle sandbox run --repo https://github.com/acme/app.git --ref <sha> -- 'pnpm install --frozen-lockfile && pnpm test'
148
+ git ls-files -z | tar --null -T - -czf /tmp/tree.tgz
149
+ tangle sandbox run --archive /tmp/tree.tgz --cpu 4 --memory 8192 --receipt receipt.json -- 'pnpm test'
150
+ ```
151
+
152
+ `~/.cache` is kept between runs per account and repository, keyed by the lockfile (`--cache-key-file`, `--no-cache`).
153
+
141
154
  ## Temporary GPUs
142
155
 
143
156
  Use a normal sandbox first, then attach a GPU only for the work that needs it.