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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.json text eol=lf
docs/registry/views/** text eol=lf
examples/** text eol=lf
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ blank_issues_enabled: true

contact_links:
- name: Security vulnerability report (private)
url: https://github.com/ClaimBound/claimbound-evidence/security/advisories/new
url: https://github.com/protocolith/protocolith/security/advisories/new
about: Use GitHub Security Advisories instead of opening a public issue for vulnerabilities or sensitive disclosures.

- name: Code of Conduct process question (public)
url: https://github.com/ClaimBound/claimbound-evidence/issues/new?labels=conduct&title=%5Bconduct-process%5D%20
url: https://github.com/protocolith/protocolith/issues/new?labels=conduct&title=%5Bconduct-process%5D%20
about: Use only for non-sensitive Code of Conduct process questions. Do not post private or personal details in public issues.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/evidence_request.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Evidence request
description: Request a ClaimBound evidence card for a narrow public claim.
description: Request a Protocolith evidence card for a narrow public claim.
title: "[Evidence request]: "
labels:
- evidence-request
body:
- type: markdown
attributes:
value: |
Use this only for a narrow public claim that could become a ClaimBound
Use this only for a narrow public claim that could become a Protocolith
protocol, runbook, checklist and evidence card.

A request is not evidence. It starts as `GRAY_DRAFT_NOT_EXECUTED` until
Expand All @@ -31,8 +31,8 @@ body:
- type: textarea
id: narrow_question
attributes:
label: Narrow ClaimBound question
description: What exact protocol-bound question should ClaimBound answer?
label: Narrow Protocolith question
description: What exact protocol-bound question should Protocolith answer?
placeholder: "Can this claim be rerun under fixed source, prompt, scoring and status rules?"
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body:
value: |
Enhancements stay within public evidence boundaries: reproducibility honesty,
pre-registered comparators, sanitized evidence summaries. Non-goals belong in
[docs/CLAIMS.md](https://github.com/ClaimBound/claimbound-evidence/blob/main/docs/CLAIMS.md).
[docs/CLAIMS.md](https://github.com/protocolith/protocolith/blob/main/docs/CLAIMS.md).

- type: textarea
id: problem
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/reproduction_request.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Reproduction request
description: Ask for an independent rerun of an existing ClaimBound evidence card.
description: Ask for an independent rerun of an existing Protocolith evidence card.
title: "[Reproduction request]: "
labels:
- reproduction-request
body:
- type: markdown
attributes:
value: |
Use this when an existing ClaimBound card should be rerun by another
Use this when an existing Protocolith card should be rerun by another
operator. A request is not reproduction evidence until a rerun PR adds
sanitized artifacts, a reproduction card and registry update.
- type: input
id: evidence_card
attributes:
label: Evidence card URL
description: Link to the existing card to reproduce.
placeholder: "https://github.com/ClaimBound/claimbound-evidence/blob/main/docs/evidence_cards/CLAIMBOUND-NASA-POWER-D103-2026-04-29.json"
placeholder: "https://github.com/protocolith/protocolith/blob/main/docs/evidence_cards/PLITH-NASA-POWER-D103-2026-04-29.json"
validations:
required: true
- type: input
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/source_drift_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Source drift report
description: Report that a public source used by a ClaimBound card has changed.
description: Report that a public source used by a Protocolith card has changed.
title: "[Source drift]: "
labels:
- source-drift
Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE/reproduction_rerun.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## I Reproduced This Card

Use this PR template for an independent rerun or reproduction attempt of an
existing ClaimBound evidence card.
existing Protocolith evidence card.

## Card Reproduced

Expand Down Expand Up @@ -47,7 +47,7 @@ hashes or manual judgment that became necessary.

## Verification

- [ ] `uv run claimbound validate-all` passes.
- [ ] `uv run protocolith validate-all` passes.
- [ ] `uv run --extra dev python -m pytest -q` passes.
- [ ] The PR does not claim model superiority, deployment readiness,
certification or correctness outside the reproduced protocol.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ on:
- "mkdocs.yml"
- "scripts/build_docs_site.py"
- "scripts/gen_cli_reference.py"
- "src/claimbound_evidence/cli.py"
- "docs/*.md"
- "src/protocolith/cli.py"
- "docs/**"
- "examples/quickstart/**"
- "docs/assets/logo/**"
- "CONTRIBUTING.md"
- "CHANGELOG.md"
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths:
- ".github/workflows/pages.yml"
- ".gitattributes"
- "docs/evidence_cards/CLAIMBOUND-CB7K-*.json"
- "docs/evidence_cards/PLITH-CB7K-*.json"
- "docs/public_claims/domains/**"
- "artifacts/claim_batch_*_execution_manifest.json"
- "artifacts/claim_batch_*_manual_review.json"
Expand All @@ -30,9 +30,6 @@ on:
- "CONTRIBUTING.md"
- "CHANGELOG.md"
- "SECURITY.md"
- "docs/manifold_monte_neo_fair_race/**"
- "docs/protocols/MANIFOLD_MONTE_NEO_FAIR_RACE_D001_PREREG_CHARTER.md"
- "artifacts/manifold_monte_neo_fair_race_d001/**"

permissions:
contents: read
Expand Down Expand Up @@ -64,8 +61,6 @@ jobs:
cp -R docs/esa/atlas _site/esa
cp -R docs/nasa/atlas _site/nasa
cp -R docs/leqembi _site/leqembi
mkdir -p _site/manifold_monte_neo_fair_race
cp docs/manifold_monte_neo_fair_race/index.html _site/manifold_monte_neo_fair_race/index.html
python3 scripts/build_public_claim_atlas_v2.py --output _site/claims
cp docs/atlas_home.html _site/index.html
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pypi-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
python -m venv "$RUNNER_TEMP/smoke"
if [ "$RUNNER_OS" = "Windows" ]; then BIN="$RUNNER_TEMP/smoke/Scripts"; else BIN="$RUNNER_TEMP/smoke/bin"; fi
echo "BIN=$BIN" >> "$GITHUB_ENV"
SPEC="claimbound-evidence"
if [ -n "$VERSION" ]; then SPEC="claimbound-evidence==${VERSION#v}"; fi
SPEC="protocolith"
if [ -n "$VERSION" ]; then SPEC="protocolith==${VERSION#v}"; fi
# A new release can take a few minutes to appear on the index.
for attempt in 1 2 3 4 5 6; do
"$BIN/python" -m pip install --no-cache-dir "$SPEC" && break
Expand All @@ -46,12 +46,12 @@ jobs:
- name: Run card-level commands
shell: bash
run: |
"$BIN/claimbound" --version
"$BIN/claimbound" doctor
cp docs/evidence_cards/CLAIMBOUND-NASA-POWER-D103-2026-04-29.json "$RUNNER_TEMP/card.json"
"$BIN/protocolith" --version
"$BIN/protocolith" doctor
cp docs/evidence_cards/PLITH-NASA-POWER-D103-2026-04-29.json "$RUNNER_TEMP/card.json"
cd "$RUNNER_TEMP"
"$BIN/claimbound" validate-card card.json
"$BIN/claimbound" inspect card card.json
"$BIN/protocolith" validate-card card.json
"$BIN/protocolith" inspect card card.json
set +e
"$BIN/claimbound" validate-all
"$BIN/protocolith" validate-all
test $? -eq 2
50 changes: 47 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
os: ubuntu-latest
python: "3.12"
pytest_args: "-n auto -q"
cov_args: "--cov=claimbound_evidence --cov-report=term --cov-report=xml:coverage.xml"
cov_args: "--cov=protocolith --cov-report=term --cov-report=xml:coverage.xml"
- job: "pytest-extra (ubuntu-latest, python 3.14)"
os: ubuntu-latest
python: "3.14"
Expand All @@ -37,6 +37,34 @@ jobs:
os: macos-latest
python: "3.12"
pytest_args: "-n auto -q"
- job: "pytest-extra (ubuntu-latest, python 3.11)"
os: ubuntu-latest
python: "3.11"
pytest_args: "-n auto -q"
- job: "pytest-extra (ubuntu-latest, python 3.15)"
os: ubuntu-latest
python: "3.15"
pytest_args: "-n auto -q"
- job: "pytest-extra (windows-latest, python 3.11)"
os: windows-latest
python: "3.11"
pytest_args: "-q"
- job: "pytest-extra (windows-latest, python 3.15)"
os: windows-latest
python: "3.15"
pytest_args: "-q"
- job: "pytest-extra (macos-latest, python 3.11)"
os: macos-latest
python: "3.11"
pytest_args: "-n auto -q"
- job: "pytest-extra (macos-latest, python 3.15)"
os: macos-latest
python: "3.15"
pytest_args: "-n auto -q"
- job: "pytest-extra (ubuntu-latest, python 3.13)"
os: ubuntu-latest
python: "3.13"
pytest_args: "-n auto -q"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
Expand All @@ -45,8 +73,8 @@ jobs:
- name: Lint
if: matrix.cov_args
run: uv run ruff check src tests
- run: uv run claimbound doctor
- run: uv run claimbound validate-all
- run: uv run protocolith doctor
- run: uv run protocolith validate-all
- name: Run pytest
id: pytest
continue-on-error: true
Expand All @@ -68,3 +96,19 @@ jobs:
- name: Preserve pytest failure
if: steps.pytest.outcome == 'failure'
run: exit 1

core-coverage:
# The core is held at 100% line and branch coverage on every platform; the other platform's lock module is
# excluded by its own pragma.
name: core coverage (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- run: uv sync --extra dev --python 3.13
- name: Core tests with a 100% gate
run: uv run pytest tests/core tests/core_hardening --cov=protocolith.core --cov-branch --cov-report=term-missing --cov-fail-under=100 -q
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ raw/
*.key
*.pem
*.jsonl
.claimbound_runs/
.protocolith_runs/
tmp/
tmp/primary_sources/
*.bak.*
Expand Down
8 changes: 4 additions & 4 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Canonical public attribution for repository-maintainer commits.
ClaimBound <noreply@claimbound.org> Rostyslav S. <63606118+NeoZorK@users.noreply.github.com>
ClaimBound <noreply@claimbound.org> Rostyslav Shcherbyna <63606118+NeoZorK@users.noreply.github.com>
ClaimBound <noreply@claimbound.org> NeoZorK <63606118+NeoZorK@users.noreply.github.com>
ClaimBound <noreply@claimbound.org> Ростислав Щербина <neozork@protonmail.com>
Protocolith <noreply@protocolith.org> Rostyslav S. <63606118+NeoZorK@users.noreply.github.com>
Protocolith <noreply@protocolith.org> Rostyslav Shcherbyna <63606118+NeoZorK@users.noreply.github.com>
Protocolith <noreply@protocolith.org> NeoZorK <63606118+NeoZorK@users.noreply.github.com>
Protocolith <noreply@protocolith.org> Ростислав Щербина <neozork@protonmail.com>
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "ClaimBound Evidence",
"title": "Protocolith",
"upload_type": "software",
"creators": [
{
Expand Down
11 changes: 8 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ The phases in [docs/ROADMAP_2026.md](docs/ROADMAP_2026.md) were released for imp
2026-11-06 (0.5.0). Status is tracked in [docs/PLANNED_NOT_SHIPPED.md](docs/PLANNED_NOT_SHIPPED.md); keep it
truthful. Version `1.0.0` stays reserved until an independent external rerun exists.

Do not touch files or issues about the Manifold fair race
(`docs/manifold_monte_neo_fair_race/`, related scripts, artifacts and issues).
Manifold is banned from this project entirely (owner decision, 2026-11-14): do not read, edit, run,
mention or propose anything about it, and do not add any Manifold material, script, artifact, card or issue.
The fair-race material was removed from the tree; it remains only in git history, which must not be rewritten.
If a task touches Manifold, stop and tell the owner.
Never add private background technology or private data to this repository.

## Working plan
Expand All @@ -49,9 +51,12 @@ handoff log.

```bash
uv sync --extra dev
uv run claimbound validate-all
uv run protocolith validate-all
uv run --extra dev pytest -q -n auto
uv build && uvx twine check dist/*
```

If the uv cache is not writable in a sandbox, set `UV_CACHE_DIR` to a temp directory.

Cross-platform and Python-version checks run in GitHub CI (`.github/workflows/tests.yml`). Do not recreate
them locally in Docker or Apple containers; keep local checks to quick host runs (unit tests, `ruff`).
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# Changelog

## Unreleased

### Changed

- **Renamed to Protocolith** (was ClaimBound Evidence). Package and module `protocolith`, command `protocolith` with
the short alias `plith`. Releases up to 0.5.0 remain available under the old name.
- **Evidence ids use the `PLITH-` prefix.** Every card keeps its old id in `legacy_evidence_id`;
`docs/MIGRATION_ID_MAP.json` maps old to new ids with file hashes. Hash-pinned artifacts keep their original text.
- **The core uses only the standard library.** `numpy` moved to the `runners` extra and the PDF libraries to the
`campaign` extra; commands that need them explain what to install.
- **Python 3.11 to 3.15** are supported (was 3.12 and newer).
- Core specification draft: [docs/spec/CORE_SPEC.md](docs/spec/CORE_SPEC.md).

- **`evidence_id` is unique per record**: `PLITH-<protocol_id>-<date>-<seq>`, where `seq` is the ledger `seq` of the
record (six digits), so two records of one protocol on one day can both be issued. Ledger format `v` stays 1; this is a
0.6.0 pre-release change; a ledger written by an earlier development build reports `BAD_CARD` on its `issue` entries.
- `log` accepts `--protocol`, `--type`, `--status` and `--tail`; `protocolith_log` takes the same arguments.
- Errors print a one-line `hint (CODE): ...` (and `error.hint` in JSON) where advice is cheap. Exit codes are unchanged.

### Added

- `protocolith atlas` (also `core.build_atlas` and the MCP tool `protocolith_atlas`): one self-contained, offline HTML
atlas of experiments from a ledger and/or evidence card directories, with summary tiles, status chart and timeline,
search, filters, a sortable paged table, a detail drawer with permalinks and keyboard navigation, light and dark
themes and a print style. English UI catalog `atlas_i18n/en.json`; further languages only from user files
(`--i18n DIR`). A ledger that fails verification still produces the atlas with a red banner and exit code 1.
See [the atlas guide](docs/guides/atlas.md).
- `protocolith summary [--protocol ID]` (also `core.summary` and the MCP tool `protocolith_summary`): verdict, head,
counts by entry type and result status, a per-protocol table and the problems found, in one fast call.
- `protocolith show SEQ` (`core.show`, `protocolith_show`): one entry with its protocol context and references.
- `protocolith capture [--file PATH ...] [--env]` (`core.capture`, `protocolith_capture`): a JSON fragment with
environment and input file hashes for a record `outcome`; runs nothing, reads no environment values, confines files to
the working directory (`BAD_PATH`).
- `protocolith schema [NAME]` (`core.schema_for`, `protocolith_schema`): JSON Schema (draft 2020-12) generated from the
verifier's field rules.
- MCP resources `protocolith://summary`, `protocolith://ledger` and `protocolith://schema/<name>`
(`resources/list`, `resources/read`).
- `protocolith init`: create an empty store (idempotent).
- Guides: [Use Protocolith from an AI agent](docs/guides/ai-agent-mcp.md) and
[Query the ledger quickly](docs/guides/query-the-ledger.md); reference pages for [MCP](docs/reference/mcp.md) and the
[Python API](docs/reference/python-api.md); `SUPPORT.md`.

### Fixed

- A test fixture no longer depends on the developer's global git signing configuration.

### Removed

- The peer-comparison fair-race material was removed from the tree at the owner's decision (2026-11-14): the card with
registry sequence 8073, its protocol charter, artifacts, two runner scripts, the atlas link and the Pages workflow
entries. The registry now holds 8072 cards and its statistics and static views were regenerated. The removed files
remain in git history before this change; history was not rewritten.

## 0.5.0 - 2026-11-06

### Added
Expand Down
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cff-version: 1.2.0
message: "If you use ClaimBound Evidence, please cite it using these metadata."
title: "ClaimBound Evidence"
message: "If you use Protocolith, please cite it using these metadata."
title: "Protocolith"
type: software
authors:
- family-names: "Shcherbyna"
Expand All @@ -9,7 +9,7 @@ authors:
license: Apache-2.0
version: "0.5.0"
date-released: "2026-11-06"
repository-code: "https://github.com/ClaimBound/claimbound-evidence"
repository-code: "https://github.com/protocolith/protocolith"
abstract: >-
Evidence cards, a validator and a static registry for bounded, reproducible claims
about public data and software. Cards record protocol, sources, hashes, result status,
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ SECURITY policy.

## Scope

This Code applies to all interaction spaces tied to contributing to ClaimBound
This Code applies to all interaction spaces tied to contributing to Protocolith
Evidence, including issues, discussions, pull requests, and project
communications where contributors meet.

Expand Down
Loading
Loading