create-principles-disciple 1.150.1 → 1.150.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.
- package/_release/product-identity.json +1 -1
- package/codex-adapter/dist/ingestion/ingestion.d.ts +9 -7
- package/codex-adapter/dist/ingestion/ingestion.js +68 -144
- package/codex-adapter/dist/ingestion/transcript-decoder.d.ts +35 -44
- package/codex-adapter/dist/ingestion/transcript-decoder.js +23 -84
- package/codex-adapter/dist/ingestion/transcript-source.d.ts +29 -0
- package/codex-adapter/dist/ingestion/transcript-source.js +65 -0
- package/codex-adapter/dist/pd-hook.d.ts +5 -0
- package/codex-adapter/dist/pd-hook.js +8 -1
- package/console/dist/server/routes/examiner-eligibility.d.ts +73 -0
- package/console/dist/server/routes/examiner-eligibility.js +326 -0
- package/console/dist/server/routes/examiner.js +66 -8
- package/console/dist/web/assets/app.css +40 -0
- package/console/dist/web/assets/app.js +30 -30
- package/core/dist/runtime/config/pd-config-effective.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-effective.js +5 -2
- package/core/dist/runtime/config/pd-config-effective.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/installers/codex-host-installer.d.ts.map +1 -1
- package/dist/installers/codex-host-installer.js +20 -0
- package/dist/installers/codex-host-installer.js.map +1 -1
- package/host-runtime/dist/adaptive-priority-provider.d.ts +7 -0
- package/host-runtime/dist/adaptive-priority-provider.js +34 -2
- package/host-runtime/dist/adaptive-skip-decision.d.ts +61 -0
- package/host-runtime/dist/adaptive-skip-decision.js +114 -0
- package/host-runtime/dist/codex-ingestion-consent.d.ts +32 -95
- package/host-runtime/dist/codex-ingestion-consent.js +33 -205
- package/host-runtime/dist/conversation-ingestion/consent.d.ts +124 -0
- package/host-runtime/dist/conversation-ingestion/consent.js +531 -0
- package/host-runtime/dist/conversation-ingestion/index.d.ts +12 -0
- package/host-runtime/dist/conversation-ingestion/index.js +12 -0
- package/host-runtime/dist/conversation-ingestion/pipeline.d.ts +101 -0
- package/host-runtime/dist/conversation-ingestion/pipeline.js +162 -0
- package/host-runtime/dist/conversation-ingestion/source.d.ts +172 -0
- package/host-runtime/dist/conversation-ingestion/source.js +111 -0
- package/host-runtime/dist/conversation-ingestion/text-policy.d.ts +51 -0
- package/host-runtime/dist/conversation-ingestion/text-policy.js +68 -0
- package/host-runtime/dist/governance-observation-store.d.ts +9 -7
- package/host-runtime/dist/governance-observation-store.js +20 -4
- package/host-runtime/dist/index.d.ts +1 -0
- package/host-runtime/dist/index.js +6 -0
- package/host-runtime/package.json +1 -1
- package/package.json +2 -2
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +213 -213
- package/release-manager/dist/installers/codex-host-installer.js +20 -0
- package/release-manager/package.json +1 -1
|
@@ -34,7 +34,12 @@ export const GOVERNANCE_RETENTION_MAX_TURNS = 32;
|
|
|
34
34
|
export const GOVERNANCE_RETENTION_MAX_AGE_MS = 7 * 24 * 60 * 60 * 1000;
|
|
35
35
|
export const GOVERNANCE_PROMOTION_PRECEDING_TURNS = 12;
|
|
36
36
|
export const GOVERNANCE_PENDING_TAIL_STALE_MS = 7 * 24 * 60 * 60 * 1000;
|
|
37
|
-
|
|
37
|
+
// Schema v4 (PRI-1171): additive contract widening over v3 — host_kind admits
|
|
38
|
+
// 'workbuddy'/'openclaw' (app-layer union; the DDL keeps unconstrained TEXT),
|
|
39
|
+
// and the checkpoint upsert is MAX-monotonic (concurrent Stop × worker
|
|
40
|
+
// catch-up must never drag a committed water mark backwards). No v3 DDL is
|
|
41
|
+
// rewritten; existing stores bump the version row on next open.
|
|
42
|
+
const GOVERNANCE_OBSERVATION_SCHEMA_VERSION = 4;
|
|
38
43
|
const MAX_TEXT_BOUND = 200; // matches MAX_EVIDENCE_VALUE_CHARS; guards stored identity fields
|
|
39
44
|
const MAX_JSON_COLUMN = 8_000;
|
|
40
45
|
function isRecord(value) {
|
|
@@ -426,13 +431,24 @@ export function ingestGovernanceObservations(input) {
|
|
|
426
431
|
: firstDegradation
|
|
427
432
|
? { reason: firstDegradation.reason, ordinal: firstDegradation.ordinal ?? null }
|
|
428
433
|
: null;
|
|
434
|
+
// Monotonic checkpoint (PRI-1171 review): a stale concurrent writer
|
|
435
|
+
// (Stop × worker catch-up) can neither drag the water mark back NOR
|
|
436
|
+
// refresh its companion fields — root_session_id, incomplete_tail,
|
|
437
|
+
// degradation bookkeeping, and updated_at advance only with a
|
|
438
|
+
// non-regressing byte_offset, so health-page state stays consistent
|
|
439
|
+
// with the committed mark.
|
|
429
440
|
db.prepare(`INSERT INTO governance_transcript_checkpoints
|
|
430
441
|
(host_kind, rollout_identity, byte_offset, last_ordinal, cli_version, root_session_id, incomplete_tail, last_degradation_reason, last_degradation_ordinal, updated_at)
|
|
431
442
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
432
443
|
ON CONFLICT(host_kind, rollout_identity) DO UPDATE SET
|
|
433
|
-
byte_offset =
|
|
434
|
-
|
|
435
|
-
|
|
444
|
+
byte_offset = MAX(governance_transcript_checkpoints.byte_offset, excluded.byte_offset),
|
|
445
|
+
last_ordinal = MAX(governance_transcript_checkpoints.last_ordinal, excluded.last_ordinal),
|
|
446
|
+
cli_version = COALESCE(excluded.cli_version, cli_version),
|
|
447
|
+
root_session_id = CASE WHEN excluded.byte_offset >= governance_transcript_checkpoints.byte_offset THEN excluded.root_session_id ELSE governance_transcript_checkpoints.root_session_id END,
|
|
448
|
+
incomplete_tail = CASE WHEN excluded.byte_offset >= governance_transcript_checkpoints.byte_offset THEN excluded.incomplete_tail ELSE governance_transcript_checkpoints.incomplete_tail END,
|
|
449
|
+
last_degradation_reason = CASE WHEN excluded.byte_offset >= governance_transcript_checkpoints.byte_offset THEN excluded.last_degradation_reason ELSE governance_transcript_checkpoints.last_degradation_reason END,
|
|
450
|
+
last_degradation_ordinal = CASE WHEN excluded.byte_offset >= governance_transcript_checkpoints.byte_offset THEN excluded.last_degradation_ordinal ELSE governance_transcript_checkpoints.last_degradation_ordinal END,
|
|
451
|
+
updated_at = CASE WHEN excluded.byte_offset >= governance_transcript_checkpoints.byte_offset THEN excluded.updated_at ELSE governance_transcript_checkpoints.updated_at END`)
|
|
436
452
|
.run(input.checkpoint.hostKind, input.checkpoint.rolloutIdentity, byteOffset, input.checkpoint.lastOrdinal, input.checkpoint.cliVersion ?? null, input.checkpoint.rootSessionId, input.checkpoint.incompleteTail ? 1 : 0, lastDegradation?.reason ?? null, lastDegradation?.ordinal ?? null, now);
|
|
437
453
|
}
|
|
438
454
|
// Marker semantics: compaction replaces logical history (tombstone every
|
|
@@ -17,6 +17,7 @@ export * from './production-rulehost-gate.js';
|
|
|
17
17
|
export * from './rule-implementation-runtime.js';
|
|
18
18
|
export * from './production-pain-evidence.js';
|
|
19
19
|
export * from './governance-observation-store.js';
|
|
20
|
+
export * from './conversation-ingestion/index.js';
|
|
20
21
|
export * from './governance-signal-admission.js';
|
|
21
22
|
export * from './signal-classifier.js';
|
|
22
23
|
export * from './adaptive-selection.js';
|
|
@@ -29,6 +29,12 @@ export * from './production-rulehost-gate.js';
|
|
|
29
29
|
export * from './rule-implementation-runtime.js';
|
|
30
30
|
export * from './production-pain-evidence.js';
|
|
31
31
|
export * from './governance-observation-store.js';
|
|
32
|
+
// PRI-1171: unified conversation-ingestion seam — the ONE host-neutral entry
|
|
33
|
+
// for transcript trajectory ingestion (source contract + shared pipeline +
|
|
34
|
+
// consent ledger v3 + text policy). Host decoders stay in their adapter
|
|
35
|
+
// packages; a new host implements TranscriptSourceAdapter with zero changes
|
|
36
|
+
// here.
|
|
37
|
+
export * from './conversation-ingestion/index.js';
|
|
32
38
|
export * from './governance-signal-admission.js';
|
|
33
39
|
export * from './signal-classifier.js';
|
|
34
40
|
export * from './adaptive-selection.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-principles-disciple",
|
|
3
|
-
"version": "1.150.
|
|
3
|
+
"version": "1.150.2",
|
|
4
4
|
"description": "Interactive CLI installer for Principles Disciple OpenClaw plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"pd": {
|
|
102
102
|
"bundledPluginVersion": "3.2.1"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "3d6e2af3cf55ad63b7bb388c005adf4b923eb383"
|
|
105
105
|
}
|