NAP-UPLOAD: Add rail introspection - #76
Merged
Merged
Conversation
NAP-UPLOAD needs a way for napplets to inspect supported upload rails and coarse limits without making rail choice mandatory. The new info operation is advisory, keeps default rail selection in the shell when request.rail is omitted, and lets explicit rail requests fail through the existing policy boundary. Constraint: Upload rail selection and credentials remain runtime-owned. Rejected: Require info() before upload(request) | would make introspection part of the default flow and weaken runtime-owned defaults. Rejected: Expose server URLs or credentials | would leak shell configuration across the seam. Confidence: high Scope-risk: narrow Directive: Keep upload.info advisory; do not turn it into a mandatory capability negotiation step. Tested: git diff --check; targeted rg consistency check for upload.info, UploadInfo, request.rail, unsupported rail, and policy denied wording. Not-tested: Runtime implementation; spec-only change.
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
Adds draft
upload.info()to NAP-UPLOAD because optional rail introspection is valid when it stays advisory. Napplets can inspect supported rails and coarse limits, whileupload(request)withoutrailremains the simple default path where the runtime chooses according to user/runtime policy.Changes
infoto the API surface withUploadInfoandUploadRailInfoschemas.upload.info/upload.info.resultwire messages and an example.info()is optional and MUST NOT be required before upload.request.railhandling andpolicy deniederrors.Downstream
No dependency or registry change. This is a scoped amendment on top of
nap-uploadfor implementations that need runtime-owned upload rail discovery.