Repository navigation
fix: a refusal names the key and not the value, and three lines write no payload (Increment 235) - #447
Merged
Conversation
… 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
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>
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
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 nothttporhttps, and a relay target that the REST loader refuses: quoted throughutil::mask_url.server.header[]: a malformed entry is named by its position,'server.header[1]' is not 'name: value'.Target host must not contain a user id or a password.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. Asendto such a route returns the error to its caller.Three 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.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'sheadersor inserver.header[]. Asendto 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 theerror=of the exception handler's line is to be read again.Verification
tests/event_http_declarative.rsfailed against the code as it was; the tests ofabort_reason,unknown_event,refuse_credentialsandhandler_linecame with the functions.cargo fmt --all --checkandcargo clippy --workspace --all-targets --locked --offline -- -D warnings: clean.cargo test --locked --offline:mercury-platform-core310 passed, 2 ignored;mercury-event-script97 passed;mercury-knowledge-graph151 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.The Java twin is Accenture/mercury-composable#718.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
🤖 Generated with Claude Code