Repository navigation
fix: a refusal names the key and not the value, and four lines write no payload (RFC-0019) - #718
Merged
Merged
Conversation
…no payload (RFC-0019) The fourth work package of RFC-0019. Refusals. A text that refused a configured value or a request repeated that value. A refused server.url is quoted through Utility.maskUrl, and a text the parser cannot read is named by the parser's reason. A malformed server.header[] entry is named by its position. A refused cookie is named with "invalid name" or "invalid value", at the HTTP edge and in AsyncHttpRequest.setCookie: the encoder's message holds the value when its wrapping quotes are not balanced. An invalid entry of rest.yaml is named by its methods and its URL, and a relay target in a refusal passes through the rule. The HTTP client refuses a target host with a user id and a password before the call, with status 400: the call failed at name resolution before, with status 500 and a text that repeated them. A target that is no URL is named by the parser's reason. An Event-over-HTTP target with a user id and a password is rejected before the call, for a route of yaml.event.over.http, for an endpoint that a function names and for a node's server.url, by a text that says where a credential travels: in a request header. The engine built the host from the URL's parts before and sent the call without them. Lines. The record of an aborted traversal holds the status and the error text, and names a structured error body by its kind and size. The line of the graph's exception handler follows the same rule and keeps the text and the target of the engine's own error. An event of an unknown type in the Playground's two WebSocket functions is named by its type. FileDownloadDemo, HelloGeneric and WsEchoDemo write names and no values. The configuration reference, the Event-over-HTTP guide and the skills reference say so, and the design spec records the maintainer's rulings and what the build found. Test first: twelve tests failed against the code as it was. The reference applications' lines have no test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What
The fourth work package of RFC-0019 (credentials and personal data in the application log): the refusals of the spec's 3.5 and the small lines of its 3.6, with two rulings of the maintainer during the build.
Refusals, each naming the key or the fault and not the value:
server.url: quoted throughUtility.maskUrl; a text the parser cannot read is named by the parser's reason.server.header[]: a malformed entry is named by its position,'server.header[1]' is not 'name: value'.AsyncHttpRequest.setCookie: the cookie's name withinvalid nameorinvalid value.AsyncHttpRequest.cookieFaultis public.rest.yaml: named by its methods and its URL; a relay target in a refusal passes through the rule.Target host must not contain a user id or a password. A target that is no URL is named by the parser's reason.Event-over-HTTP target must not contain a user id or a password - send an access token or an API key in a request header, for a route ofyaml.event.over.http, for an endpoint that a function names and for a node'sserver.url.Four lines:
Graph traversal aborted:in the record ofgraph.traversal.logholds the status and the error text, and names a structured error body by its kind and size.app.envisdev, follows the same rule: an error text is written, the engine's own error keeps its text and its target, and any other structured error body is named by its kind and size.FileDownloadDemo,HelloGenericandWsEchoDemowrite names and no values.Also: the configuration reference says what the reason of an aborted traversal holds, the Event-over-HTTP guide and the skills reference say that a target holds no user id and password, the design spec records the rulings and what the build found, and the CHANGELOG gains Security 4 and 5.
Why
A text that refused a configured value or a request repeated that value, with whatever it held: a
server.urlor a relay target with a user id and a password, a header entry with its value, a cookie's value, a REST entry in full. A call to a target host with a user id and a password failed at name resolution with a text that repeated them, in the answer's body and in the caller's trace record. The maintainer agreed with the spec's 3.5 on 2026-12-04; 3.6 was accepted in the RFC's first round.Two rulings came during the build. A failing node of a built-in skill writes no aborted record: the graph's exception handler writes that failure, and it wrote a structured error body in full, so the handler follows the rule of the aborted record. And an Event-over-HTTP target should carry no user id and password - an access token or an API key travels in a request header - so the request is rejected with a proper error message. This engine built the host from the URL's parts before and sent such a call without them.
Upgrade note
Action: an Event-over-HTTP target, or a
server.url, that holds a user id and a password is refused where its call was delivered without them. Take them out of the URL, and send an access token or an API key in the entry'sheadersor inserver.header[].A test, an alert or a handler that matched one of these texts is to be read again. A call of the HTTP client to a target host with a user id and a password answers 400 where it answered 500. A log search that matched the reason of
Graph traversal aborted:or theerror=of the exception handler's line is to be read again.Not changed
A flow's own exception handlers (
SimpleExceptionHandler,TaskExecutor) write a failure's error as it is; the ruling names the graph's handler. The gate does not refuse aserver.urlwith a user id and a password: the request is refused.Verification
RefusalTextsTestinplatform-core(five tests) andRefusalsAndSmallLinesTestin the graph engine (seven tests); all twelve failed against the code as it was.MaskedUrlSitesTestuses a target with a query string only, since a target with a user id is refused before any line, and the graph ofWrittenUrlTestwhoseserver.urlholds a user id answers 400.mvn -o clean installat the root: BUILD SUCCESS, 3,187 tests, no failure, 3 skipped.scripts/check-doc-canon.py: OK.mkdocs build --strict: exit 0. The CHANGELOG's released sections equal the tag v4.12.32, by script.The Rust twin is Accenture/mercury#447.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
🤖 Generated with Claude Code