Skip to content

fix: a refusal names the key and not the value, and three lines write no payload (Increment 235) - #447

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
Collaborator

What

Increment 235, the fourth work package of RFC-0019 in mercury-composable (credentials and personal data in the application log): the twins of the refusals of its spec's 3.5 and of the small lines of its 3.6.

Refusals, each naming the key or the fault and not the value:

  • server.url, a provider URL that is not http or https, and a relay target that the REST loader refuses: quoted through util::mask_url.
  • server.header[]: a malformed entry is named by its position, 'server.header[1]' is not 'name: value'.
  • 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.
  • An Event-over-HTTP target with a user id and a password: rejected before the call with status 400 and 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 mapped route and for an endpoint that a function names. A send to such a route returns the error to its caller.

Three 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.

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, and the CHANGELOG gains Security 5 and 6.

Why

A text that refused a configured value or a request repeated that value, with whatever it held. The HTTP client could not connect to a target host with a user id and a password, and the error text of that failure repeated them. 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: the graph's exception handler follows the rule of the aborted record, and an Event-over-HTTP target with a user id and password is rejected with a proper error message, since an access token or an API key travels in a request header.

Upgrade note

Action: an Event-over-HTTP target, or a server.url, that holds a user id and a password: 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 send to such a route returns an error where it returned none.

A test, an alert or a handler that matched one of these texts is to be read again. 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.

Verification

  • Test first: five unit tests and tests/event_http_declarative.rs failed against the code as it was; the tests of abort_reason, unknown_event, refuse_credentials and handler_line came with the functions.
  • cargo fmt --all --check and cargo clippy --workspace --all-targets --locked --offline -- -D warnings: clean.
  • cargo test --locked --offline: mercury-platform-core 310 passed, 2 ignored; mercury-event-script 97 passed; mercury-knowledge-graph 151 passed; no failure.
  • mkdocs build --strict: exit 0. scripts/check-doc-claims.py: 70 claims pinned on both sides. scripts/check-llms-links.py: 39 references resolve. The CHANGELOG's released sections equal the tag v4.12.32, by script.
  • Not run: the other crates' tests; a live drive. The graph's exception handler was read and not probed with a run.

The Java twin is Accenture/mercury-composable#718.

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

🤖 Generated with Claude Code

… no payload (Increment 235)

The fourth work package of RFC-0019 (mercury-composable), the twin of the Java
engine's change.

Refusals. A refused server.url, a provider URL that is not http or https and a
relay target that the REST loader refuses are quoted through util::mask_url. A
malformed server.header[] entry is named by its position. The HTTP client
refuses a target host with a user id and a password before the call, with
status 400: it could not connect to such a host before, and the error text of
that failure repeated them.

An Event-over-HTTP target with a user id and a password is rejected before the
call, for a mapped route and for an endpoint that a function names, by a text
that says where a credential travels: in a request header. A send to such a
route returns the error to its caller.

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.

The configuration reference, the Event-over-HTTP guide and the skills reference
say so.

Test first: five unit tests and the declarative Event-over-HTTP test failed
against the code as it was; the tests of the new functions came with them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@acn-ericlaw
acn-ericlaw merged commit 6d2ff1e into main Dec 5, 2026
8 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
…d three lines write no payload (#447), merged

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