feat(contracts): define non-authorizing install plans - #322
Draft
davida-ps wants to merge 1 commit into
Draft
Conversation
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.
User description
Purpose
Define the reviewable plan that a future
clawsec-core-<harness>must produce before any skill installation is authorized or executed.This is a contract-only PR. It does not add or change an installable skill.
Stack
davida-ps/result-envelope-contract-v1/ feat(contracts): add result envelope v1 #321fdbadefConcrete behavior
clawsec.install-plan/v1forcore.plan-release.readyplan contains every proposed action, exact target, before/after state, expected effect, rollback source/order, artifact identity, staged-input identity, target-instance identity, and futurecore.install-releasecontext.readymeans complete enough to review. It does not grant operator authorization and it does not claim execution.blockedplan contains at least one blocker and contains no actions, effects, rollback order, apply context, or confirmation challenge.scope_root.Harness adapters
prototype_pending; v1 can only produce a blockedunsupported_native_operationplan.prototype_pending; v1 can only produce a blockedunsupported_native_operationplan.The NanoClaw fixture is pinned to the audited v2.1.17 contract surface. It is a contract fixture, not a blanket current-version support claim. No retired branch-merge,
/workspace/ipc, or container-owned trust model is introduced.Deliberate non-goals
Verification
Final clean-room lab preserved at:
davida@20.14.133.241:/tmp/clawsec-install-plan-final.GvyF93/repoThe lab was freshly cloned from
https://github.com/prompt-security/clawsec.gitand detached at exact base:47a63a0288ebd975a2287cf76b878e68a20f2565All 17 copied files matched the local candidate by SHA-256. Audit-critical final hashes:
e5cc274c422ab510dd089ba43b3e73e7c26cdfe457cf2f2c98f557ead544b1614435578daa2da85d7387d2a9aee801732c97ceecba0b54fbf8cee6cbc1903d88Passed remotely:
npm cinode --checkfor all changed/new.mjsfilesnpm run test:install-plan-contractnpm run test:metadata-contractsnpm run test:result-envelope-contractnode scripts/test-skill-lifecycle-semver.mjsnpx eslint . --ext .ts,.tsx,.js,.jsx,.mjs --max-warnings 0npx tsc --noEmitnpm run buildgit diff --checkTwo independent final read-only audits reported no P0, P1, or P2 findings against the exact hashes above.
npm cialso reported three dependency-audit findings (one moderate, two high).package-lock.jsonis unchanged, and dependency remediation is intentionally outside this contract PR.Review focus
readyvs.blockedlanguage sufficiently clear that no authorization or execution is implied?core -> suite -> optional guardiandesign before any skill implementation starts?Generated description
Below is a concise technical summary of the changes proposed in this PR:
Define the
clawsec.install-plan/v1contract and policy aroundcore.plan-release, soinstall-plan-v1.schema.jsonandinstall-plan-policy.jsoncan describe non-authorizingreadyandblockedplans for exact-tree installation. Add adapter-specific validation foropenclaw,hermes,nanoclaw, andpicoclawthrough the install-plan schemas, registry, and validator scripts that enforce futurecore.install-releasebindings and rollback rules.openclaw,hermes,nanoclaw, andpicoclawinstall flows.Modified files (13)
Latest Contributors(1)
core.plan-release.Modified files (4)
Latest Contributors(1)