Repository navigation
Expand file tree
/
Copy pathcli-contract.yaml
More file actions
10163 lines (10162 loc) · 310 KB
/
Copy pathcli-contract.yaml
File metadata and controls
10163 lines (10162 loc) · 310 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Generated artifact -- do not edit directly.
# Compiled by Tools/compile_cli_contract.py from each CLI's argparse
# declaration plus Tools/agent-interface-policy.yaml. Invocation
# shape comes from argparse; capability shape comes from the closed
# policy. A hand edit is reported by --check as a HOLD.
# regenerate with: python3 Tools/compile_cli_contract.py . --projection-target source-distribution
# verify with: python3 Tools/compile_cli_contract.py . --projection-target source-distribution --check
# `source_hash` covers the policy, runtime path registry, and 67
# CLI tool sources listed under source_files.
# A positional argument is one whose `option_strings` is empty.
# `choices` is the admissible SET in canonical order, not the
# declaration order: several tools build it from a Python set,
# whose iteration order is not stable between processes.
# The auto-added -h/--help action is omitted: argparse translates
# its help text, which would make this artifact locale-dependent.
schema_version: 11
artifact: cli-invocation-contract
generator: Tools/compile_cli_contract.py
generator_version: 1.8.0
derived_from: entrypoint-owner-argparse-and-receipt-analysis
source_files:
- Tools/agent-interface-policy.yaml
- Tools/execution/task_runtime/runtime_paths.py
- Tools/adopt_standards.py
- Tools/apply_amendment.py
- Tools/apply_contract_amendment.py
- Tools/apply_delta.py
- Tools/apply_metadata_transition.py
- Tools/apply_profile_adoption.py
- Tools/assemble_terminal_proof.py
- Tools/check_batch_close.py
- Tools/check_boundary_contract.py
- Tools/check_corpus_plan.py
- Tools/check_freshness.py
- Tools/check_kernel_size.py
- Tools/check_links.py
- Tools/check_moc.py
- Tools/check_page_contract.py
- Tools/check_profile.py
- Tools/check_proof.py
- Tools/check_queue.py
- Tools/check_repository_structure.py
- Tools/check_residual_content.py
- Tools/check_structure.py
- Tools/check_upstream_components.py
- Tools/check_vocab.py
- Tools/compile_cli_contract.py
- Tools/compile_queue.py
- Tools/compose_page_contract.py
- Tools/compose_vocab.py
- Tools/duplicate_check.py
- Tools/execution/audit/assemble_terminal_proof.py
- Tools/execution/audit/check_batch_close.py
- Tools/execution/audit/check_proof.py
- Tools/execution/audit/prepare_audit_plan.py
- Tools/execution/audit/record_batch_judgment.py
- Tools/execution/audit/record_batch_page_review.py
- Tools/execution/audit/record_batch_review.py
- Tools/execution/audit/record_changed_scope_evidence.py
- Tools/execution/audit/record_substantive_review.py
- Tools/execution/evidence/record_evidence_invalidation.py
- Tools/execution/evidence/record_gate_attestation.py
- Tools/execution/evidence/record_gate_result.py
- Tools/execution/evidence/seal_receipts.py
- Tools/execution/planning/check_corpus_plan.py
- Tools/execution/planning/compile_queue.py
- Tools/execution/planning/record_corpus_acceptance.py
- Tools/execution/task_runtime/apply_amendment.py
- Tools/execution/task_runtime/apply_contract_amendment.py
- Tools/execution/task_runtime/apply_delta.py
- Tools/execution/task_runtime/candidate_delta_runtime.py
- Tools/execution/task_runtime/check_queue.py
- Tools/execution/task_runtime/init_state.py
- Tools/execution/task_runtime/queue_check_receipt.py
- Tools/execution/task_runtime/record_maintenance_evidence.py
- Tools/execution/task_runtime/register_amendment.py
- Tools/execution/task_runtime/render_queue.py
- Tools/execution/task_runtime/task_runtime_runner.py
- Tools/execution/task_runtime/update_queue.py
- Tools/execution/task_runtime/update_task.py
- Tools/generate_test_catalog.py
- Tools/generate_tool_catalog.py
- Tools/governance/control/metadata_execution_contract.py
- Tools/governance/control/run_gates.py
- Tools/governance/profile/apply_profile_adoption.py
- Tools/governance/profile/check_profile.py
- Tools/governance/profile/profile_candidate.py
- Tools/governance/profile/profile_onboarding_status.py
- Tools/governance/profile/scaffold_profile.py
- Tools/governance/standards/adopt_standards.py
- Tools/init_state.py
- Tools/inspect_host.py
- Tools/knowledge/content/check_links.py
- Tools/knowledge/content/check_residual_content.py
- Tools/knowledge/content/duplicate_check.py
- Tools/knowledge/metadata/apply_metadata_transition.py
- Tools/knowledge/metadata/check_freshness.py
- Tools/knowledge/metadata/check_page_contract.py
- Tools/knowledge/metadata/check_vocab.py
- Tools/knowledge/metadata/compose_page_contract.py
- Tools/knowledge/metadata/compose_vocab.py
- Tools/knowledge/metadata/project_page_state.py
- Tools/knowledge/rendering/record_profile_rendering.py
- Tools/knowledge/rendering/record_rendering_verification.py
- Tools/knowledge/structure/check_boundary_contract.py
- Tools/knowledge/structure/check_moc.py
- Tools/knowledge/structure/check_structure.py
- Tools/knowledge/structure/render_boundary_projection.py
- Tools/knowledge/structure/render_structure_projection.py
- Tools/knowledge/structure/repository_structure.py
- Tools/metadata_execution_contract.py
- Tools/module_boundary_report.py
- Tools/platform/agent_interface/agent_interface_contract.py
- Tools/platform/agent_interface/compile_cli_contract.py
- Tools/platform/agent_interface/inspect_host.py
- Tools/platform/agent_interface/render_host_configs.py
- Tools/platform/agent_interface/render_interface_projection.py
- Tools/platform/common/kblib.py
- Tools/platform/distribution/check_kernel_size.py
- Tools/platform/distribution/check_upstream_components.py
- Tools/platform/distribution/module_boundary_report.py
- Tools/platform/distribution/prepare_host.py
- Tools/platform/distribution/prepare_rendering_runtime.py
- Tools/platform/distribution/stamp_cards.py
- Tools/platform/distribution/test_catalog.py
- Tools/platform/distribution/test_runner.py
- Tools/platform/distribution/tool_catalog.py
- Tools/prepare_audit_plan.py
- Tools/prepare_host.py
- Tools/prepare_rendering_runtime.py
- Tools/profile_candidate.py
- Tools/profile_onboarding_status.py
- Tools/project_page_state.py
- Tools/publish_delta.py
- Tools/record_batch_judgment.py
- Tools/record_batch_page_review.py
- Tools/record_batch_review.py
- Tools/record_changed_scope_evidence.py
- Tools/record_corpus_acceptance.py
- Tools/record_evidence_invalidation.py
- Tools/record_gate_attestation.py
- Tools/record_gate_result.py
- Tools/record_maintenance_evidence.py
- Tools/record_profile_rendering.py
- Tools/record_rendering_verification.py
- Tools/record_substantive_review.py
- Tools/register_amendment.py
- Tools/render_boundary_projection.py
- Tools/render_host_configs.py
- Tools/render_interface_projection.py
- Tools/render_queue.py
- Tools/render_structure_projection.py
- Tools/run_gates.py
- Tools/run_task.py
- Tools/run_tests.py
- Tools/scaffold_profile.py
- Tools/seal_receipts.py
- Tools/stamp_cards.py
- Tools/update_queue.py
- Tools/update_task.py
source_hash: sha256:2e69b455ad4055c886ffac84a02e7f569a7516d74ded8370d84a99d076ee8cc9
agent_interface_policy:
path: Tools/agent-interface-policy.yaml
sha256: sha256:f5e3f67420ff26d35a5532be1b67bbb9b2f6d57ef5f2776acb3e30d2e3aa232e
runtime_path_registry:
path: Tools/execution/task_runtime/runtime_paths.py
sha256: sha256:e9fae548436ba769ca303ed2c881a64ab3f7e50f385efcb7e1daa0f8d8be88b9
projection_target: source-distribution
distribution_boundary:
path: distribution-boundary.yaml
sha256: sha256:efee91c95b7ab58345b587605fc1dfcc4cfe2a961a8f9f6723512ac739cfb468
included_tools:
- adopt_standards
- apply_amendment
- apply_contract_amendment
- apply_delta
- apply_metadata_transition
- apply_profile_adoption
- assemble_terminal_proof
- check_batch_close
- check_boundary_contract
- check_corpus_plan
- check_freshness
- check_kernel_size
- check_links
- check_moc
- check_page_contract
- check_profile
- check_proof
- check_queue
- check_repository_structure
- check_residual_content
- check_structure
- check_upstream_components
- check_vocab
- compile_cli_contract
- compile_queue
- compose_page_contract
- compose_vocab
- duplicate_check
- generate_test_catalog
- generate_tool_catalog
- init_state
- inspect_host
- metadata_execution_contract
- module_boundary_report
- prepare_audit_plan
- prepare_host
- prepare_rendering_runtime
- profile_candidate
- profile_onboarding_status
- project_page_state
- publish_delta
- record_batch_judgment
- record_batch_page_review
- record_batch_review
- record_changed_scope_evidence
- record_corpus_acceptance
- record_evidence_invalidation
- record_gate_attestation
- record_gate_result
- record_maintenance_evidence
- record_profile_rendering
- record_rendering_verification
- record_substantive_review
- register_amendment
- render_boundary_projection
- render_host_configs
- render_interface_projection
- render_queue
- render_structure_projection
- run_gates
- run_task
- run_tests
- scaffold_profile
- seal_receipts
- stamp_cards
- update_queue
- update_task
excluded_tools: []
receipt_shape:
common_envelope_owner: Tools.platform.common.kblib:make_receipt
common_envelope_fields:
- receipt_id
- receipt_type_id
- check
- target
- result
- details
- checked_at
- tool
- tool_version
- invalidated_by
extension_policy: derived-per-tool-from-implementation-source-closure
tool_count: 67
tools:
- tool: adopt_standards
module: Tools/adopt_standards.py
source_hash: sha256:6fec6b69d56c0e2268cbed64ca72eb344df30cdf412a248c189e4285d3e19cb8
host_environment_boundary: true
implementation_module: Tools.governance.standards.adopt_standards
implementation_path: Tools/governance/standards/adopt_standards.py
implementation_source_hash: sha256:8297cae8d4cd4feaa1b433079bec23086b5bf122781beb0122b8a570767a4504
description: Adopt one approved Standards/Profile revision
arguments:
- dest: root
option_strings: []
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: adopting repository root
- dest: plan
option_strings:
- --plan
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: .cambium/deltas/standards-adoptions/*.yaml
- dest: actor_role
option_strings:
- --actor-role
required: false
default: worker
default_type: str
choices:
- integrator
- worker
nargs: null
action: store
type: null
help: declared caller role; only integrator may apply a Standards adoption
- dest: receipts
option_strings:
- --receipts
required: false
default: .cambium/receipts/standards-adoptions.jsonl
default_type: str
choices: null
nargs: null
action: store
type: null
help: receipt JSONL path under .cambium/receipts
- dest: apply
option_strings:
- --apply
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write the transaction; omit for a dry run
- dest: json
option_strings:
- --json
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write this run's receipt objects to stdout as one canonical JSON array and move the human-readable report to stderr; receipt writing, verdicts, and exit codes are unchanged
- dest: upstream_root
option_strings:
- --upstream-root
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: local Cambium Git repository used to resolve upstream identity
- dest: upstream_ref
option_strings:
- --upstream-ref
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: Git revision in --upstream-root that must resolve to the plan's full upstream_revision_id_after
mutually_exclusive_groups: []
receipt_extensions:
- _writer_locks
- active_card_context_deliveries
- actor_role
- adoption_id
- after_contract_scope_version
- after_contract_sha256
- after_contract_version
- after_coverage_sha256
- after_progress_sha256
- after_queue_sha256
- after_standards_state_sha256
- applied_delta_receipts
- batch_close_recovery
- batch_work_specs
- before_contract_scope_version
- before_contract_sha256
- before_contract_version
- before_coverage_sha256
- before_progress_sha256
- before_queue_sha256
- before_standards_state_sha256
- boundary_gate_reruns
- changed_predicate_ids
- checkpoint
- checkpoint_binding
- confirmation_receipt
- contract_version_after
- contract_version_before
- coverage_ledger_sha256
- exclusions
- gate_id
- governance_revision_ref
- governance_revision_sha256
- hub_page_candidates
- immediate_gate_receipts
- immediate_gate_reruns
- invalidated_evidence_receipt_ids
- invalidation_boundary_ids
- last_reconciled_guidance_id
- loaded_module_paths_after
- loaded_module_paths_before
- maintenance_candidate_state
- managed_deltas
- next_action
- objective
- pending_amendments
- pending_delta_applies
- pending_guidance
- plan_path
- plan_sha256
- preserved_coverage_projection_sha256
- preserved_progress_projection_sha256
- preserved_queue_projection_sha256
- profile_contract_fingerprint_after
- profile_load_inputs_sha256_after
- profile_snapshot_sha256_after
- progress_ledger_sha256
- queue_check_mode
- queue_revision
- queue_revision_after
- queue_revision_before
- queue_state_revision
- remaining_required_work_units
- repository_snapshot_sha256
- required_queue_sha256
- selected_card_paths_after
- selected_card_paths_before
- selected_profile_manifest
- selected_profile_manifest_after
- selected_profile_manifest_before
- selected_profile_route_ids_after
- selected_profile_route_ids_before
- selected_read_sets_after
- selected_read_sets_before
- selected_route_ids_after
- selected_route_ids_before
- standards_effective_date_after
- standards_revalidation_barriers
- standards_revalidation_outstanding
- standards_snapshot_sha256_after
- state_revision_after
- state_revision_before
- task_id
- task_state
- task_state_after
- task_state_before
- transaction_id
- transaction_phase
- upstream_revision_id
- upstream_revision_id_after
- upstream_revision_id_before
- upstream_source_ref
receipt_extensions_extraction: partial
receipt_extension_sources:
- path: Tools/execution/task_runtime/queue_check_receipt.py
sha256: sha256:0cbe8593fa3e1fbaf38b76a34f4f84f283a7ed5c70db0052d4db838a3f8f002f
- path: Tools/governance/standards/adopt_standards.py
sha256: sha256:8297cae8d4cd4feaa1b433079bec23086b5bf122781beb0122b8a570767a4504
- path: Tools/platform/common/kblib.py
sha256: sha256:3c15e39892e8ba7360c6b12393a914ac3f01c4e0f17325101daaa0f0a7f3a150
agent_interface:
exposure: cli-only
workspace_argument: root
workspace_access: write
value_arguments:
- actor_role
- apply
- json
- upstream_ref
- upstream_root
path_arguments:
- argument: plan
access: read
consumption: snapshot
constraint: contained
value: null
runtime_path_id: null
suffixes: []
active_when_any: []
inactive_when_any: []
- argument: receipts
access: write
consumption: append
constraint: namespace
value: .cambium/receipts
runtime_path_id: receipt-root
suffixes:
- .jsonl
active_when_any:
- apply
inactive_when_any: []
external_write: none
output:
mode: json-option
result_contract: tool-payload
json_argument: json
json_value: true
json_inactive_when_any: []
json_types:
- array
required_keys: []
empty_exit_codes:
- 0
- 1
empty_success_disabled_by:
- apply
- tool: apply_amendment
module: Tools/apply_amendment.py
source_hash: sha256:aa2880a3581ff9969126bd4b1ec89606a522a0e57b5aac232152f4b8107ddd4b
host_environment_boundary: true
implementation_module: Tools.execution.task_runtime.apply_amendment
implementation_path: Tools/execution/task_runtime/apply_amendment.py
implementation_source_hash: sha256:4d61fa446fbb6d78120c78692fb066fbedb8d92781e0f7553383cb41241fcac3
description: Apply one approved cross-Ledger Amendment transaction
arguments:
- dest: root
option_strings: []
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: adopting repository root
- dest: plan
option_strings:
- --plan
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: .cambium/deltas/amendments/*.yaml plan
- dest: expected_coverage_sha256
option_strings:
- --expected-coverage-sha256
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: "compare-and-swap guard: sha256:<hex> the caller read from the current Coverage; planning is refused when the live bytes differ"
- dest: expected_progress_sha256
option_strings:
- --expected-progress-sha256
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: "compare-and-swap guard: sha256:<hex> the caller read from the current Progress; planning is refused when the live bytes differ"
- dest: expected_queue_sha256
option_strings:
- --expected-queue-sha256
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: "compare-and-swap guard: sha256:<hex> the caller read from the current Queue; planning is refused when the live bytes differ"
- dest: actor_role
option_strings:
- --actor-role
required: false
default: worker
default_type: str
choices:
- integrator
- worker
nargs: null
action: store
type: null
help: declared caller role; only integrator may apply an Amendment transaction
- dest: receipts
option_strings:
- --receipts
required: false
default: .cambium/receipts/amendments.jsonl
default_type: str
choices: null
nargs: null
action: store
type: null
help: receipt JSONL path under .cambium/receipts
- dest: apply
option_strings:
- --apply
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write the transaction; omit for a dry run
- dest: json
option_strings:
- --json
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write this run's receipt objects to stdout as one canonical JSON array and move the human-readable report to stderr; receipt writing, verdicts, and exit codes are unchanged
mutually_exclusive_groups: []
receipt_extensions:
- actor_role
- amendment_id
- coverage_proposal_path
- coverage_proposal_sha256
- operation
- plan_path
- plan_sha256
- previous_transaction_commit_receipt
- registration_receipt
- task_id
- transaction_id
- transaction_phase
- transaction_sequence
receipt_extensions_extraction: complete
receipt_extension_sources:
- path: Tools/execution/task_runtime/apply_amendment.py
sha256: sha256:4d61fa446fbb6d78120c78692fb066fbedb8d92781e0f7553383cb41241fcac3
- path: Tools/platform/common/kblib.py
sha256: sha256:3c15e39892e8ba7360c6b12393a914ac3f01c4e0f17325101daaa0f0a7f3a150
agent_interface:
exposure: mcp
workspace_argument: root
workspace_access: write
value_arguments:
- actor_role
- apply
- expected_coverage_sha256
- expected_progress_sha256
- expected_queue_sha256
- json
path_arguments:
- argument: plan
access: read
consumption: snapshot
constraint: contained
value: null
runtime_path_id: null
suffixes: []
active_when_any: []
inactive_when_any: []
- argument: receipts
access: write
consumption: append
constraint: namespace
value: .cambium/receipts
runtime_path_id: receipt-root
suffixes:
- .jsonl
active_when_any:
- apply
inactive_when_any: []
external_write: none
output:
mode: json-option
result_contract: tool-payload
json_argument: json
json_value: true
json_inactive_when_any: []
json_types:
- array
required_keys: []
empty_exit_codes:
- 0
- 1
empty_success_disabled_by:
- apply
- tool: apply_contract_amendment
module: Tools/apply_contract_amendment.py
source_hash: sha256:11f379ff6706060447996652e0c5eee09f9515561a0ee5ec36f972486c1ff20a
host_environment_boundary: true
implementation_module: Tools.execution.task_runtime.apply_contract_amendment
implementation_path: Tools/execution/task_runtime/apply_contract_amendment.py
implementation_source_hash: sha256:109bc10e469ff46e08ee1dc83dd006d571f8344d12fa57080ec595bd0892cc90
description: Amend the frozen Task Contract from one confirmed plan.
arguments:
- dest: root
option_strings: []
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: adopting repository root
- dest: plan
option_strings:
- --plan
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: repository-relative path under .cambium/deltas/contract-amendments
- dest: receipts
option_strings:
- --receipts
required: false
default: .cambium/receipts/contract-amendments.jsonl
default_type: str
choices: null
nargs: null
action: store
type: null
help: receipt JSONL path under .cambium/receipts
- dest: actor_role
option_strings:
- --actor-role
required: false
default: worker
default_type: str
choices:
- integrator
- worker
nargs: null
action: store
type: null
help: declared caller role; only integrator may apply a contract amendment
- dest: apply
option_strings:
- --apply
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write the transaction; omit for a dry run
- dest: json
option_strings:
- --json
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write this run's receipt objects to stdout as one canonical JSON array and move the human-readable report to stderr; receipt writing, verdicts, and exit codes are unchanged
mutually_exclusive_groups: []
receipt_extensions:
- actor_role
- after_contract_scope_version
- after_contract_sha256
- after_contract_version
- after_coverage_sha256
- after_progress_sha256
- after_required_queue_sha256
- before_contract_scope_version
- before_contract_sha256
- before_contract_version
- before_coverage_sha256
- before_progress_sha256
- before_required_queue_sha256
- changed_contract_fields
- plan_path
- plan_sha256
- policy_fingerprint
- queue_revision_after
- queue_revision_before
- selected_profile_manifest
- task_id
- transaction_phase
- upstream_revision_id
receipt_extensions_extraction: complete
receipt_extension_sources:
- path: Tools/execution/task_runtime/apply_contract_amendment.py
sha256: sha256:109bc10e469ff46e08ee1dc83dd006d571f8344d12fa57080ec595bd0892cc90
- path: Tools/platform/common/kblib.py
sha256: sha256:3c15e39892e8ba7360c6b12393a914ac3f01c4e0f17325101daaa0f0a7f3a150
agent_interface:
exposure: mcp
workspace_argument: root
workspace_access: write
value_arguments:
- actor_role
- apply
- json
path_arguments:
- argument: plan
access: read
consumption: snapshot
constraint: contained
value: null
runtime_path_id: null
suffixes: []
active_when_any: []
inactive_when_any: []
- argument: receipts
access: write
consumption: append
constraint: namespace
value: .cambium/receipts
runtime_path_id: receipt-root
suffixes:
- .jsonl
active_when_any:
- apply
inactive_when_any: []
external_write: none
output:
mode: json-option
result_contract: tool-payload
json_argument: json
json_value: true
json_inactive_when_any: []
json_types:
- array
required_keys: []
empty_exit_codes:
- 0
- 1
empty_success_disabled_by:
- apply
- tool: apply_delta
module: Tools/apply_delta.py
source_hash: sha256:1dbca005c4e2ff626973ef8cf26b4cab3f7434bd236607b3d0e0956fd76bf6b9
host_environment_boundary: true
implementation_module: Tools.execution.task_runtime.apply_delta
implementation_path: Tools/execution/task_runtime/apply_delta.py
implementation_source_hash: sha256:9597394c0eb4e52770ca71ff369eeb966f345ffc8122a6b57b0836bc227aed27
description: Deterministic Coverage Delta application
arguments:
- dest: delta
option_strings: []
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: canonical batch Coverage delta; must be exactly .cambium/deltas/<batch>.yaml
- dest: root
option_strings:
- --root
required: true
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: adopting repository root
- dest: apply
option_strings:
- --apply
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write the merged Coverage; omit for a dry run
- dest: preflight
option_strings:
- --preflight
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: plan canonical Coverage and routed-gap settlement without writes; allows an open batch
- dest: actor_role
option_strings:
- --actor-role
required: false
default: worker
default_type: str
choices:
- integrator
- worker
nargs: null
action: store
type: null
help: declared caller role; only integrator may apply canonical Coverage
- dest: expected_coverage_sha256
option_strings:
- --expected-coverage-sha256
required: false
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: "compare-and-swap guard for canonical --apply: sha256:<hex> the caller read from the current Coverage; the write is refused when the live bytes differ"
- dest: expected_queue_sha256
option_strings:
- --expected-queue-sha256
required: false
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: "compare-and-swap guard for canonical --apply: sha256:<hex> the caller read from the current Queue; the write is refused when the live bytes differ"
- dest: receipts
option_strings:
- --receipts
required: false
default: null
default_type: NoneType
choices: null
nargs: null
action: store
type: null
help: receipt JSONL destination; canonical mode defaults to a new .cambium/receipts/<receipt_id>.jsonl and refuses an existing path
- dest: json
option_strings:
- --json
required: false
default: false
default_type: bool
choices: null
nargs: 0
action: store_true
type: null
help: write this run's receipt objects to stdout as one canonical JSON array and move the human-readable report to stderr; receipt writing, verdicts, and exit codes are unchanged
mutually_exclusive_groups:
- required: false
dests:
- apply
- preflight
receipt_extensions:
- actor_role
- after_coverage_sha256
- after_progress_sha256
- after_required_queue_sha256
- batch_id
- before_coverage_archive_path
- before_coverage_sha256
- before_progress_sha256
- before_required_queue_sha256
- coverage_ledger_path
- delta_path
- delta_sha256
- queue_revision
- queue_state_revision
- required_queue_sha256
- task_id
receipt_extensions_extraction: partial
receipt_extension_sources:
- path: Tools/execution/task_runtime/apply_delta.py
sha256: sha256:9597394c0eb4e52770ca71ff369eeb966f345ffc8122a6b57b0836bc227aed27
- path: Tools/platform/common/kblib.py
sha256: sha256:3c15e39892e8ba7360c6b12393a914ac3f01c4e0f17325101daaa0f0a7f3a150
agent_interface:
exposure: mcp
workspace_argument: root
workspace_access: write
value_arguments:
- actor_role
- apply
- expected_coverage_sha256
- expected_queue_sha256
- json
- preflight
path_arguments:
- argument: delta
access: read
consumption: snapshot
constraint: contained
value: null
runtime_path_id: null
suffixes: []
active_when_any: []
inactive_when_any: []
- argument: receipts
access: write
consumption: append
constraint: namespace
value: .cambium/receipts
runtime_path_id: receipt-root
suffixes:
- .jsonl
active_when_any:
- apply
inactive_when_any: []