refactor!: remove versioned system-run approval contract

This commit is contained in:
Peter Steinberger
2026-03-02 01:12:47 +00:00
parent 1636f7ff5f
commit 155118751f
33 changed files with 564 additions and 215 deletions

View File

@@ -1,11 +1,11 @@
{
"cases": [
{
"name": "v1 matches when env key order changes",
"name": "binding matches when env key order changes",
"request": {
"host": "node",
"command": "git diff",
"bindingV1": {
"binding": {
"argv": ["git", "diff"],
"cwd": null,
"agentId": null,
@@ -25,11 +25,11 @@
"expected": { "ok": true }
},
{
"name": "v1 rejects env mismatch",
"name": "binding rejects env mismatch",
"request": {
"host": "node",
"command": "git diff",
"bindingV1": {
"binding": {
"argv": ["git", "diff"],
"cwd": null,
"agentId": null,
@@ -49,11 +49,11 @@
"expected": { "ok": false, "code": "APPROVAL_ENV_MISMATCH" }
},
{
"name": "v1 rejects unbound env overrides",
"name": "binding rejects unbound env overrides",
"request": {
"host": "node",
"command": "git diff",
"bindingV1": {
"binding": {
"argv": ["git", "diff"],
"cwd": null,
"agentId": null,
@@ -89,12 +89,12 @@
"expected": { "ok": false, "code": "APPROVAL_REQUEST_MISMATCH" }
},
{
"name": "v1 stays authoritative when legacy command text diverges",
"name": "binding stays authoritative when legacy command text diverges",
"request": {
"host": "node",
"command": "echo STALE",
"commandArgv": ["echo", "STALE"],
"bindingV1": {
"binding": {
"argv": ["echo", "SAFE"],
"cwd": null,
"agentId": null,