Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #528 +/- ##
==========================================
- Coverage 99.45% 99.45% -0.01%
==========================================
Files 382 383 +1
Lines 28683 28766 +83
Branches 3666 3680 +14
==========================================
+ Hits 28528 28610 +82
- Misses 155 156 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
leftibot
force-pushed
the
ui-json-schemas
branch
2 times, most recently
from
December 1, 2026 22:23
72a41b6 to
580fbb6
Compare
`cargo clippy -- -D warnings -A warnings` earned warnings-as-errors and `-W clippy::pedantic -A clippy::pedantic` earned clippy::pedantic, though clippy reads the last level a lint is given. - facts.tools.undone: the words of a command that set what a later word sets otherwise, and why, by policy/inert_commands.toml's `later_flag_wins`: lint levels for clippy (-A/-W/-D, --allow/--warn/ --deny, also after `--` and as `-Dwarnings`), and dart/flutter analyze's --fatal-infos/--no-fatal-infos and --fatal-warnings pairs. - ci_texts leaves the undone words out; advisory_texts holds the whole command, and practices.not_enforced gives why, so the requirement only the undone flag meets is "in place but not enforced": "-D warnings runs in CI but cannot fail it (-A warnings, later on its line, undoes -D warnings)". `dart analyze --no-fatal-infos --fatal-infos` stays fatal. - Rust's clippy::pedantic requirement no longer matches `-A clippy::pedantic`, which allows the lints. - MSBuild's RunAnalyzers or EnableNETAnalyzers false, or AnalysisMode None (inert_commands.toml `msbuild_analyzers_off`), in every C# project or a Directory.Build.props above it, make the analyzer runs inert by settings: "CI runs Roslynator, but its settings leave it nothing to check". NoWarn lists stay per rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
Conditions are kept for the whole process. When the unbounded curl loop test runs first, as in mutmut's clean run, which orders tests by duration, the bounded reading builds no new nodes and never reaches the lowered bound, so mutmut failed on cpp-best-practices#533. The bounded reading now gets fresh CURL_USE_ names, and the test first reads the plain fixture to hold that in place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…pp-best-practices#467) A Draft 2020-12 schema per format of JSON_FORMATS in project_validator/schemas, each whole in its file, with enums for the statuses, tiers, loss causes and answers. tests/test_output_schemas.py validates every snapshot and fresh outputs against them, checks the enums are the code's own and pins each schema's digest beside its format's version. The project reports' data/latest.json joins the formats: it is wrapped in the {format, version, ...} envelope (project-reports, version 1) and its score's version is score_version. CI's schemas job validates fresh outputs with check-jsonschema and diffs each schema against the base branch's with Sentry's json-schema-diff, failing a breaking change whose format version did not move. jsonschema is a test dependency only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…cpp-best-practices#467) Two tools are called json-schema-diff. A job that installs it with cargo install, cargo binstall or taiki-e/install-action runs Sentry's crate, json-schema-diff (Rust), which reads Draft 2020-12; anything else (npx, npm, package.json, or nothing said) runs the npm package. On a project with a Draft 2019-09 or 2020-12 schema the npm package stops at the dialect, so its run is inert: it earns no schema-compatibility credit. The well-configured JSON Schema and Data fixtures (Draft 2020-12 schemas) now install and run the crate; their snapshots, bare_json_schema's hint and registry.json follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
leftibot
force-pushed
the
ui-json-schemas
branch
from
December 2, 2026 05:47
580fbb6 to
abf689b
Compare
This branch has not been deployed
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.
Stacked on #533 — merge after it; until then this diff includes its commits (and those of the PRs below it).
Part of #467: section 4.1 of the interface review, JSON Schemas for the JSON outputs. The accessibility items follow in the PR stacked on this one. Sections 1, 4.2–4.8, 5.2, 5.4 and 6 are still open; they wait for #521 and #523.
What changes
project_validator/schemas/<format>.schema.json(Draft 2020-12) for each entry ofJSON_FORMATS:results,facts,answers,map,checks,support-matrixandproject-reports. Each schema is whole in its one file. The statuses, tiers, loss causes and answers are enums, and a test checks those enums against the code's own (Status,scoretiers,losses.CAUSES,Answer,project_reports.KINDS/SIZES). The schemas ship in the wheel throughpackage-data.tests/test_output_schemas.py, part of the existing suite, so it runs in every CI test job):tests/snapshots/*.jsonis checked part by part against the definition it holds (answers,about, results,facts,map);registry.jsonis skipped because it is no output;--list,--support-matrixand a--comparerun;schemasjob inci.yml):cargo install --version 0.1.8 --locked) diffs each schema against the base branch's copy and fails on a breaking change when the format'sversiondid not move.data/latest.json(project reports) is the one output that changes. It is now wrapped in the{format, version, ...}envelope (project-reports, version 1), and its score's version isscore_version, apart from the format'sversion.site.py, its README and the tests that read it are updated. Nothing else in the repository reads it.docs/architecture.md,project_reports/README.md,docs/ecosystems/json_schema.md(Sentry's crate counts as json-schema-diff), and one sentence added to the CHANGELOG's JSON formats bullet.Self-check
The schema files make this repository a JSON Schema project, so the strict self-check now judges
schema-validation,schema-examplesandschema-compatibility. All three pass, through the new CI job:The npm
json-schema-diffis no help here. It refuses Draft 2020-12 (no schema with key or ref ".../draft/2020-12/schema"). With$schemaremoved it reports "No differences found" even when an enum in$defsloses a value. Sentry's crate caught both test cases: an enum losing a value, and a change made only inside$defs. It does not followallOfrefs, so the schemas inline their shared fields rather than compose them withallOf.The JSON Schema profile now tells the two tools apart, as the maintainer decided:
cargo install,cargo binstallortaiki-e/install-action(tool: json-schema-diff) runs json-schema-diff (Rust).npx, npm, package.json, or no install step at all.tests/test_json_schema.pyuse real CI lines, this repository's own included.Decisions and open points
jsonschema(withtypes-jsonschema) stays a test-only dependency; both CI tools stay; format versions stay at "1" until the stable-IDs PR.--facts, a fact type with its ownkindfield (TestFile,FuzzTarget, documents, suppressions) overwrites the type name inkind, for example"kind": "test blocks in .zig files". The schema allows any string. Fixing it changes the output, so it belongs with the stable-ID work (4.2).Existing tests changed
tests/test_project_reports.py: three tests that readlatest.jsonnow read it inside the envelope (["project-reports"]); the empty case expects the envelope instead of[].tests/checks/test_schema_compatibility.pytest_json_schemas_are_diffed_against_the_base:npx json-schema-diffon the layout's Draft 2020-12 schema is no longer credited (the maintainer's decision). The test now expects that WARN with its reason, and a PASS for the Rust crate.cargo installand run the crate. Their snapshots change, plusbare_json_schema.json(its hint lists the crate first) andregistry.json(the new tool).Checks
gates2.sh: all steps pass (ruff, ruff format, mypy, lizard, the unittest suite under branch coverage at 99%, jscpd 0 clones, markdownlint, strict self-check)npm auditfailed because the branch predates Update cross-spawn to 7.1.2 (GHSA-ghv9-86vm-4v8m) #529, so the lockfile now pins cross-spawn 7.1.2. The macOS jobs were never picked up by a runner ("not acquired … capacity constraints").🤖 Generated with Claude Code
https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt