Block a @proxy rule whose transform or narrow substituteIn the platform can't honour, and hold each refusal to its reason
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- A `@proxy(…)` rule with `transform=`, or with a `substituteIn` that does not name the bare `header` target (`["header:authorization"]`, `[query]`), now shows `block: true`. 611 swaps the placeholder into any request header and computes no credential, so showing such a rule unblocked would let the value land in a header the schema never allowed. This is the rule `ruleOf` already stated ("blocked rather than widened") and applied to `approval` and `rules=`. A `substituteIn` that names `header` stays unblocked: the platform's swap stays inside it. - Tests: `proxy.env.schema` gains `NARROW_TOKEN` (header:authorization only, blocked), `CLIENT_SECRET` (header plus a body field, not blocked) and `REGISTRY_TOKEN` (an http-basic transform, blocked), through both parsers; red by assertion before the change. - Tests: each refused fixture now carries its reason and the refusal test asserts it, so a fixture that failed to parse can no longer pass as an import refusal. `infer-required.env.schema` gains varlock's `FN_VALUE` case (a function value is required under `@defaultRequired=infer`).
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+123 added−6 removed
- tests:+103 added−3 removed
- other:+20 added−3 removed