Skip to content

fix(core): separate compatibility claims from check support - #682

Closed
marcschier wants to merge 2 commits into
xregistry:mainfrom
marcschier:fix/spec-589-unsupported-compatibility-claims
Closed

marcschier wants to merge 2 commits into
xregistry:mainfrom
marcschier:fix/spec-589-unsupported-compatibility-claims

Conversation

@marcschier

@marcschier marcschier commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #589

Proposed Changes - current review scope

This original PR remains open as policy decision (e). The approved
three-bundle consolidation does not approve or merge this proposal.

Mixed: chooses admission of model-permitted unsupported compatibility claims under disabled/lenient checking (e), while also correcting two independent copy/paste references in compatibility status documentation (a).

e - decision requiring separate approval

Selects the lenient/disabled admission policy over another possible reconciliation of the contradictory old clauses. The surrounding status/failure explanations support this same policy, not a separate tooling component.

  • core/spec.md @@ -1975,17 +1975,22 @@: capability configuration is distinguished from stored-claim admission.
  • core/spec.md @@ -3053,20 +3058,34 @@: replaces unconditional capability membership with model-permitted claim admission and enabled-check policy.
  • core/model.md @@ -984,10 +984,14 @@: disabled checker support must not itself reject a stored claim.

Python cleanup in 648f656

The forward, signed cleanup commit removes new specification-text assertions
and synthetic policy-test code unless it has a concrete role in checking
real repository artifacts. It does not change this PR's normative proposal,
source models, samples, generated artifacts or production behavior.

Python path Disposition
tools/compatibility_claim_contract.py remove
tools/test_compatibility_claim_policy.py remove

Script-only documentation and obsolete helper/test instructions were removed
or corrected with the affected code. Unmodified baseline Python is outside
the audit's scope; the cleanup is not evidence that a proposed policy is
already normative.

Current evidence and dependencies

  • Full baseline tools suite: python -B -m pytest tools -q --tb=short -p no:cacheprovider -p pytest_asyncio.plugin: 67 passed; 4 existing deprecation warnings.
  • Exact cleanup scope, retained blob preservation, removed-helper references, whitespace, direct-parent ancestry and author-matching sign-off were verified.

The selected xregistry/spec#722 (A) contributions are tracked separately. Their required prerequisite overlap intentionally remains in this original PR until the replacement is merged upstream. After that external merge, forward-merge, narrow the remaining diff and regenerate/rerun real artifact checks as applicable; do not remove necessary source prematurely.

The cleanup preserves the original draft state. No review thread is marked
resolved by this update, and no source branch is deleted. The historical
description below is preserved for context; its old test counts, helper
instructions and specification-text assertions are not current evidence.

Historical description at 28fb72e (before cleanup)
Fixes #589

Separate model-permitted stored compatibility claims from advertised validator support. A missing checker does not itself reject a claim when compatibility checks are disabled or validation is lenient. Applicable enabled checks use the existing strict rejection or unchecked-with-reason rules; disabled/absent checks retain the existing omission rules.

A changed claim applies to every Version. Check every applicable Version, preserve model/attribute restrictions, and reject any actual failed check atomically regardless of strictness. Capability-configuration restrictions are unchanged and are now explicitly distinguished from claim admission. The related compatibility-status enablement link and reason description now name compatibility validation correctly.

**Compatibility:** this makes the previously contradictory disabled/lenient admission path usable. A stored claim is not server attestation. Supported checks still run, unavailable checks remain explicitly unchecked, and known failures are never downgraded to unchecked acceptance. The separate Model diagnostic-reference cleanup remains in #667 and is not copied here.

The pure decision-stage helper and its limits are documented in `tools/README.md`, not normative prose. Model admission and actual validators are caller-supplied; this is not a server, schema compatibility implementation, capability wildcard resolver, or transaction engine.

**Evidence:** source-policy red 2 failed / 44 passed; final focused suite 50 passed; full tools 117 passed on current upstream. Tests cross validation enabled/disabled and strict true/false with supported, unknown-format, unknown-compatibility and external cases; cover absent claims/formats, mixed formats, all-Version rechecking and later rollback, model constraints, stale status cleanup, actual failures, contradictory format status, invalid callback results and propagated errors. Actual authoring checks passed for all three documents, including 470 local links, spelling and tabs. Five files: opened as draft.

Signed-off-by: Marc Schier <marcschier@hotmail.com>
@marcschier
marcschier marked this pull request as ready for review September 15, 2026 12:13
Remove the approved standalone claim helper, prose-bound tests and script-only README. Keep every specification hunk intact, including editorial portions pending central replacement PRs.

Signed-off-by: Marc Schier <marcschier@hotmail.com>
@marcschier

Copy link
Copy Markdown
Contributor Author

Applied signed, forward cleanup commit 648f656. Removed the introduced specification-text/synthetic-policy Python and its script-only instructions. The full remaining baseline tools suite passed 67 cases.

The normative proposal, source models, samples and generated artifacts are unchanged by cleanup. This PR remains open for its e review; no policy decision or review-thread resolution is implied. Selected prerequisites are now tracked in xregistry/spec#722 (A); their necessary overlap remains here until those replacements land.

Updated the PR description with current evidence, explicit retained scope and the pre-cleanup description archived as historical context. Original draft state and source branch are preserved.

marcschier added a commit to marcschier/xregistry-drafts that referenced this pull request Sep 16, 2026
Retain the category e model-permitted claim admission policy, disabled/lenient versus strict checker behavior, and whole-operation rejection for actual failures. The two copied compatibility link/word corrections retain category a ownership in xregistry#722 until that prerequisite actually merges. Do not import xregistry#723 strict-validation diagnostic changes or either whole prerequisite branch.

Source-PR: xregistry#682
Source-Head: 648f656
Source-Merge-Base: 9ecf8ea
Source-Commit: 28fb72e
Prerequisite-Owner: xregistry#722 (compatibility status link and copied word)
Signed-off-by: Marc Schier <marcschier@hotmail.com>
@marcschier

Copy link
Copy Markdown
Contributor Author

Superseded by the expanded Core model and Resource semantics keeper xregistry/spec#677. The reviewed net changes at 648f656 were transferred with their issue and review provenance; specification-text/synthetic-policy Python stays removed.

Transfer and local integration evidence are in the keeper provenance comment. Immediately before closing, keeper head ac0abc5 had successful verify and DCO gates.

Closing this original only as superseded: the policy decisions remain open in the keeper, no upstream merge or review-thread resolution is implied, and the source branch is preserved.

@marcschier marcschier closed this Sep 16, 2026
duglin pushed a commit that referenced this pull request Sep 23, 2026
* fix(docs): correct specification and example errors

Transfer only the approved category-a documentation hunks. Keep policy,
metadata-view, generated-artifact and tooling changes in their own bundles.
Preserve the existing sample-validation Python without importing prose tests.

Refs: #668, #669, #671,
#672, #674, #676,
#682, #693, #695,
#704, #705, #710,
#711, #717, #718.

Refs: #609. These residual serialization repairs complement,
but do not absorb or complete, the separately owned #657 work.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

* docs(core): repair selected Resource example punctuation

Add the three missing member separators and remove the extra brace from the reviewed Patch Resource initial state.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

* docs(cloudevents): drop the added sample-abbreviation sentences

Review feedback on #722 asked to remove both new sentences; the samples and their corrected literals are unchanged otherwise.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

---------

Signed-off-by: Marc Schier <marcschier@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify compatibility-claim admission when validation is unsupported

1 participant