Repository navigation
fix(images): stop the dummy agent claiming Fabric validation - #13046
Merged
Merged
Conversation
Follow-up to #13036 from a fresh adversarial review. The dummy stored its contract pin in provenance.json, which the host reports as the Fabric revision that validated a configuration; Fabric validates nothing in the dummy. It now uses contract.json, and validate reports a null revision again. The lifecycle test's post-destroy check could not tell a removed sandbox from a removed gateway. It now asserts Docker holds none of the gateway's sandbox objects and still holds the retained storage, checks that plan defers the sandbox and that reapply succeeds, invokes through exec_input, and keeps its state directory when it fails so nemoclaw destroy still works. Archive loads now remove only the platform archive names a step does not use, not every nc-live-images name another worktree's build may hold. Gateway documents take harness settings as a JSON map. The dummy descriptor names the module the image installs, and the dummy catalog test runs whenever the reference-tests stage sets NEMOCLAW_REFERENCE_TESTS instead of skipping when a file is missing. Validation: the null-revision and archive-name tests failed before the fixes; cargo ci (1384 tests, 127 lifecycle), the image lint, reference-tests (21), unit-tests (79, 2 skipped), qualification, and the live dummy test (38.8 s) pass locally.
Contributor
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.
Follow-up to #13036 from a fresh adversarial review of the merged change.
Failure
/opt/nemoclaw/provenance.json. The host reads that file to report which Fabric revision validated a configuration, so the dummy'svalidatebegan reporting24f068c8…, thoughdummy_backend.pydid the validating and the dummy has no Fabric.nemoclaw destroyneeds.nc-live-images:*name, including names another worktree'scargo ci live-imagesbuild on the same Docker daemon might hold.Decision
contract.json, which onlydummy_catalog.pyreads;validatereports a null Fabric revision again.nemoclaw destroy --state-dir.OpenShell::exec_inputinstead of ash -cpipe;GatewayInputs.settingsis a JSON map; the descriptor'srunner.modulenames the installedbackend; the dummy catalog test runs whenever thereference-testsstage setsNEMOCLAW_REFERENCE_TESTS=1, so a missing installed file fails instead of skipping.No action on the reviewer's note that production images copy the dummy's files under
/opt/nemoclaw/source/local/; every production image already copies all ofimage/fabric/by design.Validation
test_reference.py) and the archive-name test (ci_lifecycle.rs) failed before their fixes and pass now.cargo cipasses (1,384 tests, 127 lifecycle), as do the image lint,reference-tests(21 tests),unit-tests(79, 2 skipped),cargo images qualify --require-ready, and the docs check.