RFC 9651 Quiz (EN)

Structured Field Values for HTTP

0 / 0

References (URLs)

Q1: Can an implementation reinterpret this legacy field as a Structured Field?

Multiple Choice

X-Agent-Role was defined years ago with bespoke comma-separated syntax and does not reference RFC 9651 or RFC 8941. A new implementation wants to parse it as a Dictionary without changing the field specification.

**Explanation:** A: RFC 9651 Section 1 says the mechanism applies only to fields that explicitly opt in and is not intended to redefine existing fields. B: Accidental compatibility of observed values does not change the normative field definition or guarantee that all producers share the new interpretation. C: Section 1 expressly rejects automatic redefinition. RFC 9651 supplies reusable syntax only when a field specification selects it. D: Structured Headers are a primary use case. Header placement is not the missing condition; explicit specification is. Decision rule: Parser selection follows the field's defining specification; it cannot silently create a new protocol contract.

Q2: What is missing from this new field definition?

Multiple Choice

A draft says only: Agent-Limits is a Structured Field using RFC 9651 and may appear in requests. Implementers disagree about whether its value is an Item, List, or Dictionary and how invalid limits are handled.

**Explanation:** A: Examples help readers but cannot choose application semantics or failure consequences for every valid and invalid value. B: A registry entry identifies a field but does not supply the field-specific contract required by RFC 9651 Section 2. C: Operational size limits matter, but Section 2 also requires the type, meaning, constraints, and handling of violations. D: RFC 9651 Section 2 lists these definition duties. They are what let independent parsers produce the same abstract value and application outcome. Decision rule: Structured Fields standardizes common syntax; the field specification still owns its complete application contract.

Q3: How should the gateway handle this malformed field?

Multiple Choice

Agent-Policy is defined as a Dictionary Structured Header. It contains an unterminated String. One gateway inserts a closing quote and accepts admin=true, while another fails parsing and ignores the field.

**Explanation:** A: A signature does not define missing syntax, and changing signed input can invalidate the signature. Parser behavior still must follow the field definition. B: RFC 9651 Sections 1.1 and 2.2 make strict failure intentional: a parsing failure causes the entire field to be ignored. C: The parser has not produced a Dictionary from which a safe member can be selected. Partial recovery is not the defined error behavior. D: Section 1.2 requires parsing behavior indistinguishable from the algorithms. Local tolerance is not an allowed alternative outcome. Decision rule: Canonical interoperability comes from one strict parse result, not from different components guessing how a malformed sender intended to write the field.

Q4: May this receiver reject an unknown Dictionary member?

Multiple Choice

Agent-Capabilities is defined as a Dictionary Structured Header. Its specification defines keys run and stream but says nothing about unknown keys. A receiver rejects the entire request when it sees audit=?1.

**Explanation:** A: Security sensitivity can justify a stricter field definition, but it does not silently change the processing rule of an already specified field. B: A syntactically valid unknown member can parse successfully. Unknown application meaning is distinct from a Structured Fields syntax error. C: RFC 9651 Sections 2.3 and 3.2 say unknown Dictionary members are ignored unless the field specification specifically disallows them. D: Ignoring means not acting on the member. Forward compatibility does not authorize behavior whose semantics the receiver does not understand. Decision rule: Extensibility policy is part of the field definition: default-ignore preserves evolution, while reject-on-unknown must be an explicit protocol choice.

Q5: Can this extension add the Date type to the existing field?

Multiple Choice

Agent-State is defined as a Structured Header by normatively referencing RFC 8941. An extension adds an expires parameter using the RFC 9651 Date type because current gateways have upgraded parsers.

**Explanation:** A: RFC 9651 Section 2.4 says extensions are limited to the types in the specific Structured Fields RFC referenced by the field. RFC 8941 recipients would treat Date syntax as invalid. B: A parser upgrade can make previously invalid syntax parse, which Section 2.4 identifies as a risk; it does not rewrite the field's contract. C: An RFC 8941 parser does not recognize the Date syntax and can fail the entire field before application logic sees an optional parameter. D: RFC 9651 permits Date as a bare item, including a parameter value when a field definition based on RFC 9651 allows it. Decision rule: Syntax evolution requires an explicit field-definition transition that accounts for old recipients, not deployment-specific parser capability.

Q6: Which profile rule makes this signed A2A field interoperable?

Multiple Choice

An agent sends repeated Agent-Context header lines through a combining proxy. The backend parses the result, reconstructs a preferred serialization, verifies a message signature, and authorizes from role and scope members.

**Explanation:** A: RFC 9651 parsing establishes an abstract value, not signer identity or permission. Authorization cannot be inferred from syntactic success. B: Section 1.2 allows serializers to vary when the result parses correctly. HTTP also permits combining appropriate field lines, so exact whitespace is not the general contract. C: Ignoring an unknown member for field semantics does not mean it can be removed from a cryptographic input. Signature processing follows its own covered-component rules. D: RFC 9651 Sections 2, 2.4, and 4 define the syntax contract and version boundary. Signature and authorization layers must specify how they consume that result. Decision rule: A robust composition names the bytes or abstract value each layer consumes and never treats successful parsing as cryptographic or authorization evidence.