Skip to content

docs(skills): resolve contradictions between the testing and verification skills - #14187

Merged
cv merged 3 commits into
v1from
docs/skills-contradictions
Nov 4, 2026
Merged

cv merged 3 commits into
v1from
docs/skills-contradictions

Conversation

@cv

@cv cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Failure

Several agent skills give an agent contradictory instructions, and some verify-skill steps can't run as written:

  • Test layer. create-verification-skill, verify-yaml-deployment, and verify-fabric-boundary say to turn a journey into a Rust live test, while write-tests picks the layer and prefers tofu test scenarios; AGENTS.md said tests are Rust only.
  • Without State (verify-yaml-deployment) used $owner_label without setting it, and an empty --filter matches every object on the engine. It deleted the sandbox before checking ownership and stopped the gateway by name, which the same skill forbids.
  • Cleanup (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, which docs/usage.md says to keep until then.
  • Proven Pairs (verify-fabric-boundary) lists completed runs, which the same skill says are not passes.
  • Formal and journey verify skills share verify-*. maintain-formal-verification-skill read every verify-* skill, so it picked up the two journey skills and its "none exists" branch could never fire; maintain-verification-skill had the mirror problem.
  • An already-passing test was kept as regression coverage by test-driven-development even when write-tests found an existing test that covers it.
  • Findings had no owner in verify-fabric-boundary, though upstream boundaries decide who must fix each one.
  • Two checks both run "first" in the Initial phase (skills.md and mounted-extensions.md).
  • The hook reconcile request in plugins.md reused a nonce that its own precondition requires to be absent.
  • The generated-skill search in skills.md passed unescaped parentheses to the sandbox's sh -c, a syntax error.
  • add-fabric-harness told contributors to edit a fixture registry that test(contract): migrate provider contract scenarios to tofu test #14064 removed.
  • dgx-spark.md said sudo grep is needed, which deploy-and-answer.md says it isn't.

Decision

This PR makes the edits that both reviewers of the three independent skill reviews agreed on, with these choices:

  • Each verify skill now routes an every-change journey to the layer write-tests picks; AGENTS.md allows tests in Rust or as tofu test scenarios.
  • Without State sets owner_label, checks ownership (the workspace's UID label and every container name) before deleting anything, and stops containers by the UID label.
  • Cleanup asks before removing a model the run downloaded, keeps the state directory and bundle until both counts are 0, then removes them and checks that the evidence still lists. What keeping the model means for a run is verify-yaml-deployment: decide what keeping a downloaded model means for a run #14181.
  • Proven Pairs becomes Completed Runs, keeping every recorded row.
  • The formal maintainer finds skills by what they do ("runs a model checker, prover, or verifier against named code"), as upstream pstack does at 4dd1d05, so NOTICE.md drops the line recording the old deviation. The journey maintainer only takes verify-* skills with launch and drive sections and a feature map. No renames.
  • test-driven-development keeps an already-passing test only when write-tests found nothing that covers it.
  • Each finding gets an Owner line that links upstream boundaries.
  • mounted-native-tool-first-start runs right after mounted-skill-first-start; the reconcile step writes a fresh nonce first; the add-fabric-harness fixture step only regenerates; the sudo grep line is gone.

The live runs below found two more defects in the procedures this PR edits, fixed in their own commits:

  • Without State: OpenShell deletes a sandbox in the background and refuses to delete a provider that a sandbox still uses, so the provider delete failed. The procedure now waits, up to 120 seconds, for the sandbox to leave openshell sandbox list.
  • Generated-skill search: with the parentheses escaped the command ran but found nothing, because the sandbox's filesystem policy makes / 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 v1 issues:

Not changed here: the duplicated table header at docs/contributing/live-tests.md:90-92; the column-0 printf continuation lines in skills.md, which work but render oddly; and REPLACE_WITH_PROVIDER_NAME in Without State against create-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 -n under dash and bash: every changed shell block and the inner sh -c scripts of the generated-skill search and the Without State wait exit 0; the old search script exits 2 under both.
  • Links: all 106 relative links and anchors in the 13 changed files resolve, including both #completed-runs links; nothing else linked #proven-pairs.
  • The checks.md count pipeline still gives 136 for hermes and openclaw and 131 for deepagents-code.
  • No CI step reads these files: .agents/** and AGENTS.md mark nothing changed.

Live runs on a DGX Spark (GB10, Docker direct), at 4abad36df3 plus the fixes, with hermes. Inference was an operator-owned vLLM endpoint serving nemotron-3.5-super-vl (NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4 at da5b2650a8), 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.

Run Procedure Result
20261104T100758Z verify-yaml-deployment: launch, doctor, deploy-and-answer, edited Cleanup Doctor passed; DA1 replied READY_OK; DA2 found 0 key copies; destroy printed DESTROYED. 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.
20261104T101425Z Without State, state directory moved aside Destroy refused without state. owner_label was 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.
20261104T101640Z Without State, with the wait fix Same checks; the wait exited 0, the provider delete succeeded, counts 0 and 0, no other container changed.
20261104T102153Z verify-fabric-boundary, Initial checks for the edited steps, then teardown and cleanup mounted-skill-first-start was the first request; mounted-native-tool-first-start and mounted-plugin-first-start ran right after it, before inference, 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), so agent-plugin-reconcile and the fresh-nonce step were Not tested. teardown Passed; 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's hermes plugins install downloads 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, labeled org.nemoclaw.lifecycle=persistent) kept running through every cleanup and was not removed.

@cv

cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi coding agent 1.5.0, with the Pit typescript tool Session header names the harness format (v3) but no version; the version comes from the install path in the session's system prompt
Skills recorded nemoclaw-contributor-create-pr (complete read); verify-yaml-deployment (complete read) Reads in the session record to cutoff; write-tests, verify-fabric-boundary, and others were read in part and aren't counted
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and reads in the session record to cutoff
Tool calls partial typescript: 170 Assistant tool calls in the session record from start to cutoff, including failed calls; the wrapper hides the nested workspace, shell, git, and gh calls, which aren't counted
Session window recorded 2026-11-04T09:38Z to 2026-11-04T10:38Z; 60 min First event to cutoff (before publishing), including idle time while blocked
Compactions recorded 0 Complete record to cutoff; it has 5 context edits (summaries and notes), which aren't compactions
Models recorded claude-opus-5-5 Model-change event and assistant messages; no changes
Reasoning levels recorded high One thinking-level event; no changes

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 1ccfe1f into v1 Nov 4, 2026
51 checks passed
@cv
cv deleted the docs/skills-contradictions branch November 4, 2026 11:03
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.
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening area: skills Skills, agent behaviors, prompts, or skill packaging chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Nov 4, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure area: sandbox OpenShell sandbox lifecycle, runtime, config, or recovery area: security Security controls, permissions, secrets, or hardening area: skills Skills, agent behaviors, prompts, or skill packaging chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants