Skip to content

Commit 5bc00a5

Browse files
Nathan Gillettcursoragent
andcommitted
Rename spec pin wrapper to check-consumer-spec-pin.sh
Update tox, spec-conformance, pyproject comment, README, and CHANGELOG. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 33ef307 commit 5bc00a5

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ All notable changes to this repository are documented here. **PyPI** releases us
3030
exported from `intentproof`).
3131
- **Codegen/drift hardening:** add deterministic model generation and enforce
3232
drift policy (`generate_schema_models.py`, `verify-generated-types.sh`,
33-
`check-no-bundled-schema.sh`, `check-sdk-spec-pin.sh`, delegated
33+
`check-no-bundled-schema.sh`, `check-consumer-spec-pin.sh`, delegated
3434
`check-no-handwritten-model-types.sh`).
3535
- **CI/release hardening:** pin spec checkout by declared `spec-commit`; add
3636
hardening and spec-golden-parity jobs; require no-handwritten-model checks in

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Custom **`body`** serializers: if **`body(event)`** raises, **`HttpExporter`** n
345345

346346
**`intentproof-spec`** holds normative schemas, golden **`execution_event_cases.jsonl`**, and the canonical **`spec-conformance.sh`** toolchain.
347347

348-
- **Version pin:** **`[tool.intentproof].spec-version`** and **`spec-commit`** in **`pyproject.toml`** match **`spec.json`** and the spec **`HEAD`** checkout; **`scripts/check-sdk-spec-pin.sh`** enforces this before conformance.
348+
- **Version pin:** **`[tool.intentproof].spec-version`** and **`spec-commit`** in **`pyproject.toml`** match **`spec.json`** and the spec **`HEAD`** checkout; **`scripts/check-consumer-spec-pin.sh`** delegates to **`intentproof-spec`** **`scripts/check-consumer-spec-pins.sh`** before conformance.
349349

350350
- **CI:** every push/PR checks out this SDK plus **`intentproof-spec`** and runs **`scripts/spec-conformance.sh`** (pin check + full oracle; see `.github/workflows/ci.yml`). The **`spec-golden-parity`** job runs **`tests/unit/test_spec_golden_conformance.py`** against the same **`golden/execution_event_cases.jsonl`** using **`jsonschema`** + semantics mirrored from the spec (`tests/spec_semantics.py`).
351351
- **Repo-root certificates:** each run uploads **`conformance-report.json`** and **`conformance-certificate.json`** as workflow artifacts; after a green default-branch push, the conformance GitHub App commits the same files at the repo root when they differ from **`main`**.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dev = [
4545
]
4646

4747
[tool.intentproof]
48-
# Must match vendored intentproof-spec spec.json + git HEAD — enforced by scripts/check-sdk-spec-pin.sh
48+
# Must match vendored intentproof-spec spec.json + git HEAD — enforced by scripts/check-consumer-spec-pin.sh
4949
spec-version = "spec-v2.0.1"
5050
spec-commit = "40d3d0b96ded3c86030f3606a0cd0e477f88895c"
5151

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# Fail if this repository's declared IntentProof spec version + commit pins do not match the spec checkout.
3-
# Usage: check-sdk-spec-pin.sh /absolute/or/relative/path/to/intentproof-spec
3+
# Usage: check-consumer-spec-pin.sh /absolute/or/relative/path/to/intentproof-spec
44
set -euo pipefail
55

66
spec_root="$(cd "$1" && pwd)"

scripts/spec-conformance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [[ -z "$spec_root" || ! -f "${spec_root}/scripts/run-conformance.sh" ]]; then
2626
exit 1
2727
fi
2828

29-
bash "${sdk_root}/scripts/check-sdk-spec-pin.sh" "$spec_root"
29+
bash "${sdk_root}/scripts/check-consumer-spec-pin.sh" "$spec_root"
3030

3131
export INTENTPROOF_SDK_ID="${INTENTPROOF_SDK_ID:-python}"
3232
export INTENTPROOF_SDK_NAME="${INTENTPROOF_SDK_NAME:-intentproof-sdk-python}"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ commands =
2121
extras =
2222
dev
2323
commands =
24-
bash {toxinidir}/scripts/check-sdk-spec-pin.sh {env:INTENTPROOF_SPEC_ROOT}
24+
bash {toxinidir}/scripts/check-consumer-spec-pin.sh {env:INTENTPROOF_SPEC_ROOT}
2525
bash {toxinidir}/scripts/check-no-bundled-schema.sh
2626
bash {toxinidir}/scripts/check-no-handwritten-model-types.sh
2727
bash {toxinidir}/scripts/verify-generated-types.sh

0 commit comments

Comments
 (0)