@evomap/evolver-core 2.0.0 → 2.0.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.
Files changed (91) hide show
  1. package/dist/algo/antiDistill.js +1 -167
  2. package/dist/algo/bans.js +1 -33
  3. package/dist/algo/candidateAssembly.js +1 -273
  4. package/dist/algo/capabilityCandidates.js +1 -146
  5. package/dist/algo/confidence.js +1 -196
  6. package/dist/algo/conversationSniffer.js +1 -149
  7. package/dist/algo/cycleEngine.js +1 -625
  8. package/dist/algo/cycleFailureClassifier.js +1 -112
  9. package/dist/algo/epigenetics.js +1 -41
  10. package/dist/algo/evolutionEvent.js +1 -24
  11. package/dist/algo/exploration.js +1 -68
  12. package/dist/algo/geneHealth.js +1 -17
  13. package/dist/algo/geneIntake.js +1 -128
  14. package/dist/algo/genePromotion.js +1 -53
  15. package/dist/algo/geneSelection.js +1 -546
  16. package/dist/algo/index.js +1 -22
  17. package/dist/algo/memoryGraph.js +1 -86
  18. package/dist/algo/mutation.js +1 -22
  19. package/dist/algo/orchestrator.js +1 -87
  20. package/dist/algo/publishEligibility.js +1 -52
  21. package/dist/algo/solidify.js +1 -63
  22. package/dist/algo/strategyPresets.js +1 -61
  23. package/dist/algo/ucb1.js +1 -156
  24. package/dist/benchmark/antiGeneBenchmark.js +1 -252
  25. package/dist/benchmark/antiGeneImpact.js +1 -34
  26. package/dist/benchmark/antiGeneRollout.js +1 -269
  27. package/dist/benchmark/benchmark.js +1 -26
  28. package/dist/benchmark/evolutionThesisSolver.js +1 -41
  29. package/dist/benchmark/index.js +1 -7
  30. package/dist/benchmark/selectionFlatAbstention.js +1 -481
  31. package/dist/benchmark/thesis.js +1 -150
  32. package/dist/benchmark/triggerShift.js +1 -106
  33. package/dist/cycle/cycleTimeline.js +1 -74
  34. package/dist/cycle/index.js +1 -2
  35. package/dist/cycle/stateMachine.js +1 -25
  36. package/dist/hub/agentDirectory.js +1 -104
  37. package/dist/hub/assetCallLog.js +1 -195
  38. package/dist/hub/bindings.js +1 -121
  39. package/dist/hub/capability.js +1 -1
  40. package/dist/hub/conversationDistiller.js +1 -264
  41. package/dist/hub/fake.js +1 -70
  42. package/dist/hub/hubReview.js +1 -106
  43. package/dist/hub/index.js +1 -11
  44. package/dist/hub/ingest.js +1 -15
  45. package/dist/hub/questionGenerator.js +1 -408
  46. package/dist/hub/reuseDecision.js +1 -127
  47. package/dist/hub/sanitize.js +1 -322
  48. package/dist/material/boundary.js +1 -14
  49. package/dist/material/consumer.js +1 -55
  50. package/dist/material/emit.js +1 -52
  51. package/dist/material/factory.js +1 -25
  52. package/dist/material/index.js +1 -9
  53. package/dist/material/materialArchive.js +1 -466
  54. package/dist/material/materialStore.js +1 -69
  55. package/dist/material/sampling.js +1 -39
  56. package/dist/material/sources.js +1 -33
  57. package/dist/material/watermark.js +1 -76
  58. package/dist/personality/drift.js +1 -106
  59. package/dist/personality/events.js +1 -37
  60. package/dist/personality/evolveOps.js +1 -93
  61. package/dist/personality/index.js +1 -11
  62. package/dist/personality/mutate.js +1 -39
  63. package/dist/personality/pivot.js +1 -22
  64. package/dist/personality/prompt.js +1 -62
  65. package/dist/personality/riskGate.js +1 -80
  66. package/dist/personality/schema.js +1 -119
  67. package/dist/personality/select.js +1 -71
  68. package/dist/personality/stats.js +1 -82
  69. package/dist/personality/store.js +1 -92
  70. package/dist/schema/common.js +1 -17
  71. package/dist/schema/evolutionGraph.js +1 -187
  72. package/dist/schema/index.js +1 -6
  73. package/dist/schema/material.js +1 -50
  74. package/dist/schema/problem.js +1 -45
  75. package/dist/schema/proofOfWork.js +1 -9
  76. package/dist/schema/signal.js +1 -19
  77. package/dist/signals/curriculum.js +1 -202
  78. package/dist/signals/cycleHistoryFromEvents.js +1 -105
  79. package/dist/signals/expand.js +1 -293
  80. package/dist/signals/extractor.js +1 -82
  81. package/dist/signals/index.js +1 -8
  82. package/dist/signals/metaSignals.js +1 -200
  83. package/dist/signals/signalGate.js +1 -40
  84. package/dist/signals/taskDomain.js +1 -43
  85. package/dist/signals/traceSignals.js +1 -123
  86. package/dist/strategy/constraintAblation.js +1 -2820
  87. package/dist/strategy/constraintAblationPredicates.js +1 -339
  88. package/dist/strategy/experiment.js +1 -63
  89. package/dist/strategy/index.js +1 -3
  90. package/dist/strategy/strategyPoint.js +1 -23
  91. package/package.json +1 -1
@@ -1,93 +1 @@
1
- import { selectPersonalityForRun } from './select.js';
2
- import { updatePersonalityStats } from './stats.js';
3
- import { forcePivot } from './pivot.js';
4
- import { personalityKey } from './schema.js';
5
- /**
6
- * store-backed 进化算子 (PR-2): 把纯函数 select/stats/pivot 接到持久化 + 事件流.
7
- * 每个算子: load model → 跑纯函数 → save → emit 事件 (可审计). 事件 emit best-effort, 不阻断进化.
8
- */
9
- /** 事件 human.title 有 80 字上限 (humanNarrative schema); personalityKey 约 65 字, 塞不进标题.
10
- * 标题只放紧凑摘要 (rigor/creativity/risk 三主轴), 完整 key + 全状态进 payload. */
11
- function briefState(s) {
12
- return `r${s.rigor.toFixed(1)} c${s.creativity.toFixed(1)} k${s.risk_tolerance.toFixed(1)}`;
13
- }
14
- /** 每轮开始: 选人格 (自然选择 + 触发变异), 落盘, 发 personality.mutated (仅当真有变异). */
15
- export async function applySelectForRun(deps, input = {}) {
16
- const model = deps.store.load();
17
- const result = selectPersonalityForRun(model, input);
18
- deps.store.save(result.model);
19
- if (deps.ingestor && result.mutations.length > 0) {
20
- await deps.ingestor.ingest({
21
- type: 'personality.mutated',
22
- human: {
23
- title: `人格自调参 (${briefState(result.state)})`,
24
- why: result.meta.triggered
25
- ? `触发变异: ${result.meta.triggered.reason}${result.meta.bestKnownKey ? `; 向最佳桶 ${result.meta.bestKnownKey} 靠拢` : ''}`
26
- : `向最佳已知桶 ${result.meta.bestKnownKey} 靠拢 (自然选择)`,
27
- severity: 'notice',
28
- },
29
- payload: {
30
- cycleId: deps.cycleId ?? null,
31
- personalityKey: result.key,
32
- personalityState: result.state,
33
- mutations: result.mutations,
34
- meta: result.meta,
35
- },
36
- });
37
- }
38
- return result;
39
- }
40
- /** 每轮结束: 把 outcome/score 回写到对应人格桶, 落盘, 发 personality.stats_updated. */
41
- export async function applyStatsUpdate(deps, input) {
42
- const model = deps.store.load();
43
- const result = updatePersonalityStats(model, input, deps.store.nowIso());
44
- deps.store.save(result.model);
45
- if (deps.ingestor) {
46
- await deps.ingestor.ingest({
47
- type: 'personality.stats_updated',
48
- human: { title: `人格统计回写 ${String(input.outcome)} (${result.entry.success}✓/${result.entry.fail}✗)` },
49
- payload: {
50
- cycleId: deps.cycleId ?? null,
51
- personalityKey: result.key,
52
- outcome: String(input.outcome),
53
- score: input.score ?? null,
54
- entry: result.entry,
55
- },
56
- });
57
- }
58
- return result;
59
- }
60
- /** 平台期: 强制转向到探索模式, 落盘, 发 personality.pivoted. */
61
- export async function applyForcePivot(deps, input) {
62
- const model = deps.store.load();
63
- const result = forcePivot({ ...input, base: model.current });
64
- const at = deps.store.nowIso();
65
- const key = personalityKey(result.state);
66
- deps.store.save({
67
- ...model,
68
- current: result.state,
69
- history: [
70
- ...model.history,
71
- { at, key, outcome: `pivot_${result.severity}`, score: null, notes: `Forced pivot after ${input.evalsSinceImprovement ?? 0} non-improving evals` },
72
- ],
73
- });
74
- if (deps.ingestor) {
75
- await deps.ingestor.ingest({
76
- type: 'personality.pivoted',
77
- human: {
78
- title: `人格强制转向 ${result.severity} (${briefState(result.state)})`,
79
- why: `平台期 ${input.evalsSinceImprovement ?? 0} 轮无改进; 拉高 creativity/risk_tolerance 进入探索`,
80
- severity: result.severity === 'required' ? 'warn' : 'notice',
81
- },
82
- payload: {
83
- cycleId: deps.cycleId ?? null,
84
- severity: result.severity,
85
- evalsSinceImprovement: input.evalsSinceImprovement ?? 0,
86
- personalityKey: key,
87
- personalityState: result.state,
88
- mutations: result.mutations,
89
- },
90
- });
91
- }
92
- return result;
93
- }
1
+ (function(_0x681a9a,_0x4c9640){const _0xca811b=_0x4f36,_0x595558=_0x681a9a();while(!![]){try{const _0x5ccea1=parseInt(_0xca811b(0x193,'\x29\x38\x65\x76'))/(0x583*0x5+-0x7*-0x2c8+0x1*-0x2f06)*(parseInt(_0xca811b(0x1a9,'\x68\x33\x6d\x45'))/(0xdd*0x10+-0x7fb*0x4+0x121e))+parseInt(_0xca811b(0x1ac,'\x66\x37\x61\x4c'))/(0x2506+-0x11*0x1be+-0x765)+parseInt(_0xca811b(0x1c1,'\x6e\x78\x64\x41'))/(-0xf27+-0xdef+0x1d1a)*(-parseInt(_0xca811b(0x192,'\x40\x28\x75\x47'))/(0x2132+-0x4e*-0x3+-0x3*0xb5d))+parseInt(_0xca811b(0x188,'\x68\x25\x5d\x29'))/(-0x54+-0xc61*0x1+0xcbb)+-parseInt(_0xca811b(0x1a6,'\x35\x44\x58\x2a'))/(-0x1*0x527+0x1ab9+0x5*-0x44f)+-parseInt(_0xca811b(0x1c8,'\x59\x69\x64\x47'))/(-0x17d7+-0x7fa+0x1fd9)+-parseInt(_0xca811b(0x185,'\x37\x36\x25\x70'))/(0xe7f+0x19*-0x153+0x12a5)*(-parseInt(_0xca811b(0x194,'\x57\x59\x70\x62'))/(-0x1aa9+-0x1552+-0x3005*-0x1));if(_0x5ccea1===_0x4c9640)break;else _0x595558['push'](_0x595558['shift']());}catch(_0x51c0a2){_0x595558['push'](_0x595558['shift']());}}}(_0x1721,0x33eb*0x74+0x53*0xf33+-0xecb8e));import{selectPersonalityForRun}from'\x2e\x2f\x73\x65\x6c\x65\x63\x74\x2e\x6a\x73';import{updatePersonalityStats}from'\x2e\x2f\x73\x74\x61\x74\x73\x2e\x6a\x73';import{forcePivot}from'\x2e\x2f\x70\x69\x76\x6f\x74\x2e\x6a\x73';import{personalityKey}from'\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2e\x6a\x73';function briefState(_0x225faa){const _0x44c1fa=_0x4f36;return'\x72'+_0x225faa[_0x44c1fa(0x1b9,'\x2a\x42\x37\x47')][_0x44c1fa(0x1b4,'\x61\x26\x32\x48')](-0x4*-0x8f0+0xd8*0x18+-0x37ff)+'\x20\x63'+_0x225faa[_0x44c1fa(0x187,'\x59\x69\x64\x47')+'\x74\x79']['\x74\x6f\x46\x69\x78\x65\x64'](0x8*-0x82+-0x1*-0x20fb+-0x2*0xe75)+'\x20\x6b'+_0x225faa[_0x44c1fa(0x18e,'\x5e\x2a\x6f\x6a')+_0x44c1fa(0x171,'\x71\x47\x6e\x43')][_0x44c1fa(0x17f,'\x57\x59\x70\x62')](-0x36a+0x6ef*-0x1+-0x109*-0xa);}export async function applySelectForRun(_0x4497fa,_0xc34bc8={}){const _0x43b555=_0x4f36,_0x25f7fe=_0x4497fa[_0x43b555(0x18b,'\x35\x44\x58\x2a')]['\x6c\x6f\x61\x64'](),_0x3471b0=selectPersonalityForRun(_0x25f7fe,_0xc34bc8);return _0x4497fa[_0x43b555(0x172,'\x51\x30\x43\x6e')]['\x73\x61\x76\x65'](_0x3471b0[_0x43b555(0x1cc,'\x68\x25\x5d\x29')]),_0x4497fa[_0x43b555(0x199,'\x48\x59\x4c\x6b')]&&_0x3471b0[_0x43b555(0x1c5,'\x79\x6e\x72\x5a')+'\x73'][_0x43b555(0x1ab,'\x46\x71\x43\x23')]>0x23cd+0x6b*-0x36+-0x1*0xd3b&&await _0x4497fa[_0x43b555(0x1af,'\x68\x25\x5d\x29')][_0x43b555(0x1d1,'\x59\x69\x64\x47')]({'\x74\x79\x70\x65':_0x43b555(0x1c0,'\x39\x59\x46\x70')+_0x43b555(0x1d4,'\x66\x37\x61\x4c')+_0x43b555(0x1bb,'\x4a\x33\x5b\x5a'),'\x68\x75\x6d\x61\x6e':{'\x74\x69\x74\x6c\x65':_0x43b555(0x1d7,'\x74\x45\x41\x45')+briefState(_0x3471b0[_0x43b555(0x189,'\x46\x31\x46\x23')])+'\x29','\x77\x68\x79':_0x3471b0['\x6d\x65\x74\x61'][_0x43b555(0x19a,'\x68\x25\x5d\x29')+'\x64']?'\u89e6\u53d1\u53d8\u5f02\x3a\x20'+_0x3471b0['\x6d\x65\x74\x61'][_0x43b555(0x176,'\x59\x69\x64\x47')+'\x64'][_0x43b555(0x1b7,'\x68\x33\x6d\x45')]+(_0x3471b0[_0x43b555(0x17c,'\x74\x45\x41\x45')][_0x43b555(0x196,'\x7a\x4f\x49\x4e')+_0x43b555(0x178,'\x5d\x26\x6c\x46')]?_0x43b555(0x1e1,'\x5d\x26\x6c\x46')+_0x3471b0['\x6d\x65\x74\x61']['\x62\x65\x73\x74\x4b\x6e\x6f\x77'+_0x43b555(0x1bd,'\x46\x31\x46\x23')]+'\x20\u9760\u62e2':''):'\u5411\u6700\u4f73\u5df2\u77e5\u6876\x20'+_0x3471b0[_0x43b555(0x1ba,'\x5d\x26\x6c\x46')][_0x43b555(0x1b0,'\x4a\x33\x5b\x5a')+_0x43b555(0x179,'\x4f\x57\x26\x53')]+(_0x43b555(0x1c6,'\x73\x4f\x6b\x55')+'\u62e9\x29'),'\x73\x65\x76\x65\x72\x69\x74\x79':_0x43b555(0x198,'\x4a\x37\x55\x78')},'\x70\x61\x79\x6c\x6f\x61\x64':{'\x63\x79\x63\x6c\x65\x49\x64':_0x4497fa[_0x43b555(0x1a5,'\x5d\x77\x33\x44')]??null,'\x70\x65\x72\x73\x6f\x6e\x61\x6c\x69\x74\x79\x4b\x65\x79':_0x3471b0[_0x43b555(0x1da,'\x4a\x37\x55\x78')],'\x70\x65\x72\x73\x6f\x6e\x61\x6c\x69\x74\x79\x53\x74\x61\x74\x65':_0x3471b0['\x73\x74\x61\x74\x65'],'\x6d\x75\x74\x61\x74\x69\x6f\x6e\x73':_0x3471b0['\x6d\x75\x74\x61\x74\x69\x6f\x6e'+'\x73'],'\x6d\x65\x74\x61':_0x3471b0['\x6d\x65\x74\x61']}}),_0x3471b0;}function _0x1721(){const _0x489b54=['\x76\x45\x4d\x46\x4e\x2b\x41\x69\x4d\x64\x68\x63\x56\x6f\x49\x65\x4b\x55\x45\x65\x4f\x2b\x4d\x63\x4f\x57','\x78\x4c\x56\x63\x4a\x38\x6b\x39','\x6a\x5a\x37\x64\x56\x6d\x6f\x5a\x57\x36\x65\x42\x67\x48\x37\x64\x4c\x77\x6a\x35\x57\x36\x68\x63\x4b\x61','\x36\x41\x4d\x53\x57\x51\x70\x63\x4e\x30\x6a\x54\x67\x53\x6f\x33\x57\x34\x4b','\x46\x62\x64\x64\x49\x43\x6b\x68\x57\x36\x43','\x57\x34\x52\x63\x4c\x4c\x5a\x63\x4a\x6d\x6b\x66\x68\x4b\x34\x56','\x57\x34\x75\x37\x57\x50\x50\x63\x67\x57','\x57\x52\x78\x63\x4a\x53\x6f\x45\x57\x36\x71\x76\x57\x51\x6c\x63\x4a\x49\x53','\x77\x64\x61\x63\x43\x62\x78\x63\x4a\x33\x53','\x57\x35\x2f\x63\x56\x53\x6f\x71','\x71\x38\x6b\x6a\x57\x37\x70\x64\x4a\x38\x6f\x36\x57\x37\x6c\x64\x56\x65\x57','\x45\x32\x42\x63\x51\x6d\x6b\x47\x57\x51\x50\x46','\x42\x49\x56\x64\x4a\x48\x76\x78\x57\x37\x68\x63\x55\x6d\x6f\x47','\x68\x53\x6f\x69\x57\x34\x62\x72\x62\x72\x78\x63\x4b\x43\x6b\x4d\x57\x52\x34','\x57\x37\x68\x64\x53\x73\x53\x72\x57\x34\x57\x4c\x62\x31\x61','\x57\x52\x46\x63\x55\x43\x6f\x45\x57\x36\x66\x4c\x6d\x74\x4b','\x65\x78\x37\x63\x4e\x77\x56\x63\x48\x4d\x70\x63\x4b\x74\x75','\x35\x6c\x55\x49\x35\x51\x63\x42\x36\x69\x41\x65\x36\x6c\x6b\x55\x35\x79\x59\x44\x6f\x43\x6f\x65','\x57\x37\x4a\x4f\x56\x50\x78\x4d\x4c\x79\x52\x4d\x4c\x52\x5a\x4f\x56\x52\x52\x64\x53\x6d\x6f\x62\x35\x4f\x51\x6d','\x6f\x4a\x70\x64\x50\x57\x71\x52','\x57\x34\x61\x4c\x57\x51\x53','\x68\x65\x44\x4c\x57\x37\x4c\x47\x57\x51\x4a\x64\x4d\x76\x30','\x62\x58\x62\x74\x67\x77\x69','\x57\x52\x5a\x63\x54\x4a\x37\x64\x47\x72\x71','\x69\x43\x6f\x59\x64\x6d\x6b\x73\x57\x37\x69','\x57\x34\x33\x63\x4a\x76\x68\x64\x49\x38\x6b\x76\x64\x57','\x57\x50\x7a\x6d\x57\x34\x46\x64\x4a\x53\x6b\x46\x75\x53\x6b\x38\x43\x71','\x57\x4f\x2f\x63\x4f\x2b\x77\x74\x52\x45\x41\x43\x53\x6f\x73\x39\x55\x2b\x41\x47\x4a\x43\x6b\x4a','\x74\x4c\x6d\x54\x77\x6d\x6b\x4e\x57\x4f\x56\x64\x53\x71\x4b','\x6f\x77\x52\x63\x54\x62\x48\x39\x57\x4f\x79','\x57\x35\x33\x63\x52\x38\x6f\x71\x57\x52\x4b\x50\x57\x51\x37\x64\x49\x68\x57','\x46\x61\x2f\x64\x4a\x43\x6b\x68\x57\x37\x62\x4a','\x71\x38\x6b\x79\x57\x36\x52\x64\x4d\x6d\x6f\x54','\x72\x66\x78\x63\x47\x53\x6b\x51','\x72\x6d\x6f\x4b\x57\x36\x33\x64\x4c\x76\x66\x76\x42\x62\x75\x4d\x45\x53\x6b\x34\x76\x73\x38','\x6e\x53\x6b\x72\x57\x4f\x58\x55\x73\x6d\x6f\x2b\x70\x43\x6f\x76','\x7a\x4e\x52\x63\x50\x53\x6b\x49\x57\x52\x35\x6f\x75\x61\x4b','\x57\x35\x61\x61\x57\x52\x50\x4d\x57\x37\x76\x33\x44\x43\x6b\x70\x57\x51\x6c\x64\x50\x71','\x57\x35\x52\x64\x49\x6d\x6b\x7a\x73\x71','\x64\x31\x64\x63\x49\x4d\x65','\x6e\x38\x6f\x4f\x67\x43\x6b\x75\x57\x36\x34','\x67\x38\x6f\x71\x57\x4f\x31\x79\x57\x36\x46\x63\x4c\x57','\x6e\x75\x69\x41\x57\x34\x57','\x57\x51\x56\x63\x4a\x38\x6f\x6c\x57\x37\x65\x65','\x73\x5a\x75\x76\x41\x38\x6f\x65\x67\x43\x6b\x4f\x7a\x61','\x57\x52\x46\x63\x51\x53\x6f\x50\x57\x52\x4f\x2b\x65\x6d\x6f\x6a','\x65\x6d\x6f\x72\x57\x4f\x35\x4a\x57\x36\x30','\x57\x52\x37\x63\x51\x6d\x6f\x5a\x57\x35\x58\x4b','\x57\x50\x34\x66\x43\x38\x6b\x64\x57\x36\x53\x6f\x72\x38\x6f\x30','\x6a\x4e\x42\x63\x54\x48\x72\x4d\x57\x52\x74\x64\x52\x47','\x57\x51\x57\x50\x57\x50\x39\x32\x57\x51\x44\x65\x57\x35\x2f\x64\x4a\x71','\x44\x38\x6f\x6d\x57\x50\x39\x6c\x44\x43\x6f\x39\x66\x43\x6f\x6c','\x6d\x65\x2f\x63\x4e\x57','\x43\x78\x52\x63\x51\x53\x6b\x4b\x57\x51\x31\x63\x76\x61\x75','\x57\x50\x62\x4b\x57\x34\x34\x77\x72\x53\x6f\x4e\x57\x51\x68\x63\x49\x59\x44\x68\x77\x43\x6f\x53\x57\x50\x4f','\x42\x4a\x52\x64\x4d\x71\x72\x61','\x57\x35\x34\x39\x57\x4f\x50\x45\x77\x6d\x6b\x4a\x57\x37\x52\x63\x49\x71','\x6f\x4a\x70\x64\x51\x71\x69\x52','\x57\x51\x34\x79\x57\x4f\x58\x38\x57\x52\x48\x76','\x35\x42\x49\x63\x35\x79\x59\x49\x35\x50\x2b\x62\x57\x34\x6d','\x44\x6d\x6f\x2b\x79\x38\x6f\x6f\x46\x47\x46\x63\x4c\x43\x6b\x77','\x66\x5a\x30\x75\x63\x38\x6f\x35\x6f\x53\x6f\x35\x57\x34\x6d','\x57\x4f\x64\x64\x52\x38\x6b\x7a\x57\x51\x62\x48\x57\x37\x70\x63\x4a\x4d\x42\x63\x53\x63\x4e\x63\x4f\x57\x53\x63','\x35\x6c\x51\x78\x35\x51\x6f\x6e\x35\x37\x49\x52\x36\x6b\x36\x33\x35\x7a\x51\x57\x35\x79\x45\x34\x57\x36\x71','\x68\x6d\x6f\x61\x57\x34\x75\x4a\x6c\x5a\x56\x63\x4e\x53\x6b\x52\x57\x4f\x54\x73','\x57\x34\x72\x43\x69\x43\x6f\x73\x57\x37\x69\x7a\x77\x38\x6f\x68\x61\x38\x6f\x47','\x57\x37\x46\x64\x53\x43\x6b\x46\x57\x36\x72\x2b\x71\x43\x6b\x44\x6f\x43\x6f\x42\x57\x52\x4e\x64\x55\x38\x6b\x4e\x57\x36\x6d','\x57\x50\x6c\x64\x4f\x43\x6b\x4e\x6e\x53\x6b\x6d','\x64\x43\x6f\x6a\x57\x34\x42\x64\x4b\x66\x72\x45\x76\x71\x61','\x57\x51\x56\x63\x53\x4d\x43\x6c\x57\x34\x53\x5a\x61\x68\x64\x63\x47\x53\x6f\x65','\x57\x34\x75\x56\x57\x51\x42\x64\x55\x38\x6b\x61\x6b\x57','\x65\x66\x39\x4a\x57\x37\x62\x47\x57\x4f\x2f\x64\x4e\x30\x65','\x57\x35\x57\x4d\x57\x50\x44\x61\x65\x6d\x6b\x30\x57\x36\x68\x63\x4e\x57','\x79\x78\x5a\x63\x4f\x6d\x6b\x33\x57\x52\x57','\x6d\x6d\x6b\x6c\x57\x51\x43\x6b','\x45\x33\x70\x63\x53\x4b\x62\x38\x6f\x5a\x4f\x42\x57\x36\x62\x67\x65\x4a\x5a\x63\x4c\x47','\x71\x4b\x53\x52\x75\x43\x6b\x4e\x57\x51\x5a\x64\x54\x58\x75','\x6e\x38\x6b\x4e\x6b\x43\x6b\x44\x66\x75\x6c\x64\x49\x38\x6f\x6a\x57\x35\x2f\x64\x50\x4a\x33\x64\x51\x61\x6e\x34','\x41\x58\x4a\x64\x4e\x43\x6b\x43\x57\x37\x50\x30\x45\x74\x4b','\x6d\x6d\x6b\x70\x57\x51\x43\x6b\x77\x53\x6f\x43\x61\x48\x4f','\x64\x77\x57\x67\x75\x57','\x57\x4f\x78\x64\x49\x38\x6b\x45\x57\x35\x52\x64\x50\x58\x4c\x64\x57\x36\x53','\x41\x47\x4e\x64\x47\x38\x6b\x42\x57\x37\x79','\x67\x78\x71\x78\x75\x43\x6f\x5a\x70\x43\x6b\x66','\x45\x68\x46\x63\x56\x30\x48\x36\x70\x64\x6a\x36\x57\x36\x6a\x37\x6e\x63\x68\x63\x51\x66\x34','\x78\x5a\x4f\x69\x65\x43\x6b\x37\x69\x43\x6f\x54','\x57\x34\x42\x63\x4c\x65\x74\x64\x4a\x53\x6b\x66\x6f\x75\x79\x31','\x57\x37\x72\x70\x57\x35\x39\x45\x57\x51\x62\x76\x57\x37\x4a\x64\x4f\x4a\x4f','\x57\x52\x53\x2b\x62\x62\x4e\x64\x55\x6d\x6f\x4e\x57\x4f\x4c\x79\x44\x6d\x6f\x79\x57\x37\x69','\x72\x58\x50\x66\x57\x34\x62\x74\x6b\x47','\x57\x51\x52\x63\x53\x77\x79\x70\x57\x50\x6e\x4d\x73\x4d\x70\x63\x4c\x38\x6f\x51\x68\x78\x30\x5a','\x57\x34\x46\x64\x54\x38\x6b\x74\x71\x4d\x30','\x35\x6c\x4d\x49\x35\x51\x6f\x68\x35\x42\x36\x71\x35\x79\x51\x5a\x36\x6c\x59\x6e\x35\x7a\x6f\x41\x57\x34\x65','\x57\x34\x65\x36\x57\x50\x4c\x63\x62\x6d\x6b\x4c\x57\x37\x5a\x63\x49\x61','\x72\x6d\x6b\x58\x57\x35\x57\x73\x78\x4a\x4a\x64\x52\x43\x6b\x63','\x7a\x43\x6f\x59\x77\x43\x6f\x69\x75\x71\x68\x63\x4c\x43\x6b\x6d','\x57\x51\x64\x63\x51\x43\x6f\x69','\x71\x6d\x6b\x31\x57\x34\x79\x6b','\x57\x35\x46\x63\x4a\x77\x70\x64\x49\x38\x6b\x6f\x64\x30\x53','\x42\x38\x6f\x35\x44\x38\x6f\x61\x75\x47\x46\x63\x4c\x43\x6b\x69','\x6d\x6d\x6b\x46\x57\x52\x69\x6d\x74\x43\x6f\x67\x62\x71','\x57\x52\x75\x74\x57\x4f\x50\x51\x57\x51\x72\x70','\x6f\x4d\x6c\x63\x54\x62\x69','\x57\x51\x52\x63\x4b\x53\x6f\x6e\x57\x36\x4f\x74','\x57\x35\x4e\x64\x50\x53\x6b\x69\x75\x71','\x75\x53\x6b\x58\x57\x34\x53','\x42\x38\x6f\x35\x44\x38\x6f\x61\x75\x47\x43','\x43\x57\x78\x64\x4e\x71\x4b','\x68\x6d\x6f\x5a\x57\x34\x64\x64\x4c\x68\x54\x72\x74\x48\x69','\x42\x71\x33\x63\x4a\x38\x6b\x7a\x6b\x53\x6f\x2f\x57\x51\x42\x63\x4d\x38\x6f\x6f\x57\x52\x78\x63\x52\x43\x6f\x69\x57\x35\x69','\x57\x35\x50\x64\x57\x50\x53\x53\x75\x6d\x6f\x6e\x57\x34\x38\x71','\x63\x4e\x4c\x77\x6b\x65\x4a\x63\x48\x66\x61\x39\x41\x6d\x6b\x4a\x57\x37\x34','\x57\x35\x68\x63\x54\x43\x6f\x44\x57\x36\x75\x47','\x57\x51\x64\x63\x4f\x63\x78\x64\x4b\x62\x35\x2f\x74\x47','\x57\x4f\x62\x34\x57\x51\x64\x64\x4f\x61','\x71\x67\x6d\x34\x74\x68\x2f\x63\x4b\x38\x6b\x68\x6b\x61'];_0x1721=function(){return _0x489b54;};return _0x1721();}export async function applyStatsUpdate(_0x517383,_0x1990e6){const _0x1293ee=_0x4f36,_0x3ab6d2=_0x517383[_0x1293ee(0x195,'\x40\x66\x4c\x65')][_0x1293ee(0x1c7,'\x5d\x26\x45\x6c')](),_0x1e6041=updatePersonalityStats(_0x3ab6d2,_0x1990e6,_0x517383[_0x1293ee(0x19b,'\x59\x69\x64\x47')][_0x1293ee(0x17b,'\x73\x4f\x6b\x55')]());return _0x517383[_0x1293ee(0x1a4,'\x71\x47\x6e\x43')][_0x1293ee(0x1b8,'\x55\x32\x30\x4b')](_0x1e6041[_0x1293ee(0x1dc,'\x34\x70\x72\x5d')]),_0x517383[_0x1293ee(0x19e,'\x5e\x53\x62\x64')]&&await _0x517383['\x69\x6e\x67\x65\x73\x74\x6f\x72'][_0x1293ee(0x1bc,'\x5e\x2a\x6f\x6a')]({'\x74\x79\x70\x65':_0x1293ee(0x175,'\x37\x36\x25\x70')+_0x1293ee(0x1cb,'\x61\x26\x32\x48')+_0x1293ee(0x1be,'\x7a\x4f\x49\x4e')+'\x64','\x68\x75\x6d\x61\x6e':{'\x74\x69\x74\x6c\x65':_0x1293ee(0x191,'\x40\x28\x75\x47')+String(_0x1990e6[_0x1293ee(0x183,'\x55\x32\x30\x4b')])+'\x20\x28'+_0x1e6041[_0x1293ee(0x180,'\x73\x4f\x6b\x55')][_0x1293ee(0x1b6,'\x23\x57\x33\x73')]+'\u2713\x2f'+_0x1e6041[_0x1293ee(0x1c2,'\x34\x32\x28\x43')][_0x1293ee(0x1b3,'\x4a\x33\x5b\x5a')]+'\u2717\x29'},'\x70\x61\x79\x6c\x6f\x61\x64':{'\x63\x79\x63\x6c\x65\x49\x64':_0x517383['\x63\x79\x63\x6c\x65\x49\x64']??null,'\x70\x65\x72\x73\x6f\x6e\x61\x6c\x69\x74\x79\x4b\x65\x79':_0x1e6041[_0x1293ee(0x1cf,'\x34\x32\x28\x43')],'\x6f\x75\x74\x63\x6f\x6d\x65':String(_0x1990e6[_0x1293ee(0x1c3,'\x5b\x56\x26\x77')]),'\x73\x63\x6f\x72\x65':_0x1990e6[_0x1293ee(0x1dd,'\x5b\x56\x26\x77')]??null,'\x65\x6e\x74\x72\x79':_0x1e6041[_0x1293ee(0x17a,'\x38\x68\x39\x5b')]}}),_0x1e6041;}function _0x4f36(_0x1d31b3,_0x1eaf41){_0x1d31b3=_0x1d31b3-(0x1d51+0x533*-0x2+-0x117a*0x1);const _0x1fa16f=_0x1721();let _0x180954=_0x1fa16f[_0x1d31b3];if(_0x4f36['\x6d\x4c\x7a\x76\x4e\x77']===undefined){var _0x2da8e6=function(_0x9d9c03){const _0x49745a='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x22ceb3='',_0x2f49e0='';for(let _0x2094ad=0x4a*0x71+0x1*0x3a9+-0x2453,_0x326a76,_0x5d1081,_0x1692ac=0x5f*0x32+-0x2*-0xe82+0x17c9*-0x2;_0x5d1081=_0x9d9c03['\x63\x68\x61\x72\x41\x74'](_0x1692ac++);~_0x5d1081&&(_0x326a76=_0x2094ad%(0x4*-0x7a9+0x2*-0x208+0x22b8)?_0x326a76*(0x144f+-0xb6a+-0x8a5)+_0x5d1081:_0x5d1081,_0x2094ad++%(-0x343*-0xa+-0x15d*-0x1a+-0x440c))?_0x22ceb3+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x1*-0x226c+-0x14a6*-0x1+-0x3613&_0x326a76>>(-(0x3de+0x9*-0x14b+-0x1*-0x7c7)*_0x2094ad&-0x1552+-0x985*-0x3+0x1*-0x737)):0x110e+-0x616+-0xd8*0xd){_0x5d1081=_0x49745a['\x69\x6e\x64\x65\x78\x4f\x66'](_0x5d1081);}for(let _0x2c6793=-0x1*0x7f7+-0x1*-0x3e5+0x412*0x1,_0x296683=_0x22ceb3['\x6c\x65\x6e\x67\x74\x68'];_0x2c6793<_0x296683;_0x2c6793++){_0x2f49e0+='\x25'+('\x30\x30'+_0x22ceb3['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2c6793)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x2*0x1184+0x4*0x6cd+-0x2e*0x15a))['\x73\x6c\x69\x63\x65'](-(0x1d19+0x5b5*-0x6+0x527));}return decodeURIComponent(_0x2f49e0);};const _0x35e653=function(_0x504db5,_0x335a6a){let _0x269096=[],_0x235292=0x866+0x18fb+-0x2161,_0x52410f,_0x3ba1fc='';_0x504db5=_0x2da8e6(_0x504db5);let _0x1297da;for(_0x1297da=0x5b+-0x195+0x13a;_0x1297da<0xef+-0x47*0x29+0xb70;_0x1297da++){_0x269096[_0x1297da]=_0x1297da;}for(_0x1297da=0x1bf*0x12+0x149a+-0x1158*0x3;_0x1297da<0x95*0x23+-0x513+-0xe4c;_0x1297da++){_0x235292=(_0x235292+_0x269096[_0x1297da]+_0x335a6a['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1297da%_0x335a6a['\x6c\x65\x6e\x67\x74\x68']))%(0x62c*0x1+0x2*-0x1259+0x1f86),_0x52410f=_0x269096[_0x1297da],_0x269096[_0x1297da]=_0x269096[_0x235292],_0x269096[_0x235292]=_0x52410f;}_0x1297da=-0xd7f+0x16*-0xa6+0x1bc3,_0x235292=-0x3cf+0x1e8*-0x12+-0x1*-0x261f;for(let _0x25f3dd=-0xc5c+-0x2687+0x32e3;_0x25f3dd<_0x504db5['\x6c\x65\x6e\x67\x74\x68'];_0x25f3dd++){_0x1297da=(_0x1297da+(0x36d*-0xb+-0x2699+-0x3b*-0x14b))%(-0x845+-0x67*0x7+0xc16),_0x235292=(_0x235292+_0x269096[_0x1297da])%(0x583*0x5+-0x7*-0x2c8+0x1*-0x2e07),_0x52410f=_0x269096[_0x1297da],_0x269096[_0x1297da]=_0x269096[_0x235292],_0x269096[_0x235292]=_0x52410f,_0x3ba1fc+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x504db5['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x25f3dd)^_0x269096[(_0x269096[_0x1297da]+_0x269096[_0x235292])%(0xdd*0x10+-0x7fb*0x4+0x131c)]);}return _0x3ba1fc;};_0x4f36['\x42\x6c\x54\x58\x64\x6e']=_0x35e653,_0x4f36['\x47\x61\x6e\x47\x57\x53']={},_0x4f36['\x6d\x4c\x7a\x76\x4e\x77']=!![];}const _0x5833b7=_0x1fa16f[0x2506+-0x11*0x1be+-0x768],_0x30ce42=_0x1d31b3+_0x5833b7,_0x287eeb=_0x4f36['\x47\x61\x6e\x47\x57\x53'][_0x30ce42];return!_0x287eeb?(_0x4f36['\x72\x5a\x6e\x74\x63\x77']===undefined&&(_0x4f36['\x72\x5a\x6e\x74\x63\x77']=!![]),_0x180954=_0x4f36['\x42\x6c\x54\x58\x64\x6e'](_0x180954,_0x1eaf41),_0x4f36['\x47\x61\x6e\x47\x57\x53'][_0x30ce42]=_0x180954):_0x180954=_0x287eeb,_0x180954;}export async function applyForcePivot(_0x569196,_0x53a090){const _0x2aecfd=_0x4f36,_0x5a71db=_0x569196[_0x2aecfd(0x1ad,'\x5d\x26\x6c\x46')][_0x2aecfd(0x1c4,'\x61\x48\x32\x6f')](),_0x50e3ba=forcePivot({..._0x53a090,'\x62\x61\x73\x65':_0x5a71db[_0x2aecfd(0x1d5,'\x66\x51\x31\x48')]}),_0x4e3652=_0x569196[_0x2aecfd(0x181,'\x35\x49\x68\x52')]['\x6e\x6f\x77\x49\x73\x6f'](),_0x3437b1=personalityKey(_0x50e3ba[_0x2aecfd(0x17d,'\x2a\x42\x37\x47')]);return _0x569196['\x73\x74\x6f\x72\x65'][_0x2aecfd(0x19c,'\x23\x57\x33\x73')]({..._0x5a71db,'\x63\x75\x72\x72\x65\x6e\x74':_0x50e3ba[_0x2aecfd(0x1d9,'\x35\x44\x58\x2a')],'\x68\x69\x73\x74\x6f\x72\x79':[..._0x5a71db[_0x2aecfd(0x1a7,'\x50\x6b\x66\x5d')],{'\x61\x74':_0x4e3652,'\x6b\x65\x79':_0x3437b1,'\x6f\x75\x74\x63\x6f\x6d\x65':_0x2aecfd(0x1e3,'\x55\x32\x30\x4b')+_0x50e3ba[_0x2aecfd(0x1a1,'\x23\x57\x33\x73')],'\x73\x63\x6f\x72\x65':null,'\x6e\x6f\x74\x65\x73':'\x46\x6f\x72\x63\x65\x64\x20\x70'+'\x69\x76\x6f\x74\x20\x61\x66\x74'+_0x2aecfd(0x186,'\x65\x71\x6a\x28')+(_0x53a090[_0x2aecfd(0x1db,'\x48\x59\x4c\x6b')+_0x2aecfd(0x1b1,'\x5e\x2a\x6f\x6a')+'\x65\x6d\x65\x6e\x74']??0x24be+-0x35*0xb1+-0x19)+(_0x2aecfd(0x18f,'\x50\x6b\x66\x5d')+'\x72\x6f\x76\x69\x6e\x67\x20\x65'+_0x2aecfd(0x173,'\x5d\x26\x45\x6c'))}]}),_0x569196[_0x2aecfd(0x1b5,'\x5e\x2a\x6f\x6a')]&&await _0x569196[_0x2aecfd(0x182,'\x29\x38\x65\x76')][_0x2aecfd(0x18c,'\x68\x33\x6d\x45')]({'\x74\x79\x70\x65':_0x2aecfd(0x1d6,'\x4f\x57\x26\x53')+_0x2aecfd(0x1e4,'\x34\x32\x28\x43')+_0x2aecfd(0x1b2,'\x66\x51\x31\x48'),'\x68\x75\x6d\x61\x6e':{'\x74\x69\x74\x6c\x65':_0x2aecfd(0x1ae,'\x2a\x42\x37\x47')+_0x50e3ba[_0x2aecfd(0x1d2,'\x46\x31\x46\x23')]+'\x20\x28'+briefState(_0x50e3ba['\x73\x74\x61\x74\x65'])+'\x29','\x77\x68\x79':_0x2aecfd(0x18d,'\x7a\x70\x37\x21')+(_0x53a090[_0x2aecfd(0x1a8,'\x61\x26\x32\x48')+_0x2aecfd(0x1a3,'\x67\x77\x63\x6b')+'\x65\x6d\x65\x6e\x74']??-0x1*-0x1dfb+0x10be+-0x1bb*0x1b)+(_0x2aecfd(0x1d8,'\x2a\x42\x37\x47')+_0x2aecfd(0x1c9,'\x5d\x26\x6c\x46')+_0x2aecfd(0x18a,'\x68\x25\x5d\x29')+_0x2aecfd(0x184,'\x68\x33\x6d\x45')+'\x6e\x63\x65\x20\u8fdb\u5165\u63a2\u7d22'),'\x73\x65\x76\x65\x72\x69\x74\x79':_0x50e3ba[_0x2aecfd(0x1d0,'\x51\x30\x43\x6e')]===_0x2aecfd(0x1a0,'\x71\x47\x6e\x43')?_0x2aecfd(0x1a2,'\x5d\x77\x33\x44'):_0x2aecfd(0x1df,'\x61\x26\x32\x48')},'\x70\x61\x79\x6c\x6f\x61\x64':{'\x63\x79\x63\x6c\x65\x49\x64':_0x569196[_0x2aecfd(0x1ce,'\x6e\x78\x64\x41')]??null,'\x73\x65\x76\x65\x72\x69\x74\x79':_0x50e3ba[_0x2aecfd(0x1e0,'\x6d\x4d\x26\x66')],'\x65\x76\x61\x6c\x73\x53\x69\x6e\x63\x65\x49\x6d\x70\x72\x6f\x76\x65\x6d\x65\x6e\x74':_0x53a090[_0x2aecfd(0x1e2,'\x5e\x53\x62\x64')+'\x63\x65\x49\x6d\x70\x72\x6f\x76'+_0x2aecfd(0x1ca,'\x71\x47\x6e\x43')]??0x1*0x254a+-0x7*0x3c2+-0xafc,'\x70\x65\x72\x73\x6f\x6e\x61\x6c\x69\x74\x79\x4b\x65\x79':_0x3437b1,'\x70\x65\x72\x73\x6f\x6e\x61\x6c\x69\x74\x79\x53\x74\x61\x74\x65':_0x50e3ba[_0x2aecfd(0x1de,'\x38\x68\x39\x5b')],'\x6d\x75\x74\x61\x74\x69\x6f\x6e\x73':_0x50e3ba[_0x2aecfd(0x1cd,'\x2a\x42\x37\x47')+'\x73']}}),_0x50e3ba;}
@@ -1,11 +1 @@
1
- export * from './schema.js';
2
- export * from './mutate.js';
3
- export * from './riskGate.js';
4
- export * from './prompt.js';
5
- export * from './store.js';
6
- export * from './events.js';
7
- export * from './stats.js';
8
- export * from './drift.js';
9
- export * from './pivot.js';
10
- export * from './select.js';
11
- export * from './evolveOps.js';
1
+ function _0x4141(_0x18203d,_0x2532a4){_0x18203d=_0x18203d-(0x9*-0x83+0xfbf*-0x1+0x12*0x12f);var _0x484319=_0x30b1();var _0x195f12=_0x484319[_0x18203d];if(_0x4141['\x7a\x64\x42\x4a\x79\x75']===undefined){var _0x28468d=function(_0x3ba4d9){var _0x312f37='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';var _0x567a7b='',_0xe8574b='';for(var _0xb20e11=0x1ba1+-0x1533+-0x337*0x2,_0x449f69,_0x51b434,_0x37e6d7=-0x2679+-0xf8c+0x3605*0x1;_0x51b434=_0x3ba4d9['\x63\x68\x61\x72\x41\x74'](_0x37e6d7++);~_0x51b434&&(_0x449f69=_0xb20e11%(0xbaa+0x1c96+-0x283c)?_0x449f69*(0xd19*-0x2+-0x6c4+-0x28e*-0xd)+_0x51b434:_0x51b434,_0xb20e11++%(0x236*-0xe+-0x3f*-0x1b+0x1853))?_0x567a7b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xbf*0x20+-0xa*0x305+0x751&_0x449f69>>(-(0x208c+0x16d*-0x9+-0x5*0x3f1)*_0xb20e11&0x2479+-0x1159+-0x131a)):0xa7d*-0x3+0x121b*0x1+-0xf*-0xe4){_0x51b434=_0x312f37['\x69\x6e\x64\x65\x78\x4f\x66'](_0x51b434);}for(var _0x36b603=-0x24ef+-0x27*0x79+0x375e,_0x427737=_0x567a7b['\x6c\x65\x6e\x67\x74\x68'];_0x36b603<_0x427737;_0x36b603++){_0xe8574b+='\x25'+('\x30\x30'+_0x567a7b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x36b603)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x4*-0x832+0x1159+0xf7f*0x1))['\x73\x6c\x69\x63\x65'](-(-0x1c57+-0x263*-0xb+0x4*0x86));}return decodeURIComponent(_0xe8574b);};var _0x4f6808=function(_0x5c6bde,_0x4a916e){var _0x4a23f7=[],_0x526b1c=-0x25c1+0x71d+0x1ea4,_0x4bc549,_0x29685c='';_0x5c6bde=_0x28468d(_0x5c6bde);var _0x31525d;for(_0x31525d=-0x1b92+-0x1bd9+0x376b*0x1;_0x31525d<-0x1*0x117e+0x3*-0x552+-0xe*-0x276;_0x31525d++){_0x4a23f7[_0x31525d]=_0x31525d;}for(_0x31525d=0x1*0x15e8+0x1df1+-0x33d9;_0x31525d<-0xf19+0x3*0x518+-0xb*-0x13;_0x31525d++){_0x526b1c=(_0x526b1c+_0x4a23f7[_0x31525d]+_0x4a916e['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x31525d%_0x4a916e['\x6c\x65\x6e\x67\x74\x68']))%(-0xc37+0xe4d+-0x116),_0x4bc549=_0x4a23f7[_0x31525d],_0x4a23f7[_0x31525d]=_0x4a23f7[_0x526b1c],_0x4a23f7[_0x526b1c]=_0x4bc549;}_0x31525d=-0x1*-0x139b+-0x227*0x5+-0x8d8,_0x526b1c=-0x107e+0x188*-0x16+0x85d*0x6;for(var _0x5d14dc=-0xe*0x86+-0x12f0*-0x2+-0x5c*0x55;_0x5d14dc<_0x5c6bde['\x6c\x65\x6e\x67\x74\x68'];_0x5d14dc++){_0x31525d=(_0x31525d+(-0x1*-0x1bc4+-0x6ad+-0x1*0x1516))%(-0x2d*-0x4+-0x26c9+0x2715),_0x526b1c=(_0x526b1c+_0x4a23f7[_0x31525d])%(-0x7*-0x1f5+0x155c+-0x220f),_0x4bc549=_0x4a23f7[_0x31525d],_0x4a23f7[_0x31525d]=_0x4a23f7[_0x526b1c],_0x4a23f7[_0x526b1c]=_0x4bc549,_0x29685c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x5c6bde['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5d14dc)^_0x4a23f7[(_0x4a23f7[_0x31525d]+_0x4a23f7[_0x526b1c])%(-0x1ab4+-0x1c1f+-0x37d3*-0x1)]);}return _0x29685c;};_0x4141['\x42\x72\x71\x47\x70\x58']=_0x4f6808,_0x4141['\x45\x79\x45\x6a\x70\x51']={},_0x4141['\x7a\x64\x42\x4a\x79\x75']=!![];}var _0x102e80=_0x484319[0x8*-0x3ca+-0x1*0x24f5+0x4345],_0x40ec6c=_0x18203d+_0x102e80,_0x16aeee=_0x4141['\x45\x79\x45\x6a\x70\x51'][_0x40ec6c];return!_0x16aeee?(_0x4141['\x67\x4d\x4e\x6a\x4b\x68']===undefined&&(_0x4141['\x67\x4d\x4e\x6a\x4b\x68']=!![]),_0x195f12=_0x4141['\x42\x72\x71\x47\x70\x58'](_0x195f12,_0x2532a4),_0x4141['\x45\x79\x45\x6a\x70\x51'][_0x40ec6c]=_0x195f12):_0x195f12=_0x16aeee,_0x195f12;}(function(_0x519429,_0x278a4d){var _0x1fded3=_0x4141,_0x4effe0=_0x519429();while(!![]){try{var _0x2de78e=-parseInt(_0x1fded3(0x104,'\x6b\x28\x52\x52'))/(-0x263*-0xb+0xa*-0x99+-0x1446)+parseInt(_0x1fded3(0x102,'\x36\x58\x50\x4d'))/(0x71d+-0x154f+0xe34)*(parseInt(_0x1fded3(0xfe,'\x69\x76\x51\x29'))/(-0x1bd9+0x315*-0x1+0x1ef1))+parseInt(_0x1fded3(0xf9,'\x58\x30\x6a\x41'))/(-0xff6+0x2*0x9c8+-0x6*0x99)*(-parseInt(_0x1fded3(0x101,'\x28\x61\x58\x29'))/(0x1*0x15e8+0x1df1+-0x33d4))+-parseInt(_0x1fded3(0x100,'\x33\x30\x76\x69'))/(-0xf19+0x3*0x518+-0x1*0x29)+-parseInt(_0x1fded3(0xff,'\x40\x55\x62\x23'))/(-0xc37+0xe4d+-0x20f)+-parseInt(_0x1fded3(0x103,'\x4f\x52\x28\x66'))/(-0x1*-0x139b+-0x227*0x5+-0x8d0)+parseInt(_0x1fded3(0xf6,'\x34\x56\x36\x2a'))/(-0x107e+0x188*-0x16+0x359*0xf);if(_0x2de78e===_0x278a4d)break;else _0x4effe0['push'](_0x4effe0['shift']());}catch(_0x28f242){_0x4effe0['push'](_0x4effe0['shift']());}}}(_0x30b1,-0x52*0x86b+-0xdeeeb*-0x1+-0x2068f*0x2));export*from'\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2e\x6a\x73';export*from'\x2e\x2f\x6d\x75\x74\x61\x74\x65\x2e\x6a\x73';export*from'\x2e\x2f\x72\x69\x73\x6b\x47\x61\x74\x65\x2e\x6a\x73';export*from'\x2e\x2f\x70\x72\x6f\x6d\x70\x74\x2e\x6a\x73';export*from'\x2e\x2f\x73\x74\x6f\x72\x65\x2e\x6a\x73';export*from'\x2e\x2f\x65\x76\x65\x6e\x74\x73\x2e\x6a\x73';export*from'\x2e\x2f\x73\x74\x61\x74\x73\x2e\x6a\x73';export*from'\x2e\x2f\x64\x72\x69\x66\x74\x2e\x6a\x73';export*from'\x2e\x2f\x70\x69\x76\x6f\x74\x2e\x6a\x73';function _0x30b1(){var _0x3e87f6=['\x63\x6d\x6b\x45\x41\x53\x6f\x58\x77\x58\x4b\x72\x57\x4f\x58\x76\x46\x32\x42\x64\x56\x61\x4b','\x57\x34\x6a\x45\x57\x35\x44\x34\x6b\x76\x52\x64\x53\x43\x6b\x52\x57\x4f\x6a\x7a\x64\x53\x6f\x6d\x6a\x71','\x57\x35\x78\x64\x48\x6d\x6f\x54\x57\x51\x74\x64\x4b\x38\x6f\x75\x57\x50\x34','\x57\x52\x61\x2f\x57\x34\x4e\x63\x49\x38\x6f\x76\x57\x52\x4b\x4e\x75\x53\x6b\x30\x65\x38\x6b\x39\x77\x6d\x6f\x49','\x67\x71\x33\x63\x53\x38\x6b\x65\x57\x51\x52\x63\x4d\x67\x5a\x64\x4f\x43\x6b\x71\x57\x35\x6e\x76\x77\x58\x47','\x43\x33\x33\x63\x4a\x53\x6f\x41\x57\x37\x70\x63\x47\x43\x6f\x68','\x79\x43\x6f\x78\x57\x51\x31\x67\x74\x43\x6b\x4a\x7a\x64\x4a\x63\x55\x62\x71\x6b\x57\x37\x4a\x64\x4d\x61','\x57\x34\x58\x5a\x64\x67\x7a\x6b\x57\x34\x74\x63\x53\x43\x6b\x2f\x57\x34\x54\x71\x72\x72\x2f\x63\x4c\x47','\x57\x35\x42\x63\x4b\x38\x6b\x70\x64\x43\x6f\x62\x73\x67\x47','\x63\x4b\x52\x63\x56\x43\x6f\x53\x77\x65\x46\x63\x51\x38\x6b\x73\x62\x72\x62\x34','\x57\x50\x46\x64\x52\x76\x30\x64\x64\x47\x4b\x4e\x57\x36\x53\x52\x57\x52\x38\x57\x57\x4f\x38\x71','\x57\x37\x42\x64\x4e\x53\x6f\x56\x70\x38\x6b\x2f\x46\x6d\x6f\x2b\x57\x4f\x52\x63\x49\x76\x56\x64\x4d\x59\x69','\x57\x35\x37\x63\x54\x68\x42\x64\x4d\x4c\x58\x73\x7a\x4e\x42\x63\x48\x4d\x78\x64\x54\x38\x6f\x35\x57\x52\x47','\x57\x4f\x47\x53\x57\x34\x50\x46\x57\x51\x52\x64\x4f\x53\x6f\x30\x6b\x4e\x5a\x64\x4c\x58\x79','\x57\x35\x4a\x63\x53\x4e\x6c\x64\x4e\x66\x4c\x76\x41\x59\x37\x63\x50\x65\x56\x64\x47\x6d\x6f\x38\x57\x52\x46\x63\x47\x61','\x57\x37\x4a\x63\x4e\x6d\x6b\x6f\x42\x43\x6f\x6d\x62\x38\x6f\x64','\x57\x35\x52\x64\x4a\x47\x74\x64\x4b\x38\x6f\x4e\x57\x4f\x4e\x64\x4f\x38\x6b\x79\x64\x67\x70\x63\x47\x68\x38'];_0x30b1=function(){return _0x3e87f6;};return _0x30b1();}export*from'\x2e\x2f\x73\x65\x6c\x65\x63\x74\x2e\x6a\x73';export*from'\x2e\x2f\x65\x76\x6f\x6c\x76\x65\x4f\x70\x73\x2e\x6a\x73';
@@ -1,39 +1 @@
1
- import { clamp01, normalizePersonalityState, } from './schema.js';
2
- /** 单次变异的最大幅度 (v1 硬夹, 防人格被一步推飞). */
3
- export const MAX_MUTATION_DELTA = 0.2;
4
- /** 单次 apply 最多落地几条变异 (v1: 每周期最多 2 条, 防漂移). */
5
- export const MAX_MUTATIONS_PER_APPLY = 2;
6
- /**
7
- * 把一组变异提案落到人格状态上 (v1 applyPersonalityMutations 端口).
8
- * - 只认合法轴, 非数 delta 跳过
9
- * - 每条 delta 夹到 ±MAX_MUTATION_DELTA
10
- * - 落地后每轴仍夹回 [0,1]
11
- * - 最多落 MAX_MUTATIONS_PER_APPLY 条 (超出忽略)
12
- * 纯函数: 不改入参, 返回新状态 + 实际落地的变异列表.
13
- */
14
- export function applyPersonalityMutations(state, mutations) {
15
- const cur = normalizePersonalityState(state);
16
- const applied = [];
17
- for (const m of mutations ?? []) {
18
- if (applied.length >= MAX_MUTATIONS_PER_APPLY)
19
- break;
20
- if (!m || typeof m !== 'object')
21
- continue;
22
- const param = m.param;
23
- // param 是五轴枚举 (schema z.enum(PERSONALITY_AXES)) — 天然排除 'type'; in 检查兜底手改数据.
24
- if (!(param in cur))
25
- continue;
26
- const delta = Number(m.delta);
27
- if (!Number.isFinite(delta))
28
- continue;
29
- const clipped = Math.max(-MAX_MUTATION_DELTA, Math.min(MAX_MUTATION_DELTA, delta));
30
- cur[param] = clamp01(cur[param] + clipped);
31
- applied.push({
32
- type: 'PersonalityMutation',
33
- param,
34
- delta: clipped,
35
- reason: String(m.reason ?? '').slice(0, 140),
36
- });
37
- }
38
- return { state: cur, applied };
39
- }
1
+ (function(_0x5cd028,_0x27b9ea){const _0x3f531f=_0xa406,_0x15d0d8=_0x5cd028();while(!![]){try{const _0x37f6a0=parseInt(_0x3f531f(0x185,'\x5e\x70\x65\x71'))/(0x23f9*0x1+0x154b+-0x3943)+-parseInt(_0x3f531f(0x196,'\x24\x7a\x6f\x74'))/(-0x1*0x989+0x4a7*-0x2+0x12d9)+parseInt(_0x3f531f(0x182,'\x24\x7a\x6f\x74'))/(-0x1858+-0x13c0+0x2c1b)+parseInt(_0x3f531f(0x180,'\x36\x35\x28\x23'))/(-0x22*-0xce+0x6a6+-0x21fe)*(parseInt(_0x3f531f(0x198,'\x26\x61\x78\x30'))/(-0x88a+0x5e7+0x14*0x22))+parseInt(_0x3f531f(0x18c,'\x64\x21\x52\x34'))/(-0x207f+-0x575*0x7+0x8d7*0x8)+-parseInt(_0x3f531f(0x194,'\x4f\x35\x6b\x4c'))/(-0x971+-0x1*-0x26b+0x5*0x169)+parseInt(_0x3f531f(0x184,'\x30\x32\x64\x73'))/(0xee6*-0x1+-0x13*0x1be+0x3008)*(-parseInt(_0x3f531f(0x18d,'\x52\x34\x75\x5b'))/(0x1*-0xb84+-0x1aa+0x1*0xd37));if(_0x37f6a0===_0x27b9ea)break;else _0x15d0d8['push'](_0x15d0d8['shift']());}catch(_0x3db5b8){_0x15d0d8['push'](_0x15d0d8['shift']());}}}(_0x4e3c,-0xbf*-0x1f4c+0x1c7d70+-0x1*0x24a4fb));function _0xa406(_0x5cd028,_0x27b9ea){_0x5cd028=_0x5cd028-(-0x1046*0x2+0x1ae8+0x724);const _0x15d0d8=_0x4e3c();let _0x37f6a0=_0x15d0d8[_0x5cd028];if(_0xa406['\x76\x63\x6b\x63\x62\x57']===undefined){var _0x3db5b8=function(_0x33ae20){const _0x55111e='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x176d98='',_0x47143c='';for(let _0x40135f=0xd4*0x13+-0x4c2+-0x57d*0x2,_0x4880e0,_0xe87b01,_0x509fdf=-0x8*-0x22d+0xd7e+0x317*-0xa;_0xe87b01=_0x33ae20['\x63\x68\x61\x72\x41\x74'](_0x509fdf++);~_0xe87b01&&(_0x4880e0=_0x40135f%(0x2*0x464+0x23e9+0x1*-0x2cad)?_0x4880e0*(0xb60+-0x1187+-0x95*-0xb)+_0xe87b01:_0xe87b01,_0x40135f++%(-0xe44+0xa0+0xda8))?_0x176d98+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x9d5+0x227f+0x17ab*-0x1&_0x4880e0>>(-(-0x3*0x8ba+0x1*0x26b5+-0x1*0xc85)*_0x40135f&-0x7b3+0x14b*-0x1+0x904)):-0x4*0x1ff+0x20f6*0x1+-0x8b*0x2e){_0xe87b01=_0x55111e['\x69\x6e\x64\x65\x78\x4f\x66'](_0xe87b01);}for(let _0x419e79=-0x2c8*0xb+-0x1c2+0x102d*0x2,_0x5387be=_0x176d98['\x6c\x65\x6e\x67\x74\x68'];_0x419e79<_0x5387be;_0x419e79++){_0x47143c+='\x25'+('\x30\x30'+_0x176d98['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x419e79)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x182*-0x5+-0x1*0x726+-0x3*0x1c))['\x73\x6c\x69\x63\x65'](-(0xf31+-0x1539+0x60a));}return decodeURIComponent(_0x47143c);};const _0x37eecf=function(_0x43b6ab,_0x35a7f7){let _0x48b311=[],_0x1e3696=-0x1693*0x1+0xc4f*0x1+0xa44,_0x2a9ff9,_0x57a5fd='';_0x43b6ab=_0x3db5b8(_0x43b6ab);let _0x343a55;for(_0x343a55=0x166*-0x12+0x23bf*0x1+0xa93*-0x1;_0x343a55<0x8bd*-0x3+-0x1d88+0x38bf;_0x343a55++){_0x48b311[_0x343a55]=_0x343a55;}for(_0x343a55=-0x17f6*0x1+0x23*0x94+-0x2*-0x1dd;_0x343a55<0x23f9*0x1+0x154b+-0x3844;_0x343a55++){_0x1e3696=(_0x1e3696+_0x48b311[_0x343a55]+_0x35a7f7['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x343a55%_0x35a7f7['\x6c\x65\x6e\x67\x74\x68']))%(-0x1*0x989+0x4a7*-0x2+0x13d7),_0x2a9ff9=_0x48b311[_0x343a55],_0x48b311[_0x343a55]=_0x48b311[_0x1e3696],_0x48b311[_0x1e3696]=_0x2a9ff9;}_0x343a55=-0x1858+-0x13c0+0x2c18,_0x1e3696=-0x22*-0xce+0x6a6+-0x2202;for(let _0x222d11=-0x88a+0x5e7+0x19*0x1b;_0x222d11<_0x43b6ab['\x6c\x65\x6e\x67\x74\x68'];_0x222d11++){_0x343a55=(_0x343a55+(-0x207f+-0x575*0x7+0x1791*0x3))%(-0x971+-0x1*-0x26b+0xd*0x9e),_0x1e3696=(_0x1e3696+_0x48b311[_0x343a55])%(0xee6*-0x1+-0x13*0x1be+0x3100),_0x2a9ff9=_0x48b311[_0x343a55],_0x48b311[_0x343a55]=_0x48b311[_0x1e3696],_0x48b311[_0x1e3696]=_0x2a9ff9,_0x57a5fd+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x43b6ab['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x222d11)^_0x48b311[(_0x48b311[_0x343a55]+_0x48b311[_0x1e3696])%(0x1*-0xb84+-0x1aa+0xa*0x16b)]);}return _0x57a5fd;};_0xa406['\x64\x58\x47\x56\x70\x66']=_0x37eecf,_0xa406['\x4c\x47\x66\x52\x46\x43']={},_0xa406['\x76\x63\x6b\x63\x62\x57']=!![];}const _0x1785f6=_0x15d0d8[-0xd*-0x24f+0x249f+-0x1*0x42a2],_0x246008=_0x5cd028+_0x1785f6,_0x58b8f6=_0xa406['\x4c\x47\x66\x52\x46\x43'][_0x246008];return!_0x58b8f6?(_0xa406['\x75\x70\x63\x48\x71\x43']===undefined&&(_0xa406['\x75\x70\x63\x48\x71\x43']=!![]),_0x37f6a0=_0xa406['\x64\x58\x47\x56\x70\x66'](_0x37f6a0,_0x27b9ea),_0xa406['\x4c\x47\x66\x52\x46\x43'][_0x246008]=_0x37f6a0):_0x37f6a0=_0x58b8f6,_0x37f6a0;}import{clamp01,normalizePersonalityState}from'\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2e\x6a\x73';export const MAX_MUTATION_DELTA=-0x1c0f+0x6*0x12+-0x19*-0x11b+0.2;function _0x4e3c(){const _0x7e03bd=['\x57\x36\x6c\x63\x4e\x38\x6b\x50\x57\x37\x70\x64\x4a\x6d\x6b\x59\x77\x53\x6f\x5a\x75\x67\x68\x63\x52\x61','\x70\x76\x4e\x63\x4d\x4e\x74\x64\x48\x43\x6f\x2b\x57\x52\x57\x43','\x67\x64\x4f\x6a\x67\x43\x6b\x71\x57\x36\x42\x64\x4c\x6d\x6b\x47\x69\x5a\x61\x67\x71\x57\x43','\x57\x4f\x58\x74\x71\x6d\x6f\x33\x57\x34\x68\x64\x4c\x64\x33\x64\x56\x57\x56\x64\x55\x6d\x6b\x62','\x6c\x6d\x6f\x77\x63\x4b\x4e\x63\x48\x53\x6b\x6b\x57\x52\x68\x64\x51\x38\x6b\x51\x45\x78\x79','\x57\x50\x43\x57\x57\x36\x79','\x57\x35\x68\x64\x4e\x31\x79\x52\x57\x36\x61\x4e\x74\x31\x50\x73\x46\x61','\x57\x51\x4b\x54\x57\x4f\x68\x63\x55\x72\x35\x4a\x57\x36\x42\x63\x50\x61','\x57\x50\x78\x63\x53\x48\x68\x63\x49\x38\x6b\x30\x57\x35\x38\x4e\x57\x36\x62\x69\x57\x35\x56\x63\x49\x6d\x6b\x42\x57\x36\x38','\x6c\x68\x52\x64\x54\x61\x53','\x6c\x72\x66\x6e\x72\x53\x6b\x30\x6c\x48\x6c\x63\x4f\x63\x33\x64\x55\x64\x6d\x35\x63\x71','\x57\x52\x4e\x64\x49\x6d\x6f\x2f\x57\x51\x74\x63\x47\x6d\x6b\x78','\x72\x6d\x6f\x76\x6a\x47\x47\x6e\x61\x66\x54\x52\x75\x62\x58\x39\x6b\x6d\x6f\x35','\x62\x53\x6b\x6a\x46\x31\x39\x79','\x57\x4f\x62\x74\x70\x74\x70\x64\x56\x38\x6b\x6e\x57\x36\x76\x4b','\x6c\x6d\x6b\x32\x68\x32\x64\x63\x4b\x53\x6f\x76\x57\x50\x6d\x31','\x57\x51\x30\x2f\x44\x53\x6f\x32\x74\x78\x37\x64\x53\x62\x48\x52\x71\x66\x71','\x57\x34\x52\x64\x48\x6d\x6f\x78\x57\x4f\x70\x63\x52\x74\x31\x70\x57\x36\x5a\x63\x4d\x6d\x6f\x50\x57\x35\x30','\x57\x51\x56\x63\x54\x32\x43','\x72\x6d\x6f\x73\x6a\x71\x4f\x6d\x43\x48\x4c\x6c\x46\x64\x31\x2f','\x57\x4f\x70\x64\x4f\x6d\x6b\x55\x41\x64\x34\x48\x57\x4f\x46\x64\x52\x43\x6f\x55\x57\x37\x75\x4a\x57\x51\x48\x2b','\x70\x6d\x6b\x30\x57\x52\x56\x63\x48\x53\x6b\x6e\x41\x43\x6f\x46\x57\x51\x75\x36\x6d\x47','\x61\x6d\x6f\x76\x66\x59\x50\x68\x57\x37\x33\x63\x48\x5a\x6c\x63\x52\x43\x6b\x34\x6e\x53\x6b\x7a','\x57\x4f\x79\x43\x77\x61','\x6b\x62\x33\x64\x51\x58\x30\x55\x77\x43\x6b\x66\x74\x75\x4f\x55\x57\x37\x62\x6a','\x6d\x53\x6b\x53\x57\x50\x30\x34\x62\x38\x6f\x2f','\x57\x4f\x4e\x63\x4d\x62\x58\x71\x57\x35\x79\x68\x72\x30\x57'];_0x4e3c=function(){return _0x7e03bd;};return _0x4e3c();}export const MAX_MUTATIONS_PER_APPLY=0x1*-0x887+0x63a*0x1+-0x3*-0xc5;export function applyPersonalityMutations(_0x1d6dc1,_0x23b0be){const _0x5d24e2=_0xa406,_0x59cb22=normalizePersonalityState(_0x1d6dc1),_0x22b0a0=[];for(const _0x1b4f9f of _0x23b0be??[]){if(_0x22b0a0[_0x5d24e2(0x195,'\x24\x26\x43\x70')]>=MAX_MUTATIONS_PER_APPLY)break;if(!_0x1b4f9f||typeof _0x1b4f9f!==_0x5d24e2(0x188,'\x45\x5a\x5d\x36'))continue;const _0x486fb9=_0x1b4f9f['\x70\x61\x72\x61\x6d'];if(!(_0x486fb9 in _0x59cb22))continue;const _0x56aea4=Number(_0x1b4f9f['\x64\x65\x6c\x74\x61']);if(!Number[_0x5d24e2(0x199,'\x65\x6c\x33\x46')](_0x56aea4))continue;const _0xfbcbc5=Math[_0x5d24e2(0x186,'\x2a\x6f\x64\x44')](-MAX_MUTATION_DELTA,Math[_0x5d24e2(0x181,'\x29\x6b\x33\x49')](MAX_MUTATION_DELTA,_0x56aea4));_0x59cb22[_0x486fb9]=clamp01(_0x59cb22[_0x486fb9]+_0xfbcbc5),_0x22b0a0[_0x5d24e2(0x193,'\x77\x34\x29\x52')]({'\x74\x79\x70\x65':_0x5d24e2(0x18b,'\x40\x5d\x26\x54')+_0x5d24e2(0x189,'\x33\x74\x28\x56')+_0x5d24e2(0x18f,'\x52\x39\x49\x30'),'\x70\x61\x72\x61\x6d':_0x486fb9,'\x64\x65\x6c\x74\x61':_0xfbcbc5,'\x72\x65\x61\x73\x6f\x6e':String(_0x1b4f9f['\x72\x65\x61\x73\x6f\x6e']??'')[_0x5d24e2(0x197,'\x24\x7a\x6f\x74')](-0x13*-0x101+0x124d+-0x2560,0x21f0+-0x6*0x457+-0x75a)});}return{'\x73\x74\x61\x74\x65':_0x59cb22,'\x61\x70\x70\x6c\x69\x65\x64':_0x22b0a0};}
@@ -1,22 +1 @@
1
- import { applyPersonalityMutations } from './mutate.js';
2
- import { normalizePersonalityState } from './schema.js';
3
- /**
4
- * required: creativity +0.2 / risk_tolerance +0.15 (更激进)
5
- * suggested: creativity +0.15 / risk_tolerance +0.1
6
- */
7
- export function forcePivot(input) {
8
- const severity = input.severity === 'required' ? 'required' : 'suggested';
9
- const evals = Number(input.evalsSinceImprovement) || 0;
10
- const mk = (param, delta, reason) => ({ type: 'PersonalityMutation', param, delta, reason });
11
- const proposals = severity === 'required'
12
- ? [
13
- mk('creativity', +0.2, `forced_pivot_required (plateau ${evals} evals)`),
14
- mk('risk_tolerance', +0.15, 'forced_pivot_exploration'),
15
- ]
16
- : [
17
- mk('creativity', +0.15, `pivot_suggested (plateau ${evals} evals)`),
18
- mk('risk_tolerance', +0.1, 'pivot_exploration_nudge'),
19
- ];
20
- const { state, applied } = applyPersonalityMutations(normalizePersonalityState(input.base), proposals);
21
- return { state, mutations: applied, severity };
22
- }
1
+ function _0x4e4d(_0x4609a,_0x221de7){_0x4609a=_0x4609a-(0x27*-0xa+0x128e+0x3*-0x584);const _0x324205=_0x4037();let _0x51621f=_0x324205[_0x4609a];if(_0x4e4d['\x7a\x6c\x79\x7a\x43\x6b']===undefined){var _0x27d435=function(_0x241053){const _0x5da355='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x1b7838='',_0x42b926='';for(let _0x1e358d=-0xd*-0x214+0x1*0x841+0x2345*-0x1,_0x13b408,_0x3ce2f0,_0x245275=0x1bff*0x1+-0x1e89+0x19*0x1a;_0x3ce2f0=_0x241053['\x63\x68\x61\x72\x41\x74'](_0x245275++);~_0x3ce2f0&&(_0x13b408=_0x1e358d%(0x6f5+-0x166c+0x3*0x529)?_0x13b408*(-0x23d2+-0xa2d*-0x1+0x19e5)+_0x3ce2f0:_0x3ce2f0,_0x1e358d++%(-0x3*-0x489+-0x8*0x30d+0xad1))?_0x1b7838+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x45d+0x2519+-0x1fbd&_0x13b408>>(-(0x18d0+0x1*0x1c13+0x1*-0x34e1)*_0x1e358d&0x1f*0xb5+-0x1202+-0x3e3)):0x33*-0x43+-0x1d26+0x2a7f){_0x3ce2f0=_0x5da355['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3ce2f0);}for(let _0x38f2ec=0x2*-0x6e6+0x3f9*-0x2+0x15be,_0x25dae8=_0x1b7838['\x6c\x65\x6e\x67\x74\x68'];_0x38f2ec<_0x25dae8;_0x38f2ec++){_0x42b926+='\x25'+('\x30\x30'+_0x1b7838['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x38f2ec)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x1*-0x1f76+0x195*-0x1+0x1*-0x1dd1))['\x73\x6c\x69\x63\x65'](-(-0x2*-0xe95+0x2*0x9a3+-0x2*0x1837));}return decodeURIComponent(_0x42b926);};const _0x4740f9=function(_0x419999,_0x4cbac1){let _0x37c7b5=[],_0x44abce=0x5*0x295+-0x700+-0x5e9*0x1,_0x595e73,_0x1c4b7f='';_0x419999=_0x27d435(_0x419999);let _0xa128e1;for(_0xa128e1=-0x12b*0x1f+-0x158f+0x1ce2*0x2;_0xa128e1<0x807+0x865+-0xf6c;_0xa128e1++){_0x37c7b5[_0xa128e1]=_0xa128e1;}for(_0xa128e1=-0x9ad*0x1+-0x23a3*0x1+0x2d50;_0xa128e1<0x20ef+-0x216*0xb+-0x8fd;_0xa128e1++){_0x44abce=(_0x44abce+_0x37c7b5[_0xa128e1]+_0x4cbac1['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xa128e1%_0x4cbac1['\x6c\x65\x6e\x67\x74\x68']))%(0x266b+-0x8*0x482+-0x15b),_0x595e73=_0x37c7b5[_0xa128e1],_0x37c7b5[_0xa128e1]=_0x37c7b5[_0x44abce],_0x37c7b5[_0x44abce]=_0x595e73;}_0xa128e1=0xe84*-0x2+0x7*-0xd+0x1d63,_0x44abce=-0x2576+-0x25bd+0x85b*0x9;for(let _0x154a1a=-0x4dd+-0x925*0x2+-0x1*-0x1727;_0x154a1a<_0x419999['\x6c\x65\x6e\x67\x74\x68'];_0x154a1a++){_0xa128e1=(_0xa128e1+(0xf30+-0x1143+0x214))%(0x201b+-0x1a7b*-0x1+-0x3996),_0x44abce=(_0x44abce+_0x37c7b5[_0xa128e1])%(-0xc07+-0x107*-0xd+-0x54),_0x595e73=_0x37c7b5[_0xa128e1],_0x37c7b5[_0xa128e1]=_0x37c7b5[_0x44abce],_0x37c7b5[_0x44abce]=_0x595e73,_0x1c4b7f+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x419999['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x154a1a)^_0x37c7b5[(_0x37c7b5[_0xa128e1]+_0x37c7b5[_0x44abce])%(-0x2618+-0xc*0x1eb+-0x1*-0x3e1c)]);}return _0x1c4b7f;};_0x4e4d['\x49\x66\x6d\x79\x4c\x62']=_0x4740f9,_0x4e4d['\x65\x7a\x72\x42\x5a\x43']={},_0x4e4d['\x7a\x6c\x79\x7a\x43\x6b']=!![];}const _0x5b4398=_0x324205[0x2*-0x5d1+0x5*-0x7a9+-0x1*-0x31ef],_0x3ec96b=_0x4609a+_0x5b4398,_0x4a94b0=_0x4e4d['\x65\x7a\x72\x42\x5a\x43'][_0x3ec96b];return!_0x4a94b0?(_0x4e4d['\x4d\x6c\x6e\x68\x79\x4b']===undefined&&(_0x4e4d['\x4d\x6c\x6e\x68\x79\x4b']=!![]),_0x51621f=_0x4e4d['\x49\x66\x6d\x79\x4c\x62'](_0x51621f,_0x221de7),_0x4e4d['\x65\x7a\x72\x42\x5a\x43'][_0x3ec96b]=_0x51621f):_0x51621f=_0x4a94b0,_0x51621f;}(function(_0x1e10d5,_0x5ef27b){const _0x47816a=_0x4e4d,_0x2951e3=_0x1e10d5();while(!![]){try{const _0x4b58a0=parseInt(_0x47816a(0x80,'\x53\x48\x59\x68'))/(0x12a0+-0xa1+0xe*-0x149)*(-parseInt(_0x47816a(0x9d,'\x46\x46\x47\x46'))/(-0x1*-0xbdc+0x6b8+-0x1292))+parseInt(_0x47816a(0xa7,'\x71\x39\x37\x71'))/(0x21b+0x25*0xbf+0x1*-0x1db3)*(parseInt(_0x47816a(0xaa,'\x6c\x4d\x36\x37'))/(-0x253a+-0x27*0xe1+0x4785))+parseInt(_0x47816a(0xac,'\x4e\x4c\x32\x61'))/(-0x4*-0x2b4+0x12a*-0x8+0x1*-0x17b)*(-parseInt(_0x47816a(0x7c,'\x26\x40\x29\x32'))/(0x2226+-0xfe4+-0x123c))+parseInt(_0x47816a(0x8d,'\x67\x38\x31\x76'))/(0x258f+0x266+-0x13*0x21a)+parseInt(_0x47816a(0x83,'\x35\x52\x31\x35'))/(-0x16d9+0x103d*0x1+0x14*0x55)*(-parseInt(_0x47816a(0x8f,'\x26\x58\x79\x46'))/(0x13de+-0x2124+0xd4f))+-parseInt(_0x47816a(0xa6,'\x4d\x72\x47\x30'))/(-0xb*-0x26+-0x1*0xa36+0x2*0x44f)*(-parseInt(_0x47816a(0xa9,'\x31\x34\x74\x53'))/(0x18*0x162+0xf33+-0x3058))+-parseInt(_0x47816a(0x90,'\x64\x59\x68\x52'))/(-0x194b+0x191f+0x38)*(parseInt(_0x47816a(0x8b,'\x30\x72\x49\x42'))/(-0x337*0x4+0xa9a*-0x1+0x1783));if(_0x4b58a0===_0x5ef27b)break;else _0x2951e3['push'](_0x2951e3['shift']());}catch(_0x30ed04){_0x2951e3['push'](_0x2951e3['shift']());}}}(_0x4037,0x3d39*0x2d+-0x163fe8*0x1+0x19b553));function _0x4037(){const _0x172d29=['\x57\x50\x58\x6c\x57\x4f\x61','\x57\x37\x35\x50\x57\x51\x52\x64\x52\x74\x47\x54\x66\x43\x6b\x53','\x57\x36\x53\x6e\x57\x34\x6a\x51\x67\x43\x6b\x6c\x62\x53\x6b\x68','\x6d\x38\x6f\x42\x6f\x78\x46\x64\x4b\x68\x7a\x78\x68\x47','\x57\x4f\x69\x34\x57\x52\x30\x61\x6e\x6d\x6b\x45','\x75\x38\x6b\x68\x6b\x59\x56\x63\x4b\x6d\x6b\x71\x57\x4f\x74\x64\x50\x47','\x6c\x6d\x6f\x42\x77\x38\x6b\x35\x6a\x72\x62\x65\x57\x4f\x68\x64\x4b\x59\x4f\x78\x57\x50\x79','\x57\x36\x47\x74\x6f\x61\x5a\x64\x52\x53\x6f\x38\x57\x51\x74\x63\x4a\x71','\x6e\x43\x6f\x47\x57\x51\x65\x66\x57\x52\x4a\x64\x4b\x75\x64\x64\x4e\x59\x53\x68','\x70\x6d\x6b\x4f\x57\x37\x56\x64\x4d\x43\x6f\x76\x57\x37\x4f','\x44\x38\x6b\x66\x7a\x64\x42\x63\x47\x64\x53\x6e\x66\x62\x76\x65\x62\x38\x6f\x4b\x72\x47','\x41\x6d\x6f\x6e\x73\x65\x37\x64\x4c\x53\x6b\x2b\x57\x50\x65\x72','\x57\x36\x4e\x63\x4e\x38\x6f\x71\x57\x34\x70\x63\x54\x32\x50\x5a\x57\x50\x5a\x63\x54\x43\x6f\x57\x57\x36\x39\x4f\x57\x51\x43','\x6d\x6d\x6f\x73\x63\x4a\x42\x63\x54\x6d\x6b\x72\x57\x50\x64\x64\x56\x61','\x57\x52\x7a\x65\x57\x50\x4c\x41\x57\x34\x64\x63\x4c\x31\x68\x64\x4d\x71\x34\x6f\x6d\x65\x38','\x57\x51\x46\x64\x48\x43\x6f\x42\x6e\x4d\x4c\x34\x6b\x53\x6f\x37','\x69\x43\x6f\x45\x75\x76\x56\x64\x50\x43\x6b\x4f\x57\x34\x61','\x57\x52\x6c\x64\x4b\x61\x2f\x63\x4f\x43\x6b\x4f','\x57\x51\x48\x61\x46\x75\x64\x63\x54\x38\x6b\x34\x57\x4f\x46\x63\x52\x59\x4a\x63\x56\x74\x35\x34','\x42\x4a\x43\x38\x57\x51\x7a\x49\x57\x52\x5a\x63\x49\x38\x6f\x52','\x57\x34\x50\x30\x57\x50\x33\x63\x4c\x77\x79\x36\x57\x4f\x2f\x63\x50\x47','\x6d\x32\x72\x30\x57\x37\x31\x32\x63\x67\x34\x77\x67\x47\x78\x63\x4f\x62\x78\x64\x4c\x47','\x57\x50\x71\x56\x57\x51\x4f\x6c\x6a\x43\x6b\x73\x57\x52\x2f\x64\x52\x57','\x42\x5a\x38\x52\x57\x52\x7a\x5a\x57\x52\x33\x63\x53\x6d\x6b\x37','\x57\x35\x34\x2f\x57\x50\x39\x62\x57\x4f\x57\x6b\x61\x43\x6b\x62','\x57\x35\x33\x63\x53\x43\x6b\x75\x74\x43\x6b\x72\x57\x50\x78\x64\x4c\x75\x57','\x45\x5a\x4b\x51\x57\x52\x35\x6a\x57\x51\x33\x63\x47\x6d\x6b\x4e','\x6b\x43\x6f\x42\x77\x43\x6f\x76\x43\x75\x72\x6c\x57\x4f\x74\x64\x49\x61','\x6a\x57\x74\x63\x4e\x6d\x6f\x39\x57\x35\x75\x42\x57\x37\x54\x6b\x77\x71\x53','\x57\x36\x61\x67\x57\x50\x4b\x34\x6c\x53\x6b\x6f\x62\x53\x6b\x67\x57\x50\x4a\x64\x51\x57','\x57\x34\x48\x6c\x57\x4f\x4e\x63\x54\x33\x7a\x54\x57\x36\x4a\x64\x54\x61','\x41\x38\x6f\x55\x57\x37\x78\x64\x48\x43\x6f\x2f\x57\x36\x76\x44\x71\x61','\x57\x4f\x64\x63\x4c\x43\x6b\x62\x57\x4f\x61','\x57\x36\x64\x63\x4d\x6d\x6f\x67\x69\x75\x71\x49\x73\x53\x6f\x49','\x57\x52\x4e\x64\x4f\x47\x74\x63\x55\x53\x6b\x34\x57\x36\x58\x6c','\x44\x38\x6b\x70\x68\x38\x6f\x51\x43\x4c\x79\x5a','\x6f\x63\x4a\x63\x51\x43\x6b\x56\x6d\x6d\x6b\x41\x41\x53\x6f\x4f','\x57\x50\x61\x59\x57\x51\x68\x63\x4a\x33\x69\x4e\x57\x50\x2f\x63\x4f\x71','\x57\x34\x65\x63\x74\x38\x6f\x4f\x57\x34\x6c\x64\x4c\x38\x6f\x74\x41\x58\x4b\x75\x57\x37\x39\x76','\x45\x6d\x6b\x6c\x41\x62\x4a\x64\x55\x61\x6c\x64\x4f\x31\x56\x63\x48\x75\x6e\x70\x57\x4f\x54\x47','\x6c\x4b\x33\x64\x49\x77\x68\x63\x4f\x4d\x75\x39\x57\x36\x48\x77\x57\x4f\x33\x64\x49\x6d\x6f\x50\x76\x71','\x7a\x32\x78\x64\x4f\x58\x46\x63\x54\x72\x46\x64\x48\x43\x6f\x2b','\x57\x51\x69\x70\x65\x53\x6f\x45\x57\x36\x6e\x74\x6d\x6d\x6f\x6c','\x63\x33\x46\x63\x4e\x38\x6f\x4d\x57\x37\x71\x67\x57\x4f\x44\x70\x65\x32\x4f','\x45\x66\x38\x66\x57\x36\x42\x64\x48\x38\x6f\x73\x57\x51\x71\x4b','\x57\x36\x70\x63\x4a\x31\x4a\x64\x56\x6d\x6f\x54\x57\x52\x69\x44\x57\x34\x62\x61\x68\x53\x6f\x46\x79\x38\x6b\x6d','\x6f\x32\x76\x52\x57\x4f\x39\x30\x57\x52\x37\x63\x54\x38\x6b\x35\x46\x71','\x41\x76\x38\x39\x57\x37\x37\x64\x4e\x53\x6f\x73\x57\x51\x34\x32','\x57\x4f\x7a\x72\x57\x4f\x4c\x68\x72\x6d\x6f\x47\x57\x52\x56\x64\x4c\x57','\x57\x36\x47\x5a\x72\x4e\x42\x64\x4c\x53\x6b\x44\x44\x43\x6f\x79','\x57\x34\x79\x71\x57\x35\x35\x50\x41\x43\x6f\x35\x57\x50\x5a\x64\x4b\x6d\x6f\x55'];_0x4037=function(){return _0x172d29;};return _0x4037();}import{applyPersonalityMutations}from'\x2e\x2f\x6d\x75\x74\x61\x74\x65\x2e\x6a\x73';import{normalizePersonalityState}from'\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2e\x6a\x73';export function forcePivot(_0xc1d573){const _0x3b5665=_0x4e4d,_0x3502de=_0xc1d573[_0x3b5665(0x97,'\x4d\x49\x45\x79')]===_0x3b5665(0xad,'\x64\x32\x72\x37')?_0x3b5665(0x88,'\x38\x4b\x5b\x31'):_0x3b5665(0x7e,'\x53\x48\x59\x68')+'\x64',_0x468852=Number(_0xc1d573[_0x3b5665(0x99,'\x4c\x52\x45\x42')+_0x3b5665(0x7d,'\x64\x32\x72\x37')+_0x3b5665(0x92,'\x44\x77\x6c\x73')])||-0xa2d*-0x1+-0x13a0+-0x3b*-0x29,_0x220106=(_0x5aa61b,_0x37ea89,_0x423002)=>({'\x74\x79\x70\x65':_0x3b5665(0x86,'\x5b\x52\x4e\x63')+_0x3b5665(0xa5,'\x29\x39\x74\x67')+_0x3b5665(0x81,'\x53\x48\x59\x68'),'\x70\x61\x72\x61\x6d':_0x5aa61b,'\x64\x65\x6c\x74\x61':_0x37ea89,'\x72\x65\x61\x73\x6f\x6e':_0x423002}),_0x2f72d6=_0x3502de===_0x3b5665(0x82,'\x4e\x23\x69\x26')?[_0x220106('\x63\x72\x65\x61\x74\x69\x76\x69'+'\x74\x79',+(-0x3*-0xc69+-0x686+-0x1eb5+0.2),'\x66\x6f\x72\x63\x65\x64\x5f\x70'+_0x3b5665(0x95,'\x4d\x72\x47\x30')+_0x3b5665(0xa2,'\x64\x59\x68\x52')+_0x3b5665(0xa4,'\x72\x79\x79\x23')+_0x468852+_0x3b5665(0x91,'\x53\x28\x48\x6d')),_0x220106(_0x3b5665(0x9b,'\x26\x40\x29\x32')+_0x3b5665(0x8a,'\x5d\x42\x54\x67'),+(0x2519+-0xd41+0x2fb*-0x8+0.15),_0x3b5665(0x98,'\x26\x40\x29\x32')+_0x3b5665(0x8c,'\x53\x28\x48\x6d')+_0x3b5665(0x9a,'\x35\x72\x41\x68'))]:[_0x220106('\x63\x72\x65\x61\x74\x69\x76\x69'+'\x74\x79',+(0xd*-0x49+0x63*0x5d+-0x2042+0.15),_0x3b5665(0x9f,'\x73\x65\x5a\x31')+_0x3b5665(0x94,'\x26\x40\x29\x32')+'\x28\x70\x6c\x61\x74\x65\x61\x75'+'\x20'+_0x468852+'\x20\x65\x76\x61\x6c\x73\x29'),_0x220106(_0x3b5665(0x7f,'\x6f\x59\x2a\x28')+_0x3b5665(0x85,'\x4d\x49\x45\x79'),+(0x679+0xf69+-0x15e2+0.1),_0x3b5665(0xab,'\x48\x58\x61\x6f')+_0x3b5665(0x84,'\x30\x72\x49\x42')+_0x3b5665(0xa3,'\x44\x77\x6c\x73'))],{state:_0x1ed9bb,applied:_0x25fddb}=applyPersonalityMutations(normalizePersonalityState(_0xc1d573[_0x3b5665(0xa1,'\x45\x47\x23\x49')]),_0x2f72d6);return{'\x73\x74\x61\x74\x65':_0x1ed9bb,'\x6d\x75\x74\x61\x74\x69\x6f\x6e\x73':_0x25fddb,'\x73\x65\x76\x65\x72\x69\x74\x79':_0x3502de};}
@@ -1,62 +1 @@
1
- import { normalizePersonalityState } from './schema.js';
2
- import { isHighRiskMutationAllowed } from './riskGate.js';
3
- /**
4
- * PersonalityState 用途①: 注入每轮 GEP prompt, 决定进化"风格" (v1 src/gep/prompt.js 的人格块端口).
5
- *
6
- * 把 0..1 数值向量翻译成 agent 能照做的行为指令 —— 只影响"怎么做"(严谨/激进/啰嗦),
7
- * 不改"做什么". 纯函数, 同输入同输出 (对齐 renderExecPrompt 的确定性契约).
8
- */
9
- /** 三档定性: 数值 → low/mid/high (阈值与 v1 语感一致). */
10
- function band(x) {
11
- if (x < 0.34)
12
- return 'low';
13
- if (x < 0.67)
14
- return 'mid';
15
- return 'high';
16
- }
17
- const RIGOR_HINT = {
18
- low: 'move fast; skip exhaustive checks unless correctness is at stake',
19
- mid: 'balance speed with verification',
20
- high: 'be protocol-first and conservative; verify assumptions before acting',
21
- };
22
- const CREATIVITY_HINT = {
23
- low: 'prefer the smallest proven change; do not explore alternatives',
24
- mid: 'consider one alternative if the obvious path is weak',
25
- high: 'actively explore novel approaches to escape local optima',
26
- };
27
- const VERBOSITY_HINT = {
28
- low: 'keep output terse — minimal prose, no filler',
29
- mid: 'explain the key decisions briefly',
30
- high: 'document reasoning and trade-offs in detail',
31
- };
32
- const RISK_HINT = {
33
- low: 'avoid risky or wide-reaching edits; stay well inside the blast radius',
34
- mid: 'take bounded risks when the payoff is clear',
35
- high: 'willing to take larger risks (subject to the safety gate)',
36
- };
37
- const OBEDIENCE_HINT = {
38
- low: 'use judgment freely; deviate from convention when warranted',
39
- mid: 'follow instructions, deviating only with good reason',
40
- high: 'adhere strictly to instructions and established protocol',
41
- };
42
- /**
43
- * 渲染人格块 (markdown), 供 renderExecPrompt 拼进 agent 指令.
44
- * 末行显式声明高危变异是否被人格放行, 让 agent 与风险闸看到同一事实.
45
- */
46
- export function renderPersonalityBlock(personality) {
47
- const p = normalizePersonalityState(personality ?? {});
48
- const pct = (n) => `${Math.round(n * 100)}%`;
49
- const highRiskAllowed = isHighRiskMutationAllowed(p);
50
- return [
51
- '## Evolution style (personality)',
52
- 'Apply this behavioral posture to HOW you make the change (not what the change is):',
53
- `- Rigor ${pct(p.rigor)}: ${RIGOR_HINT[band(p.rigor)]}`,
54
- `- Creativity ${pct(p.creativity)}: ${CREATIVITY_HINT[band(p.creativity)]}`,
55
- `- Verbosity ${pct(p.verbosity)}: ${VERBOSITY_HINT[band(p.verbosity)]}`,
56
- `- Risk tolerance ${pct(p.risk_tolerance)}: ${RISK_HINT[band(p.risk_tolerance)]}`,
57
- `- Obedience ${pct(p.obedience)}: ${OBEDIENCE_HINT[band(p.obedience)]}`,
58
- highRiskAllowed
59
- ? 'High-risk mutations are PERMITTED by the current personality (rigor≥0.6 and risk_tolerance≤0.5).'
60
- : 'High-risk mutations are NOT permitted by the current personality — keep changes low/medium risk.',
61
- ].join('\n');
62
- }
1
+ const _0x26e24a=_0x9843;(function(_0x118344,_0x5a020f){const _0x1aed5c=_0x9843,_0x5a746f=_0x118344();while(!![]){try{const _0xac392e=parseInt(_0x1aed5c(0x19d,'\x38\x4d\x52\x4f'))/(-0x14fa+-0x9*0x201+0x2704)+-parseInt(_0x1aed5c(0x13c,'\x21\x49\x34\x54'))/(-0x11b5*0x1+0x1628+-0x3*0x17b)*(parseInt(_0x1aed5c(0x17b,'\x4c\x49\x72\x6d'))/(0x1d70+0x2*-0x99f+-0xa2f))+parseInt(_0x1aed5c(0x1c8,'\x79\x34\x24\x29'))/(0x1*0x126a+-0x4*0xf1+-0xea2)+parseInt(_0x1aed5c(0x1a9,'\x42\x62\x75\x61'))/(-0x125*0x2+0x3*0xaa0+0x1d91*-0x1)+parseInt(_0x1aed5c(0x125,'\x4b\x70\x6c\x36'))/(0x4b8*0x7+0x1*0x10e7+-0x31e9*0x1)+-parseInt(_0x1aed5c(0x177,'\x29\x43\x6f\x56'))/(-0x1f9b+-0x14c3+-0x1177*-0x3)*(parseInt(_0x1aed5c(0x1a0,'\x73\x68\x6a\x5a'))/(-0x6c+-0x17*-0x21+-0x283*0x1))+-parseInt(_0x1aed5c(0x166,'\x21\x49\x34\x54'))/(-0x59*0x4a+-0x2f*0x1b+0x2*0xf5c);if(_0xac392e===_0x5a020f)break;else _0x5a746f['push'](_0x5a746f['shift']());}catch(_0x1128cd){_0x5a746f['push'](_0x5a746f['shift']());}}}(_0x12fa,0x12158e+-0x67*-0x3078+-0x1a1c6c));import{normalizePersonalityState}from'\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2e\x6a\x73';import{isHighRiskMutationAllowed}from'\x2e\x2f\x72\x69\x73\x6b\x47\x61\x74\x65\x2e\x6a\x73';function band(_0x5d1a96){const _0x36e6cb=_0x9843;if(_0x5d1a96<0x172f*-0x1+-0x1f0f+0x2*0x1b1f+0.34)return _0x36e6cb(0x197,'\x4e\x48\x43\x70');if(_0x5d1a96<0xeaa+0x1*-0x15f+-0xd4b+0.67)return _0x36e6cb(0x131,'\x53\x46\x44\x51');return _0x36e6cb(0x1aa,'\x67\x23\x5d\x54');}const RIGOR_HINT={'\x6c\x6f\x77':_0x26e24a(0x191,'\x6a\x73\x72\x62')+_0x26e24a(0x178,'\x41\x6f\x71\x21')+_0x26e24a(0x18d,'\x64\x70\x56\x6f')+'\x76\x65\x20\x63\x68\x65\x63\x6b'+_0x26e24a(0x17a,'\x64\x70\x56\x6f')+_0x26e24a(0x143,'\x63\x6a\x26\x58')+_0x26e24a(0x1a4,'\x79\x29\x50\x67')+_0x26e24a(0x133,'\x64\x49\x2a\x4c'),'\x6d\x69\x64':_0x26e24a(0x1a5,'\x33\x54\x39\x28')+_0x26e24a(0x157,'\x39\x44\x35\x23')+_0x26e24a(0x1be,'\x58\x70\x76\x48')+_0x26e24a(0x12c,'\x6e\x4f\x48\x56'),'\x68\x69\x67\x68':_0x26e24a(0x139,'\x4e\x25\x48\x76')+_0x26e24a(0x1b7,'\x4e\x48\x43\x70')+_0x26e24a(0x1af,'\x30\x6b\x79\x4e')+_0x26e24a(0x156,'\x42\x62\x75\x61')+_0x26e24a(0x13f,'\x6e\x4f\x48\x56')+_0x26e24a(0x141,'\x63\x6a\x26\x58')+_0x26e24a(0x15b,'\x4b\x70\x6c\x36')+_0x26e24a(0x154,'\x79\x29\x50\x67')+_0x26e24a(0x14c,'\x59\x74\x6b\x53')},CREATIVITY_HINT={'\x6c\x6f\x77':_0x26e24a(0x1ba,'\x68\x30\x35\x38')+_0x26e24a(0x18c,'\x6a\x73\x72\x62')+'\x65\x73\x74\x20\x70\x72\x6f\x76'+_0x26e24a(0x17e,'\x41\x6f\x71\x21')+_0x26e24a(0x162,'\x6e\x4f\x48\x56')+_0x26e24a(0x18f,'\x26\x35\x45\x52')+_0x26e24a(0x12f,'\x73\x68\x6a\x5a')+_0x26e24a(0x1b8,'\x64\x49\x2a\x4c'),'\x6d\x69\x64':_0x26e24a(0x184,'\x6e\x51\x23\x57')+_0x26e24a(0x19c,'\x53\x79\x5d\x76')+_0x26e24a(0x176,'\x79\x7a\x32\x69')+_0x26e24a(0x18e,'\x59\x72\x67\x5d')+_0x26e24a(0x132,'\x49\x30\x69\x21')+_0x26e24a(0x181,'\x41\x6f\x71\x21')+_0x26e24a(0x19a,'\x38\x4d\x52\x4f'),'\x68\x69\x67\x68':_0x26e24a(0x1b5,'\x42\x62\x75\x61')+_0x26e24a(0x1c5,'\x2a\x37\x53\x69')+_0x26e24a(0x179,'\x49\x26\x4f\x77')+'\x70\x70\x72\x6f\x61\x63\x68\x65'+_0x26e24a(0x15c,'\x26\x35\x45\x52')+_0x26e24a(0x1ad,'\x42\x23\x33\x37')+_0x26e24a(0x149,'\x49\x30\x69\x21')},VERBOSITY_HINT={'\x6c\x6f\x77':_0x26e24a(0x1ca,'\x58\x6b\x40\x73')+_0x26e24a(0x15e,'\x42\x23\x33\x37')+_0x26e24a(0x1b6,'\x4e\x25\x48\x76')+'\x6d\x61\x6c\x20\x70\x72\x6f\x73'+_0x26e24a(0x14d,'\x38\x4d\x52\x4f')+_0x26e24a(0x1a3,'\x6e\x4f\x48\x56'),'\x6d\x69\x64':_0x26e24a(0x164,'\x39\x44\x35\x23')+_0x26e24a(0x194,'\x73\x74\x67\x6a')+_0x26e24a(0x175,'\x51\x45\x32\x41')+_0x26e24a(0x16e,'\x59\x74\x6b\x53')+'\x79','\x68\x69\x67\x68':_0x26e24a(0x1a6,'\x6e\x63\x4f\x6d')+_0x26e24a(0x15d,'\x43\x78\x4e\x4a')+_0x26e24a(0x1b4,'\x21\x49\x34\x54')+_0x26e24a(0x1b0,'\x51\x59\x25\x38')+_0x26e24a(0x1a8,'\x42\x62\x75\x61')+_0x26e24a(0x1c9,'\x33\x54\x39\x28')},RISK_HINT={'\x6c\x6f\x77':_0x26e24a(0x16c,'\x79\x34\x24\x29')+_0x26e24a(0x129,'\x72\x45\x41\x70')+_0x26e24a(0x195,'\x30\x6b\x79\x4e')+_0x26e24a(0x168,'\x43\x78\x4e\x4a')+_0x26e24a(0x134,'\x21\x49\x34\x54')+_0x26e24a(0x188,'\x43\x78\x4e\x4a')+_0x26e24a(0x158,'\x42\x23\x33\x37')+_0x26e24a(0x182,'\x79\x34\x24\x29')+'\x61\x64\x69\x75\x73','\x6d\x69\x64':_0x26e24a(0x136,'\x4c\x49\x72\x6d')+_0x26e24a(0x153,'\x72\x45\x41\x70')+_0x26e24a(0x19e,'\x72\x45\x41\x70')+_0x26e24a(0x1a7,'\x64\x49\x2a\x4c')+_0x26e24a(0x14f,'\x64\x49\x2a\x4c')+_0x26e24a(0x127,'\x41\x6f\x71\x21'),'\x68\x69\x67\x68':_0x26e24a(0x193,'\x21\x49\x34\x54')+_0x26e24a(0x128,'\x55\x65\x62\x54')+_0x26e24a(0x1bb,'\x63\x6a\x26\x58')+_0x26e24a(0x12b,'\x4c\x49\x72\x6d')+'\x62\x6a\x65\x63\x74\x20\x74\x6f'+'\x20\x74\x68\x65\x20\x73\x61\x66'+_0x26e24a(0x155,'\x26\x35\x45\x52')+'\x29'},OBEDIENCE_HINT={'\x6c\x6f\x77':'\x75\x73\x65\x20\x6a\x75\x64\x67'+_0x26e24a(0x1b1,'\x29\x43\x6f\x56')+'\x65\x6c\x79\x3b\x20\x64\x65\x76'+_0x26e24a(0x183,'\x4e\x25\x48\x76')+_0x26e24a(0x174,'\x53\x46\x44\x51')+_0x26e24a(0x167,'\x6e\x51\x23\x57')+'\x6e\x20\x77\x61\x72\x72\x61\x6e'+_0x26e24a(0x190,'\x64\x49\x2a\x4c'),'\x6d\x69\x64':_0x26e24a(0x13b,'\x4e\x48\x43\x70')+_0x26e24a(0x12e,'\x57\x5b\x4c\x32')+_0x26e24a(0x169,'\x64\x70\x56\x6f')+'\x69\x61\x74\x69\x6e\x67\x20\x6f'+_0x26e24a(0x1c7,'\x41\x6f\x71\x21')+_0x26e24a(0x17c,'\x64\x49\x2a\x4c')+_0x26e24a(0x130,'\x53\x79\x5d\x76'),'\x68\x69\x67\x68':_0x26e24a(0x16b,'\x4b\x70\x6c\x36')+_0x26e24a(0x1c6,'\x58\x6b\x40\x73')+_0x26e24a(0x14b,'\x79\x7a\x32\x69')+_0x26e24a(0x1cb,'\x64\x49\x2a\x4c')+_0x26e24a(0x199,'\x51\x45\x32\x41')+'\x62\x6c\x69\x73\x68\x65\x64\x20'+_0x26e24a(0x1c3,'\x42\x62\x75\x61')};function _0x9843(_0x580102,_0x4451f6){_0x580102=_0x580102-(0xef7+0xe6f+-0x1c41);const _0x4b8ab1=_0x12fa();let _0x5546a5=_0x4b8ab1[_0x580102];if(_0x9843['\x66\x5a\x74\x75\x65\x61']===undefined){var _0x4b4986=function(_0x165909){const _0xeb4b3='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x65396='',_0x375384='';for(let _0xa16a0e=0x1d31*0x1+0x1b24*-0x1+-0x20d,_0x2f2bd9,_0x334e50,_0x154607=-0x7*-0xc7+0x21*0x12a+-0x2bdb;_0x334e50=_0x165909['\x63\x68\x61\x72\x41\x74'](_0x154607++);~_0x334e50&&(_0x2f2bd9=_0xa16a0e%(0x1*-0x15ed+-0x2f*-0xcb+0x28e*-0x6)?_0x2f2bd9*(0x1150+0x297+-0x13a7)+_0x334e50:_0x334e50,_0xa16a0e++%(-0x1a65*-0x1+-0x11af+-0x8b2*0x1))?_0x65396+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0xeab+-0x1*-0x19d3+-0x3*0x363&_0x2f2bd9>>(-(0x1b95+0x172f*-0x1+-0x464)*_0xa16a0e&-0x1*-0x205a+0x657+0x1*-0x26ab)):-0x1a65*0x1+-0x2cf*-0xb+-0x30*0x18){_0x334e50=_0xeb4b3['\x69\x6e\x64\x65\x78\x4f\x66'](_0x334e50);}for(let _0x32bd62=0x2536+-0xb*0x7f+0xb*-0x2e3,_0x1d85e5=_0x65396['\x6c\x65\x6e\x67\x74\x68'];_0x32bd62<_0x1d85e5;_0x32bd62++){_0x375384+='\x25'+('\x30\x30'+_0x65396['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x32bd62)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x973*0x4+-0x1*0x7c3+-0x1df9))['\x73\x6c\x69\x63\x65'](-(0x24e2+-0xe6+-0x23fa));}return decodeURIComponent(_0x375384);};const _0x91d54b=function(_0x4ecd62,_0x39b295){let _0x1049d9=[],_0x29a3a0=0x218b+-0x12d5+0xe*-0x10d,_0x3e0172,_0x141bb7='';_0x4ecd62=_0x4b4986(_0x4ecd62);let _0x39e76b;for(_0x39e76b=0x34+-0x1*-0x801+-0x835;_0x39e76b<0x1b88+-0x26fd+0xc75;_0x39e76b++){_0x1049d9[_0x39e76b]=_0x39e76b;}for(_0x39e76b=0x1e9b+-0x1*0x14b9+-0x73*0x16;_0x39e76b<-0x5*-0x29+0x1575*0x1+-0x6*0x38b;_0x39e76b++){_0x29a3a0=(_0x29a3a0+_0x1049d9[_0x39e76b]+_0x39b295['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x39e76b%_0x39b295['\x6c\x65\x6e\x67\x74\x68']))%(0x2503+-0x1845+0x3ea*-0x3),_0x3e0172=_0x1049d9[_0x39e76b],_0x1049d9[_0x39e76b]=_0x1049d9[_0x29a3a0],_0x1049d9[_0x29a3a0]=_0x3e0172;}_0x39e76b=-0x14cc*0x1+-0xfe7+0x24b3,_0x29a3a0=0xcd0*0x1+-0x4af+-0x821;for(let _0x139832=0xa*0x2ef+0x1200+0x2*-0x17ab;_0x139832<_0x4ecd62['\x6c\x65\x6e\x67\x74\x68'];_0x139832++){_0x39e76b=(_0x39e76b+(-0x14fa+-0x9*0x201+0x2704))%(-0x11b5*0x1+0x1628+-0x1*0x373),_0x29a3a0=(_0x29a3a0+_0x1049d9[_0x39e76b])%(0x1d70+0x2*-0x99f+-0x932),_0x3e0172=_0x1049d9[_0x39e76b],_0x1049d9[_0x39e76b]=_0x1049d9[_0x29a3a0],_0x1049d9[_0x29a3a0]=_0x3e0172,_0x141bb7+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x4ecd62['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x139832)^_0x1049d9[(_0x1049d9[_0x39e76b]+_0x1049d9[_0x29a3a0])%(0x1*0x126a+-0x4*0xf1+-0xda6)]);}return _0x141bb7;};_0x9843['\x6a\x73\x74\x4a\x4e\x4c']=_0x91d54b,_0x9843['\x46\x76\x7a\x74\x66\x56']={},_0x9843['\x66\x5a\x74\x75\x65\x61']=!![];}const _0x3821fb=_0x4b8ab1[-0x125*0x2+0x3*0xaa0+0x1d96*-0x1],_0x46e8bf=_0x580102+_0x3821fb,_0x126a27=_0x9843['\x46\x76\x7a\x74\x66\x56'][_0x46e8bf];return!_0x126a27?(_0x9843['\x51\x62\x52\x46\x70\x76']===undefined&&(_0x9843['\x51\x62\x52\x46\x70\x76']=!![]),_0x5546a5=_0x9843['\x6a\x73\x74\x4a\x4e\x4c'](_0x5546a5,_0x4451f6),_0x9843['\x46\x76\x7a\x74\x66\x56'][_0x46e8bf]=_0x5546a5):_0x5546a5=_0x126a27,_0x5546a5;}function _0x12fa(){const _0x4b3354=['\x70\x32\x70\x64\x56\x38\x6f\x74\x57\x4f\x50\x59\x57\x4f\x71','\x57\x4f\x4a\x63\x48\x65\x37\x64\x55\x53\x6f\x32\x46\x65\x74\x64\x4a\x47','\x57\x52\x33\x64\x4e\x53\x6b\x68\x57\x52\x2f\x64\x47\x53\x6b\x30\x57\x50\x58\x71','\x43\x47\x69\x62\x6c\x6d\x6b\x38\x74\x6d\x6b\x61\x74\x71','\x57\x52\x6e\x32\x57\x52\x2f\x63\x4d\x71','\x69\x43\x6b\x76\x6a\x57','\x70\x43\x6f\x6f\x57\x35\x5a\x63\x4a\x43\x6f\x4d\x75\x57\x48\x72','\x57\x51\x46\x63\x56\x5a\x52\x63\x51\x43\x6f\x59\x45\x66\x33\x64\x48\x47','\x57\x34\x5a\x64\x48\x43\x6f\x66\x72\x77\x74\x63\x47\x73\x57\x6f','\x6a\x6d\x6f\x48\x57\x4f\x4a\x64\x54\x61\x6a\x34\x42\x38\x6f\x78','\x57\x51\x54\x6b\x57\x50\x38\x43\x66\x6d\x6b\x62\x69\x6d\x6f\x4e','\x41\x6d\x6f\x47\x75\x76\x69\x75\x46\x77\x4a\x63\x4f\x61','\x57\x35\x4f\x32\x61\x6d\x6f\x77\x79\x38\x6f\x43\x57\x34\x30\x71','\x57\x34\x61\x37\x57\x52\x69\x44\x68\x57\x79\x47\x64\x57','\x57\x51\x74\x63\x49\x4d\x37\x63\x50\x6d\x6f\x43\x6f\x74\x53\x78','\x57\x51\x47\x41\x78\x76\x30\x5a\x57\x34\x7a\x56\x79\x61','\x57\x4f\x52\x64\x52\x53\x6b\x6a\x66\x75\x74\x63\x4c\x63\x61','\x6e\x43\x6f\x64\x57\x35\x4a\x49\x49\x4f\x68\x63\x55\x71\x48\x6e\x75\x71','\x6f\x6d\x6f\x48\x57\x35\x72\x65\x57\x36\x43','\x69\x67\x78\x63\x50\x43\x6b\x68\x57\x50\x76\x34\x57\x50\x4a\x63\x52\x71','\x75\x48\x47\x4b\x76\x61\x37\x64\x4d\x38\x6b\x49\x72\x53\x6b\x67\x6d\x77\x64\x64\x51\x47','\x57\x4f\x50\x30\x57\x4f\x4e\x64\x54\x53\x6b\x77\x61\x43\x6f\x61\x57\x34\x65','\x66\x47\x50\x78\x44\x30\x68\x63\x50\x43\x6f\x38\x57\x34\x38','\x57\x34\x58\x55\x57\x34\x42\x64\x50\x43\x6b\x78\x66\x38\x6f\x77\x57\x35\x47','\x77\x31\x68\x63\x4d\x43\x6b\x59\x6b\x43\x6b\x35\x61\x38\x6b\x42\x6b\x6d\x6f\x70\x57\x36\x72\x51\x6f\x57','\x57\x35\x4a\x64\x4c\x6d\x6b\x4a\x64\x43\x6f\x61\x57\x50\x4c\x6f\x57\x52\x43','\x79\x75\x53\x75\x6f\x43\x6f\x4f','\x57\x37\x6a\x58\x57\x52\x4a\x63\x4b\x53\x6b\x31\x57\x52\x76\x44\x78\x71','\x6f\x62\x4e\x63\x4b\x6d\x6f\x42\x57\x50\x6a\x31\x57\x52\x33\x64\x47\x57','\x70\x53\x6b\x6d\x57\x34\x78\x63\x4c\x6d\x6f\x39\x74\x58\x79\x71','\x6c\x47\x76\x79\x57\x4f\x4b\x72\x44\x62\x7a\x6e','\x57\x35\x47\x38\x75\x53\x6f\x44\x79\x53\x6f\x43\x57\x35\x61\x77','\x6b\x71\x6e\x79\x57\x4f\x38','\x57\x37\x69\x6e\x79\x57\x42\x64\x4e\x6d\x6f\x30\x57\x4f\x50\x6f','\x57\x52\x44\x33\x57\x52\x68\x63\x4d\x43\x6f\x32\x57\x52\x6d','\x57\x51\x64\x63\x52\x74\x52\x63\x53\x38\x6f\x31\x6f\x76\x78\x64\x4a\x57','\x57\x37\x46\x63\x4e\x38\x6b\x4d\x42\x57\x5a\x64\x51\x43\x6b\x4f\x7a\x71','\x57\x51\x37\x63\x49\x59\x56\x63\x50\x38\x6f\x6e\x6f\x63\x57\x69','\x71\x65\x70\x64\x51\x6d\x6f\x34\x44\x43\x6f\x47\x72\x38\x6b\x64','\x57\x37\x38\x31\x57\x35\x7a\x4e\x57\x52\x70\x64\x48\x68\x48\x5a','\x64\x53\x6f\x4e\x77\x49\x4e\x64\x4e\x59\x37\x63\x4f\x47\x38','\x63\x62\x46\x64\x4b\x53\x6b\x51\x44\x38\x6f\x47\x72\x38\x6b\x70','\x57\x34\x6c\x64\x4a\x53\x6b\x50\x65\x43\x6b\x77\x57\x4f\x54\x6f\x57\x51\x43','\x57\x35\x74\x63\x4f\x53\x6f\x47\x57\x37\x2f\x64\x4b\x58\x43\x4a\x6e\x61','\x57\x52\x56\x64\x4b\x43\x6f\x74\x7a\x6d\x6b\x65\x57\x37\x76\x44\x6c\x61','\x46\x38\x6b\x6d\x57\x37\x5a\x63\x47\x43\x6f\x37\x72\x62\x71\x63','\x67\x75\x30\x6c\x6e\x38\x6b\x70\x57\x4f\x6c\x64\x4d\x6d\x6b\x45','\x57\x4f\x48\x61\x57\x50\x31\x37\x57\x35\x6c\x64\x53\x61\x69\x6d','\x68\x4b\x70\x64\x4e\x38\x6f\x4c\x6d\x6d\x6f\x4b\x71\x6d\x6b\x6a','\x57\x37\x68\x63\x51\x4d\x72\x58\x57\x4f\x31\x65\x77\x30\x4b','\x57\x52\x4a\x64\x4a\x43\x6f\x64\x69\x43\x6f\x71\x57\x36\x72\x68\x6f\x47','\x57\x35\x76\x2f\x61\x38\x6b\x46\x57\x4f\x34\x4f\x43\x76\x30','\x57\x35\x4b\x4f\x57\x35\x4b\x30\x57\x35\x78\x63\x4f\x43\x6b\x4d\x57\x36\x46\x63\x49\x4c\x76\x34\x57\x36\x30\x31\x70\x71','\x68\x30\x57\x59\x65\x4c\x64\x63\x4d\x53\x6b\x2b\x67\x47','\x6d\x5a\x56\x63\x56\x53\x6f\x64\x57\x4f\x57\x39\x57\x4f\x74\x63\x51\x57','\x57\x51\x56\x64\x4a\x38\x6b\x6b\x45\x62\x74\x64\x4f\x53\x6b\x76','\x57\x34\x6c\x63\x51\x53\x6f\x31\x57\x37\x42\x64\x4c\x4c\x34\x36\x46\x71','\x57\x4f\x53\x4e\x77\x38\x6f\x65\x57\x35\x6a\x51\x43\x74\x48\x61\x57\x35\x33\x63\x4b\x73\x71','\x57\x4f\x52\x63\x47\x53\x6f\x6d\x78\x63\x74\x64\x48\x4e\x39\x66\x67\x38\x6f\x57\x78\x61\x68\x64\x47\x6d\x6b\x56','\x61\x75\x30\x71\x69\x6d\x6b\x70\x57\x35\x33\x64\x47\x53\x6b\x73','\x57\x52\x4e\x63\x53\x77\x39\x33\x57\x35\x35\x6f\x75\x75\x4b','\x63\x57\x31\x78\x6d\x64\x37\x63\x54\x43\x6f\x32\x57\x35\x75','\x57\x52\x4e\x64\x47\x53\x6b\x41\x57\x51\x6d','\x57\x50\x4c\x71\x57\x50\x58\x58\x57\x34\x37\x64\x50\x47\x69\x44','\x6e\x47\x68\x63\x4a\x6d\x6b\x73\x57\x50\x43\x4e\x57\x51\x52\x63\x49\x47','\x6e\x33\x74\x63\x56\x53\x6f\x74\x57\x4f\x54\x34\x57\x34\x52\x63\x50\x57','\x6c\x4b\x50\x75\x57\x50\x4f\x75\x45\x61\x72\x79','\x69\x4a\x64\x64\x4a\x6d\x6f\x32\x57\x52\x30\x67\x7a\x65\x75','\x57\x51\x62\x4c\x57\x4f\x79\x32\x57\x51\x6c\x63\x48\x63\x6a\x4c\x57\x51\x57\x41\x57\x37\x69\x55\x57\x37\x61','\x57\x34\x48\x34\x62\x43\x6b\x43\x57\x50\x75','\x57\x35\x33\x64\x48\x6d\x6b\x46\x63\x33\x74\x63\x4b\x61','\x57\x52\x78\x63\x4d\x74\x37\x64\x4b\x57\x66\x59\x57\x50\x6e\x77','\x69\x43\x6f\x43\x69\x6d\x6b\x7a\x71\x38\x6b\x6f\x76\x38\x6f\x6d','\x67\x66\x42\x63\x52\x71\x61\x50\x70\x6d\x6f\x53\x57\x52\x6d','\x57\x34\x4b\x48\x68\x6d\x6f\x76\x45\x6d\x6f\x67\x57\x35\x69\x62','\x57\x51\x4e\x63\x4c\x53\x6b\x34\x57\x4f\x78\x63\x4c\x38\x6b\x7a\x57\x37\x38','\x46\x38\x6b\x2f\x57\x4f\x78\x63\x47\x53\x6f\x43\x57\x52\x71\x7a\x57\x34\x38','\x77\x43\x6b\x55\x57\x36\x74\x63\x51\x43\x6f\x78\x57\x34\x42\x64\x4d\x75\x65','\x66\x30\x6e\x72\x43\x4e\x6c\x63\x54\x6d\x6f\x47\x57\x35\x61','\x57\x36\x43\x73\x57\x34\x6a\x6e\x61\x38\x6f\x72\x6f\x6d\x6f\x47\x67\x33\x64\x64\x48\x49\x30','\x57\x36\x42\x63\x52\x68\x78\x63\x54\x43\x6f\x49\x6f\x75\x74\x64\x48\x47','\x57\x35\x74\x64\x4e\x62\x39\x6e\x57\x35\x64\x64\x4a\x4a\x33\x63\x4d\x61','\x42\x53\x6f\x51\x57\x4f\x78\x63\x4b\x53\x6f\x46\x57\x52\x57\x68\x57\x4f\x47','\x57\x4f\x6d\x65\x46\x6d\x6f\x70\x57\x35\x76\x4e\x45\x6d\x6b\x4a','\x57\x36\x42\x63\x51\x67\x2f\x63\x51\x6d\x6f\x30\x46\x66\x4a\x64\x4c\x57','\x45\x38\x6f\x4c\x57\x35\x68\x63\x4d\x43\x6b\x78\x57\x52\x71\x41\x57\x34\x38','\x44\x58\x78\x63\x4a\x38\x6b\x41\x57\x4f\x62\x5a\x57\x37\x4a\x63\x4b\x71','\x57\x34\x53\x2f\x57\x36\x79\x69\x74\x71\x38\x4d\x64\x57','\x66\x4b\x53\x72\x70\x43\x6f\x67\x57\x34\x37\x64\x4a\x38\x6b\x66','\x57\x4f\x62\x49\x57\x35\x37\x63\x55\x6d\x6b\x69\x66\x38\x6f\x72\x57\x34\x75','\x57\x35\x46\x64\x4d\x6d\x6b\x6e\x72\x78\x42\x63\x48\x59\x48\x78','\x57\x51\x2f\x63\x56\x32\x37\x63\x56\x38\x6f\x49\x6f\x76\x74\x64\x4d\x47','\x57\x37\x68\x63\x52\x32\x72\x38\x57\x50\x69\x6c\x78\x65\x34','\x45\x4c\x46\x63\x52\x6d\x6b\x7a\x57\x50\x7a\x4a\x57\x52\x68\x63\x48\x47','\x7a\x32\x76\x6b\x57\x51\x6d\x49\x62\x6d\x6f\x72\x74\x61','\x75\x72\x70\x63\x4e\x61\x61\x39\x6f\x53\x6f\x58\x57\x37\x30','\x69\x53\x6f\x54\x57\x50\x6e\x79\x57\x37\x48\x73\x6d\x6d\x6b\x52','\x61\x72\x54\x6d\x46\x77\x56\x63\x4f\x53\x6f\x4e\x57\x34\x4f','\x6a\x66\x4e\x64\x49\x38\x6f\x48\x76\x4d\x72\x43\x57\x51\x6d','\x67\x75\x70\x64\x4a\x53\x6f\x59\x79\x6d\x6f\x54\x78\x6d\x6b\x79','\x57\x52\x6c\x63\x52\x4e\x34','\x6a\x38\x6f\x4e\x57\x34\x76\x6f\x57\x52\x76\x76\x70\x43\x6b\x30','\x62\x4b\x78\x64\x4a\x6d\x6f\x51\x57\x51\x50\x6a\x57\x52\x37\x63\x47\x71','\x57\x34\x2f\x64\x4e\x38\x6b\x73\x63\x78\x37\x63\x4d\x59\x50\x78','\x66\x6d\x6b\x50\x57\x34\x46\x64\x4c\x6d\x6b\x76\x7a\x78\x33\x63\x4a\x61','\x66\x63\x53\x4a\x69\x43\x6f\x4b\x57\x4f\x48\x66\x66\x71','\x6d\x43\x6b\x50\x57\x36\x5a\x63\x54\x38\x6b\x46\x57\x35\x4a\x63\x4b\x66\x6d','\x57\x51\x69\x41\x72\x47','\x65\x31\x46\x63\x47\x43\x6b\x63\x57\x35\x6e\x5a\x57\x52\x64\x63\x48\x47','\x68\x76\x33\x63\x51\x4b\x4b\x2f\x6a\x53\x6f\x33\x57\x52\x57','\x57\x36\x62\x65\x69\x47\x6d','\x57\x37\x33\x64\x4a\x71\x66\x67\x57\x34\x5a\x64\x4a\x49\x64\x63\x47\x57','\x57\x37\x6a\x51\x57\x52\x37\x63\x4b\x53\x6b\x31\x57\x52\x44\x65\x77\x57','\x57\x51\x79\x76\x44\x4c\x33\x63\x47\x53\x6f\x4d\x57\x35\x39\x63\x6d\x38\x6b\x72\x57\x52\x34\x7a\x62\x61','\x57\x37\x4f\x49\x57\x50\x6e\x30\x57\x37\x56\x64\x4b\x33\x38\x47','\x57\x51\x4a\x63\x4d\x4d\x37\x63\x4f\x43\x6f\x62\x6e\x73\x6d\x44','\x6c\x48\x62\x72\x43\x53\x6f\x34\x65\x43\x6b\x66\x45\x59\x74\x64\x4b\x6d\x6f\x6c\x57\x35\x57','\x57\x4f\x64\x64\x4b\x43\x6f\x71\x41\x43\x6b\x6a\x57\x37\x6e\x43\x6f\x47','\x62\x65\x6a\x33\x71\x61','\x6f\x4d\x5a\x64\x55\x38\x6f\x76','\x62\x43\x6f\x4b\x72\x49\x4a\x63\x4d\x4d\x46\x63\x53\x65\x57','\x57\x52\x74\x63\x56\x6d\x6f\x36\x76\x4d\x4c\x55\x63\x6d\x6b\x31','\x57\x37\x4a\x64\x4b\x6d\x6b\x4f\x42\x58\x78\x64\x52\x43\x6b\x59\x45\x61','\x57\x52\x6c\x63\x4f\x33\x2f\x64\x55\x53\x6f\x32\x45\x65\x2f\x64\x4a\x61','\x57\x35\x2f\x63\x4e\x43\x6b\x4c\x64\x43\x6f\x61\x57\x4f\x35\x46\x57\x52\x4f','\x57\x50\x52\x63\x4a\x38\x6f\x2b\x77\x38\x6f\x7a\x57\x35\x69\x6b\x57\x52\x2f\x64\x55\x38\x6b\x6b\x57\x37\x42\x63\x50\x38\x6b\x61','\x6c\x59\x72\x64\x57\x51\x71','\x46\x45\x6b\x62\x56\x48\x42\x63\x47\x58\x48\x34\x65\x48\x71','\x57\x34\x58\x30\x65\x6d\x6b\x72\x57\x4f\x47\x56\x79\x71\x61','\x57\x51\x4e\x64\x49\x6d\x6f\x73\x69\x43\x6f\x69\x57\x36\x35\x77\x6b\x61','\x77\x43\x6b\x69\x57\x34\x74\x63\x49\x6d\x6b\x73\x57\x35\x70\x63\x4c\x4c\x75','\x63\x77\x38\x4e\x79\x53\x6f\x59\x57\x34\x31\x68\x67\x71','\x6d\x4e\x61\x78\x74\x6d\x6b\x6e\x57\x51\x4c\x30\x66\x71','\x57\x37\x70\x63\x47\x38\x6b\x78\x57\x50\x70\x64\x4d\x38\x6b\x76\x57\x34\x71\x4d','\x63\x57\x39\x62\x42\x4e\x2f\x63\x56\x38\x6f\x57\x57\x34\x79','\x64\x4c\x52\x63\x56\x71\x69\x66\x69\x43\x6f\x53\x57\x52\x65','\x57\x35\x42\x64\x4b\x43\x6f\x45\x62\x68\x4e\x63\x4b\x77\x30\x64','\x57\x34\x33\x64\x4e\x53\x6b\x34\x63\x53\x6b\x77\x57\x4f\x39\x77\x57\x52\x43','\x57\x34\x44\x2b\x34\x4f\x6b\x67\x74\x71\x61\x61\x6f\x47\x4b','\x57\x51\x30\x41\x78\x72\x57\x36\x57\x35\x47\x39\x45\x47','\x57\x51\x46\x63\x56\x33\x70\x63\x52\x6d\x6f\x4a\x41\x47','\x45\x43\x6f\x52\x57\x35\x64\x63\x4e\x38\x6f\x74','\x57\x34\x50\x4a\x62\x38\x6b\x76\x57\x4f\x69\x55\x6b\x61\x61','\x57\x4f\x62\x53\x57\x35\x56\x64\x53\x6d\x6b\x61\x61\x6d\x6b\x76\x57\x35\x34','\x57\x34\x6d\x57\x57\x37\x7a\x6e\x68\x57\x61\x4e\x63\x57','\x57\x34\x44\x5a\x68\x38\x6f\x62\x45\x6d\x6f\x6f\x57\x35\x61\x6e','\x57\x51\x37\x63\x4b\x33\x56\x64\x47\x71\x31\x4c\x57\x50\x72\x74','\x63\x43\x6b\x55\x57\x35\x64\x63\x4c\x43\x6b\x73\x69\x68\x74\x64\x47\x57','\x57\x36\x71\x59\x57\x36\x70\x64\x48\x53\x6b\x4b\x57\x36\x43\x71\x72\x43\x6f\x69\x64\x6d\x6b\x45\x77\x6d\x6b\x53','\x57\x34\x2f\x64\x4c\x43\x6b\x54\x64\x43\x6b\x68\x57\x4f\x39\x6a\x57\x36\x34','\x41\x6d\x6f\x48\x34\x4f\x55\x62\x57\x34\x68\x63\x4d\x43\x6f\x4f\x71\x6d\x6f\x62','\x57\x35\x5a\x64\x4a\x38\x6b\x4a\x66\x38\x6b\x70\x57\x4f\x4c\x76\x57\x51\x69','\x66\x43\x6f\x38\x57\x35\x58\x68\x57\x37\x62\x62\x70\x43\x6b\x50','\x6a\x6d\x6f\x30\x57\x50\x78\x64\x54\x48\x31\x34\x43\x38\x6f\x74','\x42\x53\x6f\x33\x76\x4b\x76\x61\x79\x78\x74\x64\x53\x47','\x7a\x43\x6f\x4f\x57\x35\x5a\x64\x4b\x43\x6f\x61\x57\x52\x71\x44\x57\x4f\x43','\x7a\x4b\x68\x64\x4d\x53\x6f\x6d\x57\x34\x79\x58\x57\x51\x68\x63\x52\x38\x6f\x54\x79\x38\x6b\x7a\x67\x61','\x57\x52\x46\x63\x54\x6d\x6f\x36','\x43\x43\x6f\x47\x77\x4c\x79\x75\x79\x4e\x4a\x63\x50\x47','\x57\x52\x70\x63\x51\x67\x37\x63\x53\x38\x6f\x50\x44\x30\x78\x63\x47\x57','\x57\x34\x34\x64\x57\x34\x43\x4c\x57\x4f\x33\x63\x53\x48\x4f\x65\x57\x50\x72\x2f\x6a\x43\x6f\x32\x41\x47','\x42\x74\x65\x48\x71\x6d\x6f\x74\x57\x51\x30\x59\x62\x57','\x42\x53\x6f\x4c\x57\x35\x43','\x65\x64\x30\x73\x6d\x38\x6f\x59\x57\x4f\x35\x68\x57\x4f\x30','\x57\x36\x69\x36\x57\x34\x4f\x4a\x57\x37\x5a\x64\x48\x64\x66\x33','\x57\x37\x30\x30\x57\x50\x6d\x52\x57\x36\x70\x64\x4b\x32\x6e\x5a','\x57\x52\x7a\x79\x57\x50\x38\x6b\x66\x6d\x6f\x6c\x70\x6d\x6f\x4e'];_0x12fa=function(){return _0x4b3354;};return _0x12fa();}export function renderPersonalityBlock(_0x2906d3){const _0x1aef31=_0x26e24a,_0x2a5bab=normalizePersonalityState(_0x2906d3??{}),_0x3ef436=_0x38c6b6=>Math[_0x1aef31(0x1b9,'\x41\x6f\x71\x21')](_0x38c6b6*(0x1ee5+-0x12d*-0x17+-0x7f*0x74))+'\x25',_0x1bc4d5=isHighRiskMutationAllowed(_0x2a5bab);return[_0x1aef31(0x17f,'\x39\x52\x5a\x30')+_0x1aef31(0x145,'\x42\x62\x75\x61')+_0x1aef31(0x12a,'\x72\x45\x41\x70')+_0x1aef31(0x15f,'\x68\x30\x35\x38'),_0x1aef31(0x19b,'\x49\x39\x34\x5a')+_0x1aef31(0x151,'\x78\x74\x56\x58')+_0x1aef31(0x1bf,'\x73\x74\x67\x6a')+_0x1aef31(0x16f,'\x64\x47\x5d\x40')+_0x1aef31(0x1ae,'\x49\x26\x4f\x77')+'\x20\x6d\x61\x6b\x65\x20\x74\x68'+'\x65\x20\x63\x68\x61\x6e\x67\x65'+_0x1aef31(0x18a,'\x67\x23\x5d\x54')+_0x1aef31(0x16d,'\x6e\x4f\x48\x56')+_0x1aef31(0x17d,'\x49\x39\x34\x5a')+'\x29\x3a',_0x1aef31(0x18b,'\x51\x45\x32\x41')+_0x3ef436(_0x2a5bab[_0x1aef31(0x13e,'\x6a\x73\x72\x62')])+'\x3a\x20'+RIGOR_HINT[band(_0x2a5bab[_0x1aef31(0x171,'\x68\x30\x35\x38')])],_0x1aef31(0x152,'\x26\x35\x45\x52')+_0x1aef31(0x146,'\x73\x68\x6a\x5a')+_0x3ef436(_0x2a5bab[_0x1aef31(0x13a,'\x78\x74\x56\x58')+'\x74\x79'])+'\x3a\x20'+CREATIVITY_HINT[band(_0x2a5bab['\x63\x72\x65\x61\x74\x69\x76\x69'+'\x74\x79'])],_0x1aef31(0x159,'\x49\x30\x69\x21')+'\x69\x74\x79\x20'+_0x3ef436(_0x2a5bab[_0x1aef31(0x1ac,'\x68\x30\x35\x38')+'\x79'])+'\x3a\x20'+VERBOSITY_HINT[band(_0x2a5bab[_0x1aef31(0x138,'\x79\x7a\x32\x69')+'\x79'])],_0x1aef31(0x126,'\x51\x59\x25\x38')+_0x1aef31(0x1b2,'\x64\x70\x56\x6f')+'\x20'+_0x3ef436(_0x2a5bab[_0x1aef31(0x1b3,'\x51\x45\x32\x41')+_0x1aef31(0x14e,'\x53\x79\x5d\x76')])+'\x3a\x20'+RISK_HINT[band(_0x2a5bab[_0x1aef31(0x142,'\x64\x70\x56\x6f')+_0x1aef31(0x172,'\x21\x49\x34\x54')])],_0x1aef31(0x189,'\x79\x34\x24\x29')+_0x1aef31(0x1a2,'\x4d\x6a\x55\x6c')+_0x3ef436(_0x2a5bab[_0x1aef31(0x19f,'\x78\x74\x56\x58')+'\x65'])+'\x3a\x20'+OBEDIENCE_HINT[band(_0x2a5bab[_0x1aef31(0x173,'\x58\x70\x76\x48')+'\x65'])],_0x1bc4d5?_0x1aef31(0x196,'\x49\x26\x4f\x77')+_0x1aef31(0x1bd,'\x79\x7a\x32\x69')+_0x1aef31(0x148,'\x79\x34\x24\x29')+_0x1aef31(0x192,'\x6e\x4f\x48\x56')+_0x1aef31(0x198,'\x79\x34\x24\x29')+_0x1aef31(0x180,'\x64\x49\x2a\x4c')+_0x1aef31(0x135,'\x2a\x37\x53\x69')+_0x1aef31(0x15a,'\x6e\x51\x23\x57')+_0x1aef31(0x13d,'\x49\x30\x69\x21')+_0x1aef31(0x1bc,'\x4e\x25\x48\x76')+_0x1aef31(0x1c4,'\x6a\x73\x72\x62')+_0x1aef31(0x1c2,'\x41\x6f\x71\x21'):_0x1aef31(0x1a1,'\x42\x23\x33\x37')+_0x1aef31(0x150,'\x6e\x63\x4f\x6d')+_0x1aef31(0x186,'\x21\x49\x34\x54')+_0x1aef31(0x12d,'\x64\x49\x2a\x4c')+_0x1aef31(0x187,'\x64\x49\x2a\x4c')+_0x1aef31(0x147,'\x53\x79\x5d\x76')+_0x1aef31(0x137,'\x58\x6b\x40\x73')+_0x1aef31(0x14a,'\x59\x74\x6b\x53')+_0x1aef31(0x1ab,'\x59\x74\x6b\x53')+_0x1aef31(0x1c1,'\x42\x62\x75\x61')+_0x1aef31(0x185,'\x63\x6a\x26\x58')+_0x1aef31(0x161,'\x4d\x6a\x55\x6c')][_0x1aef31(0x16a,'\x57\x5b\x4c\x32')]('\x0a');}
@@ -1,80 +1 @@
1
- import { normalizePersonalityState } from './schema.js';
2
- /**
3
- * 变异风险闸 (v1 src/gep/mutation.js 的 isHighRiskPersonality / isHighRiskMutationAllowed 端口).
4
- * PersonalityState 用途②: 决定敢不敢放行高危/创新变异.
5
- */
6
- /** rigor 低于此值即视为"高危人格". */
7
- export const HIGH_RISK_RIGOR_FLOOR = 0.5;
8
- /** risk_tolerance 高于此值即视为"高危人格". */
9
- export const HIGH_RISK_TOLERANCE_CEIL = 0.6;
10
- /** 放行 high-risk 变异要求的 rigor 下限. */
11
- export const ALLOW_HIGH_RISK_RIGOR_MIN = 0.6;
12
- /** 放行 high-risk 变异要求的 risk_tolerance 上限. */
13
- export const ALLOW_HIGH_RISK_TOLERANCE_MAX = 0.5;
14
- /**
15
- * 保守定义: rigor 过低 或 risk_tolerance 过高 → 高危人格.
16
- * 缺省(无人格)返回 false — 无信息不主动扣帽子, 交由下游默认策略.
17
- */
18
- export function isHighRiskPersonality(p) {
19
- if (!p)
20
- return false;
21
- const s = normalizePersonalityState(p);
22
- if (s.rigor < HIGH_RISK_RIGOR_FLOOR)
23
- return true;
24
- if (s.risk_tolerance > HIGH_RISK_TOLERANCE_CEIL)
25
- return true;
26
- return false;
27
- }
28
- /**
29
- * high-risk 变异只在 rigor≥0.6 且 risk_tolerance≤0.5 放行 (任务用途②的硬阈值).
30
- * 缺省(无人格)时按最保守假设处理: rigor=0, risk_tolerance=1 → 不放行.
31
- */
32
- export function isHighRiskMutationAllowed(p) {
33
- const s = p ? normalizePersonalityState(p) : { rigor: 0, risk_tolerance: 1 };
34
- return s.rigor >= ALLOW_HIGH_RISK_RIGOR_MIN && s.risk_tolerance <= ALLOW_HIGH_RISK_TOLERANCE_MAX;
35
- }
36
- /** 安全信号: 追加到 Mutation.trigger_signals, 使降级在事件流里可审计. */
37
- export const SAFETY_SIGNAL_AVOID_INNOVATE = 'safety:avoid_innovate_with_high_risk_personality';
38
- export const SAFETY_SIGNAL_DOWNGRADE_HIGH_RISK = 'safety:downgrade_high_risk';
39
- function uniq(arr) {
40
- return [...new Set(arr)];
41
- }
42
- /**
43
- * 对一条待执行的变异施加人格风险闸 (v1 buildMutation 内两条硬安全约束的端口):
44
- * 1. innovate + 高危人格 → 降级为 optimize/low (禁"高危人格 + 创新"组合)
45
- * 2. high-risk 且人格不满足放行阈值 → 降一档到 medium
46
- * 纯函数, 返回新 Mutation. cycleEngine 在 buildMutation 后调用它, 再 ingest mutation.built.
47
- */
48
- export function gatePersonalityRisk(mutation, personality) {
49
- const signals = [];
50
- let category = mutation.category;
51
- let risk = mutation.risk_level;
52
- let expected = mutation.expected_effect;
53
- // 约束①: 高危人格下禁止 innovate — 降级为 optimize/low.
54
- if (category === 'innovate' && isHighRiskPersonality(personality)) {
55
- category = 'optimize';
56
- risk = 'low';
57
- expected = 'safety downgrade: optimize under high-risk personality (avoid innovate+high-risk combo)';
58
- signals.push(SAFETY_SIGNAL_AVOID_INNOVATE);
59
- }
60
- // 约束②: high-risk 变异要满足放行阈值, 否则降到 medium.
61
- if (risk === 'high' && !isHighRiskMutationAllowed(personality)) {
62
- risk = 'medium';
63
- signals.push(SAFETY_SIGNAL_DOWNGRADE_HIGH_RISK);
64
- }
65
- const downgraded = signals.length > 0;
66
- if (!downgraded) {
67
- return { mutation, downgraded: false, appliedSignals: [] };
68
- }
69
- return {
70
- mutation: {
71
- ...mutation,
72
- category,
73
- risk_level: risk,
74
- expected_effect: expected,
75
- trigger_signals: uniq([...mutation.trigger_signals, ...signals]),
76
- },
77
- downgraded: true,
78
- appliedSignals: signals,
79
- };
80
- }
1
+ const _0x129de6=_0x51f4;(function(_0xccada1,_0xd6b204){const _0x2285b3=_0x51f4,_0x3627c6=_0xccada1();while(!![]){try{const _0x5d13ae=parseInt(_0x2285b3(0x9a,'\x63\x70\x4e\x32'))/(0x1ef8+-0xd7*-0x17+-0x3248)*(-parseInt(_0x2285b3(0xb3,'\x44\x69\x79\x62'))/(0x3*-0xc30+-0x10de*0x1+0x3570))+parseInt(_0x2285b3(0xc0,'\x54\x38\x25\x62'))/(0x5eb*0x4+-0x1c92+0x4e9*0x1)+parseInt(_0x2285b3(0x9f,'\x6a\x4e\x51\x49'))/(-0x86d+-0xb*-0x2c3+-0x15f0)+-parseInt(_0x2285b3(0xbf,'\x4c\x54\x28\x62'))/(-0x22ca*-0x1+0x1034+-0x32f9)+-parseInt(_0x2285b3(0xb9,'\x40\x71\x7a\x64'))/(-0x1ea*0x13+0x6d+0x23f7)*(parseInt(_0x2285b3(0xb5,'\x66\x50\x5d\x52'))/(0x1dd+-0x1ac*0x12+0x1c42))+-parseInt(_0x2285b3(0xb6,'\x6e\x38\x4c\x5a'))/(-0xb1e+0x1a0e+-0x9*0x1a8)*(parseInt(_0x2285b3(0xa7,'\x63\x70\x4e\x32'))/(-0x761+0x39*-0x17+0xc89))+parseInt(_0x2285b3(0xae,'\x63\x70\x4e\x32'))/(-0xe3*-0x8+0x224a+-0x2958)*(parseInt(_0x2285b3(0xb1,'\x7a\x42\x76\x5b'))/(0x145f+-0x1903+0x4af));if(_0x5d13ae===_0xd6b204)break;else _0x3627c6['push'](_0x3627c6['shift']());}catch(_0x18e15f){_0x3627c6['push'](_0x3627c6['shift']());}}}(_0xe706,0xd9e01+0x155*0x35+-0xec3*0x6d));import{normalizePersonalityState}from'\x2e\x2f\x73\x63\x68\x65\x6d\x61\x2e\x6a\x73';export const HIGH_RISK_RIGOR_FLOOR=0x53*0x3+0x2205+-0x22fe*0x1+0.5;function _0xe706(){const _0xc19e61=['\x57\x35\x72\x4f\x57\x51\x56\x64\x49\x57\x37\x63\x56\x4c\x37\x63\x4b\x38\x6f\x6c\x57\x51\x33\x63\x54\x43\x6b\x43','\x66\x4d\x71\x38\x57\x35\x78\x64\x4f\x5a\x5a\x64\x4f\x6d\x6f\x49','\x57\x36\x74\x63\x51\x4a\x66\x61\x7a\x53\x6f\x36\x57\x4f\x33\x63\x4f\x71','\x6f\x6d\x6f\x6f\x57\x34\x68\x64\x48\x6d\x6b\x79\x72\x4e\x74\x64\x54\x6d\x6f\x37\x57\x37\x47\x4e\x46\x38\x6f\x55','\x74\x33\x44\x73\x57\x51\x4e\x64\x55\x57\x31\x64\x57\x37\x69','\x57\x35\x68\x64\x52\x74\x4b\x7a\x57\x50\x57\x5a\x57\x4f\x6c\x64\x47\x65\x46\x63\x4c\x38\x6f\x53\x62\x6d\x6f\x48','\x68\x43\x6f\x77\x57\x52\x43\x51\x43\x4b\x6c\x63\x48\x75\x43','\x57\x52\x70\x64\x56\x43\x6f\x57\x57\x50\x61','\x57\x51\x64\x63\x4a\x38\x6b\x70\x57\x50\x75\x6b\x67\x5a\x69','\x57\x37\x54\x6e\x6c\x38\x6f\x51\x57\x52\x46\x64\x4e\x47','\x71\x61\x46\x63\x4f\x75\x4b\x67\x6c\x77\x4e\x64\x4e\x53\x6f\x73\x78\x65\x33\x64\x4e\x53\x6f\x43','\x57\x4f\x38\x76\x57\x34\x7a\x74\x57\x50\x58\x77\x57\x34\x56\x63\x55\x71','\x77\x78\x53\x37\x57\x35\x78\x64\x55\x78\x64\x64\x54\x53\x6f\x55','\x57\x35\x44\x49\x57\x34\x52\x63\x48\x4b\x33\x64\x4e\x32\x56\x63\x48\x71','\x57\x37\x43\x58\x6d\x6d\x6b\x77\x57\x52\x75\x54\x77\x58\x69','\x57\x51\x43\x4e\x57\x36\x65\x33\x57\x36\x78\x64\x56\x75\x64\x63\x4d\x57','\x41\x53\x6f\x64\x57\x35\x6e\x68\x66\x66\x6e\x50\x62\x47','\x6d\x33\x4e\x63\x4b\x64\x43','\x61\x72\x6a\x6f\x6f\x77\x79\x58\x57\x37\x48\x6d','\x45\x6d\x6f\x50\x57\x37\x33\x63\x4d\x4b\x74\x63\x54\x49\x4f\x44','\x57\x35\x76\x51\x57\x35\x6c\x63\x4b\x76\x78\x64\x4c\x33\x46\x63\x4b\x57','\x57\x37\x4a\x63\x56\x74\x7a\x72\x44\x38\x6f\x43\x57\x34\x64\x63\x51\x71','\x74\x5a\x35\x74\x57\x50\x42\x63\x51\x72\x54\x34\x75\x61','\x43\x32\x57\x38\x46\x6d\x6f\x50\x79\x6d\x6f\x61\x75\x6d\x6b\x70\x70\x74\x50\x4a\x73\x61','\x6e\x38\x6f\x56\x65\x75\x39\x4c','\x57\x52\x42\x63\x51\x43\x6b\x71\x57\x50\x53\x35\x64\x66\x38','\x67\x38\x6f\x73\x46\x76\x4b\x4d\x42\x53\x6f\x73','\x57\x35\x48\x2b\x7a\x61\x31\x32\x57\x35\x50\x44\x57\x51\x39\x33','\x6d\x6d\x6b\x44\x6a\x71\x53\x44\x57\x51\x5a\x64\x4c\x43\x6b\x30\x57\x37\x6e\x56\x74\x6d\x6b\x5a','\x79\x43\x6b\x6f\x57\x4f\x68\x63\x4d\x38\x6f\x6e\x67\x5a\x33\x64\x56\x47','\x46\x53\x6b\x38\x57\x35\x46\x63\x4c\x6d\x6b\x38\x57\x37\x4b\x49\x46\x57','\x57\x52\x4e\x64\x52\x67\x69\x62\x6e\x6d\x6b\x78\x57\x51\x64\x63\x4b\x6d\x6b\x7a\x6c\x38\x6f\x56\x77\x71','\x61\x31\x4a\x64\x4f\x48\x6e\x50\x42\x5a\x46\x64\x47\x71','\x45\x4d\x2f\x64\x4e\x6d\x6f\x61\x64\x58\x74\x63\x49\x57','\x67\x38\x6f\x6e\x57\x52\x4b\x49\x7a\x57','\x57\x50\x75\x37\x57\x37\x4a\x63\x4c\x30\x56\x64\x54\x64\x5a\x63\x55\x61','\x42\x53\x6f\x2b\x57\x36\x70\x63\x4e\x4b\x56\x63\x51\x5a\x53\x61','\x6f\x53\x6f\x67\x57\x34\x33\x64\x47\x53\x6b\x71\x71\x33\x6c\x64\x4c\x43\x6f\x41\x57\x36\x30\x4a\x71\x43\x6f\x46','\x57\x37\x4e\x64\x49\x38\x6f\x33\x57\x34\x74\x63\x4d\x53\x6f\x41\x78\x32\x48\x51\x65\x53\x6b\x6b\x57\x51\x52\x63\x54\x71','\x68\x67\x65\x5a\x57\x35\x5a\x64\x53\x4a\x47','\x45\x62\x6c\x63\x4c\x6d\x6b\x74\x42\x4c\x33\x64\x55\x4e\x78\x63\x51\x43\x6b\x71\x7a\x43\x6b\x58\x7a\x71','\x57\x37\x4e\x64\x49\x6d\x6f\x5a\x57\x51\x46\x64\x47\x43\x6b\x34\x66\x31\x44\x38','\x57\x37\x64\x63\x53\x43\x6b\x59\x57\x34\x65\x66\x68\x68\x64\x63\x4a\x65\x53\x44\x68\x72\x4b','\x43\x6d\x6f\x6e\x43\x31\x58\x65\x57\x37\x74\x64\x47\x57','\x6d\x6d\x6f\x46\x72\x66\x43\x51\x41\x53\x6f\x6f\x57\x37\x61','\x6b\x38\x6f\x61\x44\x76\x47\x58\x42\x6d\x6f\x63\x57\x34\x4f','\x57\x51\x70\x64\x48\x30\x53','\x57\x36\x65\x4f\x43\x43\x6b\x69\x57\x52\x6d\x36','\x57\x52\x48\x51\x57\x37\x33\x63\x47\x38\x6f\x4c\x57\x4f\x70\x64\x4d\x6d\x6f\x33','\x67\x53\x6f\x55\x68\x30\x44\x2f\x57\x36\x53\x33\x45\x71','\x66\x43\x6f\x74\x57\x35\x4b\x38\x57\x35\x6c\x63\x4b\x47\x66\x32','\x62\x48\x65\x47\x57\x37\x46\x64\x4d\x76\x74\x63\x4d\x33\x30','\x6d\x53\x6f\x30\x76\x6d\x6b\x71\x6a\x43\x6b\x30','\x61\x47\x39\x33\x57\x35\x68\x64\x4d\x62\x4a\x63\x4e\x4e\x38\x34\x66\x78\x68\x64\x4b\x47','\x42\x6d\x6f\x79\x57\x52\x38\x74\x57\x4f\x58\x52\x46\x38\x6f\x66','\x57\x51\x6a\x6a\x68\x6d\x6f\x4d\x75\x63\x33\x64\x52\x73\x43','\x44\x43\x6b\x4b\x57\x36\x5a\x63\x4b\x6d\x6b\x36\x57\x34\x69\x49\x74\x57'];_0xe706=function(){return _0xc19e61;};return _0xe706();}export const HIGH_RISK_TOLERANCE_CEIL=0x1c0+-0x1993+-0x1*-0x17d3+0.6;export const ALLOW_HIGH_RISK_RIGOR_MIN=-0xc50+-0xb82+0x17d2+0.6;export const ALLOW_HIGH_RISK_TOLERANCE_MAX=0x222d+0xd*0x8f+-0x2970+0.5;export function isHighRiskPersonality(_0x47075b){const _0xaf0762=_0x51f4;if(!_0x47075b)return![];const _0x31ce87=normalizePersonalityState(_0x47075b);if(_0x31ce87[_0xaf0762(0xbc,'\x29\x65\x63\x38')]<HIGH_RISK_RIGOR_FLOOR)return!![];if(_0x31ce87[_0xaf0762(0xba,'\x68\x75\x75\x69')+_0xaf0762(0xc9,'\x6b\x76\x79\x5a')]>HIGH_RISK_TOLERANCE_CEIL)return!![];return![];}export function isHighRiskMutationAllowed(_0x19199c){const _0x457861=_0x51f4,_0x2db139=_0x19199c?normalizePersonalityState(_0x19199c):{'\x72\x69\x67\x6f\x72':0x0,'\x72\x69\x73\x6b\x5f\x74\x6f\x6c\x65\x72\x61\x6e\x63\x65':0x1};return _0x2db139[_0x457861(0xb2,'\x6c\x41\x4c\x5b')]>=ALLOW_HIGH_RISK_RIGOR_MIN&&_0x2db139[_0x457861(0x97,'\x78\x68\x78\x4b')+_0x457861(0xc1,'\x30\x56\x61\x32')]<=ALLOW_HIGH_RISK_TOLERANCE_MAX;}function _0x51f4(_0x585309,_0x38504f){_0x585309=_0x585309-(0x4+0x580*0x6+-0x2073*0x1);const _0x396928=_0xe706();let _0x4ae9bc=_0x396928[_0x585309];if(_0x51f4['\x6b\x73\x67\x49\x77\x4b']===undefined){var _0x60640=function(_0x391634){const _0x47b8ef='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x514576='',_0x5183b1='';for(let _0x3474b9=0xa54*-0x3+0x2611*0x1+-0x715,_0xaffffe,_0x18cacc,_0x5e7e84=0x4bd*0x3+-0x69*0x10+0x3*-0x28d;_0x18cacc=_0x391634['\x63\x68\x61\x72\x41\x74'](_0x5e7e84++);~_0x18cacc&&(_0xaffffe=_0x3474b9%(0x3af+0xd99+-0x1144)?_0xaffffe*(-0x1405+0x1a78+-0x633)+_0x18cacc:_0x18cacc,_0x3474b9++%(-0xab1+0x4*-0x5f8+0xd*0x2a9))?_0x514576+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x30c+0x2595*-0x1+0x4*0x8e2&_0xaffffe>>(-(-0x8d2*-0x2+-0x1667+-0x6f*-0xb)*_0x3474b9&0xe62+0x256d+-0x1*0x33c9)):0x1*-0x1fef+0x383+0x1c6c){_0x18cacc=_0x47b8ef['\x69\x6e\x64\x65\x78\x4f\x66'](_0x18cacc);}for(let _0x5b532b=0xe9*0x28+0x1795*-0x1+0x1d5*-0x7,_0xdc63f9=_0x514576['\x6c\x65\x6e\x67\x74\x68'];_0x5b532b<_0xdc63f9;_0x5b532b++){_0x5183b1+='\x25'+('\x30\x30'+_0x514576['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x5b532b)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x2514+-0x1521+0x7*-0x245))['\x73\x6c\x69\x63\x65'](-(0x508+-0x110e+0xc08));}return decodeURIComponent(_0x5183b1);};const _0x151c7d=function(_0x2ee71b,_0x4b7954){let _0x5d02d7=[],_0x504e50=0x1a23+0x1*0x17d3+-0x31f6,_0x132523,_0x5323cf='';_0x2ee71b=_0x60640(_0x2ee71b);let _0x2d9895;for(_0x2d9895=0x37*-0x71+0x1*0x1d41+0x27d*-0x2;_0x2d9895<-0x1bac*-0x1+-0x95*0x4+-0x1858;_0x2d9895++){_0x5d02d7[_0x2d9895]=_0x2d9895;}for(_0x2d9895=-0x1010+0x1d02+-0xcf2;_0x2d9895<-0xd8e+0x1*-0x10a3+0x1f31;_0x2d9895++){_0x504e50=(_0x504e50+_0x5d02d7[_0x2d9895]+_0x4b7954['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2d9895%_0x4b7954['\x6c\x65\x6e\x67\x74\x68']))%(0x1321+0xe50+-0x2071),_0x132523=_0x5d02d7[_0x2d9895],_0x5d02d7[_0x2d9895]=_0x5d02d7[_0x504e50],_0x5d02d7[_0x504e50]=_0x132523;}_0x2d9895=0x3a*0x1d+-0x99f+0x1*0x30d,_0x504e50=0x2*-0x941+-0x1a3+0x1425;for(let _0x451d1f=0x143a+0x19bb+-0x2df5;_0x451d1f<_0x2ee71b['\x6c\x65\x6e\x67\x74\x68'];_0x451d1f++){_0x2d9895=(_0x2d9895+(-0x1a8d*0x1+0x14e8+0x5a6))%(0x903+0x2282+-0x2a85),_0x504e50=(_0x504e50+_0x5d02d7[_0x2d9895])%(-0x3b9*-0x3+0x5*-0x664+0x8f*0x27),_0x132523=_0x5d02d7[_0x2d9895],_0x5d02d7[_0x2d9895]=_0x5d02d7[_0x504e50],_0x5d02d7[_0x504e50]=_0x132523,_0x5323cf+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](_0x2ee71b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x451d1f)^_0x5d02d7[(_0x5d02d7[_0x2d9895]+_0x5d02d7[_0x504e50])%(-0x1187+0x2*-0xd17+0x2cb5)]);}return _0x5323cf;};_0x51f4['\x62\x7a\x51\x69\x6f\x50']=_0x151c7d,_0x51f4['\x42\x61\x52\x52\x6e\x42']={},_0x51f4['\x6b\x73\x67\x49\x77\x4b']=!![];}const _0x2279ae=_0x396928[-0x23df+-0x9*-0x2b7+0xb70],_0x93d1da=_0x585309+_0x2279ae,_0x4d5a18=_0x51f4['\x42\x61\x52\x52\x6e\x42'][_0x93d1da];return!_0x4d5a18?(_0x51f4['\x44\x65\x4f\x49\x51\x49']===undefined&&(_0x51f4['\x44\x65\x4f\x49\x51\x49']=!![]),_0x4ae9bc=_0x51f4['\x62\x7a\x51\x69\x6f\x50'](_0x4ae9bc,_0x38504f),_0x51f4['\x42\x61\x52\x52\x6e\x42'][_0x93d1da]=_0x4ae9bc):_0x4ae9bc=_0x4d5a18,_0x4ae9bc;}export const SAFETY_SIGNAL_AVOID_INNOVATE=_0x129de6(0xaf,'\x40\x71\x7a\x64')+_0x129de6(0x93,'\x6d\x76\x44\x29')+_0x129de6(0x9c,'\x40\x71\x7a\x64')+_0x129de6(0xc6,'\x4e\x44\x4b\x4c')+_0x129de6(0xb0,'\x4f\x72\x78\x52')+_0x129de6(0xad,'\x76\x42\x79\x34');export const SAFETY_SIGNAL_DOWNGRADE_HIGH_RISK=_0x129de6(0xbd,'\x63\x70\x4e\x32')+_0x129de6(0x9b,'\x30\x56\x61\x32')+_0x129de6(0x92,'\x6c\x41\x4c\x5b')+'\x73\x6b';function uniq(_0x3b27e4){return[...new Set(_0x3b27e4)];}export function gatePersonalityRisk(_0x369ead,_0xfc91cc){const _0x21b1dc=_0x129de6,_0x29fd76=[];let _0x485fe8=_0x369ead[_0x21b1dc(0xaa,'\x68\x79\x28\x29')],_0x4f1797=_0x369ead[_0x21b1dc(0x91,'\x66\x57\x4a\x33')+'\x65\x6c'],_0x1418e9=_0x369ead[_0x21b1dc(0xbe,'\x76\x42\x79\x34')+_0x21b1dc(0xb4,'\x4e\x44\x4b\x4c')];_0x485fe8==='\x69\x6e\x6e\x6f\x76\x61\x74\x65'&&isHighRiskPersonality(_0xfc91cc)&&(_0x485fe8=_0x21b1dc(0xb7,'\x4c\x54\x28\x62'),_0x4f1797=_0x21b1dc(0xc8,'\x39\x52\x43\x5d'),_0x1418e9=_0x21b1dc(0xa5,'\x40\x35\x75\x5a')+_0x21b1dc(0xc7,'\x4e\x44\x4b\x4c')+_0x21b1dc(0x99,'\x6c\x5b\x48\x44')+_0x21b1dc(0xa9,'\x32\x62\x51\x26')+_0x21b1dc(0xa6,'\x30\x56\x61\x32')+_0x21b1dc(0xa8,'\x6b\x76\x79\x5a')+_0x21b1dc(0x9e,'\x32\x58\x77\x68')+_0x21b1dc(0x94,'\x43\x6b\x76\x4e')+_0x21b1dc(0x98,'\x41\x77\x37\x41')+'\x69\x67\x68\x2d\x72\x69\x73\x6b'+_0x21b1dc(0xa2,'\x44\x69\x79\x62'),_0x29fd76['\x70\x75\x73\x68'](SAFETY_SIGNAL_AVOID_INNOVATE));_0x4f1797===_0x21b1dc(0xab,'\x73\x70\x6a\x61')&&!isHighRiskMutationAllowed(_0xfc91cc)&&(_0x4f1797=_0x21b1dc(0x95,'\x6b\x23\x4d\x78'),_0x29fd76[_0x21b1dc(0xa1,'\x52\x71\x54\x23')](SAFETY_SIGNAL_DOWNGRADE_HIGH_RISK));const _0x7c9bf3=_0x29fd76[_0x21b1dc(0xa3,'\x48\x71\x47\x25')]>-0x1*0xf91+0x50*-0x30+0x1e91;if(!_0x7c9bf3)return{'\x6d\x75\x74\x61\x74\x69\x6f\x6e':_0x369ead,'\x64\x6f\x77\x6e\x67\x72\x61\x64\x65\x64':![],'\x61\x70\x70\x6c\x69\x65\x64\x53\x69\x67\x6e\x61\x6c\x73':[]};return{'\x6d\x75\x74\x61\x74\x69\x6f\x6e':{..._0x369ead,'\x63\x61\x74\x65\x67\x6f\x72\x79':_0x485fe8,'\x72\x69\x73\x6b\x5f\x6c\x65\x76\x65\x6c':_0x4f1797,'\x65\x78\x70\x65\x63\x74\x65\x64\x5f\x65\x66\x66\x65\x63\x74':_0x1418e9,'\x74\x72\x69\x67\x67\x65\x72\x5f\x73\x69\x67\x6e\x61\x6c\x73':uniq([..._0x369ead[_0x21b1dc(0xa0,'\x29\x65\x63\x38')+_0x21b1dc(0xc5,'\x6e\x38\x4c\x5a')],..._0x29fd76])},'\x64\x6f\x77\x6e\x67\x72\x61\x64\x65\x64':!![],'\x61\x70\x70\x6c\x69\x65\x64\x53\x69\x67\x6e\x61\x6c\x73':_0x29fd76};}