@neuroverseos/governance 0.6.0 → 0.6.1

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.
@@ -0,0 +1,75 @@
1
+ import {
2
+ DEFAULT_EVIDENCE_GATE,
3
+ DEFAULT_SIGNAL_EXTRACTORS,
4
+ checkForbiddenPhrases,
5
+ classifyActorDomain,
6
+ classifyEvents,
7
+ composeSystemPrompt,
8
+ createAnthropicAI,
9
+ createMockAI,
10
+ createMockGitHubAdapter,
11
+ emergent,
12
+ extractSignals,
13
+ fetchGitHubActivity,
14
+ formatExocortexForPrompt,
15
+ formatScope,
16
+ interpretPatterns,
17
+ isPresent,
18
+ isScored,
19
+ isSentinel,
20
+ parseRepoScope,
21
+ presenceAverage,
22
+ readExocortex,
23
+ render,
24
+ scoreComposite,
25
+ scoreCyber,
26
+ scoreLife,
27
+ scoreNeuroVerse,
28
+ summarizeExocortex,
29
+ think
30
+ } from "../chunk-AEVT7DSZ.js";
31
+ import {
32
+ LENSES,
33
+ aukiBuilderLens,
34
+ getLens,
35
+ listLenses
36
+ } from "../chunk-VGFDMPVB.js";
37
+ import "../chunk-QWGCMQQD.js";
38
+
39
+ // src/radiant/index.ts
40
+ var RADIANT_PACKAGE_VERSION = "0.0.0";
41
+ export {
42
+ DEFAULT_EVIDENCE_GATE,
43
+ DEFAULT_SIGNAL_EXTRACTORS,
44
+ LENSES,
45
+ RADIANT_PACKAGE_VERSION,
46
+ aukiBuilderLens,
47
+ checkForbiddenPhrases,
48
+ classifyActorDomain,
49
+ classifyEvents,
50
+ composeSystemPrompt,
51
+ createAnthropicAI,
52
+ createMockAI,
53
+ createMockGitHubAdapter,
54
+ emergent,
55
+ extractSignals,
56
+ fetchGitHubActivity,
57
+ formatExocortexForPrompt,
58
+ formatScope,
59
+ getLens,
60
+ interpretPatterns,
61
+ isPresent,
62
+ isScored,
63
+ isSentinel,
64
+ listLenses,
65
+ parseRepoScope,
66
+ presenceAverage,
67
+ readExocortex,
68
+ render,
69
+ scoreComposite,
70
+ scoreCyber,
71
+ scoreLife,
72
+ scoreNeuroVerse,
73
+ summarizeExocortex,
74
+ think
75
+ };
@@ -1,19 +1,20 @@
1
1
  ---
2
2
  world_id: behavioral-demo
3
- name: Behavioral Demo
4
- version: 1.0.0
3
+ name: Behavioral Governance Runtime
4
+ version: 2.0.0
5
5
  default_profile: baseline
6
6
  alternative_profile: pressure
7
7
  ---
8
8
 
9
9
  # Thesis
10
10
 
11
- Behavior should be interpreted through repeated action, clarity of ownership, and consistency between stated intent and follow-through. Actions are stronger evidence than promises. Ambiguity is a signal, not noise. Alignment is measured by what people do, not what they say.
11
+ Behavior should be interpreted through repeated action, clarity of ownership, and consistency between stated intent and follow-through. Decisions are governed by observed alignment, not stated confidence. When the system must choose ship, delay, or escalate it reads behavior, not promises.
12
12
 
13
13
  # Invariants
14
14
 
15
15
  - `behavior_over_promises` — Repeated action is stronger evidence than stated intent (structural, immutable)
16
16
  - `clarity_matters` — Ambiguity and ownership diffusion are meaningful behavioral signals (structural, immutable)
17
+ - `decisions_follow_alignment` — Decisions must reflect measured alignment, not declared readiness (structural, immutable)
17
18
 
18
19
  # State
19
20
 
@@ -44,6 +45,13 @@ Behavior should be interpreted through repeated action, clarity of ownership, an
44
45
  - label: Alignment Score
45
46
  - description: Measures consistency between stated priorities and actual behavior
46
47
 
48
+ ## decision
49
+ - type: enum
50
+ - options: no_decision, ship_now, delay, escalate
51
+ - default: no_decision
52
+ - label: Decision
53
+ - description: Governed output — what the system recommends based on behavioral alignment
54
+
47
55
  # Assumptions
48
56
 
49
57
  ## baseline
@@ -92,6 +100,39 @@ Then alignment_score *= 1.10
92
100
  > shift: Interpretation becomes more confident.
93
101
  > effect: Alignment score improves.
94
102
 
103
+ ## rule-004: alignment supports shipping (advantage)
104
+ Strong alignment produces a ship decision.
105
+
106
+ When alignment_score >= 75 [state]
107
+ Then decision = "ship_now"
108
+
109
+ > trigger: Behavioral alignment is strong enough to act.
110
+ > rule: When actions match intent consistently, the system recommends execution.
111
+ > shift: Decision moves to ship.
112
+ > effect: Decision set to ship_now.
113
+
114
+ ## rule-005: ambiguity requires delay (degradation)
115
+ Moderate alignment produces a delay decision.
116
+
117
+ When alignment_score < 75 [state] AND alignment_score >= 45 [state]
118
+ Then decision = "delay"
119
+
120
+ > trigger: Alignment is uncertain — behavior and intent are not fully consistent.
121
+ > rule: When signals are mixed, the system recommends waiting for clarity.
122
+ > shift: Decision moves to delay.
123
+ > effect: Decision set to delay.
124
+
125
+ ## rule-006: misalignment triggers escalation (structural)
126
+ Weak alignment produces an escalate decision.
127
+
128
+ When alignment_score < 45 [state]
129
+ Then decision = "escalate"
130
+
131
+ > trigger: Behavioral alignment has degraded below acceptable threshold.
132
+ > rule: When actions consistently contradict stated intent, the system escalates.
133
+ > shift: Decision moves to escalate.
134
+ > effect: Decision set to escalate.
135
+
95
136
  # Gates
96
137
 
97
138
  - STRONG: alignment_score >= 85
@@ -109,6 +150,12 @@ Then alignment_score *= 1.10
109
150
  - label: Alignment Score
110
151
  - primary: true
111
152
 
153
+ ## decision
154
+ - type: enum
155
+ - range: ship_now, delay, escalate, no_decision
156
+ - display: label
157
+ - label: Decision
158
+
112
159
  # Lenses
113
160
  - policy: role_default
114
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuroverseos/governance",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Deterministic governance engine for AI agents — enforce worlds (permanent rules) and plans (mission constraints) with full audit trace",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -97,6 +97,11 @@
97
97
  "types": "./dist/admin/index.d.ts",
98
98
  "import": "./dist/admin/index.js",
99
99
  "require": "./dist/admin/index.cjs"
100
+ },
101
+ "./radiant": {
102
+ "types": "./dist/radiant/index.d.ts",
103
+ "import": "./dist/radiant/index.js",
104
+ "require": "./dist/radiant/index.cjs"
100
105
  }
101
106
  },
102
107
  "bin": {
@@ -119,7 +124,7 @@
119
124
  ],
120
125
  "scripts": {
121
126
  "prepare": "npm run build",
122
- "build": "tsup src/index.ts src/types.ts src/cli/neuroverse.ts src/cli/plan.ts src/cli/run.ts src/cli/worldmodel.ts src/adapters/index.ts src/adapters/langchain.ts src/adapters/openai.ts src/adapters/openclaw.ts src/adapters/express.ts src/adapters/autoresearch.ts src/adapters/deep-agents.ts src/adapters/mentraos.ts src/adapters/github.ts src/engine/guard-engine.ts src/engine/simulate-engine.ts src/engine/bootstrap-parser.ts src/engine/bootstrap-emitter.ts src/engine/worldmodel-parser.ts src/engine/worldmodel-compiler.ts src/spatial/index.ts src/admin/index.ts --format esm,cjs --dts --clean && npm run build:browser && cp src/worlds/*.nv-world.md dist/worlds/ && cp src/worlds/*.worldmodel.md dist/worlds/ && cp src/spatial/zones/*.nv-world.md dist/worlds/ && npm run build:viz",
127
+ "build": "tsup src/index.ts src/types.ts src/cli/neuroverse.ts src/cli/plan.ts src/cli/run.ts src/cli/worldmodel.ts src/cli/radiant.ts src/adapters/index.ts src/adapters/langchain.ts src/adapters/openai.ts src/adapters/openclaw.ts src/adapters/express.ts src/adapters/autoresearch.ts src/adapters/deep-agents.ts src/adapters/mentraos.ts src/adapters/github.ts src/engine/guard-engine.ts src/engine/simulate-engine.ts src/engine/bootstrap-parser.ts src/engine/bootstrap-emitter.ts src/engine/worldmodel-parser.ts src/engine/worldmodel-compiler.ts src/spatial/index.ts src/admin/index.ts src/radiant/index.ts --format esm,cjs --dts --clean && npm run build:browser && cp src/worlds/*.nv-world.md dist/worlds/ && cp src/worlds/*.worldmodel.md dist/worlds/ && cp src/spatial/zones/*.nv-world.md dist/worlds/ && npm run build:viz",
123
128
  "build:browser": "tsup src/browser.ts --format iife --global-name NeuroVerse --outDir dist --no-dts",
124
129
  "build:viz": "vite build",
125
130
  "dev:viz": "vite dev",
@@ -1,9 +1,9 @@
1
- import {
2
- loadConfig
3
- } from "./chunk-OT6PXH54.js";
4
1
  import {
5
2
  createProvider
6
3
  } from "./chunk-INWQHLPS.js";
4
+ import {
5
+ loadConfig
6
+ } from "./chunk-OT6PXH54.js";
7
7
  import {
8
8
  validateWorld
9
9
  } from "./chunk-7P3S7MAY.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  CONFIGURE_AI_EXIT_CODES
3
3
  } from "./chunk-FMSTRBBS.js";
4
+ import {
5
+ createProvider
6
+ } from "./chunk-INWQHLPS.js";
4
7
  import {
5
8
  getConfigPath,
6
9
  loadConfig,
7
10
  redactConfig,
8
11
  saveConfig
9
12
  } from "./chunk-OT6PXH54.js";
10
- import {
11
- createProvider
12
- } from "./chunk-INWQHLPS.js";
13
13
  import "./chunk-QWGCMQQD.js";
14
14
 
15
15
  // src/cli/configure-ai.ts