@neuroverseos/governance 0.5.1 → 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.
- package/README.md +55 -0
- package/dist/adapters/autoresearch.js +2 -2
- package/dist/adapters/deep-agents.js +2 -2
- package/dist/adapters/express.js +2 -2
- package/dist/adapters/github.js +2 -2
- package/dist/adapters/index.js +8 -8
- package/dist/adapters/langchain.js +2 -2
- package/dist/adapters/mentraos.js +2 -2
- package/dist/adapters/openai.js +2 -2
- package/dist/adapters/openclaw.js +2 -2
- package/dist/{add-JP7TC2K3.js → add-XSANI3FK.js} +1 -1
- package/dist/{build-THUEYMVT.js → build-EGBGZFIJ.js} +5 -5
- package/dist/{chunk-TZBERHFM.js → chunk-7FL3U7Z5.js} +1 -1
- package/dist/{chunk-FGOSKQDE.js → chunk-A2UZTLRV.js} +1 -1
- package/dist/chunk-AEVT7DSZ.js +1208 -0
- package/dist/{chunk-R23T5SZG.js → chunk-B3IIPTY3.js} +1 -1
- package/dist/chunk-EQR7BGFN.js +337 -0
- package/dist/{chunk-LAKUB76X.js → chunk-FDPPZLSQ.js} +1 -1
- package/dist/{chunk-UZBW44KD.js → chunk-FKQCPRKI.js} +1 -1
- package/dist/{chunk-XPMZB46F.js → chunk-FS2UUJJO.js} +3 -3
- package/dist/{chunk-6UPEUMJ2.js → chunk-HDNDL6D5.js} +1 -1
- package/dist/{chunk-7UU7V3AD.js → chunk-IOVXB6QN.js} +1 -1
- package/dist/{chunk-EK77AJAH.js → chunk-OTZU76DH.js} +1 -1
- package/dist/{chunk-5RAQ5DZW.js → chunk-T6GMRZWC.js} +1 -1
- package/dist/{chunk-RF2L5SYG.js → chunk-TIXVEPS2.js} +1 -1
- package/dist/{chunk-TL4DLMMW.js → chunk-TJ5L2UTE.js} +1 -1
- package/dist/chunk-UGTNKTHS.js +542 -0
- package/dist/chunk-VGFDMPVB.js +436 -0
- package/dist/cli/neuroverse.cjs +4089 -328
- package/dist/cli/neuroverse.js +62 -103
- package/dist/cli/plan.js +1 -1
- package/dist/cli/radiant.cjs +2058 -0
- package/dist/cli/radiant.d.cts +25 -0
- package/dist/cli/radiant.d.ts +25 -0
- package/dist/cli/radiant.js +422 -0
- package/dist/cli/run.js +2 -2
- package/dist/cli/worldmodel.cjs +1624 -0
- package/dist/cli/worldmodel.d.cts +24 -0
- package/dist/cli/worldmodel.d.ts +24 -0
- package/dist/cli/worldmodel.js +742 -0
- package/dist/{demo-N5K4VXJW.js → demo-6W3YXLAX.js} +2 -2
- package/dist/{derive-5LOMN7GO.js → derive-7Y7YWVLU.js} +4 -4
- package/dist/engine/worldmodel-compiler.cjs +366 -0
- package/dist/engine/worldmodel-compiler.d.cts +46 -0
- package/dist/engine/worldmodel-compiler.d.ts +46 -0
- package/dist/engine/worldmodel-compiler.js +17 -0
- package/dist/engine/worldmodel-parser.cjs +566 -0
- package/dist/engine/worldmodel-parser.d.cts +22 -0
- package/dist/engine/worldmodel-parser.d.ts +22 -0
- package/dist/engine/worldmodel-parser.js +7 -0
- package/dist/{equity-penalties-PYCJ3Q4U.js → equity-penalties-CCO3GVHS.js} +1 -1
- package/dist/{explain-42TVC3QD.js → explain-HDFN4ION.js} +1 -1
- package/dist/{guard-TPYDFG6V.js → guard-IHJEKHL2.js} +1 -1
- package/dist/{improve-HLZGJ54Z.js → improve-LRORRYEX.js} +1 -1
- package/dist/index.js +29 -29
- package/dist/{lens-NFGZHD76.js → lens-TLDZQXBI.js} +61 -2
- package/dist/lenses-K5FVSALR.js +13 -0
- package/dist/{mcp-server-5XXNG6VC.js → mcp-server-CKYBHXWK.js} +2 -2
- package/dist/{playground-2EU5CFIH.js → playground-3TTBN7XD.js} +1 -1
- package/dist/radiant/index.cjs +1700 -0
- package/dist/radiant/index.d.cts +1163 -0
- package/dist/radiant/index.d.ts +1163 -0
- package/dist/radiant/index.js +75 -0
- package/dist/{redteam-VK6OVHAE.js → redteam-W644UMWN.js} +1 -1
- package/dist/{session-NGA4DUPL.js → session-FMAROEIE.js} +2 -2
- package/dist/{simulate-4YNOBMES.js → simulate-VT437EEL.js} +1 -1
- package/dist/{test-HDBPMQTG.js → test-XDB2DH3L.js} +1 -1
- package/dist/{validate-6MFQZ2EG.js → validate-M52DX22Y.js} +1 -1
- package/dist/{world-H5WVURKU.js → world-O4HTQPDP.js} +1 -1
- package/dist/{world-loader-J47PCPDZ.js → world-loader-YTYFOP7D.js} +1 -1
- package/dist/worldmodel-contract-BPGhiuW5.d.cts +221 -0
- package/dist/worldmodel-contract-BPGhiuW5.d.ts +221 -0
- package/dist/worlds/auki-vanguard.worldmodel.md +116 -0
- package/dist/worlds/behavioral-demo.nv-world.md +177 -0
- package/dist/worlds/neuroverse-governance.worldmodel.md +115 -0
- package/package.json +7 -2
- package/dist/{bootstrap-IP5QMC3Q.js → bootstrap-2OW5ZLBL.js} +3 -3
- package/dist/{chunk-QZ666FCV.js → chunk-FHXXD2TI.js} +6 -6
- package/dist/{chunk-EQUAWNXW.js → chunk-I4RTIMLX.js} +0 -0
- package/dist/{configure-ai-5MP5DWTT.js → configure-ai-LL3VAPQW.js} +3 -3
- /package/dist/{doctor-Q5APJOTS.js → doctor-XEMLO6UA.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -3,9 +3,6 @@ import {
|
|
|
3
3
|
generateImpactReportFromFile,
|
|
4
4
|
renderImpactReport
|
|
5
5
|
} from "./chunk-OQU65525.js";
|
|
6
|
-
import {
|
|
7
|
-
BOOTSTRAP_EXIT_CODES
|
|
8
|
-
} from "./chunk-4NGDRRQH.js";
|
|
9
6
|
import {
|
|
10
7
|
VALIDATE_EXIT_CODES
|
|
11
8
|
} from "./chunk-I3RRAYK2.js";
|
|
@@ -24,31 +21,24 @@ import {
|
|
|
24
21
|
handleListPresets,
|
|
25
22
|
handleReasonRequest,
|
|
26
23
|
writeTempWorld
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7FL3U7Z5.js";
|
|
28
25
|
import {
|
|
29
26
|
adaptationFromVerdict,
|
|
30
27
|
classifyAdaptation,
|
|
31
28
|
detectBehavioralPatterns,
|
|
32
29
|
generateAdaptationNarrative
|
|
33
30
|
} from "./chunk-CNSO6XW5.js";
|
|
34
|
-
import {
|
|
35
|
-
addGuard,
|
|
36
|
-
addInvariant,
|
|
37
|
-
addRule,
|
|
38
|
-
classifyIntent,
|
|
39
|
-
parseGuardDescription
|
|
40
|
-
} from "./chunk-XPMZB46F.js";
|
|
41
31
|
import {
|
|
42
32
|
deriveWorld,
|
|
43
33
|
extractWorldMarkdown,
|
|
44
34
|
normalizeWorldMarkdown
|
|
45
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FHXXD2TI.js";
|
|
46
36
|
import {
|
|
47
37
|
CONFIGURE_AI_EXIT_CODES,
|
|
48
38
|
DERIVE_EXIT_CODES
|
|
49
39
|
} from "./chunk-FMSTRBBS.js";
|
|
50
|
-
import "./chunk-OT6PXH54.js";
|
|
51
40
|
import "./chunk-INWQHLPS.js";
|
|
41
|
+
import "./chunk-OT6PXH54.js";
|
|
52
42
|
import {
|
|
53
43
|
explainWorld,
|
|
54
44
|
renderExplainText
|
|
@@ -58,20 +48,13 @@ import {
|
|
|
58
48
|
renderImproveText
|
|
59
49
|
} from "./chunk-NTHXZAW4.js";
|
|
60
50
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
parseWorldMarkdown
|
|
65
|
-
} from "./chunk-3NZMMSOW.js";
|
|
66
|
-
import {
|
|
67
|
-
renderSimulateText,
|
|
68
|
-
simulateWorld
|
|
69
|
-
} from "./chunk-CYDMUJVZ.js";
|
|
51
|
+
BOOTSTRAP_EXIT_CODES
|
|
52
|
+
} from "./chunk-4NGDRRQH.js";
|
|
70
53
|
import {
|
|
71
54
|
SessionManager,
|
|
72
55
|
runInteractiveMode,
|
|
73
56
|
runPipeMode
|
|
74
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-OTZU76DH.js";
|
|
75
58
|
import {
|
|
76
59
|
applyConsequence,
|
|
77
60
|
applyReward,
|
|
@@ -87,7 +70,27 @@ import {
|
|
|
87
70
|
} from "./chunk-A5W4GNQO.js";
|
|
88
71
|
import {
|
|
89
72
|
McpGovernanceServer
|
|
90
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-FDPPZLSQ.js";
|
|
74
|
+
import {
|
|
75
|
+
addGuard,
|
|
76
|
+
addInvariant,
|
|
77
|
+
addRule,
|
|
78
|
+
classifyIntent,
|
|
79
|
+
parseGuardDescription
|
|
80
|
+
} from "./chunk-FS2UUJJO.js";
|
|
81
|
+
import {
|
|
82
|
+
validateWorld
|
|
83
|
+
} from "./chunk-7P3S7MAY.js";
|
|
84
|
+
import {
|
|
85
|
+
emitWorldDefinition
|
|
86
|
+
} from "./chunk-YPCVY4GS.js";
|
|
87
|
+
import {
|
|
88
|
+
parseWorldMarkdown
|
|
89
|
+
} from "./chunk-3NZMMSOW.js";
|
|
90
|
+
import {
|
|
91
|
+
renderSimulateText,
|
|
92
|
+
simulateWorld
|
|
93
|
+
} from "./chunk-CYDMUJVZ.js";
|
|
91
94
|
import {
|
|
92
95
|
PLAN_EXIT_CODES,
|
|
93
96
|
parsePlanMarkdown
|
|
@@ -108,9 +111,6 @@ import {
|
|
|
108
111
|
resolveWorldPath,
|
|
109
112
|
setActiveWorld
|
|
110
113
|
} from "./chunk-AKW5YVCE.js";
|
|
111
|
-
import {
|
|
112
|
-
emitWorldDefinition
|
|
113
|
-
} from "./chunk-YPCVY4GS.js";
|
|
114
114
|
import {
|
|
115
115
|
GitHubGovernanceBlockedError,
|
|
116
116
|
GitHubGovernor,
|
|
@@ -121,12 +121,12 @@ import {
|
|
|
121
121
|
createGitHubWebhookHandlerFromWorld,
|
|
122
122
|
formatForActions,
|
|
123
123
|
formatPRComment
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-A2UZTLRV.js";
|
|
125
125
|
import "./chunk-5U2MQO5P.js";
|
|
126
126
|
import {
|
|
127
127
|
loadWorld,
|
|
128
128
|
loadWorldFromDirectory
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-I4RTIMLX.js";
|
|
130
130
|
import {
|
|
131
131
|
evaluateGuard,
|
|
132
132
|
eventToAllowlistKey,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-BQZMOEML.js";
|
|
4
4
|
import {
|
|
5
5
|
loadWorld
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I4RTIMLX.js";
|
|
7
7
|
import "./chunk-QWGCMQQD.js";
|
|
8
8
|
|
|
9
9
|
// src/builder/lens.ts
|
|
@@ -552,6 +552,63 @@ var CALM_LENS = {
|
|
|
552
552
|
}
|
|
553
553
|
]
|
|
554
554
|
};
|
|
555
|
+
var BEHAVIORAL_INTERPRETER_LENS = {
|
|
556
|
+
id: "behavioral-interpreter",
|
|
557
|
+
name: "Behavioral Interpreter",
|
|
558
|
+
tagline: "Read patterns, not promises.",
|
|
559
|
+
author: "NeuroverseOS",
|
|
560
|
+
version: "1.0.0",
|
|
561
|
+
description: "Interprets actions as behavioral signals. Prioritizes observed behavior over declared intent, identifies ambiguity, ownership diffusion, resistance, and alignment patterns, and frames outputs around recurring behavior rather than isolated statements.",
|
|
562
|
+
tags: ["behavior", "signals", "alignment", "analysis", "interpretation"],
|
|
563
|
+
stackable: true,
|
|
564
|
+
priority: 65,
|
|
565
|
+
appliesTo: "all",
|
|
566
|
+
tone: {
|
|
567
|
+
formality: "neutral",
|
|
568
|
+
verbosity: "concise",
|
|
569
|
+
emotion: "neutral",
|
|
570
|
+
confidence: "balanced"
|
|
571
|
+
},
|
|
572
|
+
directives: [
|
|
573
|
+
{
|
|
574
|
+
id: "actions_over_claims",
|
|
575
|
+
scope: "response_framing",
|
|
576
|
+
instruction: "Prioritize observed actions, repeated choices, and follow-through over stated intent or self-description. Treat behavior as stronger evidence than promises.",
|
|
577
|
+
example: {
|
|
578
|
+
without: "They said they're committed to the project and will prioritize it going forward.",
|
|
579
|
+
with: "They've said they'll prioritize it three times. Each time, other work was chosen instead. The pattern suggests this is not currently a priority regardless of stated intent."
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
id: "pattern_over_incident",
|
|
584
|
+
scope: "behavior_shaping",
|
|
585
|
+
instruction: "Interpret events in sequence. Look for recurring patterns across time rather than over-weighting one isolated incident.",
|
|
586
|
+
example: {
|
|
587
|
+
without: "They missed the deadline. That's a red flag.",
|
|
588
|
+
with: "One missed deadline is an event. Three missed deadlines with similar explanations is a pattern. What does the sequence tell you?"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
id: "flag_ambiguity",
|
|
593
|
+
scope: "behavior_shaping",
|
|
594
|
+
instruction: "Notice ambiguity, indirectness, delayed commitment, and ownership diffusion. Treat these as meaningful signals when they repeat."
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
id: "separate_observed_inferred_speculative",
|
|
598
|
+
scope: "content_filtering",
|
|
599
|
+
instruction: "Clearly distinguish between what is directly observed, what is reasonably inferred from patterns, and what remains speculative."
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
id: "alignment_read",
|
|
603
|
+
scope: "value_emphasis",
|
|
604
|
+
instruction: "Assess whether words, timing, decisions, and follow-through align. Misalignment between stated priorities and actual behavior should be named clearly.",
|
|
605
|
+
example: {
|
|
606
|
+
without: "They seem supportive of the initiative.",
|
|
607
|
+
with: "They endorsed the initiative publicly but have not allocated budget, time, or personnel to it. Words and resource allocation are misaligned."
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
};
|
|
555
612
|
var BUILTIN_LENSES = [
|
|
556
613
|
// Character lenses — each one is a person you'd want in your corner
|
|
557
614
|
STOIC_LENS,
|
|
@@ -563,7 +620,9 @@ var BUILTIN_LENSES = [
|
|
|
563
620
|
HYPE_MAN_LENS,
|
|
564
621
|
MONK_LENS,
|
|
565
622
|
SOCRATIC_LENS,
|
|
566
|
-
MINIMALIST_LENS
|
|
623
|
+
MINIMALIST_LENS,
|
|
624
|
+
// Behavioral lenses — governance overlays that interpret action, not tone
|
|
625
|
+
BEHAVIORAL_INTERPRETER_LENS
|
|
567
626
|
];
|
|
568
627
|
function getLenses() {
|
|
569
628
|
return BUILTIN_LENSES;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpGovernanceServer,
|
|
3
3
|
startMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FDPPZLSQ.js";
|
|
5
5
|
import "./chunk-AKW5YVCE.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-I4RTIMLX.js";
|
|
7
7
|
import "./chunk-ZAF6JH23.js";
|
|
8
8
|
import "./chunk-QLPTHTVB.js";
|
|
9
9
|
import "./chunk-QWGCMQQD.js";
|