Skip to content

fix: a refusal names the key and not the value, and four lines write no payload (RFC-0019) - #718

Merged
acn-ericlaw merged 1 commit into
mainfrom
feat/refusals-and-small-lines
Dec 5, 2026
Merged

acn-ericlaw merged 1 commit into
mainfrom
feat/refusals-and-small-lines

Conversation

@acn-ericlaw

Copy link
Copy Markdown
Contributor

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 through Utility.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'.
  • A refused cookie, at the HTTP edge and in AsyncHttpRequest.setCookie: the cookie's name with invalid name or invalid value. AsyncHttpRequest.cookieFault is public.
  • An invalid entry of rest.yaml: named by its methods and its URL; a relay target in a refusal passes through the rule.
  • A target host with a user id and a password: the HTTP client refuses it before the call, status 400, Target host must not contain a user id or a password. 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: rejected before the call with 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 of yaml.event.over.http, for an endpoint that a function names and for a node's server.url.

Four lines:

  • Graph traversal aborted: in the record of graph.traversal.log 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, written where app.env is dev, 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.
  • 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.

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.url or 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's headers or in server.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 the error= 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 a server.url with a user id and a password: the request is refused.

Verification

  • Test first: RefusalTextsTest in platform-core (five tests) and RefusalsAndSmallLinesTest in the graph engine (seven tests); all twelve failed against the code as it was.
  • Two earlier tests changed with the Event-over-HTTP ruling: the failure line of MaskedUrlSitesTest uses a target with a query string only, since a target with a user id is refused before any line, and the graph of WrittenUrlTest whose server.url holds a user id answers 400.
  • mvn -o clean install at 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 reference applications' three lines have no test. The edge's two cookie lines were not reached by a request: the HTTP server drops a malformed cookie first, so the test holds the shared text and the model's line.
  • Not run: a live drive.

The Rust twin is Accenture/mercury#447.

Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com

🤖 Generated with Claude Code

…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>
@acn-ericlaw
acn-ericlaw merged commit 3ca927c into main Dec 5, 2026
6 checks passed
@acn-ericlaw
acn-ericlaw deleted the feat/refusals-and-small-lines branch December 5, 2026 04:13
acn-ericlaw added a commit that referenced this pull request Dec 5, 2026
… value, and four lines write no payload, built test first and merged (#718), with the Rust twin (mercury #447)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.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.

1 participant