Repository navigation
docs(skills): resolve contradictions between the testing and verification skills - #14187
Merged
Merged
Conversation
Collaborator
Author
Authoring session — opening
|
Contributor
cv
added a commit
that referenced
this pull request
Nov 4, 2026
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. --> <!-- SPDX-License-Identifier: Apache-2.0 --> ## Failure Both reviewers of #14187 found four non-blocking problems in the procedures it changed; #14187 merged before the fixes landed: - **Without State's wait ignored its own result.** If `openshell sandbox list` failed, the loop ended at once; if the 120-second `timeout` expired, the block still deleted the provider and stopped the gateway while the sandbox was still deleting, which can strand its container. The loop also parsed the list's table layout. - **The finding template's Owner line used a relative link** inside a `text` block that runs copy into `$EVIDENCE/findings.md`, outside the checkout, where the link points nowhere. - **The generated-skill search disagreed with its prose.** The prose said to search the roots `openshell sandbox get assistant` lists, while the command hard-codes three, and "hides `/`" was vaguer than what Landlock does. - **Cleanup asked about keeping a downloaded model but gave no next step**, so a runner whose user keeps the model went straight into the removal. ## Decision - The wait uses `openshell sandbox list --names | grep -qx assistant`, which doesn't depend on the table, and NemoClaw's own 300-second budget. On a timeout it prints `sandbox still listed`, and the prose says to stop there without deleting the provider or stopping the gateway. The reason now comes before the block: OpenShell refuses to delete a provider attached to a sandbox that is still deleting. - The Owner line names the upstream boundaries in `docs/design/scope.md` as plain text. - The search's prose names the default writable roots, `/sandbox`, `/tmp`, and `/home/node`, and says to add any other `read_write` directory that `openshell sandbox get assistant --policy-only` lists; it says the policy makes `/` unreadable. - Cleanup adds: if the user keeps the model, stop and keep the state directory and bundle. What such a run reports stays with #14181. Not changed: the plugin reconcile step's fresh nonce (`plugins.md`), which no pinned harness can reach yet; see Validation. ## Validation Static checks: - `git diff --check`: clean. - `sh -n` under dash and bash: the Without State block, the wait's inner script, and the search command all exit 0. The timeout branch, run with a 1-second loop, prints `sandbox still listed` and exits 1. - Links: all 105 relative links and anchors in the changed files of #14187 and this PR resolve; the count dropped by one with the Owner link. - The `checks.md` count pipeline still gives 136 for `hermes` and `openclaw` and 131 for `deepagents-code`. - `--names` and `--policy-only` exist in the pinned OpenShell CLI 0.1.6 (`openshell sandbox list --help`, `openshell sandbox get --help`). Live runs on a DGX Spark against an operator-owned vLLM endpoint serving `nemotron-3.5-super-vl`; evidence is on the Spark under `~/nemoclaw-verify/dgx-spark-AGENT/RUN/evidence`. | Run | What it drove | Result | |---|---|---| | hermes `20261104T112525Z` | Without State, as this PR writes it | Doctor passed and the agent replied `READY_OK`. With the state directory moved aside, the ownership checks passed. Right after the delete, `sandbox list --names` still showed `assistant`; the wait exited 0 after 2 seconds and the provider delete succeeded. The label stop stopped only this run's gateway, the removal left counts 0 and 0, and no other container changed. | | openclaw `20261104T110523Z` | The plugin reconcile chain | The agent's `openclaw plugins install <local dir>` exited 1: the Fabric adapter sets `OPENCLAW_CONFIG_READONLY=1`, and OpenClaw refuses every install variant under it. `agent-plugin-install` Failed; activate, reuse, and reconcile Not tested. | | deepagents-code `20261104T111426Z` | The plugin reconcile chain | The agent installed the plugin offline from a local marketplace (`dcode plugin marketplace add`, `dcode plugin install`, exit 0, enabled). The installer asks for `/reload`, which an invocation can't run; the runtime restart gave the new runtime a fresh Deep Agents Code home without the plugin, so `agent-plugin-activate` Failed. A separately recorded diagnostic reinstalled the plugin in one runtime, but its hook didn't fire without `/reload`, so the reconcile step had nothing to keep. | In #14187's hermes run, `hermes plugins install` needed to download a Python runtime that the isolated network tier blocks. So the reconcile step's fresh nonce still hasn't been driven live: each pinned harness needs either a network grant or an adapter route for agent-installed plugins first. #14183 covers how such gaps count. The `deepagents-code` run used `approval_mode: yolo`, which its agent file allows, because `auto` denied every shell call: its classifier model isn't served by the endpoint. All runs removed their own resources and left the endpoint running.
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure
Several agent skills give an agent contradictory instructions, and some verify-skill steps can't run as written:
create-verification-skill,verify-yaml-deployment, andverify-fabric-boundarysay to turn a journey into a Rust live test, whilewrite-testspicks the layer and preferstofu testscenarios;AGENTS.mdsaid tests are Rust only.verify-yaml-deployment) used$owner_labelwithout setting it, and an empty--filtermatches every object on the engine. It deleted the sandbox before checking ownership and stopped the gateway by name, which the same skill forbids.verify-yaml-deployment) removed every UID-labelled volume, including a managed model's download, before the line that says keeping the model is the user's decision, and deleted the state directory and bundle before checking that the removal finished, whichdocs/usage.mdsays to keep until then.verify-fabric-boundary) lists completed runs, which the same skill says are not passes.verify-*.maintain-formal-verification-skillread everyverify-*skill, so it picked up the two journey skills and its "none exists" branch could never fire;maintain-verification-skillhad the mirror problem.test-driven-developmenteven whenwrite-testsfound an existing test that covers it.verify-fabric-boundary, though upstream boundaries decide who must fix each one.skills.mdandmounted-extensions.md).plugins.mdreused a nonce that its own precondition requires to be absent.skills.mdpassed unescaped parentheses to the sandbox'ssh -c, a syntax error.add-fabric-harnesstold contributors to edit a fixture registry that test(contract): migrate provider contract scenarios to tofu test #14064 removed.dgx-spark.mdsaidsudo grepis needed, whichdeploy-and-answer.mdsays it isn't.Decision
This PR makes the edits that both reviewers of the three independent skill reviews agreed on, with these choices:
write-testspicks;AGENTS.mdallows tests in Rust or astofu testscenarios.owner_label, checks ownership (the workspace's UID label and every container name) before deleting anything, and stops containers by the UID label.Proven PairsbecomesCompleted Runs, keeping every recorded row.4dd1d05, soNOTICE.mddrops the line recording the old deviation. The journey maintainer only takesverify-*skills with launch and drive sections and a feature map. No renames.test-driven-developmentkeeps an already-passing test only whenwrite-testsfound nothing that covers it.mounted-native-tool-first-startruns right aftermounted-skill-first-start; the reconcile step writes a fresh nonce first; theadd-fabric-harnessfixture step only regenerates; thesudo grepline is gone.The live runs below found two more defects in the procedures this PR edits, fixed in their own commits:
openshell sandbox list./unreadable. It now searches the policy's writable roots,/sandbox,/tmp, and/home/node, the only places the agent can save a file.Follow-ups, filed as
v1issues:verify-yaml-deploymentruns host Python and Node, whichAGENTS.mdrules out.verify-fabric-boundarycounts upstream-owned gaps and behavior NemoClaw rejects on purpose.Not changed here: the duplicated table header at
docs/contributing/live-tests.md:90-92; the column-0printfcontinuation lines inskills.md, which work but render oddly; andREPLACE_WITH_PROVIDER_NAMEin Without State againstcreate-verification-skill's "no placeholders".Validation
Static checks, on the final commit:
git diff --check: clean; the pre-commit whitespace hook passed on each commit.sh -nunder dash and bash: every changed shell block and the innersh -cscripts of the generated-skill search and the Without State wait exit 0; the old search script exits 2 under both.#completed-runslinks; nothing else linked#proven-pairs.checks.mdcount pipeline still gives 136 forhermesandopenclawand 131 fordeepagents-code..agents/**andAGENTS.mdmark nothing changed.Live runs on a DGX Spark (GB10, Docker direct), at
4abad36df3plus the fixes, withhermes. Inference was an operator-owned vLLM endpoint servingnemotron-3.5-super-vl(NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4 atda5b2650a8), so these results bind to that model, not the target file's Nemotron 3 Super. Evidence is on the Spark under~/nemoclaw-verify/dgx-spark-hermes/RUN/evidence.20261104T100758Zverify-yaml-deployment: launch, doctor, deploy-and-answer, edited CleanupREADY_OK; DA2 found 0 key copies; destroy printedDESTROYED. Cleanup listed only the gateway's container, volume, and network, so no model removal applied. Both counts were 0 while the state directory and bundle were still present; after that they were removed and the evidence listed. Credential scan 0 and 0.20261104T101425Zowner_labelwas set; the workspace was labeled with the run's UID and every container name started with$WORKSPACE. The provider delete failed while the sandbox deletion was pending. Stopping by label stopped only this run's gateway; the removal left counts 0 and 0; no other container changed.20261104T101640Z20261104T102153Zverify-fabric-boundary, Initial checks for the edited steps, then teardown and cleanupmounted-skill-first-startwas the first request;mounted-native-tool-first-startandmounted-plugin-first-startran right after it, beforeinference, and are Failed without prompts because Hermes has no route to load mounted extensions (F2). The escaped search found nothing (/unreadable); the writable-roots search found the generated skill. The plugin installer failed offline (F4), soagent-plugin-reconcileand the fresh-nonce step were Not tested.teardownPassed; Cleanup counts 0 and 0; the caller volumes were removed.The fabric run was partial: 15 of 136 rows have outcomes (4 Passed, 7 Failed, 4 Not tested), so it is not a completed run and isn't added to Completed Runs. Its findings use the new Owner line. The reconcile nonce step (
plugins.md) was not driven live: Hermes'shermes plugins installdownloads a Python runtime that the sandbox's isolated network tier blocks, and widening the policy was out of scope. The Cleanup question about a downloaded model was not exercised, because every run used the external endpoint and downloaded no model.The operator-owned endpoint (
nemoclaw-persistent-nemotron-3.5-super-vl, labeledorg.nemoclaw.lifecycle=persistent) kept running through every cleanup and was not removed.