@principles/host-runtime 0.3.8 → 0.3.9

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.
@@ -21,7 +21,10 @@
21
21
  * env getter. Everything else is the existing production path.
22
22
  */
23
23
  import { createHash } from 'node:crypto';
24
- import { createRuntimeStateHandle, InternalizationOrchestrator, DreamerRunner, PhilosopherRunner, ScribeRunner, ArtificerRunner, EvaluatorRunner, RolloutReviewerRunner, DefaultDreamerValidator, DefaultPhilosopherValidator, DefaultScribeValidator, DefaultArtificerValidator, DefaultEvaluatorValidator, DefaultRolloutReviewerValidator, PiAiRuntimeAdapter, L2AgentLoopAdapter, buildL2PrincipleReaderFromLedger, OpenClawCliRuntimeAdapter, storeEmitter, createProductionGateDeps, resolveRuntimeConfigFromPdConfig, isRuntimeConfigError, computeConsumerDecision, FULL_CHAIN_CONSUMER_RUNNER_KINDS, DEFAULT_CONSUMER_RUNNER_KINDS, InternalizationQueueReadModel, MVP_CORE_TASK_KINDS, SqliteConnection, SqliteReconciliationCursorStore, SUCCEEDED_TRANSITIONS_SCOPE, } from '@principles/core/runtime-v2';
24
+ import { createRuntimeStateHandle, InternalizationOrchestrator, DreamerRunner, PhilosopherRunner, ScribeRunner, ArtificerRunner, EvaluatorRunner, RolloutReviewerRunner, DefaultDreamerValidator, DefaultPhilosopherValidator, DefaultScribeValidator, DefaultArtificerValidator, DefaultEvaluatorValidator, DefaultRolloutReviewerValidator, PiAiRuntimeAdapter, L2AgentLoopAdapter, buildL2PrincipleReaderFromLedger, OpenClawCliRuntimeAdapter, storeEmitter, createProductionGateDeps, resolveRuntimeConfigFromPdConfig, isRuntimeConfigError, computeConsumerDecision, FULL_CHAIN_CONSUMER_RUNNER_KINDS, DEFAULT_CONSUMER_RUNNER_KINDS, InternalizationQueueReadModel, MVP_CORE_TASK_KINDS, SqliteConnection, SqliteReconciliationCursorStore, SUCCEEDED_TRANSITIONS_SCOPE,
25
+ // PRI-714: resolve outputLanguage from the same effective config the
26
+ // runners already receive (EP-07: canonical resolved value, not raw input).
27
+ resolveOutputLanguage, } from '@principles/core/runtime-v2';
25
28
  import { loadLedger } from '@principles/core/principle-tree-ledger';
26
29
  import { loadPdConfigForPlugin, loadFeatureFlagFromConfig } from './pd-config.js';
27
30
  import { createEvaluatorRepairDeps, createRolloutGovernanceDeps } from './internalization-consumer-governance.js';
@@ -327,11 +330,16 @@ export async function runInternalizationConsumerCycle(workspaceDir, ports) {
327
330
  // so slow/local models could never finish dreamer/evaluator stages.
328
331
  // runtimeConfigResult.timeoutMs is profile-first with a 300s default —
329
332
  // behavior only changes for workspaces that declare a larger timeoutMs.
333
+ // PRI-714: also forward the owner's outputLanguage so every full-chain
334
+ // stage (dreamer/philosopher/scribe/artificer/evaluator/rollout_reviewer)
335
+ // emits owner-facing fields in the configured language. Resolved from the
336
+ // same effective config (EP-07 canonical value).
330
337
  const runnerOptions = {
331
338
  owner,
332
339
  runtimeKind,
333
340
  effectiveConfig: configResult.effective,
334
341
  timeoutMs: runtimeConfigResult.timeoutMs,
342
+ outputLanguage: resolveOutputLanguage(configResult.effective.config.principles?.outputLanguage).outputLanguage,
335
343
  };
336
344
  // PRI-634 A3: workspace-scoped telemetry sink for the evaluator runner.
337
345
  // Constructed here (per-wake, workspaceDir in scope) so events from THIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principles/host-runtime",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",