-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperator.json
More file actions
94 lines (86 loc) · 3.19 KB
/
operator.json
File metadata and controls
94 lines (86 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"schema_version": "operator.v0",
"name": "pack",
"version": "0.2.3",
"description": "Standalone sealing entrypoint for lockfiles, reports, rules, and registry artifacts",
"repository": "https://github.com/cmdrvl/pack",
"license": "MIT",
"agent_guide": "https://github.com/cmdrvl/.github/blob/main/profile/AGENT_PROMPT.md",
"invocation": {
"binary": "pack",
"usage": [
"pack seal <LOCKFILE> [<ARTIFACTS>...] [--output <DIR>] [--no-witness]",
"pack verify <PACK_DIR> [--json] [--no-witness]",
"pack diff <PACK_A> <PACK_B> [--json]",
"pack witness <query|last|count> [OPTIONS]"
],
"output_mode": "mixed",
"output_schema": "pack.v0",
"json_flag": "--json"
},
"arguments": [],
"options": [
{ "name": "no_witness", "flag": "--no-witness", "type": "flag", "description": "Suppress witness ledger recording" },
{ "name": "describe", "flag": "--describe", "type": "flag", "description": "Print compiled operator.json and exit 0" },
{ "name": "schema", "flag": "--schema", "type": "flag", "description": "Print pack.v0 JSON Schema and exit 0" },
{ "name": "version", "flag": "--version", "type": "flag", "description": "Print version and exit 0" }
],
"subcommands": [
{
"name": "seal",
"description": "Standalone sealing interface for artifacts already on disk",
"exit_codes": {
"0": { "meaning": "PACK_CREATED", "domain": "positive" },
"2": { "meaning": "REFUSAL", "domain": "error" }
}
},
{
"name": "verify",
"description": "Verify pack integrity (members + pack_id)",
"exit_codes": {
"0": { "meaning": "OK", "domain": "positive" },
"1": { "meaning": "INVALID", "domain": "negative" },
"2": { "meaning": "REFUSAL", "domain": "error" }
}
},
{
"name": "diff",
"description": "Deterministically diff two packs",
"status": "deferred",
"exit_codes": {
"0": { "meaning": "NO_CHANGES", "domain": "positive" },
"1": { "meaning": "CHANGES", "domain": "negative" },
"2": { "meaning": "REFUSAL", "domain": "error" }
}
},
{
"name": "witness",
"description": "Query witness ledger"
}
],
"exit_codes": {
"0": { "meaning": "SUCCESS", "domain": "positive" },
"1": { "meaning": "INVALID or CHANGES", "domain": "negative" },
"2": { "meaning": "REFUSAL", "domain": "error" }
},
"refusals": [
{ "code": "E_EMPTY", "message": "Seal called with no artifacts", "action": "escalate" },
{ "code": "E_IO", "message": "Cannot read input, write output, or read pack directory", "action": "escalate" },
{ "code": "E_DUPLICATE", "message": "Member path collision during seal (including reserved paths)", "action": "escalate" },
{ "code": "E_BAD_PACK", "message": "Missing or invalid manifest.json for verify/diff/push", "action": "escalate" }
],
"capabilities": {
"formats": ["*"],
"profile_aware": false,
"streaming": false,
"witness": {
"ambient_recording": "enabled_by_default",
"query_subcommands": false,
"no_witness_flag": "suppresses_recording"
}
},
"pipeline": {
"upstream": ["lock", "canon", "rvl"],
"downstream": []
}
}