dsh-vibe-math 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +29 -29
- package/README.md +31 -30
- package/SECURITY.md +56 -0
- package/cordis.patch.yml +38 -15
- package/docs/AUDIT-CHECKLIST.md +518 -429
- package/docs/COMPAT-AUDIT-ROUND3.md +16 -1
- package/docs/release-notes/RELEASE-NOTES-2.4.1.md +129 -0
- package/docs/release-notes/RELEASE-NOTES-2.5.0.md +173 -0
- package/docs/test-timing.md +73 -40
- package/installer.js +225 -45
- package/package.json +6 -3
- package/preset-declaration.js +38 -7
- package/prompt-corpus-persona/persona-corpus.json +9 -9
- package/prompt-corpus-persona/persona-corpus.md +69 -23
- package/prompt-corpus-v2/formal-verify-v2.json +116 -92
- package/prompt-corpus-v2/formal-verify-v2.md +240 -93
- package/prompt-corpus-v3/formal-verify-v3.json +81 -81
- package/prompt-corpus-v3/formal-verify-v3.md +288 -1111
- package/prompt-corpus-v4/formal-verify-v4.json +38 -8
- package/prompt-corpus-v4/formal-verify-v4.md +157 -25
- package/prompt-corpus-v5/prompt-corpus-v5.json +17 -17
- package/prompt-corpus-v5/prompt-corpus-v5.md +32 -26
- package/tests/audit-installer-compat.test.mjs +70 -4
- package/tests/audit-installer-policy.test.mjs +229 -4
- package/tests/audit-persona-sensitivity.mjs +11 -4
- package/tests/audit-persona-surface.test.mjs +5 -1
- package/tests/audit-v5-sensitivity.mjs +47 -6
- package/tests/e2e-v5-round2.test.mjs +354 -0
- package/tests/formal-verify-v2.test.mjs +54 -2
- package/tests/formal-verify-v3.test.mjs +63 -2
- package/tests/formal-verify-v4.test.mjs +120 -4
- package/tests/run-tests.mjs +104 -23
- package/vibe-math-v2/agent.cordis.yml +11 -5
- package/vibe-math-v2/preset.yml +1 -1
- package/vibe-math-v2/vibe-math-v2.js +607 -160
- package/vibe-math-v2//345/256/236/347/216/260/346/226/271/346/241/210.md +20 -4
- package/vibe-math-v3/agent.cordis.yml +26 -10
- package/vibe-math-v3/vibe-math-v3.js +744 -305
- package/vibe-math-v3//345/256/236/347/216/260/346/226/271/346/241/210.md +5 -5
- package/vibe-math-v4/agent.cordis.yml +26 -6
- package/vibe-math-v4/vibe-math-v4.js +487 -89
- package/vibe-math-v4//345/256/236/347/216/260/346/226/271/346/241/210.md +91 -9
- package/vibe-math-v5/agent.cordis.yml +8 -4
- package/vibe-math-v5/vibe-math-v5.js +607 -160
- package/vibe-math-v5//345/256/236/347/216/260/346/226/271/346/241/210.md +73 -40
package/cordis.patch.yml
CHANGED
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
config:
|
|
38
38
|
id: vibe-math-v2
|
|
39
39
|
name: "Vibe Math V2"
|
|
40
|
-
description: "
|
|
40
|
+
description: "多代理数学问题求解与验证框架(经典):概率驱动调度 —— qs.json 问题清单 + Propos/ 命题库 + Reliable/ 参考文献,explorer 拆方向 → 逐方向 Solver 迭代 → 多验证器独立审查→辩论→裁决;断点续跑、人工/自动干预、file/push 双模式进度汇报。"
|
|
41
41
|
order: 20
|
|
42
42
|
plugins:
|
|
43
43
|
# The `vibe-math-v2` agent preset: the full coding agent (`standard`), plus the
|
|
44
|
-
#
|
|
45
|
-
# framework (see
|
|
44
|
+
# classic-architecture multi-agent mathematical problem-solving & verification
|
|
45
|
+
# framework (see vibe-math-v2/实现方案.md).
|
|
46
46
|
#
|
|
47
47
|
# The vibe-math-v2 plugin row consumes the HOST subagents/agents/fs/tools/commands
|
|
48
48
|
# services and publishes nothing, so it needs no isolate realm.
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
## Vibe Math V2 toolkit
|
|
59
59
|
|
|
60
60
|
This session includes the "Vibe Math V2" multi-agent mathematical problem-solving and
|
|
61
|
-
verification framework (
|
|
61
|
+
verification framework (classic architecture). It is driven by a background scheduler (code),
|
|
62
62
|
NOT by the model: you only issue the control tools below and read status; the scheduler
|
|
63
63
|
programmatically runs explorer (direction setting) → per-direction solvers (agent_self_iteration)
|
|
64
64
|
→ multi-reviewer independent review → debate → verdict, and promotes/updates data itself.
|
|
@@ -86,6 +86,9 @@
|
|
|
86
86
|
Key rules to remember when reporting: a problem is "solved" when one of its solutions reaches
|
|
87
87
|
正确概率 = 1; a proposition reaches 布尔估计 = 1/0 when a proof/refutation in its lists reaches
|
|
88
88
|
正确概率 = 1; Propos propositions with 价值/关键性 ≥ promoteValueThreshold auto-promote to qs.json.
|
|
89
|
+
Closure rule (identical across the presets): the 1/0 values above are written ONLY by the scheduler,
|
|
90
|
+
after ≥2 independent verifier agents settle the object (one lone reviewer can never conclude), and
|
|
91
|
+
Verified/ is written by that same scheduler path — an agent's own self-reported 1 is never a conclusion.
|
|
89
92
|
When the user asks about progress, call vibe_math_report and summarize in plain language.
|
|
90
93
|
|
|
91
94
|
Configuration highlights (all tunable via vibe_math_set_params / the settings file):
|
|
@@ -270,7 +273,7 @@
|
|
|
270
273
|
|
|
271
274
|
# ── Vibe Math V2 ────────────────────────────────────────────────────────────
|
|
272
275
|
|
|
273
|
-
# The
|
|
276
|
+
# The classic-architecture framework: this package's plugin (dsh-vibe-math/vibe-math-v2/vibe-math-v2.js)
|
|
274
277
|
# that registers the vibe_math_* tools, a /vibe slash command, and a background
|
|
275
278
|
# scheduler (explorer → per-direction solvers → multi-reviewer verification).
|
|
276
279
|
# It consumes the HOST subagents/agents/fs/tools/commands services and provides
|
|
@@ -329,7 +332,8 @@
|
|
|
329
332
|
- vibe_math_add_problem {id, description, priority, dependencies?} — add a problem (creates Problems/<id>.md).
|
|
330
333
|
- vibe_math_add_proposition {id, 概述, 概率, 优先级, 价值/关键性, 分类} — add a proposition (Propos/<分类>/<id>.md).
|
|
331
334
|
- vibe_math_list_propositions — list the proposition knowledge base.
|
|
332
|
-
- vibe_math_start / vibe_math_resume — start / resume the scheduler (resume = continue after checkpoint/restart)
|
|
335
|
+
- vibe_math_start / vibe_math_resume — start / resume the scheduler (resume = continue after checkpoint/restart);
|
|
336
|
+
both accept override=true to take the project lock over from another session (only after you verified that session is gone).
|
|
333
337
|
- vibe_math_status / vibe_math_report — read status / full progress report (report writes Progress_Logs/report.json + Logs/报告.md).
|
|
334
338
|
- vibe_math_pause / vibe_math_abort — pause / abort.
|
|
335
339
|
- vibe_math_set_mode {mode: manual|auto} — switch manual / auto (manual gates: 计划审批 / 裁决 / 方法晋升).
|
|
@@ -342,7 +346,8 @@
|
|
|
342
346
|
- vibe_math_plan {force?} — show queued plan / last plan, or force a planning round.
|
|
343
347
|
- vibe_math_index — rebuild State/index.json from the Markdown knowledge base.
|
|
344
348
|
- vibe_math_method_add / vibe_math_method_list — manually add / list method cards (Methods/ + global).
|
|
345
|
-
- vibe_math_lock_status — project lock occupancy.
|
|
349
|
+
- vibe_math_lock_status — project lock occupancy (the lock is a renewed lease: while a session is running it never expires; taking it over needs override=true, or happens automatically once the owner's lease has clearly expired after a crash).
|
|
350
|
+
Only ONE session may run a project: a second session is refused with PROJECT_LOCKED instead of silently writing the same knowledge base in parallel.
|
|
346
351
|
- vibe_math_new_project / vibe_math_set_project / vibe_math_list_projects — per-project folders.
|
|
347
352
|
- vibe_math_list_decisions / vibe_math_decide {id, action: approve|reject|override, verdict?} — resolve manual decisions.
|
|
348
353
|
- vibe_math_list_agents / vibe_math_message_agent / vibe_math_interrupt_agent — inspect / steer / interrupt subagents.
|
|
@@ -350,14 +355,20 @@
|
|
|
350
355
|
verification (execute / archive / list the reuse library). The scheduler's child agents
|
|
351
356
|
use them too; they work in every mode.
|
|
352
357
|
|
|
353
|
-
A /vibe slash command mirrors the main controls (/vibe start|resume|pause|abort|status|report|mode
|
|
358
|
+
A /vibe slash command mirrors the main controls (/vibe start [override]|resume [override]|pause|abort|status|report|mode
|
|
354
359
|
<auto|manual>|setup|save|add <id> <desc>|add-proposition <id> <概述>|list-propositions|methods|index|plan|lock|...).
|
|
355
360
|
Data survives restarts via vibe_math_resume.
|
|
356
361
|
|
|
357
362
|
Key rules when reporting: a problem is "solved" when one of its 解法候选 entries reaches 概率 = 1
|
|
358
363
|
(the scheduler writes Verified/问题/<id>.md); a proposition reaches 已验证·真/假 when a 证明/证伪
|
|
359
|
-
entry reaches 概率 = 1 (Verified/命题/<id>.md)
|
|
360
|
-
|
|
364
|
+
entry reaches 概率 = 1 (Verified/命题/<id>.md).
|
|
365
|
+
Closure rule (identical across the presets): those 概率 = 1 values are written ONLY by the scheduler,
|
|
366
|
+
after ≥2 independent verifier agents settle the object (a lone reviewer can never conclude; see
|
|
367
|
+
minVotes), and Verified/ is written by that same scheduler path — a self-reported 1 is never a
|
|
368
|
+
conclusion. Propos propositions whose 价值/关键性 ≥
|
|
369
|
+
promoteValueThreshold (write that anchor on the proposition card, or report it as lemmas[].价值/关键性 in
|
|
370
|
+
vibe_math_sync_meta — default 0.5 never promotes) and that are still undecided
|
|
371
|
+
auto-promote into Problems/ as "判断下述命题是否成立:<命题>" (verification
|
|
361
372
|
results sync back to the source proposition); a solver-reported sub-question q_sub registers THREE
|
|
362
373
|
objects (q_sub problem + judge problem + p-tmp temporary-assumption proposition) with full 来源与动机.
|
|
363
374
|
|
|
@@ -626,14 +637,24 @@
|
|
|
626
637
|
(execute / archive / list the reuse library). Residents use them too; they work in every mode.
|
|
627
638
|
- vibe_v4_formal_report — human-readable Lean formal-verification mirror (mode, Lean-passed
|
|
628
639
|
objects, recorded blockers, formalization TODO, library paths).
|
|
629
|
-
- vibe_v4_prompts {which: brainstorm|normal|heartbeat|verify|coreRules, member?, target?, stage?} — read the exact prompt text a resident would receive (prompt auditing; prompt text is the product).
|
|
630
|
-
A /v4 slash command mirrors the main controls (configure|start|resume|pause|abort|status|report|message <to|all> <content>|meeting|members|add|remove|set).
|
|
640
|
+
- vibe_v4_prompts {which: brainstorm|normal|heartbeat|meeting|verify|coreRules, member?, target?, stage?} — read the exact prompt text a resident would receive (prompt auditing; prompt text is the product).
|
|
641
|
+
A /v4 slash command mirrors the main controls (configure|start [problem]|resume|pause|abort|status|report|message <to|all> <content>|meeting|members|add|remove|set <k=v>...).
|
|
631
642
|
|
|
632
643
|
TRUST RULE: only Verified/ (and Propos/ entries marked 已验证·真/假) are absolutely
|
|
633
644
|
trustworthy; everything else — unverified resident claims, Progress/, Method claims —
|
|
634
645
|
is experiential reference. A proposition / method / theory only reaches Verified/ when
|
|
635
646
|
ALL residents unanimously agree true (or all agree false); otherwise it stays in its
|
|
636
|
-
library with a probability estimate.
|
|
647
|
+
library with a probability estimate. Closure rule (identical across the presets): the framework
|
|
648
|
+
writes the Verified/ card — a resident's own claim never does — and what counts as a vote is
|
|
649
|
+
stated once in the VOTE CONTRACT below.
|
|
650
|
+
|
|
651
|
+
VOTE CONTRACT: a verification vote is a probability of truth in [0,1], but only an EXACT
|
|
652
|
+
1 (absolutely true) and an EXACT 0 (absolutely false) count as a vote. Anything strictly
|
|
653
|
+
between (0.9, 0.95, 0.5 …) is an ABSTENTION carrying that probability estimate: the run
|
|
654
|
+
does NOT conclude, and the group's MEAN probability is written back to the object's card
|
|
655
|
+
so it stays in its library with a probability. The same absoluteness applies to the
|
|
656
|
+
meeting stop-vote: every resident on the roster must answer `voteSolved:true` — one
|
|
657
|
+
abstention keeps the run alive.
|
|
637
658
|
|
|
638
659
|
LEAN FORMAL VERIFICATION (formalVerify, a tunable parameter):
|
|
639
660
|
- 'off' (default, no extra requirement) | 'encourage' (the residents decide by implementation
|
|
@@ -912,8 +933,10 @@
|
|
|
912
933
|
Shared/TaskBoard.md (human view), Shared/Chat/<day>.md,
|
|
913
934
|
Shared/Meetings/<id>.md, Shared/Debates/<target>.md,
|
|
914
935
|
Problems/<id>.md, Verified/<kind>/<id>.md (read-only; m-vote only),
|
|
915
|
-
State/ (
|
|
916
|
-
|
|
936
|
+
State/ (the AUTHORITATIVE state is State/<institute>.v5state.json in this
|
|
937
|
+
directory; it is a hardened JSON file, never a host session log. Everything
|
|
938
|
+
else here and elsewhere in the tree is a human-readable MIRROR — never
|
|
939
|
+
hand-edit any of it).
|
|
917
940
|
|
|
918
941
|
Main controls (recommended flow: configure FIRST, then start):
|
|
919
942
|
- vibe_v5_configure {project?, institute?, problem?, params?} — create/configure the institute WITHOUT starting it.
|