@principles/host-runtime 4.9.1 → 4.9.2
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.
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* `evidence_source_error` (readTrajectoryStore) so the readiness contract
|
|
18
18
|
* preserves them as storage faults, not Owner evidence faults (§6.2).
|
|
19
19
|
*
|
|
20
|
-
* Spec: docs/superpowers/specs/2026-06-27-rulecode-context-vision-design.md §7.2
|
|
20
|
+
* Spec: docs/archive/superpowers/specs/2026-06-27-rulecode-context-vision-design.md §7.2
|
|
21
21
|
*
|
|
22
22
|
* Boundary: this module is I/O. Pure logic (type + validator) lives in
|
|
23
23
|
* `@principles/core/runtime` → `behavior-example-pack.ts`.
|
package/dist/behavior-history.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/** Shared validated history assembly; host vocabulary is supplied by its owner. */
|
|
2
2
|
import { buildRuleHostAction } from '@principles/core/runtime/internalization/rule-host-input-builder';
|
|
3
|
-
import {
|
|
3
|
+
import { computeConservativeBehaviorFacts as computeCoreConservativeBehaviorFacts } from '@principles/core/runtime/internalization/rule-context-v2';
|
|
4
|
+
export function computeConservativeBehaviorFacts(history, target, sameActionBlockCount) {
|
|
5
|
+
if (target !== null && typeof target === 'object') {
|
|
6
|
+
return computeCoreConservativeBehaviorFacts(history, target, sameActionBlockCount);
|
|
7
|
+
}
|
|
8
|
+
return computeCoreConservativeBehaviorFacts(history, target, sameActionBlockCount);
|
|
9
|
+
}
|
|
4
10
|
const VALID_OUTCOMES = new Set(['success', 'failure', 'blocked']);
|
|
5
11
|
function isPlainObject(value) {
|
|
6
12
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
@@ -16,21 +22,6 @@ function unavailable(reason) {
|
|
|
16
22
|
calls: [],
|
|
17
23
|
};
|
|
18
24
|
}
|
|
19
|
-
export function computeConservativeBehaviorFacts(history, target, sameActionBlockCount) {
|
|
20
|
-
const incomplete = history.truncated || history.calls.some((call) => call.canonicalKind === 'execute' || call.canonicalKind === 'other');
|
|
21
|
-
if (incomplete) {
|
|
22
|
-
return {
|
|
23
|
-
priorReadOfTarget: 'unknown',
|
|
24
|
-
readCount: null,
|
|
25
|
-
writeCount: null,
|
|
26
|
-
uniqueWritePathCount: null,
|
|
27
|
-
sameActionBlockCount: null,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
return target !== null && typeof target === 'object'
|
|
31
|
-
? computeBehaviorFacts(history, target, sameActionBlockCount)
|
|
32
|
-
: computeBehaviorFacts(history, target, sameActionBlockCount);
|
|
33
|
-
}
|
|
34
25
|
export function assembleBehaviorHistory(rows, truncated, options) {
|
|
35
26
|
const { projectDir, toolSemantics, currentToolUseId } = options;
|
|
36
27
|
const records = [];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Codex conversation-ingestion consent disclosure — G2A frozen text (Slice D),
|
|
3
3
|
* amended by the Owner decision recorded as "Amendment 2 — disclosure v2"
|
|
4
4
|
* (2026-11-12) in:
|
|
5
|
-
* docs/superpowers/specs/2026-08-28-codex-governance-closure-g0-g2a-decision.md
|
|
5
|
+
* docs/archive/superpowers/specs/2026-08-28-codex-governance-closure-g0-g2a-decision.md
|
|
6
6
|
* § "Frozen consent disclosure text (setup will show this verbatim)"
|
|
7
7
|
*
|
|
8
8
|
* That document is the language SSoT. The frozen text "must not be weakened
|
package/dist/codex-disclosure.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Codex conversation-ingestion consent disclosure — G2A frozen text (Slice D),
|
|
3
3
|
* amended by the Owner decision recorded as "Amendment 2 — disclosure v2"
|
|
4
4
|
* (2026-11-12) in:
|
|
5
|
-
* docs/superpowers/specs/2026-08-28-codex-governance-closure-g0-g2a-decision.md
|
|
5
|
+
* docs/archive/superpowers/specs/2026-08-28-codex-governance-closure-g0-g2a-decision.md
|
|
6
6
|
* § "Frozen consent disclosure text (setup will show this verbatim)"
|
|
7
7
|
*
|
|
8
8
|
* That document is the language SSoT. The frozen text "must not be weakened
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.2",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lint": "eslint \"src/**/*.ts\""
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@principles/core": "^8.5.
|
|
42
|
+
"@principles/core": "^8.5.2",
|
|
43
43
|
"@principles/install-layout": "^0.12.0",
|
|
44
44
|
"better-sqlite3": "^13.0.3",
|
|
45
45
|
"js-yaml": "^5.4.3"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/node": "^26.6.6",
|
|
50
50
|
"@types/js-yaml": "^4.0.9",
|
|
51
51
|
"typescript": "^7.0.2",
|
|
52
|
-
"vite": "^8.
|
|
52
|
+
"vite": "^8.4.0",
|
|
53
53
|
"vitest": "^5.1.0"
|
|
54
54
|
},
|
|
55
55
|
"repository": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"url": "git+https://github.com/csuzngjh/principles.git"
|
|
58
58
|
},
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "6fd9c6576df0b5a891a5b6a25e7d8041dbf826b4"
|
|
61
61
|
}
|