Repository navigation
Remove the deprecated check field from check results #47
Copy link
Copy link
Closed
Labels
agent-readyJudged workable by an unattended agent right nowJudged workable by an unattended agent right now
Description
What to build
Delete the deprecated check field from CheckResult. id is the identifier; suite stays.
This removes the result field only. The id a suite gives each check when it defines it — VerificationCheck.id, which the id computation takes as input — is unchanged, and so are the messages that quote it: "Not run: failed" reasons, the error detail for a check that threw, and the summary's "not run" message keep the check's local id.
- Code that reads
checkswitches toid— among others, the recognition-profile extraction in the verifier, and the summary code's two tests for.appliesrows (the one that picks a skip reason for a suite that did not apply, and the one that selects rows to keep, if that still exists). Everything that builds aCheckResultstops writingcheck, including the parse-failure result. - Tests that read
.checkor build rows with acheckkey (about 145 lines across some 30 files) switch toid. This is not a find-and-replace: anidcarries the phase, and a suite defined in a test with no phase produces ids beginningunknown.. Several Open Badges checks are namedschema.obv3.*but run in suites namedopenbadges…, so their ids keep both names (for examplesemantic.openbadges.semantic.schema.obv3.result-ref). - Every example result row in the README and the API guides shows
idandsuite, notcheck. Most README rows have noidtoday, so each needs one added. The README's registry example reads.checkin code and switches toid. The architecture doc's description of a check result's fields dropscheck. - The CHANGELOG's unreleased 2.0.0 section lists
checkas deprecated; replace that with its removal, and say in the migration notes that readers ofcheckuseid.
Acceptance
-
CheckResulthas nocheckfield, sopnpm run buildandpnpm exec tsc -p tsconfig.dev.jsonreject any remaining read or object-literal write of it. (A bare search forcheckalso hits unrelated variables and parameters of that name.) -
git grep -n "\.check\b" -- src testfinds nothing. Every match onmaintoday is a read of a check result's field. - No example result row in the README or the API guides has a
checkkey, and every one has anid. - The recognition profile is still extracted: an existing recognition test passes unchanged in what it asserts.
-
pnpm run buildandpnpm testpass (build first: one test imports the package through its own exports, which resolve to the build output). -
pnpm exec tsc -p tsconfig.dev.json— the only command that type-checks the tests — reports no error that it does not also report on the branch the work starts from. It reports six unrelated errors onmaintoday; fixing them is not part of this ticket.
Effort: verifier-core/2026-09-29-2-0-readiness-review
Metadata
Metadata
Assignees
Labels
agent-readyJudged workable by an unattended agent right nowJudged workable by an unattended agent right now
Type
Projects
- StatusShow more project fieldsNo status
Activity
ottonomy commentedon Oct 14, 2026
Body before refinement on 2026-10-14 (re-checked against
mainat35f3efd, after #57–#62 and #66), kept for the record:ottonomy commentedon Oct 14, 2026
Refined against
mainat35f3efd. The claims still held; the test surface grew (#57–#60 added about 15 lines of.checkreads). Decisions made while refining:ottonomy commentedon Oct 14, 2026
Night shift delivered.
nightshift/47-remove-the-deprecated-check-field-from-check-res→nightshift/46-make-check-ids-required-and-rename-suitesummaryindigitalcredentials/verifier-core2ed717c0-eeaa-4367-a5fd-dd0646c4d406The pull request carries
agent-authored. Review it; do not trust itblindly. Departures and decisions the ticket did not specify are in its body.