/mathbox:research-statefrom mathbox
Reads or updates a local append-only .mathbox ledger tracking claims, evidence revisions, dependency impact, and review provenance. Use for setting up, checking, recording, or reconciling research state.
Ships in mathbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Follow project authority rules. The ledger checks recorded evidence, artifact
freshness and dependencies, not mathematical truth. proof-recorded describes
bookkeeping rather than a theorem proved under the project's vocabulary.
Apply project promotion and approval policy separately; review status remains
separate from evidence.
Read ledger.md before interpreting labels or recording
events. Resolve research_state.py as TOOL in this
installed skill. All artifact paths are relative to the project supplied with
--root; put --json before the subcommand for complete structured output.
For initialized state, start with check --summary, then handoff --goal CLAIM
for a registered goal. Exit 1 from check returns usable issue data. Continue to
the requested handoff with those findings. On exit 2, diagnose the command or
ledger error before interpreting state. Without a registered goal use status
or an unfiltered handoff. Check summaries give sample issues and omitted counts;
brief status/handoff views also list live, stale and unreconciled runs needing
attention. Open --full details only for relevant contracts, reviews or issues;
compare complete issue lists when a change could hide a new issue in the sample.
python3 "$TOOL" --root PROJECT check --summary
python3 "$TOOL" --root PROJECT status
python3 "$TOOL" --root PROJECT handoff --goal CLAIM
python3 "$TOOL" --root PROJECT impact CLAIM
python3 "$TOOL" --root PROJECT pin-impact PATH
python3 "$TOOL" --root PROJECT record PROPOSAL.json
python3 "$TOOL" --root PROJECT record-batch PROPOSALS.json --dry-run
python3 "$TOOL" --root PROJECT record-batch PROPOSALS.json
python3 "$TOOL" --root PROJECT ingest PACKET.json --dry-run
python3 "$TOOL" --root PROJECT ingest PACKET.json
status, check, impact, pin-impact, next and handoff are read-only and
never initialize state. Create an authorized new project, initialize and register
claims before querying its goal. Inspect actual proof/source/computation artifacts
behind important labels. Revising a claim stales evidence whose snapshot includes
its old revision. Changing a proof file stales evidence that pins it. If a
dependency loses its last qualifying support or becomes disputed or
counterexample-recorded, a consumer's otherwise current proof becomes
conditional. Inspect blocked_by and the evidence's own issues
before deciding what needs revalidation. Run impact CLAIM before revising a
load-bearing statement and pin-impact PATH before editing a pinned file.
When persistence is authorized and the host can inspect the exact ledger head but cannot execute or write, follow deferred-packet.md. Never invent IDs or hashes. Return the complete packet in the final JSON fence and say it is unapplied; obey the inspected local write policy. After interrupted local ingest, inspect the journal, artifact bytes and index tail before retrying. Recover only the outstanding work against the observed head as described in the packet reference.
Initialize .mathbox/ only for useful, authorized setup or state tracking;
existing prose projects may keep their format. Follow migration.md
for adoption. A session alone needs no event. Record changed contracts, evidence,
reviews and justified route outcomes, rather than duplicating route narratives.
Program/run lifecycle events serve work spanning executors, branches, delayed
returns or sessions.
Write ordinary proposals with type, actor and payload; use record FILE,
or preview a dependency-ordered record-batch before appending distinct events.
After an interrupted append, match any recorded prefix to the proposals and
retry only the remainder, replacing references to committed aliases with their
actual event IDs. Before replaying evidence, compare the intended claim contract,
transitive revisions and artifact bytes with the observed state. Revalidate
any proposal whose mathematical inputs changed or cannot be matched.
Apply recovered evidence against a guarded head with proposals-only ingest
when supported. For local-only proposals, coordinate a single writer through
the checks and append. Pin the verified artifact hashes in the proposals.
Unknown payload keys are rejected on new writes; existing journals still replay.
Register dependency claims before consumers and exact claims before evidence.
Bind authoritative wording with statement_artifact and locator when useful.
The helper hashes durable artifacts and captures transitive claim revisions;
never supply generated snapshots. Source evidence needs exact identifier,
version, locator and translation. Computation evidence supports its checked
assertion and needs bounds and non-claims. For new counterexample evidence,
verify that the witness satisfies every hypothesis and violates the exact
conclusion before appending
the event. Record the admissibility check in hypothesis_check. Keep a candidate
with an unresolved check in a research note or route record.
A manifest links a version-2 computation record, its hashed input/output closure,
matching claim_id, and completed run. Validate it with computation-audit first:
linkage checks do not validate its scientific interpretation. Version-1 manifests
may be pinned only as ordinary artifacts, without automatic closure.
Record reviews separately against exact evidence and a durable report. Genuine independence requires fresh review of raw evidence; a different actor name alone is insufficient, and an author cannot independently audit their own evidence. Inspect active review objects and reports when passing, conditional and failed reviews coexist. Failed or conditional reviews remain challenges even if their reports disappear. Resolve them through an explicit justified retraction or actually revalidated replacement evidence, never a silent hash refresh.
Whole-file pins stale on any byte change, including typography. Prefer faithful,
stable claim-scoped artifacts where available; inspect fanout with pin-impact.
For an unchanged archived original, register an artifact-relocation against
the exact historical event, slot, path and hash; follow the schema in
ledger.md and the map-driven example
in migration.md.
Use local record-batch --dry-run before registration; deferred ingest rejects
relocation proposals. This verifies byte identity and location only. It never
revalidates a proof, changes a snapshot, resolves a review, or revives inactive
evidence. A changed original or broken active destination remains an issue.
When a file returns to its original path, register a return; when the original
path was deliberately reused, mark only the affected pins release_original.
Inspect relocations separately from unresolved issues and count references,
not files. Do not recreate old paths or edit pinned manifests to silence warnings.
Revise a claim by restating its complete contract under the same ID with a reason.
Include any retained statement_artifact and locator. Use a separate claim ID
for a restricted theorem or a formulation whose equivalence still needs proof.
After real revalidation, record new evidence with supersedes: [old IDs].
Retract only erroneous evidence or review records. Keep proof details outside
the ledger. Never edit/delete numbered events,
refresh hashes to silence warnings, or treat a changed statement as already proved.
Record owning claim, optional resolves obligations, mechanism, decisive question
and discriminator, prerequisites, success/failure criteria and rough gain/cost.
Separate alternative routes from jointly required theorem dependencies. next
ranks ready recorded routes heuristically; mathematical judgment sets priority.
Repeated owner/mechanism pairs require the documented reopening contract, not
renaming to evade it.
Separate attempt outcome from route disposition. Inconclusiveness, resource limits or priority changes never alone justify closure. Preserve untried or deferred continuations with next action and resumption condition. Close only with the exact obstruction or scoped reason no continuation remains. Reopening rules and event fields are in executions.md and the ledger reference.
When an open route's continuation must outlive this session, use an existing open
program whose goal covers it, or register one if absent. Record missing
route-run, run-result and route-reconcile events with decision: continue,
reusing applicable records. Cited runs and their reconciliation share base_event
and base_revision; a run result inherits its base through its run and has no
base fields. The program retains its starting checkpoint, which may differ from
a later execution's base. next and handoff show the latest continuation's
reason and next step. A prose record alone cannot update that generated view.
Do not add lifecycle events solely for follow-up completed in the same session.
For parallel/delayed work, assign distinct executions with owner, actual inputs, base and write scope. Reconcile serially in the single writer's ledger, record conflicts, and disposition late results explicitly. Arrival order is not ancestry; never merge or renumber event streams. Process completion does not close a route or promote a claim.
Before saving a durable record, proof, report or authored JSON, follow attribution.md.
Commit events with their artifacts only under project Git authorization. Preserve
source-cache retention policy. Use one designated live view, preferably a generated
brief view when migration is authorized; do not create a parallel manual dashboard.
Report changed claims, active review conditions/conflicts, stale evidence,
dependents and route-only context. A clean check establishes bookkeeping integrity.
Use available proof-audit, computation-audit or literature-check skills
for correctness decisions. If the relevant skill is unavailable, perform the
bounded check directly and disclose its limits.
agents/openai.yaml (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger-evals.json (opens in a new tab)references/attribution.md (opens in a new tab)references/deferred-packet.md (opens in a new tab)references/executions.md (opens in a new tab)references/ledger.md (opens in a new tab)references/migration.md (opens in a new tab)scripts/research_state.py (opens in a new tab)scripts/test_research_state.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/computation-auditDesign, run, or audit a mathematical computation supporting a research claim when correctness, provenance, tested range, reproducibility, or interpretation matters. Includes symbolic, exact, finite-field, representation-theoretic, homological and numerical experiments. Do not use to verify a cited theorem, audit a proof with no load-bearing computation, pursue a whole research route, or for general programming./literature-checkVerify what an external mathematical source proves: exact theorem, hypotheses and version, citation, notation translation, source-dependent implication, attribution, or a bounded novelty claim; cache authenticated sources for reuse. Use when a proof relies on a named result, the user asks whether a claim is known, or to cache a source. Do not use to audit internal proof logic, attack an implication, format bibliographies, or insert citations into a manuscript./manuscript-integratenpx claudepluginhub nidrissi/mathbox --plugin mathboxOther plugins' skills for the same job