@tangle-network/sandbox-cli 0.23.332 → 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
@@ -394,6 +394,15 @@ preserves the protected checks. Harbor grades the resulting patch through
394
394
  the same evaluator used for generated candidates. The authored profile still
395
395
  defines the campaign environment. This mode skips author inference.
396
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
+
397
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.
398
407
 
399
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.
@@ -814,6 +823,9 @@ tangle agent prompt sbx_123 "triage issues" \
814
823
  --connection github:github.issues.search,github.issues.create
815
824
  tangle agent prompt sbx_123 "file the report" --connection github:* --allow-writes
816
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
+
817
829
  # temporary GPU for an eval; omitted provider picks the cheapest configured cloud
818
830
  tangle sandbox gpu run sbx_123 \
819
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.