feat(capabilities): fulfill §3.5 author-by-derivation in PR-1 + PR-3#682
Merged
Conversation
Closes two gaps between the merged PR-1/PR-3 and the "authoring by derivation" design (plan §3.5): providers must not hand-type fields that have a standard. PR-1 (descriptor.ts): - output_kind is now OPTIONAL — GENERATED from modality, overridable. Add inferOutputKind(modality) + resolveOutputKind(cap). A provider needn't type it. (semantic_key derive-not-trust / V1 was already shipped.) PR-3 (discovery-sync.ts): - planDiscoverySync now returns the full §3.5 V2 verdict — NEW / ADD-CAPACITY / SYNONYM. An existing identity offered with the name omitted OR matching is ADD-CAPACITY (a Plane-1 offering: no registry rewrite), not a rejected synonym; only an EXPLICIT different name is a synonym. Fixes the case where omitting the name on an existing cap was wrongly rejected. - descriptorToEntry + synthesizeUsage use resolveOutputKind (infer when omitted). Additive + golden-neutral. 14 descriptor + 14 discovery-sync tests green. Plan PR-1/PR-3 rows updated to mark §3.5 fulfilled. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Closes two gaps between the merged PR-1 (#680) / PR-3 (#681) and the §3.5 author-by-derivation design — the goal being that providers never hand-type a field that has a standard (that's where descriptors go wrong).
PR-1 (
descriptor.ts)output_kindis now OPTIONAL — GENERATED from modality, overridable. AddsinferOutputKind(modality)+resolveOutputKind(cap). A provider needn't type it. (semantic_keyderive-not-trust / V1 was already shipped.)PR-3 (
discovery-sync.ts)planDiscoverySyncnow returns the full §3.5 V2 verdict — NEW / ADD-CAPACITY / SYNONYM:select_provider).descriptorToEntry+synthesizeUsageuseresolveOutputKind(infer when omitted).Safety
Plan (
LIVE-RUNNER-CAP-ADOPTION-PROPOSAL.html) PR-1/PR-3 rows updated to mark §3.5 fulfilled; the remaining §3.5 pieces (V3 modality-vocabulary, V4 consistency, V5 economics, thecap initgenerator +/api/capabilities/standard) are PR-7 + PR-8.🤖 Generated with Claude Code