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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.json text eol=lf
docs/registry/views/** text eol=lf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ tmp/primary_sources/
.docs_build/
_site/
packaging/build/
.release_gate/
13 changes: 5 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@ working in this repository. They are binding and override tool defaults.
- Raw payloads stay local (`raw_payload_committed: false`).
- See [MAINTAINER_BOUNDARY.md](MAINTAINER_BOUNDARY.md) and [GOVERNANCE.md](GOVERNANCE.md).

## Reserved roadmap work

Items listed in [docs/PLANNED_NOT_SHIPPED.md](docs/PLANNED_NOT_SHIPPED.md) and the
phases of [docs/ROADMAP_2026.md](docs/ROADMAP_2026.md) (SourceProbe, scaffold
hardening, run-root/deviation logs, public AI protocol, static registry views,
independent rerun tooling, schema/validator hardening, accessibility pass) are
reserved. Do not implement them without explicit owner approval. Keep releases on
`0.4.x`; `0.5.0` and later are reserved for those milestones.
## Roadmap work

The phases in [docs/ROADMAP_2026.md](docs/ROADMAP_2026.md) were released for implementation by the owner on
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).
Expand Down
33 changes: 32 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
# Changelog

## Unreleased
## 0.5.0 - 2026-11-06

### Added

- **SourceProbe v1**: `claimbound probe URL [--marker TEXT] [--out FILE] [--json]` records HTTP status,
final URL, content type, byte size, SHA-256 (only for fully read bodies under a size cap), marker checks,
licence/terms link hints and a `safe_to_continue | needs_human_review | blocked` recommendation.
Metadata only: no raw body is stored and a probe never produces a result status
([docs/SOURCE_PROBE.md](docs/SOURCE_PROBE.md)).
- **Run-root deviation log and source-rights checklist**: `claimbound run-root deviation add|list` and
`run-root rights answer` ([docs/DEVIATION_LOG.md](docs/DEVIATION_LOG.md)).
- **Rerun report**: `claimbound rerun report` classifies reproduction status and source-byte drift from two
hash files without modifying the original card.
- **Static registry views**: `scripts/claimbound_build_registry_view.py` (with `--check`) generates deterministic
Markdown and a self-contained HTML index under `docs/registry/views/`
([docs/REGISTRY_VIEWS.md](docs/REGISTRY_VIEWS.md)).
- **Public AI claim protocol**: [docs/PUBLIC_AI_CLAIM_PROTOCOL.md](docs/PUBLIC_AI_CLAIM_PROTOCOL.md), a JSON
schema and validator for model/API metadata and prompt/transcript hash policy.
- **Scaffold hardening**: `claimbound new` prepares request, charter, playbook, checklist, operator
declaration, draft card and registry-patch scaffolds; `--dry-run`; refuses to overwrite or escape `--out`.
- **Validator hardening**: non-breaking warning checks (`warn_evidence_card`, registry consistency); existing
cards are unchanged.
- **Accessibility**: the SVG renderer now emits `role="img"`, `<title>` and `<desc>` and meets 4.5:1 contrast for
declared text colours; `scripts/claimbound_lint_svg_a11y.py` reports gaps
([docs/ACCESSIBILITY.md](docs/ACCESSIBILITY.md)). No WCAG conformance is claimed.
- `scripts/release_gate.sh`: resumable local release gate.

### Changed

- conda-forge template converted to the v1 `recipe.yaml` format, which staged-recipes now requires for new recipes.
- DCO check exempts the "Update branch" merge commit in Dependabot pull requests.

### Known limits

- The ~8000 committed SVG previews were not regenerated, so most still lack the new accessibility attributes.
- No new evidence cards were added in this release, and no independent external rerun has happened yet.

## 0.4.8 - 2026-09-30

Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ authors:
given-names: "Rostyslav"
orcid: "https://orcid.org/0009-0000-3773-5789"
license: Apache-2.0
version: "0.4.8"
date-released: "2026-09-30"
version: "0.5.0"
date-released: "2026-11-06"
repository-code: "https://github.com/ClaimBound/claimbound-evidence"
abstract: >-
Evidence cards, a validator and a static registry for bounded, reproducible claims
Expand Down
60 changes: 60 additions & 0 deletions docs/ACCESSIBILITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Accessibility of evidence-card SVGs

This page describes the accessibility checks the repository runs on its
evidence-card SVGs and, just as importantly, what it does not claim.

## What the renderer emits

`claimbound_evidence.card_svg_render` writes each card with:

- `role="img"` on the root `<svg>`;
- `aria-labelledby="cb-title cb-desc"` pointing at a `<title>` (card name and
evidence ID) and a `<desc>` (result status, reproduction level, the allowed
narrow claim and the claim boundary);
- text and background colours whose contrast ratio is at least 4.5:1. The
status-chip gradients (white text) were darkened to satisfy this; the
ratio is computed with the WCAG 2.x relative-luminance formula in
`claimbound_evidence.card_svg_styles.contrast_ratio`.

## What the linter checks

`claimbound_evidence.svg_a11y.lint_svg_text` and
`scripts/claimbound_lint_svg_a11y.py` check every SVG under `docs/` for:

1. well-formed XML with an `<svg>` root;
2. `role="img"`;
3. `aria-labelledby` resolving to a non-empty `<title>` and `<desc>`;
4. text `fill` colours with at least 4.5:1 contrast against the card page
backgrounds, and white chip text against every colour stop of the status
gradients used in the file.

```bash
uv run python scripts/claimbound_lint_svg_a11y.py # counts only
uv run python scripts/claimbound_lint_svg_a11y.py --list # per-file findings
uv run python scripts/claimbound_lint_svg_a11y.py --strict # exit 1 on findings
```

The default mode is report-only. Existing SVGs are historical output of earlier
renderer versions; they were not edited by hand and are reported, not rewritten.
Re-rendering them is an explicit, separate step
(`scripts/claimbound_render_evidence_card_svg.py`).

## Not claimed

- No WCAG conformance level (A, AA or AAA) is claimed and no third-party
accessibility audit has been performed.
- Only colour contrast of declared text fills and the presence of a text
alternative are checked. Reading order, text resizing, zoom, forced-colours
mode, keyboard use and assistive-technology testing are not evaluated.
- The decorative ClaimBound logotype is not contrast-checked.
- The linter reads declared `fill` attributes; text whose colour is set by CSS
or inherited is not analysed.
- Rendered cards are images: the long text they contain is summarised in
`<desc>`; the full record is the JSON card.

## Related non-breaking card checks

`claimbound_evidence.evidence_card.warn_evidence_card` adds warnings (SHA-256
format, ISO-8601 dates, claim-boundary length, limitation list shape, source
URL scheme). They never fail validation; `scripts/claimbound_validate_registry.py`
prints their counts to stderr (`--show-warnings` lists each one).
49 changes: 47 additions & 2 deletions docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Create a draft track scaffold. Prompts interactively when run in a terminal.
- `--out OUT`
- `--source-name SOURCE_NAME` (default: `Public source under review`)
- `--audience AUDIENCE` (default: `public evidence operators`)
- `--dry-run` — List the files that would be created and write nothing.

## `claimbound demo`

Expand Down Expand Up @@ -67,11 +68,35 @@ Validate one protocol v3 R&D tree overlay JSON file.

Create a local-only run root with standard raw/log/hash/report folders.

- `--protocol-id PROTOCOL_ID` (required)
- `--source-url SOURCE_URL` (required)
- `--protocol-id PROTOCOL_ID`
- `--source-url SOURCE_URL`
- `--operator OPERATOR` (default: `local operator`)
- `--root ROOT` — Local-only parent directory. Defaults to ~/claimbound_runs. (default: `~/claimbound_runs`)

### `claimbound run-root deviation`

#### `claimbound run-root deviation add`

- `--run-dir RUN_DIR` (required)
- `--step STEP` (required)
- `--planned PLANNED` (required)
- `--happened HAPPENED` (required)
- `--reason REASON` (required)
- `--who WHO` (required)

#### `claimbound run-root deviation list`

- `--run-dir RUN_DIR` (required)

### `claimbound run-root rights`

#### `claimbound run-root rights answer`

- `--run-dir RUN_DIR` (required)
- `--question-id QUESTION_ID` (required)
- `--answer ANSWER` (required)
- `--who WHO` (required)

## `claimbound doctor`

Check Python, git and repo layout for cross-platform workflows.
Expand Down Expand Up @@ -128,6 +153,17 @@ Run frozen public-data reruns with cross-platform commands.
- `--run-dir RUN_DIR`
- `--baseline BASELINE`

### `claimbound rerun report`

Compare original vs rerun hashes; never modifies a card or claim.

- `--original ORIGINAL` (required)
- `--rerun RERUN` (required)
- `--outcome OUTCOME` (choices: `matches`, `differs`, `unknown`; default: `unknown`)
- `--blocked`
- `--note NOTE` (default: ``)
- `--out OUT`

## `claimbound drift`

**Needs a clone** of the repository.
Expand All @@ -139,6 +175,15 @@ Compare fresh public-source probes against frozen baselines.
- `--baseline BASELINE`
- `--report REPORT`

## `claimbound probe`

SourceProbe v1: metadata-only probe of one public URL (no legal conclusion).

- `url`
- `--marker MARKER` — Case-sensitive text to look for.
- `--out OUT` — Write the JSON probe artifact here.
- `--json` — Print the JSON artifact.

## `claimbound verify`

**Needs a clone** of the repository.
Expand Down
45 changes: 45 additions & 0 deletions docs/DEVIATION_LOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Deviation Log And Source-Rights Checklist

Every local run root created by `claimbound run-root` contains two operator
records. Both stay local with the run root; do not commit raw payloads.

## Deviation log

`deviations.jsonl` is append-only, one JSON object per line, with these fields:

| Field | Meaning |
| --- | --- |
| `timestamp` | UTC time the entry was written |
| `step` | Protocol step affected |
| `planned` | What the frozen protocol planned |
| `happened` | What actually happened |
| `reason` | Why it differed |
| `who` | Operator who recorded it |

```bash
claimbound run-root deviation add --run-dir RUN_DIR --step fetch \
--planned "fetch 30 points" --happened "fetched 28" \
--reason "HTTP 404 on two points" --who operator-handle
claimbound run-root deviation list --run-dir RUN_DIR
```

`list` validates every line and fails on malformed entries. Entries are never
edited or removed by the tool; correct a mistake by adding a new entry. A
deviation does not change a result status by itself, and recording one is not
a way to reclassify an outcome. The human-readable `DEVIATIONS.md` template
remains for narrative notes.

## Source-rights checklist

`SOURCE_RIGHTS_CHECKLIST.md` lists operator questions about terms of use,
robots/access policy, attribution, redistribution, rate limits and personal
data. Record answers in the source's own words:

```bash
claimbound run-root rights answer --run-dir RUN_DIR --question-id robots \
--answer "robots.txt has no Disallow for the fetched path" --who operator-handle
```

Answers are appended to `source_rights_answers.jsonl`. The checklist records
what the operator observed. It is not a legal conclusion and does not assert
that any use is permitted.
23 changes: 23 additions & 0 deletions docs/INDEPENDENT_RERUN_WORKFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,29 @@ uv run --extra dev python -m pytest -q

Do not edit thresholds, gates or claim boundaries to force a reproduced result.

## Rerun Report Helper

`claimbound rerun report` compares original and rerun SHA-256 maps (JSON
`{name: sha256}` or `sha256 name` text lines) and writes a report with
optional fields:

- `reproduction_status`: one of `NOT_RERUN`, `REPRODUCED`,
`PARTIALLY_REPRODUCED`, `NOT_REPRODUCED`, `SOURCE_DRIFT`, `BLOCKED_SOURCE`;
- `source_drift`: per-file `NO_DRIFT`, `SOURCE_BYTE_DRIFT`, `MISSING_ORIGINAL`
or `MISSING_RERUN`, plus an overall value;
- `operator_note`.

```bash
claimbound rerun report --original orig_hashes.json --rerun new_hashes.json \
--outcome matches --out rerun_report.json
```

`--outcome` is an operator statement (`matches`, `differs`, `unknown`);
`--blocked` records `BLOCKED_SOURCE`. The helper only reads the two hash files:
it never opens or edits the original card or claim, and the report states
`card_modified: false`. This status vocabulary is separate from `result_status`.
See [DEVIATION_LOG.md](DEVIATION_LOG.md) for recording deviations.

## Source Drift And Boundary Questions

If a source changed but you are not ready to produce a rerun card, open a
Expand Down
14 changes: 8 additions & 6 deletions docs/PLANNED_NOT_SHIPPED.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ roadmap rows as shipped product.
Acceptance-criteria documents are specifications only until implementation lands
and validators pass on `main`.

| Planned item | What exists now | What is not shipped | How to verify honestly |
| --- | --- | --- | --- |
| SourceProbe v1 | Scaffold stub in `claimbound new`; [acceptance criteria](SOURCE_PROBE_V1_ACCEPTANCE_CRITERIA.md) | Deterministic HTTP probe CLI, marker checks, standalone probe command | Read the spec; confirm no `scripts/claimbound_source_probe.py` |
| Static registry MVP | JSON index at [evidence_index.json](registry/evidence_index.json) | Generated HTML/views, filters UI, `claimbound_build_registry_view.py` | Read [acceptance criteria](STATIC_REGISTRY_MVP_ACCEPTANCE_CRITERIA.md); confirm no `docs/registry/views/` |
| PyPI distribution | Package `claimbound-evidence` on PyPI with the card-level CLI (`validate-card`, `inspect`, `hash`, `run-root`, `doctor`); full workflows via `git clone` + `uv sync` | Registry, runners, reruns and demos inside the pip package | `pip install claimbound-evidence` then `claimbound validate-all` reports that a clone is needed |
| WCAG / accessibility pass | SVG cards rendered from JSON | Full accessibility audit and remediation pass | Cards are visual aids; no WCAG conformance claim is made |
| Planned item | Status in 0.5.0 | What is still not shipped |
| --- | --- | --- |
| SourceProbe v1 | Shipped: `claimbound probe`, [SOURCE_PROBE.md](SOURCE_PROBE.md) | Live probing of every registry source; probes are metadata, never evidence |
| Static registry MVP | Shipped: [views](registry/views/index.md), [REGISTRY_VIEWS.md](REGISTRY_VIEWS.md) | Audience filter (no audience field in cards yet) |
| Run-root deviation log, rerun report, public AI protocol, scaffold hardening | Shipped (see CHANGELOG 0.5.0) | Operator adoption; no external rerun has been reported yet |
| PyPI distribution | Package `claimbound-evidence` on PyPI with the card-level CLI; full workflows via `git clone` + `uv sync` | Registry, runners, reruns and demos inside the pip package |
| WCAG / accessibility | Renderer emits accessible SVG; linter reports gaps ([ACCESSIBILITY.md](ACCESSIBILITY.md)) | Regeneration of the ~8000 committed SVGs; no conformance claim |
| New honest card set, v1.0.0 | Not started | Cards need frozen protocols and a fresh fetch; v1.0.0 waits for an external rerun |

## What Counts As Shipped Today

Expand Down
Loading
Loading