core-runtime-engine 11.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. core_runtime/__init__.py +10 -0
  2. core_runtime/__version__.py +17 -0
  3. core_runtime/cli/__init__.py +7 -0
  4. core_runtime/cli/__main__.py +22 -0
  5. core_runtime/cli/bump_version.py +176 -0
  6. core_runtime/cli/contract_preflight.py +69 -0
  7. core_runtime/cli/create_domain.py +66 -0
  8. core_runtime/cli/doctor.py +44 -0
  9. core_runtime/cli/inventory.py +85 -0
  10. core_runtime/cli/lint.py +8 -0
  11. core_runtime/cli/main.py +579 -0
  12. core_runtime/cli/release_check.py +65 -0
  13. core_runtime/cli/repair_artifact_paths.py +48 -0
  14. core_runtime/cli/sync_template.py +67 -0
  15. core_runtime/cli/validate.py +73 -0
  16. core_runtime/core/__init__.py +34 -0
  17. core_runtime/core/audit_event.py +760 -0
  18. core_runtime/core/audit_trail_index.py +100 -0
  19. core_runtime/core/canonicalization.py +55 -0
  20. core_runtime/core/contract_evaluator.py +945 -0
  21. core_runtime/core/contract_executability.py +307 -0
  22. core_runtime/core/contract_loader.py +57 -0
  23. core_runtime/core/contract_probes.py +630 -0
  24. core_runtime/core/contract_program.py +131 -0
  25. core_runtime/core/contract_program_registry.py +104 -0
  26. core_runtime/core/contract_program_v2.py +126 -0
  27. core_runtime/core/dsk_v3.py +142 -0
  28. core_runtime/core/explainability.py +2115 -0
  29. core_runtime/core/numeric_normalization.py +120 -0
  30. core_runtime/core/rule_anchor.py +1388 -0
  31. core_runtime/core/schema_fingerprint.py +69 -0
  32. core_runtime/core/sensor_evidence.py +548 -0
  33. core_runtime/data/contracts/CoreAnchor.sol +109 -0
  34. core_runtime/data/contracts/CoreRuleAnchor.abi.json +111 -0
  35. core_runtime/data/contracts/CoreRuleAnchor.bin +1 -0
  36. core_runtime/data/contracts/CoreRuleAnchor.build.json +20 -0
  37. core_runtime/data/contracts/CoreRuleAnchor.runtime.bin +1 -0
  38. core_runtime/data/contracts/CoreRuleAnchor.sol +74 -0
  39. core_runtime/data/package_data_manifest.v1.json +173 -0
  40. core_runtime/data/schemas/core/causal_trace.v1.json +141 -0
  41. core_runtime/data/schemas/core/context_gate.v1.json +38 -0
  42. core_runtime/data/schemas/core/context_threshold.v1.json +46 -0
  43. core_runtime/data/schemas/core/contract_program.v1.json +186 -0
  44. core_runtime/data/schemas/core/contract_program.v2.json +187 -0
  45. core_runtime/data/schemas/core/control_decision.v1.json +114 -0
  46. core_runtime/data/schemas/core/dsk.v3.json +105 -0
  47. core_runtime/data/schemas/core/effect_result.v1.json +39 -0
  48. core_runtime/data/schemas/core/entropy_signal.v1.json +108 -0
  49. core_runtime/data/schemas/core/execution_receipt.v1.json +93 -0
  50. core_runtime/data/schemas/core/frozen_release_manifest.v1.json +87 -0
  51. core_runtime/data/schemas/core/frozen_release_manifest.v2.json +72 -0
  52. core_runtime/data/schemas/core/frozen_release_manifest.v3.json +38 -0
  53. core_runtime/data/schemas/core/frozen_release_manifest.v4.json +72 -0
  54. core_runtime/data/schemas/core/frozen_release_manifest.v5.json +38 -0
  55. core_runtime/data/schemas/core/frozen_release_manifest.v6.json +116 -0
  56. core_runtime/data/schemas/core/frozen_release_manifest.v7.json +37 -0
  57. core_runtime/data/schemas/core/frozen_release_manifest.v8.json +114 -0
  58. core_runtime/data/schemas/core/frozen_rule_set.v1.json +282 -0
  59. core_runtime/data/schemas/core/memory_artifact.v1.json +120 -0
  60. core_runtime/data/schemas/core/memory_generation_result.v1.json +37 -0
  61. core_runtime/data/schemas/core/operational_learning_event.v1.json +63 -0
  62. core_runtime/data/schemas/core/pattern_candidate.v1.json +114 -0
  63. core_runtime/data/schemas/core/physical_safety_assurance_case.v1.json +676 -0
  64. core_runtime/data/schemas/core/policy_lifecycle.v1.json +99 -0
  65. core_runtime/data/schemas/core/retention_manifest.v1.json +53 -0
  66. core_runtime/data/schemas/core/reversibility_policy.v1.json +107 -0
  67. core_runtime/data/schemas/core/rule_anchor_batch.v1.json +93 -0
  68. core_runtime/data/schemas/core/rule_anchor_chain_evidence.v1.json +56 -0
  69. core_runtime/data/schemas/core/rule_approval.v1.json +49 -0
  70. core_runtime/data/schemas/core/rule_approval_request.v1.json +42 -0
  71. core_runtime/data/schemas/core/state_transition.v1.json +115 -0
  72. core_runtime/data/schemas/core/task_closeout.v1.json +47 -0
  73. core_runtime/data/schemas/core/template_promotion_candidate.v1.json +83 -0
  74. core_runtime/data/schemas/core/unsigned_rule_anchor_deployment.v1.json +106 -0
  75. core_runtime/data/schemas/core/unsigned_rule_anchor_transaction.v1.json +116 -0
  76. core_runtime/tooling/__init__.py +48 -0
  77. core_runtime/tooling/bump_version.py +900 -0
  78. core_runtime/tooling/contract_preflight.py +293 -0
  79. core_runtime/tooling/create_domain.py +254 -0
  80. core_runtime/tooling/diagnostics.py +129 -0
  81. core_runtime/tooling/doctor.py +482 -0
  82. core_runtime/tooling/file_inventory.py +182 -0
  83. core_runtime/tooling/json_checks.py +100 -0
  84. core_runtime/tooling/release_check.py +1017 -0
  85. core_runtime/tooling/repair_artifact_paths.py +458 -0
  86. core_runtime/tooling/report_writer.py +176 -0
  87. core_runtime/tooling/repository_inventory.py +399 -0
  88. core_runtime/tooling/safety_checks.py +172 -0
  89. core_runtime/tooling/sync_template.py +303 -0
  90. core_runtime/tooling/validation.py +507 -0
  91. core_runtime/tooling/version_inventory.py +256 -0
  92. core_runtime_engine-11.5.1.dist-info/METADATA +35 -0
  93. core_runtime_engine-11.5.1.dist-info/RECORD +96 -0
  94. core_runtime_engine-11.5.1.dist-info/WHEEL +5 -0
  95. core_runtime_engine-11.5.1.dist-info/entry_points.txt +2 -0
  96. core_runtime_engine-11.5.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,109 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.20;
3
+
4
+ /**
5
+ * @title CoreAnchor
6
+ * @notice Minimal hash notarization contract for CORE artefacts.
7
+ *
8
+ * CORE validates and fingerprints off-chain.
9
+ * This contract only records submitted hashes.
10
+ * The chain does not decide whether the artefact is valid.
11
+ *
12
+ * Principle: off-chain data + on-chain hash
13
+ * CORE remains the authority for validation, replay, and certification.
14
+ */
15
+ contract CoreAnchor {
16
+
17
+ // ─── Events ──────────────────────────────────────────────────────────
18
+
19
+ event HashAnchored(
20
+ address indexed anchorer,
21
+ bytes32 indexed dataHash,
22
+ uint256 indexed timestamp
23
+ );
24
+
25
+ // ─── Storage ─────────────────────────────────────────────────────────
26
+
27
+ /// @notice Maps a submitted hash to the block timestamp of its first anchoring.
28
+ mapping(bytes32 => uint256) public anchoredAt;
29
+
30
+ /// @notice Maps a submitted hash to the address that first anchored it.
31
+ mapping(bytes32 => address) public anchoredBy;
32
+
33
+ /// @notice Total number of unique hashes anchored.
34
+ uint256 public totalAnchored;
35
+
36
+ // ─── Access ──────────────────────────────────────────────────────────
37
+
38
+ address public owner;
39
+
40
+ modifier onlyOwner() {
41
+ require(msg.sender == owner, "CoreAnchor: not owner");
42
+ _;
43
+ }
44
+
45
+ // ─── Constructor ─────────────────────────────────────────────────────
46
+
47
+ constructor() {
48
+ owner = msg.sender;
49
+ }
50
+
51
+ // ─── Core Function ───────────────────────────────────────────────────
52
+
53
+ /**
54
+ * @notice Notarize a canonical hash on-chain.
55
+ *
56
+ * Requirements:
57
+ * - dataHash must not be zero (fail-closed).
58
+ * - dataHash must not have been anchored before (idempotency).
59
+ *
60
+ * The contract stores only the hash, the anchorer address, and the
61
+ * block timestamp. No CORE validation logic, replay logic, audit
62
+ * logic, or private-domain logic belongs in this contract.
63
+ *
64
+ * @param dataHash The canonical bytes32 hash of a frozen CORE artefact.
65
+ */
66
+ function notarizeHash(bytes32 dataHash) external {
67
+ require(dataHash != bytes32(0), "CoreAnchor: zero hash rejected");
68
+ require(anchoredAt[dataHash] == 0, "CoreAnchor: hash already anchored");
69
+
70
+ anchoredAt[dataHash] = block.timestamp;
71
+ anchoredBy[dataHash] = msg.sender;
72
+ totalAnchored += 1;
73
+
74
+ emit HashAnchored(msg.sender, dataHash, block.timestamp);
75
+ }
76
+
77
+ // ─── Read Functions ──────────────────────────────────────────────────
78
+
79
+ /**
80
+ * @notice Check whether a hash has been anchored.
81
+ */
82
+ function isAnchored(bytes32 dataHash) external view returns (bool) {
83
+ return anchoredAt[dataHash] > 0;
84
+ }
85
+
86
+ /**
87
+ * @notice Get the anchoring record for a hash.
88
+ * @return timestamp The block timestamp when anchored (0 if never).
89
+ * @return anchorer The address that anchored it (address(0) if never).
90
+ */
91
+ function getAnchor(bytes32 dataHash) external view returns (
92
+ uint256 timestamp,
93
+ address anchorer
94
+ ) {
95
+ return (anchoredAt[dataHash], anchoredBy[dataHash]);
96
+ }
97
+
98
+ // ─── Admin ───────────────────────────────────────────────────────────
99
+
100
+ /**
101
+ * @notice Transfer contract ownership.
102
+ * No other admin functions exist. The contract is intentionally
103
+ * small and does not support pausing, upgrading, or fee changes.
104
+ */
105
+ function transferOwnership(address newOwner) external onlyOwner {
106
+ require(newOwner != address(0), "CoreAnchor: zero address rejected");
107
+ owner = newOwner;
108
+ }
109
+ }
@@ -0,0 +1,111 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "address",
8
+ "name": "anchorer",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "indexed": true,
13
+ "internalType": "bytes32",
14
+ "name": "merkleRoot",
15
+ "type": "bytes32"
16
+ },
17
+ {
18
+ "indexed": true,
19
+ "internalType": "bytes32",
20
+ "name": "manifestHash",
21
+ "type": "bytes32"
22
+ },
23
+ {
24
+ "indexed": false,
25
+ "internalType": "uint32",
26
+ "name": "ruleCount",
27
+ "type": "uint32"
28
+ },
29
+ {
30
+ "indexed": false,
31
+ "internalType": "uint8",
32
+ "name": "visibilityMask",
33
+ "type": "uint8"
34
+ },
35
+ {
36
+ "indexed": false,
37
+ "internalType": "uint256",
38
+ "name": "timestamp",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "name": "RuleBatchAnchored",
43
+ "type": "event"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "bytes32",
49
+ "name": "merkleRoot",
50
+ "type": "bytes32"
51
+ },
52
+ {
53
+ "internalType": "bytes32",
54
+ "name": "manifestHash",
55
+ "type": "bytes32"
56
+ },
57
+ {
58
+ "internalType": "uint32",
59
+ "name": "ruleCount",
60
+ "type": "uint32"
61
+ },
62
+ {
63
+ "internalType": "uint8",
64
+ "name": "visibilityMask",
65
+ "type": "uint8"
66
+ }
67
+ ],
68
+ "name": "anchorRuleBatch",
69
+ "outputs": [],
70
+ "stateMutability": "nonpayable",
71
+ "type": "function"
72
+ },
73
+ {
74
+ "inputs": [
75
+ {
76
+ "internalType": "bytes32",
77
+ "name": "merkleRoot",
78
+ "type": "bytes32"
79
+ }
80
+ ],
81
+ "name": "isAnchored",
82
+ "outputs": [
83
+ {
84
+ "internalType": "bool",
85
+ "name": "",
86
+ "type": "bool"
87
+ }
88
+ ],
89
+ "stateMutability": "view",
90
+ "type": "function"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "bytes32",
96
+ "name": "merkleRoot",
97
+ "type": "bytes32"
98
+ }
99
+ ],
100
+ "name": "manifestByRoot",
101
+ "outputs": [
102
+ {
103
+ "internalType": "bytes32",
104
+ "name": "manifestHash",
105
+ "type": "bytes32"
106
+ }
107
+ ],
108
+ "stateMutability": "view",
109
+ "type": "function"
110
+ }
111
+ ]
@@ -0,0 +1 @@
1
+ 6080604052348015600e575f5ffd5b5061038c8061001c5f395ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c80634f0b5801146100435780636919e4581461007957806370a03bad1461008e575b5f5ffd5b6100646100513660046102eb565b5f90815260208190526040902054151590565b60405190151581526020015b60405180910390f35b61008c610087366004610302565b6100bb565b005b6100ad61009c3660046102eb565b5f6020819052908152604090205481565b604051908152602001610070565b8361010d5760405162461bcd60e51b815260206004820152601960248201527f436f726552756c65416e63686f723a207a65726f20726f6f740000000000000060448201526064015b60405180910390fd5b8261015a5760405162461bcd60e51b815260206004820152601d60248201527f436f726552756c65416e63686f723a207a65726f206d616e69666573740000006044820152606401610104565b5f8263ffffffff16116101af5760405162461bcd60e51b815260206004820152601b60248201527f436f726552756c65416e63686f723a20656d70747920626174636800000000006044820152606401610104565b5f8160ff161180156101c5575060038160ff1611155b61021c5760405162461bcd60e51b815260206004820152602260248201527f436f726552756c65416e63686f723a20696e76616c6964207669736962696c69604482015261747960f01b6064820152608401610104565b5f84815260208190526040902054156102855760405162461bcd60e51b815260206004820152602560248201527f436f726552756c65416e63686f723a20726f6f7420616c726561647920616e636044820152641a1bdc995960da1b6064820152608401610104565b5f8481526020818152604091829020859055815163ffffffff8516815260ff841691810191909152428183015290518491869133917fe83f99143b044695255f5b9c0d6bbe7dfca688c22655521a77948b8d0851e8be919081900360600190a450505050565b5f602082840312156102fb575f5ffd5b5035919050565b5f5f5f5f60808587031215610315575f5ffd5b8435935060208501359250604085013563ffffffff81168114610336575f5ffd5b9150606085013560ff8116811461034b575f5ffd5b93969295509093505056fea26469706673582212208c894b3ce64e83a3d916394d42ac184f312c1a6f41d1bc473b21fedc896589b564736f6c634300081e0033
@@ -0,0 +1,20 @@
1
+ {
2
+ "abi_canonical_sha256": "sha256:65860d8443fad5bf1cf624e1b904864ac5193118507128b1fe72dce516e31c62",
3
+ "compiler": "solc@0.8.30",
4
+ "contract": "CoreRuleAnchor",
5
+ "creation_bytecode_sha256": "sha256:b6a9c27a56587cd02682483f6d3756e37095cd734caf7c65898ea903a3203790",
6
+ "evm_version": "shanghai",
7
+ "function_selector": "0x6919e458",
8
+ "metadata": {
9
+ "append_cbor": true,
10
+ "bytecode_hash": "ipfs"
11
+ },
12
+ "optimizer": {
13
+ "enabled": true,
14
+ "runs": 200
15
+ },
16
+ "runtime_bytecode_sha256": "sha256:5515c803ef28904d33ed5a5bca15e4ada38977c80e949261b8233cb264886ddd",
17
+ "schema_version": "core.solidity_build.v1",
18
+ "source": "contracts/CoreRuleAnchor.sol",
19
+ "source_sha256": "sha256:f56416a86f39a156a7c3b38cb4bc30a71624be43b6a7912242f6c369893d8f29"
20
+ }
@@ -0,0 +1 @@
1
+ 608060405234801561000f575f5ffd5b506004361061003f575f3560e01c80634f0b5801146100435780636919e4581461007957806370a03bad1461008e575b5f5ffd5b6100646100513660046102eb565b5f90815260208190526040902054151590565b60405190151581526020015b60405180910390f35b61008c610087366004610302565b6100bb565b005b6100ad61009c3660046102eb565b5f6020819052908152604090205481565b604051908152602001610070565b8361010d5760405162461bcd60e51b815260206004820152601960248201527f436f726552756c65416e63686f723a207a65726f20726f6f740000000000000060448201526064015b60405180910390fd5b8261015a5760405162461bcd60e51b815260206004820152601d60248201527f436f726552756c65416e63686f723a207a65726f206d616e69666573740000006044820152606401610104565b5f8263ffffffff16116101af5760405162461bcd60e51b815260206004820152601b60248201527f436f726552756c65416e63686f723a20656d70747920626174636800000000006044820152606401610104565b5f8160ff161180156101c5575060038160ff1611155b61021c5760405162461bcd60e51b815260206004820152602260248201527f436f726552756c65416e63686f723a20696e76616c6964207669736962696c69604482015261747960f01b6064820152608401610104565b5f84815260208190526040902054156102855760405162461bcd60e51b815260206004820152602560248201527f436f726552756c65416e63686f723a20726f6f7420616c726561647920616e636044820152641a1bdc995960da1b6064820152608401610104565b5f8481526020818152604091829020859055815163ffffffff8516815260ff841691810191909152428183015290518491869133917fe83f99143b044695255f5b9c0d6bbe7dfca688c22655521a77948b8d0851e8be919081900360600190a450505050565b5f602082840312156102fb575f5ffd5b5035919050565b5f5f5f5f60808587031215610315575f5ffd5b8435935060208501359250604085013563ffffffff81168114610336575f5ffd5b9150606085013560ff8116811461034b575f5ffd5b93969295509093505056fea26469706673582212208c894b3ce64e83a3d916394d42ac184f312c1a6f41d1bc473b21fedc896589b564736f6c634300081e0033
@@ -0,0 +1,74 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.20;
3
+
4
+ /**
5
+ * @title CoreRuleAnchor
6
+ * @notice Minimal, non-custodial timestamping for CORE frozen-rule batches.
7
+ *
8
+ * CORE validates rule content, private commitments, approvals, and Merkle
9
+ * proofs off-chain. This contract records only a Merkle root and its manifest
10
+ * hash. It does not decide whether a rule is good, execute a rule, hold funds,
11
+ * issue a token, collect a fee, or grant administrative authority.
12
+ *
13
+ * General rules may be published off-chain. Personal rules remain private and
14
+ * contribute only a blinded commitment to the Merkle root.
15
+ */
16
+ contract CoreRuleAnchor {
17
+ /**
18
+ * @dev visibilityMask bit 0 means at least one public rule set; bit 1
19
+ * means at least one private commitment. Valid values are 1, 2, and 3.
20
+ */
21
+ event RuleBatchAnchored(
22
+ address indexed anchorer,
23
+ bytes32 indexed merkleRoot,
24
+ bytes32 indexed manifestHash,
25
+ uint32 ruleCount,
26
+ uint8 visibilityMask,
27
+ uint256 timestamp
28
+ );
29
+
30
+ /**
31
+ * @notice One storage slot per unique root keeps recurring anchor cost low.
32
+ * The event is the source for anchorer, count, visibility, and timestamp.
33
+ */
34
+ mapping(bytes32 merkleRoot => bytes32 manifestHash) public manifestByRoot;
35
+
36
+ /**
37
+ * @notice Anchor one validated batch. The caller's transaction signature
38
+ * identifies the anchorer but does not replace CORE approval validation.
39
+ */
40
+ function anchorRuleBatch(
41
+ bytes32 merkleRoot,
42
+ bytes32 manifestHash,
43
+ uint32 ruleCount,
44
+ uint8 visibilityMask
45
+ ) external {
46
+ require(merkleRoot != bytes32(0), "CoreRuleAnchor: zero root");
47
+ require(manifestHash != bytes32(0), "CoreRuleAnchor: zero manifest");
48
+ require(ruleCount > 0, "CoreRuleAnchor: empty batch");
49
+ require(
50
+ visibilityMask > 0 && visibilityMask <= 3,
51
+ "CoreRuleAnchor: invalid visibility"
52
+ );
53
+ require(
54
+ manifestByRoot[merkleRoot] == bytes32(0),
55
+ "CoreRuleAnchor: root already anchored"
56
+ );
57
+
58
+ manifestByRoot[merkleRoot] = manifestHash;
59
+
60
+ emit RuleBatchAnchored(
61
+ msg.sender,
62
+ merkleRoot,
63
+ manifestHash,
64
+ ruleCount,
65
+ visibilityMask,
66
+ block.timestamp
67
+ );
68
+ }
69
+
70
+ /** @notice Return true only when the exact root is already anchored. */
71
+ function isAnchored(bytes32 merkleRoot) external view returns (bool) {
72
+ return manifestByRoot[merkleRoot] != bytes32(0);
73
+ }
74
+ }
@@ -0,0 +1,173 @@
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "contracts/CoreAnchor.sol",
5
+ "sha256": "7d2f62907854bbd8369a9a834acb74242607f4b8c7f38e639047d12d2de941dd"
6
+ },
7
+ {
8
+ "path": "contracts/CoreRuleAnchor.abi.json",
9
+ "sha256": "ee6f16b73aa75ae2d34f7925c1f08e9589be9870a1cc6c998b9c3befff953542"
10
+ },
11
+ {
12
+ "path": "contracts/CoreRuleAnchor.bin",
13
+ "sha256": "c979e051176e05c75f0d6d280c0bc873b465f9403846e784d2cf3d9df7eabf0b"
14
+ },
15
+ {
16
+ "path": "contracts/CoreRuleAnchor.build.json",
17
+ "sha256": "64f79b8de0896671ac0f1dcbea56b858501fb68393641d1af33feb0beb351edb"
18
+ },
19
+ {
20
+ "path": "contracts/CoreRuleAnchor.runtime.bin",
21
+ "sha256": "5acb4bd825098ca7133a3867b43263bb8798659114f5bb9b945c623be30f8aae"
22
+ },
23
+ {
24
+ "path": "contracts/CoreRuleAnchor.sol",
25
+ "sha256": "f56416a86f39a156a7c3b38cb4bc30a71624be43b6a7912242f6c369893d8f29"
26
+ },
27
+ {
28
+ "path": "schemas/core/causal_trace.v1.json",
29
+ "sha256": "fd022798b22cae859d0dbd854d4cc59081194e8ac9f7c26a5d29a58071170edd"
30
+ },
31
+ {
32
+ "path": "schemas/core/context_gate.v1.json",
33
+ "sha256": "3a7fd8f7ae8127664bba97ab7349a3b002d7488e0a6771667097f21b4e4f6691"
34
+ },
35
+ {
36
+ "path": "schemas/core/context_threshold.v1.json",
37
+ "sha256": "815950be8410aa6a7381aba0b46e87154455e40bdf5a571f0043c919927e7503"
38
+ },
39
+ {
40
+ "path": "schemas/core/contract_program.v1.json",
41
+ "sha256": "ffa63f894b27b97b56507ecb8a32e28d67446da8b9ac9331780872e5e2fd8932"
42
+ },
43
+ {
44
+ "path": "schemas/core/contract_program.v2.json",
45
+ "sha256": "ebc98066e3a71925d39798d53d3dccd5b15d3e9f484417f2c3df824291166de2"
46
+ },
47
+ {
48
+ "path": "schemas/core/control_decision.v1.json",
49
+ "sha256": "97873d8fe0049518a52f1adf64ff2da5cf35b0c8d0034fff2997636dd0ff8577"
50
+ },
51
+ {
52
+ "path": "schemas/core/dsk.v3.json",
53
+ "sha256": "f1892f19e04387d75b4ada0701a0bf7ca9d80c3a1500c3e820f614dc04f04f4e"
54
+ },
55
+ {
56
+ "path": "schemas/core/effect_result.v1.json",
57
+ "sha256": "8054ee3933aa117e2136582026c4a483ed0a3dc2ddb6226b7acd66ee87af40a3"
58
+ },
59
+ {
60
+ "path": "schemas/core/entropy_signal.v1.json",
61
+ "sha256": "69db4a6037883cfca36c909ef7d72ee5dbb0973b999a056d83dc00a28a72e1f5"
62
+ },
63
+ {
64
+ "path": "schemas/core/execution_receipt.v1.json",
65
+ "sha256": "ec6d8b7e2112b3eb0bec9493629cd7a26ced8a9c12acf8466465b9e2cddef102"
66
+ },
67
+ {
68
+ "path": "schemas/core/frozen_release_manifest.v1.json",
69
+ "sha256": "ce9b80b8d9db156bb43ba42caeb068b681113c53d9f524b7708cebee8e7450f6"
70
+ },
71
+ {
72
+ "path": "schemas/core/frozen_release_manifest.v2.json",
73
+ "sha256": "f166e5d410f8c7cf8fda4eddd02734743a0d32477f48a3044a2ea78739478262"
74
+ },
75
+ {
76
+ "path": "schemas/core/frozen_release_manifest.v3.json",
77
+ "sha256": "a62e034c1f977df701e8b05b7ef6ddeafa32d8053e07b9d15d9f8633a350c09e"
78
+ },
79
+ {
80
+ "path": "schemas/core/frozen_release_manifest.v4.json",
81
+ "sha256": "d55269d7f5569a0cc355481c4d0c045fb9688dbbd6ae40254bc1911f83089590"
82
+ },
83
+ {
84
+ "path": "schemas/core/frozen_release_manifest.v5.json",
85
+ "sha256": "0740ec3a43aee134f73fb25533bd20a57f6b13be4869e640bb3cb9fd68e77dce"
86
+ },
87
+ {
88
+ "path": "schemas/core/frozen_release_manifest.v6.json",
89
+ "sha256": "f29c72f96a72bf31a20bfeb68d43cc045b874638d751dcd31f08328e6de51d9a"
90
+ },
91
+ {
92
+ "path": "schemas/core/frozen_release_manifest.v7.json",
93
+ "sha256": "fefb21dbb09f34811e83f29740fde7e62c7a2fdf15a660e7f398fef7821a8cfa"
94
+ },
95
+ {
96
+ "path": "schemas/core/frozen_release_manifest.v8.json",
97
+ "sha256": "37ab6ad858b4641d8e5d20dbe7d4045252a2e355b6715bdee7cf93e7f799a19a"
98
+ },
99
+ {
100
+ "path": "schemas/core/frozen_rule_set.v1.json",
101
+ "sha256": "2e4532fcbb2f988e64bc8c52a99010199cbb70366653eead3d41d72328669675"
102
+ },
103
+ {
104
+ "path": "schemas/core/memory_artifact.v1.json",
105
+ "sha256": "5e89bfd064d1f0c25113bb8e96a1632f55f16b183dffba41f82cdfd4feb2f701"
106
+ },
107
+ {
108
+ "path": "schemas/core/memory_generation_result.v1.json",
109
+ "sha256": "cd8cf30be17a290a27f082be98cced70c9d84aa7b4f008188c44a51f565df929"
110
+ },
111
+ {
112
+ "path": "schemas/core/operational_learning_event.v1.json",
113
+ "sha256": "3814d08b5442993c913cf6111827b064686e07796fd0b67b1c0dee5463e170d1"
114
+ },
115
+ {
116
+ "path": "schemas/core/pattern_candidate.v1.json",
117
+ "sha256": "850f75797e0d95526ac5d08dcdd111e90d3b7db553fb9eb5a82da7489ec5778f"
118
+ },
119
+ {
120
+ "path": "schemas/core/physical_safety_assurance_case.v1.json",
121
+ "sha256": "838a5296576c329a50893583a98eecc33eb0f05c791c39935dd6e04172345457"
122
+ },
123
+ {
124
+ "path": "schemas/core/policy_lifecycle.v1.json",
125
+ "sha256": "066c28e8fb55df0740be3abf350c184673d6a95e3b86af211b9757e2355c6a68"
126
+ },
127
+ {
128
+ "path": "schemas/core/retention_manifest.v1.json",
129
+ "sha256": "e3d3fa899ed336276e985110b85deb354a4e13518a8a9d244cc8798f8b5c569a"
130
+ },
131
+ {
132
+ "path": "schemas/core/reversibility_policy.v1.json",
133
+ "sha256": "67824e9de4fba0cb7b2036bf16651fb6784e8ddd8a905a61598f92a094a671ee"
134
+ },
135
+ {
136
+ "path": "schemas/core/rule_anchor_batch.v1.json",
137
+ "sha256": "85d25fb3db1dd71a2ea26eb62ebaf6c84d86997e25dd7cf5901980f4b279b4b8"
138
+ },
139
+ {
140
+ "path": "schemas/core/rule_anchor_chain_evidence.v1.json",
141
+ "sha256": "40b860048207faa57598d4ba7354366bf3de8875bb8a46c263a3b82be400c88a"
142
+ },
143
+ {
144
+ "path": "schemas/core/rule_approval.v1.json",
145
+ "sha256": "c1071ea63435d3f5cf47d1cae2603a632f1abac32dbb5029e37668c29214f856"
146
+ },
147
+ {
148
+ "path": "schemas/core/rule_approval_request.v1.json",
149
+ "sha256": "677e38e95ec5eff0147828894ba920780dad67a28a61545ef9641dd0000ada65"
150
+ },
151
+ {
152
+ "path": "schemas/core/state_transition.v1.json",
153
+ "sha256": "2aa5c29716ecc341e064b6a11f37aeffe13906c2a0247e3a6fb32d93c9bbe24f"
154
+ },
155
+ {
156
+ "path": "schemas/core/task_closeout.v1.json",
157
+ "sha256": "03f93754d131a8f6491b1e943d1410ef55e88f050cb98421350f36c765d2de4a"
158
+ },
159
+ {
160
+ "path": "schemas/core/template_promotion_candidate.v1.json",
161
+ "sha256": "22dba53ce46ce4bcac6bc9a41d6db7a146072e0d5083fe2160434fadd5a72adb"
162
+ },
163
+ {
164
+ "path": "schemas/core/unsigned_rule_anchor_deployment.v1.json",
165
+ "sha256": "2aedd23a6453d342eb4ae2e57354472093755537880154369254258730422aa3"
166
+ },
167
+ {
168
+ "path": "schemas/core/unsigned_rule_anchor_transaction.v1.json",
169
+ "sha256": "e35517db59b6443b06f601106bfbda103cb6c4ea78f45bae551507db37c91858"
170
+ }
171
+ ],
172
+ "schema_version": "core.package_data_manifest.v1"
173
+ }
@@ -0,0 +1,141 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://core-runtime-engine.local/schemas/core/causal_trace.v1.json",
4
+ "title": "CausalTrace.v1",
5
+ "type": "object",
6
+ "additionalProperties": true,
7
+ "required": [
8
+ "schema_version",
9
+ "type",
10
+ "trace_id",
11
+ "root_ref",
12
+ "nodes",
13
+ "edges",
14
+ "source_refs",
15
+ "evidence_refs",
16
+ "created_at",
17
+ "fingerprint"
18
+ ],
19
+ "properties": {
20
+ "schema_version": {
21
+ "type": "string",
22
+ "const": "core.causal_trace.v1"
23
+ },
24
+ "type": {
25
+ "type": "string",
26
+ "const": "causal_trace"
27
+ },
28
+ "trace_id": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "root_ref": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "pattern": "^(?!/).+"
36
+ },
37
+ "nodes": {
38
+ "type": "array",
39
+ "minItems": 1,
40
+ "items": {
41
+ "type": "object",
42
+ "required": ["node_id", "kind", "ref"],
43
+ "properties": {
44
+ "node_id": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ },
48
+ "kind": {
49
+ "type": "string",
50
+ "minLength": 1
51
+ },
52
+ "ref": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "pattern": "^(?!/).+"
56
+ },
57
+ "summary": {
58
+ "type": "string"
59
+ },
60
+ "source_refs": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "pattern": "^(?!/).+"
66
+ }
67
+ },
68
+ "evidence_refs": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "pattern": "^(?!/).+"
74
+ }
75
+ }
76
+ },
77
+ "additionalProperties": true
78
+ }
79
+ },
80
+ "edges": {
81
+ "type": "array",
82
+ "minItems": 1,
83
+ "items": {
84
+ "type": "object",
85
+ "required": ["from_ref", "to_ref", "relation"],
86
+ "properties": {
87
+ "from_ref": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "pattern": "^(?!/).+"
91
+ },
92
+ "to_ref": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "pattern": "^(?!/).+"
96
+ },
97
+ "relation": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ },
101
+ "notes": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "additionalProperties": true
106
+ }
107
+ },
108
+ "source_refs": {
109
+ "type": "array",
110
+ "minItems": 1,
111
+ "items": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "pattern": "^(?!/).+"
115
+ }
116
+ },
117
+ "evidence_refs": {
118
+ "type": "array",
119
+ "minItems": 1,
120
+ "items": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "pattern": "^(?!/).+"
124
+ }
125
+ },
126
+ "created_at": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ },
130
+ "fingerprint": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ },
134
+ "warnings": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string"
138
+ }
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://core-runtime-engine.local/schemas/core/context_gate.v1.json",
4
+ "title": "ContextGate.v1",
5
+ "type": "object",
6
+ "additionalProperties": true,
7
+ "required": ["schema_version", "status", "source_type", "source_id", "mode", "reason"],
8
+ "properties": {
9
+ "schema_version": {
10
+ "type": "string",
11
+ "const": "core.context_gate.v1"
12
+ },
13
+ "status": {
14
+ "type": "string"
15
+ },
16
+ "source_type": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "source_id": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "mode": {
25
+ "type": "string",
26
+ "enum": ["dry-run", "apply"]
27
+ },
28
+ "reason": {
29
+ "type": "string"
30
+ },
31
+ "proposed_action": {
32
+ "type": "string"
33
+ },
34
+ "memory_generation_result": {
35
+ "type": "object"
36
+ }
37
+ }
38
+ }