interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / skills / wolfram-math / SKILL.md

92 lines · 5911 bytes Raw Blame History Rendered
1---
2name: wolfram-math
3description: Mandatory mathematics through Wolfram. Use for any computation, derivation, identity, unit conversion, numeric constant, formula check or quantitative claim, and to set up or repair the Wolfram tools so an agent never computes by hand.
4---
5
6# Mathematics goes through Wolfram. Mandatory.
7
8Drake, 2026-10-25: every agent uses Wolfram for mathematics. Not mental arithmetic, not an ad-hoc script,
9not a spreadsheet cell, not a number produced by fluency.
10
11## What is in scope
12
13- Any computation, derivation, integral, series, solve, simplification, identity check, dimensional
14 analysis, unit conversion, statistical calculation, tolerance, expected value or numeric constant.
15- Any number you are about to put in a report, receipt, PR body, gate, evidence file or user answer.
16- Checking a formula that code implements against its symbolic form.
17- The physics behind a visual or a claim, not only the arithmetic of the numbers already measured.
18
19Label each Omega math check `math-check` in the work item's receipt, including checks embedded
20in another task. Start at full independent review. Each agent opens the original artifact or user
21input, identifies the version, field or row, value and unit, and runs the calculation in Wolfram.
22For symbolic checks, capture the expression and assumptions. Keep the reviewer's answer sealed until
23comparison. Compare both the inputs and the reported result, including units and rounding. Record
24the first material difference and its resolution. An unavailable required source leaves the check
25unverified. Apply the standing independent-first rule to any change of review tier.
26
27Exempt from recomputation: a number that is already measured and filed with its source (quote it with the source);
28integer bookkeeping such as line counts, byte sizes, exit codes, PIDs and commit shas. Read quoted
29values and identifiers from their original records. When a count becomes an operand, apply the full math check.
30
31## Tools in this harness
32
33Mounted as MCP tools by the hosted service `https://agenttools.wolfram.com/mcp`:
34
35| Tool | Use |
36|---|---|
37| `mcp__wolfram_wolframlanguageevaluator` | Wolfram Language evaluation. Exact results: `Integrate`, `Solve`, `Reduce`, `Series`, `D`, `Simplify`, `Quantity`, `UnitConvert`, `NIntegrate` |
38| `mcp__wolfram_wolframalpha` | Natural-language facts, constants, identities and conversions when you do not want to write code |
39| `mcp__wolfram_wolframcontext` | Semantic retrieval for background on a term |
40
41## Setup, so no human has to be involved
42
431. **Check the mount.** `~/.omp/agent/mcp.json` must contain:
44
45 ```json
46 "wolfram": { "type": "http", "url": "https://agenttools.wolfram.com/mcp", "timeout": 120000 }
47 ```
48
49 This transport needs **no token, no local Wolfram Engine and no npm package** on the project machine.
50 Verified 2026-10-25 by two calls: `Integrate[x^2, {x, 0, 1}]` returned `1/3`, and `sqrt(27)/2`
51 returned `(3 sqrt(3))/2`.
522. **If the tools are missing**, add that block and restart the session. MCP servers mount at session
53 start, so a running session cannot pick up the new block. Do not install a local Wolfram Engine to
54 satisfy this rule: the hosted endpoint is the supported path. Some hosts keep `mcp.json` read-only
55 under an operator-managed store (the file is a symlink into a protected location). There, never
56 unlink, replace or chmod it: ask the operator, and change it only through the host's documented
57 update command. Adding or changing another MCP server (for example an issue tracker) follows the
58 same route, and the Wolfram block must survive the change.
593. **If the endpoint demands credentials** (another machine, a changed policy), the secret lives in the
60 vault and is injected at launch, for example `atlas-vault run CORTEX_TOKEN -- <server>`. Never write
61 a token into `mcp.json`, a repository file, a commit or a log.
624. **Verify before claiming the session is math-capable.** Two calls: the evaluator above and one
63 WolframAlpha fact. If either fails, the session is not math-capable: say so and stop. Do not compute
64 by hand as a workaround.
65
66## How to use it
67
68- One call per question, and quote the query with the result where the work lives:
69 `WolframLanguageEvaluator: Integrate[x^2, {x, 0, 1}] -> 1/3`.
70- **Persist receipts in the repository or evidence directory before citing "Wolfram verified" in any committed
71 file.** A session-only Wolfram call whose raw query and reply are not saved alongside the deliverable (or backed
72 by committed `aien-calc` receipts) cannot be audited in a fresh-clone review and must be omitted or withdrawn.
73- Prefer exact results. Take `N[...]` only when a decimal is what the reader needs, and say which form
74 you used. `Quantity` and `UnitConvert` carry the unit into the text; a bare number without a unit is
75 not a result.
76- When Wolfram contradicts the code, the code is wrong until shown otherwise. Record both and open the
77 investigation instead of picking the friendlier number.
78- Wolfram is the calculator, not a receipt: the project's MODELED versus MEASURED labels are unchanged,
79 and a Wolfram result does not show that a modelled mechanism runs on the hardware.
80
81## Failure modes
82
83- **Tools absent**: the session is not math-capable. Report it. Never improvise arithmetic.
84- **401 or 403**: credential wiring. Fix or report it; it is not a reason to skip the mathematics.
85- **Timeout**: retry once with a smaller query; if it still fails, report the exact query and error.
86- **A result you cannot interpret**: ask again in explicit form (`Solve`, `Reduce`, `Assuming`) and
87 report the ambiguity rather than rounding it away.
88
89## Why it is mandatory
90
91Hand arithmetic and invented constants are the most common silent error in agent work, and they survive
92review because they look reasonable. A symbolic or numeric check is cheap, reproducible and quotable.