Clawmark: lower catalog trust gate to the 0-5 scale (threshold 3.0)#12
Merged
Conversation
ARIA now serves Clawmark scores on the canonical 0-5 scale (CANONICAL_CLAWMARK_STANDARD.md). The Carapace SDK catalog gate compared against 80 (the old 0-100 scale), which would fail-closed for every tool once ARIA flips to 0-5. - catalog.py: CatalogEntry.clawmark_score is now float; from_dict coerces ARIA's null (unscored) to 0.0; run_gate_check score_threshold 80 -> 3.0. - catalog.ts: CatalogEntry.clawmark_score is now `number | null`; runGateCheck scoreThreshold 80 -> 3.0; gate treats null as 0. - test_v05_phase_b.py: catalog fixtures converted 0-100 -> 0-5 (85->4.5, 50->2.0, 90->4.8, 75/80->4.0); custom-threshold test uses 1.0; new test for the null-score coercion. Companion to aria-registry#8.
makeCatalogState used 0-100 scores (85/50/90); on the 0-5 scale a 50 would pass the gate, so the low-score fixture no longer exercised the clawmark_gate failure. 85->4.5, 50->2.0, 90->4.8. Companion to aria-registry#8.
The CI `python` job runs pytest in `python/`, which holds a second copy of the SDK (python/carapace, python/tests) byte-identical to the repo root. The previous commit only updated the root copy, so the CI-tested package still gated at 80 against the 0-5 test fixtures — the python job failed. Apply the same 0-5 threshold change (score_threshold 80 -> 3.0, float clawmark_score, null-score coercion, fixtures converted to 0-5) to python/carapace/catalog.py and python/tests/test_v05_phase_b.py so the two copies stay in sync.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion to aria-registry#8. ARIA is migrating Clawmark scores to the canonical 0–5 scale (
CANONICAL_CLAWMARK_STANDARD.md). The Carapace SDK catalog gate comparedclawmark_scoreagainst 80 (the old 0–100 scale) — once ARIA serves 0–5 scores,run_gate_check/runGateCheckwould fail-closed for every tool.The gate threshold is lowered to 3.0 (=
betaor above).Changes
carapace/catalog.py—CatalogEntry.clawmark_scoreis nowfloat;from_dictcoerces ARIA'snull(unscored) to0.0;run_gate_checkscore_threshold80→3.0.typescript/src/catalog.ts—CatalogEntry.clawmark_scoreis nownumber | null;runGateCheckscoreThreshold80→3.0; the gate treatsnull/unscored as0.tests/test_v05_phase_b.py— catalog fixtures converted 0–100 → 0–5 (85→4.5,50→2.0,90→4.8,75/80→4.0); custom-threshold test uses1.0; newtest_from_dict_handles_null_score.typescript/test/v05_receipts.test.js—makeCatalogStatefixtures converted 0–100 → 0–5.Notes
certification_tieris left onCatalogEntryfor backward compatibility — ARIA no longer emits it (it becomes""), but nothing breaks.Test plan
pytest tests/test_v05_phase_b.pynode --test typescript/test/v05_receipts.test.js(aftertscbuild oftypescript/)/aria/v1/catalogemits 0–5clawmark_scorehttps://claude.ai/code/session_01Sm3am5LeiJqJgEkW7oD2vu
Generated by Claude Code
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.