deltasci 0.10.0__tar.gz
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.
- deltasci-0.10.0/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- deltasci-0.10.0/.github/ISSUE_TEMPLATE/domain_pack_proposal.md +48 -0
- deltasci-0.10.0/.github/ISSUE_TEMPLATE/feature_request.md +29 -0
- deltasci-0.10.0/.github/workflows/ci.yml +31 -0
- deltasci-0.10.0/.github/workflows/release.yml +47 -0
- deltasci-0.10.0/.gitignore +50 -0
- deltasci-0.10.0/CHANGELOG.md +522 -0
- deltasci-0.10.0/CODE_OF_CONDUCT.md +35 -0
- deltasci-0.10.0/CONTRIBUTING.md +64 -0
- deltasci-0.10.0/LICENSE +21 -0
- deltasci-0.10.0/PKG-INFO +344 -0
- deltasci-0.10.0/README.md +297 -0
- deltasci-0.10.0/action.yml +90 -0
- deltasci-0.10.0/discovery/reports/ecosystem_scan.md +119 -0
- deltasci-0.10.0/discovery/reports/ecosystem_scan_2026-11.md +71 -0
- deltasci-0.10.0/discovery/reports/gap_analysis.md +157 -0
- deltasci-0.10.0/discovery/reports/gap_analysis_2026-11.md +60 -0
- deltasci-0.10.0/discovery/reports/roadmap.md +181 -0
- deltasci-0.10.0/discovery/reports/verifier_competition_scan.md +56 -0
- deltasci-0.10.0/pyproject.toml +87 -0
- deltasci-0.10.0/skill/SKILL.md +141 -0
- deltasci-0.10.0/skill/install.sh +29 -0
- deltasci-0.10.0/skill/prompts/domain_round.md +55 -0
- deltasci-0.10.0/skill/prompts/engineer_round.md +48 -0
- deltasci-0.10.0/skill/prompts/synthesis_round.md +73 -0
- deltasci-0.10.0/skill/references/coverage_axis.md +56 -0
- deltasci-0.10.0/skill/references/evidence_taxonomy.md +62 -0
- deltasci-0.10.0/skill/references/grounding_rules.md +62 -0
- deltasci-0.10.0/skill-ground/SKILL.md +144 -0
- deltasci-0.10.0/skill-ground/install.sh +30 -0
- deltasci-0.10.0/src/deltasci/__init__.py +56 -0
- deltasci-0.10.0/src/deltasci/__main__.py +4 -0
- deltasci-0.10.0/src/deltasci/acquisition/__init__.py +55 -0
- deltasci-0.10.0/src/deltasci/acquisition/discover_api.py +429 -0
- deltasci-0.10.0/src/deltasci/acquisition/marco_strata.py +309 -0
- deltasci-0.10.0/src/deltasci/audit/__init__.py +48 -0
- deltasci-0.10.0/src/deltasci/audit/base.py +116 -0
- deltasci-0.10.0/src/deltasci/audit/cache.py +86 -0
- deltasci-0.10.0/src/deltasci/audit/citations/__init__.py +15 -0
- deltasci-0.10.0/src/deltasci/audit/citations/_match.py +129 -0
- deltasci-0.10.0/src/deltasci/audit/citations/_retraction.py +60 -0
- deltasci-0.10.0/src/deltasci/audit/citations/arxiv.py +110 -0
- deltasci-0.10.0/src/deltasci/audit/citations/corroboration.py +101 -0
- deltasci-0.10.0/src/deltasci/audit/citations/crossref.py +109 -0
- deltasci-0.10.0/src/deltasci/audit/citations/datacite.py +97 -0
- deltasci-0.10.0/src/deltasci/audit/citations/openalex.py +104 -0
- deltasci-0.10.0/src/deltasci/audit/citations/pubmed.py +134 -0
- deltasci-0.10.0/src/deltasci/audit/citations/semscholar.py +132 -0
- deltasci-0.10.0/src/deltasci/audit/datasets/__init__.py +3 -0
- deltasci-0.10.0/src/deltasci/audit/datasets/geo.py +61 -0
- deltasci-0.10.0/src/deltasci/audit/extractor.py +109 -0
- deltasci-0.10.0/src/deltasci/audit/http.py +84 -0
- deltasci-0.10.0/src/deltasci/audit/intake.py +234 -0
- deltasci-0.10.0/src/deltasci/audit/quotes/__init__.py +3 -0
- deltasci-0.10.0/src/deltasci/audit/quotes/verifier.py +143 -0
- deltasci-0.10.0/src/deltasci/audit/report_md.py +148 -0
- deltasci-0.10.0/src/deltasci/audit/repos/__init__.py +4 -0
- deltasci-0.10.0/src/deltasci/audit/repos/github.py +63 -0
- deltasci-0.10.0/src/deltasci/audit/repos/huggingface.py +63 -0
- deltasci-0.10.0/src/deltasci/audit/runner.py +170 -0
- deltasci-0.10.0/src/deltasci/audit/support.py +188 -0
- deltasci-0.10.0/src/deltasci/challenger.py +174 -0
- deltasci-0.10.0/src/deltasci/cli.py +1759 -0
- deltasci-0.10.0/src/deltasci/compose.py +141 -0
- deltasci-0.10.0/src/deltasci/config.py +45 -0
- deltasci-0.10.0/src/deltasci/diagrams/__init__.py +44 -0
- deltasci-0.10.0/src/deltasci/diagrams/generator.py +187 -0
- deltasci-0.10.0/src/deltasci/engine.py +338 -0
- deltasci-0.10.0/src/deltasci/gap.py +247 -0
- deltasci-0.10.0/src/deltasci/grounding.py +198 -0
- deltasci-0.10.0/src/deltasci/hypothesis.py +135 -0
- deltasci-0.10.0/src/deltasci/interactive.py +153 -0
- deltasci-0.10.0/src/deltasci/layout.py +225 -0
- deltasci-0.10.0/src/deltasci/llm/__init__.py +42 -0
- deltasci-0.10.0/src/deltasci/llm/anthropic.py +35 -0
- deltasci-0.10.0/src/deltasci/llm/base.py +33 -0
- deltasci-0.10.0/src/deltasci/llm/mock.py +104 -0
- deltasci-0.10.0/src/deltasci/llm/openai.py +34 -0
- deltasci-0.10.0/src/deltasci/mcp_server.py +66 -0
- deltasci-0.10.0/src/deltasci/notebook/__init__.py +31 -0
- deltasci-0.10.0/src/deltasci/notebook/cells.py +38 -0
- deltasci-0.10.0/src/deltasci/notebook/generator.py +169 -0
- deltasci-0.10.0/src/deltasci/packs/__init__.py +143 -0
- deltasci-0.10.0/src/deltasci/packs/biomed/lens.md +40 -0
- deltasci-0.10.0/src/deltasci/packs/biomed/notebook.py +483 -0
- deltasci-0.10.0/src/deltasci/packs/biomed/pack.toml +18 -0
- deltasci-0.10.0/src/deltasci/packs/biomed/requirements.txt +13 -0
- deltasci-0.10.0/src/deltasci/packs/biomed-serology/lens.md +83 -0
- deltasci-0.10.0/src/deltasci/packs/biomed-serology/notebook.py +571 -0
- deltasci-0.10.0/src/deltasci/packs/biomed-serology/pack.toml +18 -0
- deltasci-0.10.0/src/deltasci/packs/biomed-serology/requirements.txt +21 -0
- deltasci-0.10.0/src/deltasci/packs/climate/lens.md +50 -0
- deltasci-0.10.0/src/deltasci/packs/climate/notebook.py +330 -0
- deltasci-0.10.0/src/deltasci/packs/climate/pack.toml +18 -0
- deltasci-0.10.0/src/deltasci/packs/climate/requirements.txt +12 -0
- deltasci-0.10.0/src/deltasci/packs/materials/lens.md +46 -0
- deltasci-0.10.0/src/deltasci/packs/materials/notebook.py +328 -0
- deltasci-0.10.0/src/deltasci/packs/materials/pack.toml +18 -0
- deltasci-0.10.0/src/deltasci/packs/materials/requirements.txt +10 -0
- deltasci-0.10.0/src/deltasci/paper.py +503 -0
- deltasci-0.10.0/src/deltasci/paper_llm.py +86 -0
- deltasci-0.10.0/src/deltasci/postexec/__init__.py +41 -0
- deltasci-0.10.0/src/deltasci/postexec/analyzer.py +500 -0
- deltasci-0.10.0/src/deltasci/postexec/renderer.py +184 -0
- deltasci-0.10.0/src/deltasci/preflight/__init__.py +16 -0
- deltasci-0.10.0/src/deltasci/preflight/analyzer.py +342 -0
- deltasci-0.10.0/src/deltasci/protocol.py +353 -0
- deltasci-0.10.0/src/deltasci/roles.py +236 -0
- deltasci-0.10.0/src/deltasci/scan.py +338 -0
- deltasci-0.10.0/src/deltasci/structural/__init__.py +31 -0
- deltasci-0.10.0/src/deltasci/structural/dssp_sa.py +248 -0
- deltasci-0.10.0/src/deltasci/synthesis.py +230 -0
- deltasci-0.10.0/src/deltasci/transcript.py +124 -0
- deltasci-0.10.0/src/deltasci/verify.py +73 -0
- deltasci-0.10.0/src/deltasci/workflow.py +222 -0
- deltasci-0.10.0/tests/conftest.py +120 -0
- deltasci-0.10.0/tests/test_audit_extractor.py +77 -0
- deltasci-0.10.0/tests/test_audit_match.py +111 -0
- deltasci-0.10.0/tests/test_audit_runner.py +106 -0
- deltasci-0.10.0/tests/test_audit_semscholar.py +197 -0
- deltasci-0.10.0/tests/test_cli.py +108 -0
- deltasci-0.10.0/tests/test_compose.py +67 -0
- deltasci-0.10.0/tests/test_datacite.py +50 -0
- deltasci-0.10.0/tests/test_diagrams.py +149 -0
- deltasci-0.10.0/tests/test_discover_api.py +117 -0
- deltasci-0.10.0/tests/test_engine.py +105 -0
- deltasci-0.10.0/tests/test_gap.py +151 -0
- deltasci-0.10.0/tests/test_grounding.py +107 -0
- deltasci-0.10.0/tests/test_http_retry.py +68 -0
- deltasci-0.10.0/tests/test_hypothesis_schema.py +93 -0
- deltasci-0.10.0/tests/test_intake.py +131 -0
- deltasci-0.10.0/tests/test_interactive.py +164 -0
- deltasci-0.10.0/tests/test_layout_iterations.py +104 -0
- deltasci-0.10.0/tests/test_marco_strata.py +230 -0
- deltasci-0.10.0/tests/test_notebook.py +164 -0
- deltasci-0.10.0/tests/test_packs.py +58 -0
- deltasci-0.10.0/tests/test_paper.py +98 -0
- deltasci-0.10.0/tests/test_paper_llm.py +81 -0
- deltasci-0.10.0/tests/test_paper_verify.py +105 -0
- deltasci-0.10.0/tests/test_postexec.py +312 -0
- deltasci-0.10.0/tests/test_preflight.py +145 -0
- deltasci-0.10.0/tests/test_protocol_risks_challenge.py +233 -0
- deltasci-0.10.0/tests/test_retraction.py +101 -0
- deltasci-0.10.0/tests/test_scan.py +131 -0
- deltasci-0.10.0/tests/test_structural_dssp.py +209 -0
- deltasci-0.10.0/tests/test_support.py +102 -0
- deltasci-0.10.0/tests/test_verify_api.py +86 -0
- deltasci-0.10.0/tests/test_verify_cli.py +73 -0
- deltasci-0.10.0/tests/test_workflow.py +105 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Something doesn't work the way you expected
|
|
4
|
+
title: "[bug] "
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What happened
|
|
9
|
+
|
|
10
|
+
A clear description of the bug.
|
|
11
|
+
|
|
12
|
+
## What you expected
|
|
13
|
+
|
|
14
|
+
What you thought would happen instead.
|
|
15
|
+
|
|
16
|
+
## Reproducer
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
deltasci ...
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If you can reduce it to a `--llm mock` case, please do — that makes it easy for us to repro without API keys.
|
|
23
|
+
|
|
24
|
+
## Environment
|
|
25
|
+
|
|
26
|
+
- DeltaScience version: `deltasci -V`
|
|
27
|
+
- Python version:
|
|
28
|
+
- OS:
|
|
29
|
+
- LLM provider: anthropic | openai | mock | other
|
|
30
|
+
- Domain pack: biomed | materials | climate | custom (please share the pack)
|
|
31
|
+
|
|
32
|
+
## Additional context
|
|
33
|
+
|
|
34
|
+
Logs, transcripts, or screenshots if relevant.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Domain pack proposal
|
|
3
|
+
about: Propose a new built-in domain pack (neuroscience, chemistry, ecology, etc.)
|
|
4
|
+
title: "[pack] propose: <domain>"
|
|
5
|
+
labels: domain-pack, enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Domain
|
|
9
|
+
|
|
10
|
+
What scientific domain does this pack target? (e.g., "neuroscience — systems and computational neuro, with an emphasis on Neuropixels-era multi-region recording")
|
|
11
|
+
|
|
12
|
+
## Target user
|
|
13
|
+
|
|
14
|
+
Who would use this pack? (PhD student, postdoc, PI, role)
|
|
15
|
+
|
|
16
|
+
## Datasets and benchmarks the lens names
|
|
17
|
+
|
|
18
|
+
List the canonical datasets / benchmarks / repositories this domain expects. We use these to anchor the lens.
|
|
19
|
+
|
|
20
|
+
- Dataset 1:
|
|
21
|
+
- Benchmark 1:
|
|
22
|
+
- Reference repo 1:
|
|
23
|
+
|
|
24
|
+
## Proposed scoring rubric axes
|
|
25
|
+
|
|
26
|
+
3-5 axes that matter most for evaluating ideas in this domain. Each will get a 1-5 score in the synthesized hypothesis. Examples:
|
|
27
|
+
|
|
28
|
+
- `data_availability`
|
|
29
|
+
- `technical_feasibility`
|
|
30
|
+
- `<domain-specific axis>`
|
|
31
|
+
- `novelty`
|
|
32
|
+
- `<domain-specific axis>`
|
|
33
|
+
|
|
34
|
+
## Common pitfalls in this domain
|
|
35
|
+
|
|
36
|
+
What apparent-but-fake results does this domain see often? What confounds, distribution shifts, or evaluation traps do experts immediately spot?
|
|
37
|
+
|
|
38
|
+
## Draft files (if you have them)
|
|
39
|
+
|
|
40
|
+
Paste your draft `pack.toml` and `lens.md` here, or link to a fork. We'll iterate together.
|
|
41
|
+
|
|
42
|
+
## Validation
|
|
43
|
+
|
|
44
|
+
Have you run `deltasci validate-pack` on it? Have you run `deltasci demo --pack` against it with `--llm mock`?
|
|
45
|
+
|
|
46
|
+
- [ ] `validate-pack` passes
|
|
47
|
+
- [ ] `demo --llm mock` runs end-to-end
|
|
48
|
+
- [ ] One real-LLM run attached as a transcript
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest a feature for the engine, CLI, or skill bundle
|
|
4
|
+
title: "[feature] "
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What you want to do
|
|
9
|
+
|
|
10
|
+
Describe the use case in 1-3 sentences. (For new domain packs, use the **domain pack proposal** template instead.)
|
|
11
|
+
|
|
12
|
+
## Why this fits DeltaScience scope
|
|
13
|
+
|
|
14
|
+
DeltaScience is intentionally small. We're more likely to merge features that:
|
|
15
|
+
|
|
16
|
+
- Improve grounding rigor.
|
|
17
|
+
- Add an LLM provider behind an `extras_require`.
|
|
18
|
+
- Improve domain pack ergonomics.
|
|
19
|
+
- Add a stable, documented extension point.
|
|
20
|
+
|
|
21
|
+
We're less likely to merge features that pull DeltaScience into paper writing, experiment running, or literature retrieval.
|
|
22
|
+
|
|
23
|
+
## Sketch of the change
|
|
24
|
+
|
|
25
|
+
- API or CLI surface area:
|
|
26
|
+
- New dependencies:
|
|
27
|
+
- Backwards-compatible? yes / no:
|
|
28
|
+
|
|
29
|
+
## Alternatives you considered
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.10", "3.12"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- run: python -m pip install -e ".[dev]"
|
|
20
|
+
- run: python -m pytest -q -m "not live"
|
|
21
|
+
|
|
22
|
+
build:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: actions/setup-python@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version: "3.12"
|
|
29
|
+
- run: python -m pip install build twine
|
|
30
|
+
- run: python -m build
|
|
31
|
+
- run: python -m twine check dist/*
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Push a tag like v0.10.0 → build, check, publish to PyPI via Trusted Publishing (OIDC).
|
|
4
|
+
# No API token is stored anywhere. One-time setup on PyPI (pending publisher):
|
|
5
|
+
# owner: boheling · repository: deltasci · workflow: release.yml · environment: pypi
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags: ["v*"]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.12"
|
|
18
|
+
- name: Tag must match package version
|
|
19
|
+
run: |
|
|
20
|
+
pkg=$(python -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
21
|
+
if [ "v$pkg" != "$GITHUB_REF_NAME" ]; then
|
|
22
|
+
echo "::error::tag $GITHUB_REF_NAME does not match pyproject version v$pkg"
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
25
|
+
- run: python -m pip install -e ".[dev]" build twine
|
|
26
|
+
- run: python -m pytest -q -m "not live"
|
|
27
|
+
- run: python -m build
|
|
28
|
+
- run: python -m twine check dist/*
|
|
29
|
+
- uses: actions/upload-artifact@v4
|
|
30
|
+
with:
|
|
31
|
+
name: dist
|
|
32
|
+
path: dist/
|
|
33
|
+
|
|
34
|
+
publish:
|
|
35
|
+
needs: build
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
environment:
|
|
38
|
+
name: pypi
|
|
39
|
+
url: https://pypi.org/project/deltasci/
|
|
40
|
+
permissions:
|
|
41
|
+
id-token: write # OIDC token for PyPI Trusted Publishing
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/download-artifact@v4
|
|
44
|
+
with:
|
|
45
|
+
name: dist
|
|
46
|
+
path: dist/
|
|
47
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
*.egg
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
.eggs/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.coverage
|
|
10
|
+
htmlcov/
|
|
11
|
+
.tox/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.ruff_cache/
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
env/
|
|
17
|
+
.env
|
|
18
|
+
.idea/
|
|
19
|
+
.vscode/
|
|
20
|
+
*.swp
|
|
21
|
+
.DS_Store
|
|
22
|
+
deltasci-output/
|
|
23
|
+
|
|
24
|
+
# web (Next.js)
|
|
25
|
+
node_modules/
|
|
26
|
+
web/node_modules/
|
|
27
|
+
web/.next/
|
|
28
|
+
web/out/
|
|
29
|
+
*.tsbuildinfo
|
|
30
|
+
|
|
31
|
+
# browser-automation artifacts
|
|
32
|
+
.playwright-mcp/
|
|
33
|
+
|
|
34
|
+
# scratch
|
|
35
|
+
*.tmp
|
|
36
|
+
|
|
37
|
+
# design/dev scratch screenshots (root-level PNGs)
|
|
38
|
+
/*.png
|
|
39
|
+
|
|
40
|
+
# scratch HTML prototypes (the published one lives in docs/)
|
|
41
|
+
/live-room-prototype.html
|
|
42
|
+
/reasoning-room-prototype.html
|
|
43
|
+
/showcase-*.html
|
|
44
|
+
|
|
45
|
+
# local data caches & fixtures
|
|
46
|
+
data/_marco_strata_cache/
|
|
47
|
+
data/*.fasta
|
|
48
|
+
|
|
49
|
+
# embedded repo, not a submodule here
|
|
50
|
+
tools/HATS/
|