@bohuyeshan/openagent-labforge-core 3.11.2 → 3.11.3
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.ja.md +34 -27
- package/README.ko.md +34 -27
- package/README.md +245 -188
- package/README.ru.md +28 -21
- package/README.zh-cn.md +245 -188
- package/bin/platform.test.ts +21 -20
- package/dist/agents/atlas/default.d.ts +1 -1
- package/dist/agents/atlas/gemini.d.ts +1 -1
- package/dist/agents/atlas/gpt.d.ts +1 -1
- package/dist/agents/bio-methodologist.d.ts +1 -1
- package/dist/agents/bio-pipeline-operator.d.ts +1 -1
- package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -0
- package/dist/agents/env-context.d.ts +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/metis.d.ts +1 -1
- package/dist/agents/prometheus/gemini.d.ts +1 -1
- package/dist/agents/prometheus/gpt.d.ts +1 -1
- package/dist/agents/prometheus/interview-mode.d.ts +1 -1
- package/dist/agents/prometheus/plan-generation.d.ts +1 -1
- package/dist/agents/prometheus/plan-template.d.ts +1 -1
- package/dist/agents/prometheus/system-prompt.d.ts +1 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/cli/config-manager/bun-install.d.ts +6 -1
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -1
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/index.js +763 -467
- package/dist/cli/install-validators.d.ts +1 -0
- package/dist/cli/model-fallback-types.d.ts +1 -0
- package/dist/cli/openai-only-model-catalog.d.ts +3 -0
- package/dist/cli/run/index.d.ts +1 -0
- package/dist/cli/run/model-resolver.d.ts +4 -0
- package/dist/cli/run/types.d.ts +1 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/config/schema/agent-names.d.ts +3 -1
- package/dist/config/schema/background-task.d.ts +2 -0
- package/dist/config/schema/git-env-prefix.d.ts +5 -0
- package/dist/config/schema/git-master.d.ts +1 -0
- package/dist/config/schema/hooks.d.ts +2 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +54 -1
- package/dist/config/schema.d.ts +1 -0
- package/dist/create-hooks.d.ts +13 -0
- package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +16 -1
- package/dist/features/background-agent/constants.d.ts +1 -1
- package/dist/features/background-agent/manager.d.ts +20 -4
- package/dist/features/background-agent/process-cleanup.d.ts +1 -1
- package/dist/features/background-agent/remove-task-toast-tracking.d.ts +1 -0
- package/dist/features/background-agent/subagent-spawn-limits.d.ts +23 -0
- package/dist/features/background-agent/task-history.d.ts +1 -0
- package/dist/features/background-agent/task-poller.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +4 -0
- package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +4 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -3
- package/dist/features/claude-code-agent-loader/types.d.ts +8 -1
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +2 -2
- package/dist/features/claude-code-plugin-loader/loader.d.ts +2 -2
- package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
- package/dist/features/skill-mcp-manager/types.d.ts +4 -0
- package/dist/features/tmux-subagent/index.d.ts +1 -0
- package/dist/features/tmux-subagent/manager.d.ts +5 -0
- package/dist/features/tmux-subagent/pane-state-parser.d.ts +8 -0
- package/dist/features/tmux-subagent/tracked-session-state.d.ts +8 -0
- package/dist/features/tmux-subagent/types.d.ts +2 -0
- package/dist/hooks/atlas/boulder-session-lineage.d.ts +6 -0
- package/dist/hooks/atlas/final-wave-approval-gate.d.ts +4 -0
- package/dist/hooks/atlas/idle-event.d.ts +8 -0
- package/dist/hooks/atlas/resolve-active-boulder-session.d.ts +11 -0
- package/dist/hooks/atlas/tool-execute-after.d.ts +2 -0
- package/dist/hooks/atlas/types.d.ts +2 -0
- package/dist/hooks/atlas/verification-reminders.d.ts +4 -0
- package/dist/hooks/auto-slash-command/hook.d.ts +7 -0
- package/dist/hooks/auto-slash-command/processed-command-store.d.ts +7 -0
- package/dist/hooks/auto-update-checker/checker/sync-package-json.d.ts +7 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +3 -1
- package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
- package/dist/hooks/comment-checker/downloader.d.ts +1 -1
- package/dist/hooks/compaction-context-injector/compaction-context-prompt.d.ts +1 -0
- package/dist/hooks/compaction-context-injector/constants.d.ts +5 -0
- package/dist/hooks/compaction-context-injector/hook.d.ts +5 -1
- package/dist/hooks/compaction-context-injector/recovery-prompt-config.d.ts +6 -0
- package/dist/hooks/compaction-context-injector/recovery.d.ts +6 -0
- package/dist/hooks/compaction-context-injector/session-id.d.ts +2 -0
- package/dist/hooks/compaction-context-injector/session-prompt-config-resolver.d.ts +16 -0
- package/dist/hooks/compaction-context-injector/tail-monitor.d.ts +13 -0
- package/dist/hooks/compaction-context-injector/types.d.ts +43 -0
- package/dist/hooks/compaction-context-injector/validated-model.d.ts +13 -0
- package/dist/hooks/context-window-monitor.d.ts +2 -5
- package/dist/hooks/delegate-task-english-directive/hook.d.ts +14 -0
- package/dist/hooks/delegate-task-english-directive/index.d.ts +1 -0
- package/dist/hooks/gpt-permission-continuation/assistant-message.d.ts +23 -0
- package/dist/hooks/gpt-permission-continuation/constants.d.ts +4 -0
- package/dist/hooks/gpt-permission-continuation/detector.d.ts +1 -0
- package/dist/hooks/gpt-permission-continuation/handler.d.ts +12 -0
- package/dist/hooks/gpt-permission-continuation/index.d.ts +13 -0
- package/dist/hooks/gpt-permission-continuation/session-state.d.ts +15 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/keyword-detector/hook.d.ts +1 -0
- package/dist/hooks/preemptive-compaction.d.ts +2 -5
- package/dist/hooks/ralph-loop/pending-verification-handler.d.ts +16 -0
- package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +10 -0
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +11 -0
- package/dist/hooks/runtime-fallback/hook.d.ts +2 -3
- package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +4 -0
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -2
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +7 -0
- package/dist/hooks/runtime-fallback/session-messages.d.ts +9 -0
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +3 -0
- package/dist/hooks/runtime-fallback/types.d.ts +57 -3
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +3 -0
- package/dist/hooks/session-notification-content.d.ts +30 -0
- package/dist/hooks/session-notification-scheduler.d.ts +5 -3
- package/dist/hooks/session-notification.d.ts +2 -0
- package/dist/hooks/start-work/index.d.ts +1 -1
- package/dist/hooks/start-work/worktree-detector.d.ts +7 -0
- package/dist/hooks/todo-continuation-enforcer/constants.d.ts +6 -2
- package/dist/hooks/todo-continuation-enforcer/handler.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +10 -1
- package/dist/hooks/todo-continuation-enforcer/stagnation-detection.d.ts +6 -0
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +5 -0
- package/dist/hooks/tool-output-truncator.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10577 -7241
- package/dist/openagent-labforge.schema.json +70 -4
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
- package/dist/plugin/normalize-tool-arg-schemas.d.ts +2 -0
- package/dist/plugin/ultrawork-model-override.d.ts +1 -15
- package/dist/plugin/ultrawork-variant-availability.d.ts +6 -0
- package/dist/plugin-dispose.d.ts +10 -0
- package/dist/plugin-handlers/agent-override-protection.d.ts +3 -0
- package/dist/plugin-state.d.ts +5 -0
- package/dist/shared/compaction-agent-config-checkpoint.d.ts +11 -0
- package/dist/shared/context-limit-resolver.d.ts +5 -0
- package/dist/shared/data-path.d.ts +2 -2
- package/dist/shared/dynamic-truncator.d.ts +4 -7
- package/dist/shared/external-plugin-detector.d.ts +1 -1
- package/dist/shared/fallback-chain-from-models.d.ts +3 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/model-error-classifier.d.ts +2 -1
- package/dist/shared/opencode-command-dirs.d.ts +3 -0
- package/dist/shared/plugin-identity.d.ts +7 -0
- package/dist/shared/question-denied-session-permission.d.ts +6 -0
- package/dist/shared/retry-status-utils.d.ts +2 -0
- package/dist/shared/system-directive.d.ts +6 -5
- package/dist/shared/vision-capable-models-cache.d.ts +4 -0
- package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
- package/dist/tools/call-omo-agent/constants.d.ts +1 -1
- package/dist/tools/call-omo-agent/sync-executor.d.ts +11 -3
- package/dist/tools/call-omo-agent/tools.d.ts +2 -1
- package/dist/tools/delegate-task/cancel-unstable-agent-task.d.ts +2 -0
- package/dist/tools/delegate-task/model-selection.d.ts +1 -0
- package/dist/tools/delegate-task/model-string-parser.d.ts +1 -3
- package/dist/tools/look-at/multimodal-fallback-chain.d.ts +4 -0
- package/dist/tools/lsp/constants.d.ts +1 -0
- package/dist/tools/lsp/directory-diagnostics.d.ts +1 -0
- package/dist/tools/lsp/lsp-client-transport.d.ts +4 -2
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +2 -1
- package/dist/tools/lsp/server-path-bases.d.ts +1 -0
- package/generated/skills-bundles/catalog.json +282 -39
- package/generated/skills-bundles/full/INDEX.md +38 -10
- package/generated/skills-bundles/full/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +63 -0
- package/generated/skills-bundles/full/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +112 -0
- package/generated/skills-bundles/full/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +279 -0
- package/generated/skills-bundles/full/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +47 -0
- package/generated/skills-bundles/full/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +281 -0
- package/generated/skills-bundles/full/skills/productivity/communication/auto-claude__feishu-notify/SKILL.md +154 -0
- package/generated/skills-bundles/full/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +138 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +252 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +254 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +310 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +255 -0
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +133 -0
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +87 -0
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +194 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +228 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +186 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +351 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +174 -0
- package/generated/skills-bundles/full/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +224 -0
- package/generated/skills-bundles/paper/INDEX.md +40 -0
- package/generated/skills-bundles/paper/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +63 -0
- package/generated/skills-bundles/paper/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +112 -0
- package/generated/skills-bundles/paper/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +279 -0
- package/generated/skills-bundles/paper/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +47 -0
- package/generated/skills-bundles/paper/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +281 -0
- package/generated/skills-bundles/paper/skills/productivity/communication/auto-claude__feishu-notify/SKILL.md +154 -0
- package/generated/skills-bundles/paper/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +138 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +252 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +254 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +310 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +255 -0
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +133 -0
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +87 -0
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +194 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +228 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +186 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +351 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +174 -0
- package/generated/skills-bundles/paper/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +224 -0
- package/package.json +21 -21
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/LICENSE.txt +0 -21
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/SKILL.md +0 -615
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/_meta.json +0 -11
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/scripts/virtualbox-utils.ts +0 -586
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/.clawhubsafe +0 -0
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/LICENSE +0 -21
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/README.md +0 -127
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/SECURITY.md +0 -68
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/SKILL.md +0 -141
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/_meta.json +0 -11
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/scripts/speak.sh +0 -52
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/scripts/transcribe.sh +0 -50
- package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/LICENSE.txt +0 -21
- package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/SKILL.md +0 -416
- package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/_meta.json +0 -11
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "auto-claude/proof-writer"
|
|
3
|
+
description: "Writes rigorous mathematical proofs for ML/AI theory. Use when asked to prove a theorem, lemma, proposition, or corollary, fill in missing proof steps, formalize a proof sketch, 补全证明, 写证明, 证明某个命题, or determine whether a claimed proof can actually be completed under the stated assumptions."
|
|
4
|
+
argument-hint: ["theorem-statement-and-assumptions"]
|
|
5
|
+
allowed-tools: "Read, Write, Edit, Grep, Glob"
|
|
6
|
+
metadata:
|
|
7
|
+
category: "research/theory-writing"
|
|
8
|
+
---
|
|
9
|
+
# Proof Write: Rigorous Theorem / Lemma Drafting
|
|
10
|
+
|
|
11
|
+
Write a mathematically honest proof package, not a polished fake proof.
|
|
12
|
+
|
|
13
|
+
## Constants
|
|
14
|
+
|
|
15
|
+
- DEFAULT_PROOF_DOC = `PROOF_PACKAGE.md` in project root
|
|
16
|
+
- STATUS = `PROVABLE AS STATED | PROVABLE AFTER WEAKENING / EXTRA ASSUMPTION | NOT CURRENTLY JUSTIFIED`
|
|
17
|
+
|
|
18
|
+
## Context: $ARGUMENTS
|
|
19
|
+
|
|
20
|
+
## Goal
|
|
21
|
+
|
|
22
|
+
Produce exactly one of:
|
|
23
|
+
1. a complete proof of the original claim
|
|
24
|
+
2. a corrected claim plus a proof of the corrected claim
|
|
25
|
+
3. a blockage report explaining why the claim is not currently justified
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
|
|
29
|
+
Extract and normalize:
|
|
30
|
+
- exact theorem / lemma / proposition / corollary statement
|
|
31
|
+
- explicit assumptions
|
|
32
|
+
- notation and definitions
|
|
33
|
+
- any user-provided proof sketch, partial proof, or intended strategy
|
|
34
|
+
- nearby lemmas or claims in local notes, appendix files, or theorem drafts if the request points to them
|
|
35
|
+
- desired output style if specified: concise, appendix-ready, or full-detail
|
|
36
|
+
|
|
37
|
+
If notation or assumptions are ambiguous, state the exact interpretation you are using before proving anything.
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
|
|
41
|
+
### Step 1: Gather Proof Context
|
|
42
|
+
Determine the target proof file with this priority:
|
|
43
|
+
1. a file path explicitly specified by the user
|
|
44
|
+
2. a proof draft already referenced in local notes or theorem files
|
|
45
|
+
3. `PROOF_PACKAGE.md` in project root as the default target
|
|
46
|
+
|
|
47
|
+
Read the relevant local context:
|
|
48
|
+
- the chosen target proof file, if it already exists
|
|
49
|
+
- theorem notes, appendix drafts, or files explicitly mentioned by the user
|
|
50
|
+
|
|
51
|
+
Extract:
|
|
52
|
+
- exact claim
|
|
53
|
+
- assumptions
|
|
54
|
+
- notation
|
|
55
|
+
- proof sketch or partial proof
|
|
56
|
+
- nearby lemmas that the draft may depend on
|
|
57
|
+
|
|
58
|
+
### Step 2: Normalize the Claim
|
|
59
|
+
Restate:
|
|
60
|
+
- the exact claim being proved
|
|
61
|
+
- all assumptions, separately from conclusions
|
|
62
|
+
- all symbols used in the claim
|
|
63
|
+
|
|
64
|
+
Identify:
|
|
65
|
+
- hidden assumptions
|
|
66
|
+
- undefined notation
|
|
67
|
+
- scope ambiguities
|
|
68
|
+
- whether the available sketch proves the full claim or only a weaker variant
|
|
69
|
+
|
|
70
|
+
Preserve the user's original theorem statement unless a change is explicitly required.
|
|
71
|
+
If you use a stronger normalization or cleaner internal formulation only to make the proof easier, keep that as an internal proof device rather than silently replacing the original claim.
|
|
72
|
+
|
|
73
|
+
### Step 3: Feasibility Triage
|
|
74
|
+
Before writing a proof, classify the claim into exactly one status:
|
|
75
|
+
- `PROVABLE AS STATED`
|
|
76
|
+
- `PROVABLE AFTER WEAKENING / EXTRA ASSUMPTION`
|
|
77
|
+
- `NOT CURRENTLY JUSTIFIED`
|
|
78
|
+
|
|
79
|
+
Check explicitly:
|
|
80
|
+
- does the conclusion actually follow from the listed assumptions?
|
|
81
|
+
- is any cited theorem being used outside its conditions?
|
|
82
|
+
- is the claim stronger than what the available argument supports?
|
|
83
|
+
- is there an obvious counterexample, boundary case, or quantifier failure?
|
|
84
|
+
|
|
85
|
+
If the claim is not provable as stated, do NOT fabricate a proof.
|
|
86
|
+
Do NOT silently strengthen assumptions or narrow the theorem's scope just to make the proof work.
|
|
87
|
+
|
|
88
|
+
### Step 4: Build a Dependency Map
|
|
89
|
+
Choose a proof strategy, for example:
|
|
90
|
+
- direct
|
|
91
|
+
- contradiction
|
|
92
|
+
- induction
|
|
93
|
+
- construction
|
|
94
|
+
- reduction to a known result
|
|
95
|
+
- coupling / probabilistic argument
|
|
96
|
+
- optimization inequality chaining
|
|
97
|
+
|
|
98
|
+
Then write a dependency map:
|
|
99
|
+
- main claim
|
|
100
|
+
- required intermediate lemmas
|
|
101
|
+
- named theorems or inequalities that will be cited
|
|
102
|
+
- which assumptions each nontrivial step depends on
|
|
103
|
+
- boundary cases that must be handled separately
|
|
104
|
+
|
|
105
|
+
If one step is substantial, isolate it as a lemma instead of burying it in one sentence.
|
|
106
|
+
|
|
107
|
+
### Step 5: Write the Proof Document
|
|
108
|
+
Write to the chosen target proof file.
|
|
109
|
+
|
|
110
|
+
If the target proof file already exists:
|
|
111
|
+
- read it first
|
|
112
|
+
- update the relevant claim section
|
|
113
|
+
- do not blindly duplicate prior content
|
|
114
|
+
|
|
115
|
+
If the user does not specify a target, default to `PROOF_PACKAGE.md` in project root.
|
|
116
|
+
|
|
117
|
+
Do NOT write directly into paper sections or appendix `.tex` files unless the user explicitly asks for that target.
|
|
118
|
+
|
|
119
|
+
The proof package must include:
|
|
120
|
+
- exact claim
|
|
121
|
+
- explicit assumptions
|
|
122
|
+
- proof status
|
|
123
|
+
- announced strategy
|
|
124
|
+
- dependency map
|
|
125
|
+
- numbered major steps
|
|
126
|
+
- justification for every nontrivial implication
|
|
127
|
+
|
|
128
|
+
Mathematical rigor requirements:
|
|
129
|
+
- never use "clearly", "obviously", "it can be shown", "by standard arguments", or "similarly" to hide a gap
|
|
130
|
+
- define every constant and symbol before use
|
|
131
|
+
- check quantifier order carefully
|
|
132
|
+
- handle degenerate and boundary cases explicitly, or state why they are excluded
|
|
133
|
+
- if invoking a standard fact, state its name and why its assumptions are satisfied here
|
|
134
|
+
- use `$...$` for inline math and `$$...$$` for display equations
|
|
135
|
+
- never write math in plain text
|
|
136
|
+
- if the proof uses an equivalent normalization that is stronger in appearance than the user's original theorem statement, label it explicitly as a proof device and keep the original claim separate
|
|
137
|
+
|
|
138
|
+
### Step 6: Final Verification
|
|
139
|
+
Before finishing the target proof file, verify:
|
|
140
|
+
- the theorem statement exactly matches what was actually shown
|
|
141
|
+
- every assumption used is stated
|
|
142
|
+
- every nontrivial implication is justified
|
|
143
|
+
- every inequality direction is correct
|
|
144
|
+
- every cited result is applicable under the stated assumptions
|
|
145
|
+
- edge cases are handled or explicitly excluded
|
|
146
|
+
- no hidden dependence on an unproved lemma remains
|
|
147
|
+
|
|
148
|
+
If a key step still cannot be justified, downgrade the status and write a blockage report instead of forcing a proof.
|
|
149
|
+
|
|
150
|
+
## Required File Structure
|
|
151
|
+
|
|
152
|
+
Write the target proof file using this structure:
|
|
153
|
+
|
|
154
|
+
```md
|
|
155
|
+
# Proof Package
|
|
156
|
+
|
|
157
|
+
## Claim
|
|
158
|
+
[exact statement]
|
|
159
|
+
|
|
160
|
+
## Status
|
|
161
|
+
PROVABLE AS STATED / PROVABLE AFTER WEAKENING / NOT CURRENTLY JUSTIFIED
|
|
162
|
+
|
|
163
|
+
## Assumptions
|
|
164
|
+
- ...
|
|
165
|
+
|
|
166
|
+
## Notation
|
|
167
|
+
- ...
|
|
168
|
+
|
|
169
|
+
## Proof Strategy
|
|
170
|
+
[chosen approach and why]
|
|
171
|
+
|
|
172
|
+
## Dependency Map
|
|
173
|
+
1. Main claim depends on ...
|
|
174
|
+
2. Lemma A depends on ...
|
|
175
|
+
3. Step k uses ...
|
|
176
|
+
|
|
177
|
+
## Proof
|
|
178
|
+
Step 1. ...
|
|
179
|
+
Step 2. ...
|
|
180
|
+
...
|
|
181
|
+
Therefore the claim follows. ∎
|
|
182
|
+
|
|
183
|
+
## Corrections or Missing Assumptions
|
|
184
|
+
- [only if needed]
|
|
185
|
+
|
|
186
|
+
## Open Risks
|
|
187
|
+
- [remaining fragile points, if any]
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Output Modes
|
|
191
|
+
|
|
192
|
+
### If the claim is provable as stated
|
|
193
|
+
Write the full file structure above with a complete proof.
|
|
194
|
+
|
|
195
|
+
### If the original claim is too strong
|
|
196
|
+
Write:
|
|
197
|
+
- why the original statement is not justified
|
|
198
|
+
- the corrected claim
|
|
199
|
+
- the minimal extra assumption if one exists
|
|
200
|
+
- a proof of the corrected claim
|
|
201
|
+
|
|
202
|
+
### If the proof cannot be completed honestly
|
|
203
|
+
Write:
|
|
204
|
+
- `Status: NOT CURRENTLY JUSTIFIED`
|
|
205
|
+
- the exact blocker: missing lemma, invalid implication, hidden assumption, or counterexample direction
|
|
206
|
+
- what extra assumption, lemma, or derivation would be needed to finish the proof
|
|
207
|
+
- a corrected weaker statement if one is available
|
|
208
|
+
|
|
209
|
+
## Chat Response
|
|
210
|
+
|
|
211
|
+
After writing the target proof file, respond briefly with:
|
|
212
|
+
- status
|
|
213
|
+
- whether the original claim survived unchanged
|
|
214
|
+
- what file was updated
|
|
215
|
+
|
|
216
|
+
## Key Rules
|
|
217
|
+
|
|
218
|
+
- Never fabricate a missing proof step.
|
|
219
|
+
- Prefer weakening the claim over overclaiming.
|
|
220
|
+
- Separate assumptions, derived facts, heuristics, and conjectures.
|
|
221
|
+
- Preserve the user's original theorem statement unless you explicitly mark a corrected claim or an internal normalization.
|
|
222
|
+
- If the statement is false as written, say so explicitly and give a counterexample or repaired statement.
|
|
223
|
+
- If uncertainty remains, mark it explicitly in `Open Risks`; do not hide it inside polished prose.
|
|
224
|
+
- Correctness matters more than brevity.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bohuyeshan/openagent-labforge-core",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.3",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
"license": "SUL-1.0",
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/code-yeongyu/
|
|
51
|
+
"url": "git+https://github.com/code-yeongyu/openagent-labforge.git"
|
|
52
52
|
},
|
|
53
53
|
"bugs": {
|
|
54
|
-
"url": "https://github.com/code-yeongyu/
|
|
54
|
+
"url": "https://github.com/code-yeongyu/openagent-labforge/issues"
|
|
55
55
|
},
|
|
56
|
-
"homepage": "https://github.com/code-yeongyu/
|
|
56
|
+
"homepage": "https://github.com/code-yeongyu/openagent-labforge#readme",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@ast-grep/cli": "^0.
|
|
59
|
-
"@ast-grep/napi": "^0.
|
|
58
|
+
"@ast-grep/cli": "^0.41.1",
|
|
59
|
+
"@ast-grep/napi": "^0.41.1",
|
|
60
60
|
"@clack/prompts": "^0.11.0",
|
|
61
61
|
"@code-yeongyu/comment-checker": "^0.7.0",
|
|
62
62
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
63
|
-
"@opencode-ai/plugin": "^1.2.
|
|
64
|
-
"@opencode-ai/sdk": "^1.2.
|
|
63
|
+
"@opencode-ai/plugin": "^1.2.24",
|
|
64
|
+
"@opencode-ai/sdk": "^1.2.24",
|
|
65
65
|
"commander": "^14.0.2",
|
|
66
66
|
"detect-libc": "^2.0.0",
|
|
67
67
|
"diff": "^8.0.3",
|
|
@@ -75,24 +75,24 @@
|
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/js-yaml": "^4.0.9",
|
|
77
77
|
"@types/picomatch": "^3.0.2",
|
|
78
|
-
"bun-types": "1.3.
|
|
78
|
+
"bun-types": "1.3.10",
|
|
79
79
|
"typescript": "^5.7.3"
|
|
80
80
|
},
|
|
81
81
|
"optionalDependencies": {
|
|
82
|
-
"openagent-labforge-darwin-arm64": "3.11.
|
|
83
|
-
"openagent-labforge-darwin-x64": "3.11.
|
|
84
|
-
"openagent-labforge-darwin-x64-baseline": "3.11.
|
|
85
|
-
"openagent-labforge-linux-arm64": "3.11.
|
|
86
|
-
"openagent-labforge-linux-arm64-musl": "3.11.
|
|
87
|
-
"openagent-labforge-linux-x64": "3.11.
|
|
88
|
-
"openagent-labforge-linux-x64-baseline": "3.11.
|
|
89
|
-
"openagent-labforge-linux-x64-musl": "3.11.
|
|
90
|
-
"openagent-labforge-linux-x64-musl-baseline": "3.11.
|
|
91
|
-
"openagent-labforge-windows-x64": "3.11.
|
|
92
|
-
"openagent-labforge-windows-x64-baseline": "3.11.
|
|
82
|
+
"openagent-labforge-darwin-arm64": "3.11.2",
|
|
83
|
+
"openagent-labforge-darwin-x64": "3.11.2",
|
|
84
|
+
"openagent-labforge-darwin-x64-baseline": "3.11.2",
|
|
85
|
+
"openagent-labforge-linux-arm64": "3.11.2",
|
|
86
|
+
"openagent-labforge-linux-arm64-musl": "3.11.2",
|
|
87
|
+
"openagent-labforge-linux-x64": "3.11.2",
|
|
88
|
+
"openagent-labforge-linux-x64-baseline": "3.11.2",
|
|
89
|
+
"openagent-labforge-linux-x64-musl": "3.11.2",
|
|
90
|
+
"openagent-labforge-linux-x64-musl-baseline": "3.11.2",
|
|
91
|
+
"openagent-labforge-windows-x64": "3.11.2",
|
|
92
|
+
"openagent-labforge-windows-x64-baseline": "3.11.2"
|
|
93
93
|
},
|
|
94
94
|
"overrides": {
|
|
95
|
-
"@opencode-ai/sdk": "^1.2.
|
|
95
|
+
"@opencode-ai/sdk": "^1.2.24"
|
|
96
96
|
},
|
|
97
97
|
"trustedDependencies": [
|
|
98
98
|
"@ast-grep/cli",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|