Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions packs/catalog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"packs": [
{
"name": "speedrun",
"version": "0.2.0",
"description": "single-metric script/benchmark optimization under a wall-clock budget: setup, optimize, measure, report; no paper",
"description_zh": "墙钟预算内的单指标脚本/基准优化:搭建、优化、测量、报告;不写论文",
"requires": [],
"needs": [
"Python 3.10+; bundled evidence check uses only the standard library and needs no GPU. Optimization runs need the task's frozen scorer, inputs, benchmark software and declared hardware; the NanoGPT trace specifically needs its original 8xH100 harness and software. Nothing is installed or detected by this pack."
],
"files": [
{
"path": "LICENSE",
"size": 1109
},
{
"path": "SKILL.md",
"size": 6623
},
{
"path": "evidence.py",
"size": 3173
},
{
"path": "skills/engineer/speedrun-hands-on-trace.md",
"size": 16931
},
{
"path": "skills/engineer/speedrun-sota-optimization.md",
"size": 26198
}
]
},
{
"name": "materials",
"version": "0.2.0",
"description": "materials science and materials processing across atomistic, microstructure, continuum, CAD/CAE, and experimental scales",
"description_zh": "材料科学与材料加工,跨原子、微观组织、连续介质、CAD/CAE 与实验尺度",
"requires": [],
"needs": [
"Python 3.10+; evidence.py uses only the standard library and needs no GPU. Scientific execution needs task-selected data, solver or instrument access, licenses and hardware, and authorization for physical work. Nothing is installed or detected by this pack."
],
"files": [
{
"path": "LICENSE",
"size": 1109
},
{
"path": "SKILL.md",
"size": 10664
},
{
"path": "evidence.py",
"size": 4463
},
{
"path": "skills/engineer/materials-atomistic-simulation.md",
"size": 2707
},
{
"path": "skills/engineer/materials-cad-cae-process-simulation.md",
"size": 3216
},
{
"path": "skills/engineer/materials-data-literature-grounding.md",
"size": 2020
},
{
"path": "skills/engineer/materials-ecosystem-routing.md",
"size": 3554
},
{
"path": "skills/engineer/materials-experiment-loop.md",
"size": 1975
},
{
"path": "skills/engineer/materials-research-execution.md",
"size": 2065
},
{
"path": "skills/manager/materials-research-manager.md",
"size": 1458
},
{
"path": "skills/planner/materials-research-planning.md",
"size": 2106
},
{
"path": "skills/reviewer/materials-research-review.md",
"size": 2283
},
{
"path": "skills/reviewer/materials-simulation-signoff.md",
"size": 2283
},
{
"path": "skills/reviewer/materials-validation-review.md",
"size": 2053
}
]
}
]
}
22 changes: 22 additions & 0 deletions packs/materials/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2026 lbx154
Copyright (c) 2026 Argus AI Team contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
145 changes: 145 additions & 0 deletions packs/materials/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
---
name: materials
description: "materials science and materials processing across atomistic, microstructure, continuum, CAD/CAE, and experimental scales"
version: 0.2.0
---

# materials

materials science and materials processing across atomistic, microstructure, continuum, CAD/CAE, and experimental scales.

## What counts as done

### scope

- **scope.material-system** — The material composition, phase or microstructure, processing or service state, relevant environment, and observables are explicit.
Evidence hint: the actual material system, state, environment, and measured outputs

- **scope.scale-regime** — The relevant spatial and temporal scales and physical regime are identified, so an electronic, atomistic, mesoscale, continuum, process, data-driven, or experimental route can be chosen for physical reasons.
Evidence hint: a justified scale/regime choice and the phenomena it retains or omits

- **scope.success-criterion** — Success is checkable and matches the request: explanation, calibrated model, property prediction, validated process design, reproduced result, new finding, or an honest bounded negative result.
Evidence hint: a task-specific observable, comparator, tolerance, or decision criterion

- **scope.physical-safety** — If the route includes physical synthesis, processing, testing, or instrument operation, the authorized personnel, approved procedure, hazards, interlocks, required controls, and waste handling are established before execution; simulation-only work marks this item not applicable.
Evidence hint: applicable laboratory/process authorization and controls, or a simulation-only rationale

### grounding

- **grounding.primary-sources** — Claims about prior materials, mechanisms, models, and measurements are grounded in resolvable primary sources or authoritative databases at the evidence level actually available.
Evidence hint: primary papers, standards, database records, or public datasets read directly

- **grounding.baseline-gap** — The strongest relevant baseline and closest prior work are identified, and any novelty or improvement claim states the exact difference rather than relying on a generic literature gap.
Evidence hint: a direct comparison with the strongest applicable prior result

- **grounding.data-tools-access** — Data provenance, licenses, material-property sources, solver availability, compute, and experimental access are checked before the plan depends on them.
Evidence hint: real access evidence and explicit constraints for data, software, compute, and lab equipment

### model

- **model.physics-and-units** — The governing physics, variables, equations, units, parameter sources, assumptions, and validity range are explicit and dimensionally consistent.
Evidence hint: the implemented model and parameter values with units and provenance

- **model.material-state** — Material behavior reflects the relevant composition, phase, temperature, strain rate, texture, defects, microstructure, and processing history rather than an unjustified generic material card.
Evidence hint: material-state inputs and the evidence supporting each important dependency

- **model.discretization-boundaries** — Geometry, periodic cell or CAD model, discretization, interactions or contact, boundary/initial conditions, loads, ensembles, and solver controls match the physical question.
Evidence hint: actual model inputs plus an explanation of the chosen boundaries and discretization

- **model.calibration-validation-split** — Parameters fitted or selected from data are separated from validation evidence; the evaluation does not reuse its target as an input or tune on hidden answers.
Evidence hint: a declared calibration/selection set and an independent validation set or oracle

### execute

- **execute.real-run** — The claimed calculation or experiment actually ran. Generated scripts, input decks, GUI screenshots, or submitted jobs alone are not solver or instrument results.
Evidence hint: native outputs, logs, job identity, timestamps, and parsed observables from a completed run

- **execute.reproducible-provenance** — Inputs, structures or CAD, material parameters, pseudopotentials or force fields, mesh, software and versions, seeds, hardware, commands, and output files are preserved to the level needed to reproduce the claim.
Evidence hint: the exact executable path, versioned inputs, run command, environment, and native outputs

- **execute.health-failures** — Solver or experiment health is inspected during execution; divergence, non-convergence, unstable dynamics, distorted elements, unphysical states, instrument faults, and failed attempts remain visible and are not relabeled as data.
Evidence hint: diagnostics and retained failure evidence alongside accepted runs

- **execute.capability-boundary** — Unavailable licenses, software, hardware, samples, or instruments produce an explicit statement of what is missing or a clearly labeled surrogate, never a fabricated run.
Evidence hint: real capability discovery and an honest boundary for anything not run

- **execute.physical-safety-compliance** — Any physical experiment or processing run stayed within its authorization, approved procedure, equipment interlocks, and material-handling and disposal controls; non-physical work states that this is not applicable.
Evidence hint: run-specific authorization and safety records, or a non-physical execution rationale

### validate

- **validate.numerical-convergence** — Numerical claims are supported by convergence or stability checks appropriate to the method: mesh/time step/cell size, k-points/cutoff, sampling duration, optimizer tolerance, or another justified control.
Evidence hint: fresh convergence or stability results over the parameters that can change the conclusion

- **validate.physical-consistency** — Units, conservation laws, symmetries, limiting cases, monotonic trends, bounds, and known physical behavior are checked where applicable.
Evidence hint: independent physical sanity checks tied to the actual observables

- **validate.independent-reference** — Headline results are compared like-for-like against an independent analytic result, public benchmark, trusted implementation, published measurement, or new physical experiment under matching conditions.
Evidence hint: raw comparison data with matched material state, geometry, conditions, and metric

- **validate.sensitivity-uncertainty** — Important parameter, model-form, stochastic, and measurement uncertainties are tested or bounded, and conclusions are no stronger than their robustness.
Evidence hint: sensitivity or uncertainty results for the assumptions that could reverse the claim

- **validate.integrity** — The evaluation is independent of optimization and protected against leakage, hard-coded known outputs, edited references, selective run deletion, and comparison across mismatched hardware, conditions, or metrics.
Evidence hint: a frozen evaluator or protocol plus complete raw attempts and like-for-like baselines

### report

- **report.claim-evidence** — Every main claim points to actual calculations, raw data, figures, tables, literature, or experimental records, and the evidence supports its stated scope.
Evidence hint: claim-by-claim traceability to inspectable evidence

- **report.simulation-experiment-boundary** — Predicted, simulated, surrogate, and experimentally measured quantities are distinguished explicitly; a digital result is not described as physical validation.
Evidence hint: clear labels for each evidence type and any missing real-world validation

- **report.reproducibility-limitations** — The delivered result records reproduction instructions, material and process conditions, software or instrument details, uncertainty, negative results, known limitations, and the domain where the conclusion applies.
Evidence hint: a proportional report or paper plus runnable inputs and retained raw evidence

## Run the checks

Run from the project workspace; replace `<this folder>` with this pack's absolute directory:

```sh
python3 '<this folder>/evidence.py' --help
python3 '<this folder>/evidence.py' check --project-root . --stage execute
python3 '<this folder>/evidence.py' check --project-root . --stage validate
python3 '<this folder>/evidence.py' check --project-root . --stage report
```

Create project `research/MATERIALS_EVIDENCE.json` with `version: 1` and a non-empty `evidence` list of `{kind, path}` entries. Paths must be unique, project-relative, contained, existing non-empty files. The allowed kinds and per-check requirements are in [evidence.py](evidence.py). `execute` needs native output, run log, analysis, experimental record, or blocker; `validate` needs validation or blocker; `report` needs report plus both preceding groups. Exit 0 confirms a structurally valid index; exit 1 prints each issue. A blocker can document a bounded negative result; neither a passing index nor job completion proves scientific success. Inspect native evidence and the checks above independently.

## Needs

Python 3.10+; evidence.py uses only the standard library and needs no GPU. Scientific execution needs task-selected data, solver or instrument access, licenses and hardware, and authorization for physical work. Nothing is installed or detected by this pack.

## Role references

Each entry is a bundled file; project output paths within the references are created by the task.

- engineer: [materials-atomistic-simulation.md](skills/engineer/materials-atomistic-simulation.md)

- engineer: [materials-cad-cae-process-simulation.md](skills/engineer/materials-cad-cae-process-simulation.md)

- engineer: [materials-data-literature-grounding.md](skills/engineer/materials-data-literature-grounding.md)

- engineer: [materials-ecosystem-routing.md](skills/engineer/materials-ecosystem-routing.md)

- engineer: [materials-experiment-loop.md](skills/engineer/materials-experiment-loop.md)

- engineer: [materials-research-execution.md](skills/engineer/materials-research-execution.md)

- manager: [materials-research-manager.md](skills/manager/materials-research-manager.md)

- planner: [materials-research-planning.md](skills/planner/materials-research-planning.md)

- reviewer: [materials-research-review.md](skills/reviewer/materials-research-review.md)

- reviewer: [materials-simulation-signoff.md](skills/reviewer/materials-simulation-signoff.md)

- reviewer: [materials-validation-review.md](skills/reviewer/materials-validation-review.md)


## Supporting files

- [LICENSE](LICENSE)

- [evidence.py](evidence.py)
121 changes: 121 additions & 0 deletions packs/materials/evidence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
"""Structural evidence index for materials execution, validation, and reports."""
from __future__ import annotations

import argparse
import json
import sys
from pathlib import Path

EVIDENCE_RELPATH = Path("research/MATERIALS_EVIDENCE.json")
EVIDENCE_KINDS = frozenset({
"source",
"input",
"code",
"native_output",
"run_log",
"analysis",
"experimental_record",
"validation",
"report",
"blocker",
"safety_record",
})
_REQUIRED_KINDS = {
"execute": ({"native_output", "run_log", "analysis", "experimental_record", "blocker"},),
"validate": ({"validation", "blocker"},),
"report": (
{"report"},
{"native_output", "run_log", "analysis", "experimental_record", "blocker"},
{"validation", "blocker"},
),
}


def _inside(root: Path, candidate: Path) -> bool:
try:
candidate.relative_to(root)
return True
except ValueError:
return False


def validate_evidence(project_root: object, stage: str) -> list[str]:
"""Validate indexed evidence paths without judging scientific content."""
root = Path(str(project_root or ".")).resolve()
stage_name = (stage or "").strip().lower()
if stage_name not in _REQUIRED_KINDS:
return [f"unsupported materials evidence stage: {stage_name!r}"]
manifest = root / EVIDENCE_RELPATH
try:
payload = json.loads(manifest.read_text(encoding="utf-8"))
except FileNotFoundError:
return [f"missing {EVIDENCE_RELPATH.as_posix()}"]
except (OSError, json.JSONDecodeError) as exc:
return [f"invalid {EVIDENCE_RELPATH.as_posix()}: {exc}"]
if not isinstance(payload, dict) or payload.get("version") != 1:
return [f"{EVIDENCE_RELPATH.as_posix()} must declare version 1"]
entries = payload.get("evidence")
if not isinstance(entries, list) or not entries:
return [f"{EVIDENCE_RELPATH.as_posix()} must contain a non-empty evidence list"]

issues: list[str] = []
present_kinds: set[str] = set()
seen_paths: set[str] = set()
for index, entry in enumerate(entries):
if not isinstance(entry, dict):
issues.append(f"evidence[{index}] must be an object")
continue
kind = str(entry.get("kind") or "").strip().lower()
relpath = str(entry.get("path") or "").strip()
if kind not in EVIDENCE_KINDS:
issues.append(f"evidence[{index}] has unsupported kind {kind!r}")
else:
present_kinds.add(kind)
if not relpath:
issues.append(f"evidence[{index}] has no path")
continue
if relpath in seen_paths:
issues.append(f"evidence[{index}] repeats path {relpath!r}")
continue
seen_paths.add(relpath)
raw_path = Path(relpath)
if raw_path.is_absolute() or ".." in raw_path.parts:
issues.append(f"evidence[{index}] path must stay project-relative: {relpath!r}")
continue
try:
candidate = (root / raw_path).resolve(strict=True)
except OSError:
issues.append(f"evidence[{index}] path does not exist: {relpath!r}")
continue
if not _inside(root, candidate):
issues.append(f"evidence[{index}] path escapes the project: {relpath!r}")
elif not candidate.is_file():
issues.append(f"evidence[{index}] path is not a file: {relpath!r}")
elif candidate.stat().st_size <= 0:
issues.append(f"evidence[{index}] path is empty: {relpath!r}")

for accepted in _REQUIRED_KINDS[stage_name]:
if not present_kinds.intersection(accepted):
issues.append(
f"{stage_name} requires evidence kind in: {', '.join(sorted(accepted))}"
)
return issues


def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(prog="materials-evidence")
parser.add_argument("command", choices=["check"], nargs="?", default="check")
parser.add_argument("--project-root", default=".")
parser.add_argument("--stage", choices=sorted(_REQUIRED_KINDS), required=True)
args = parser.parse_args(argv)
issues = validate_evidence(args.project_root, args.stage)
if issues:
for issue in issues:
print(f"ERROR: {issue}", file=sys.stderr)
return 1
print(f"materials evidence valid for {args.stage}")
return 0


if __name__ == "__main__":
raise SystemExit(main())
Loading
Loading