Skip to content

fix(kiota): collect_proxy_network_data as observed never-returned behaviour — run #9's two failures - #113

Merged
ShocOne merged 1 commit into
mainfrom
fix/kiota-collect-proxy-not-returned
Aug 5, 2026
Merged

fix(kiota): collect_proxy_network_data as observed never-returned behaviour — run #9's two failures#113
ShocOne merged 1 commit into
mainfrom
fix/kiota-collect-proxy-not-returned

Conversation

@ShocOne

@ShocOne ShocOne commented Aug 5, 2026

Copy link
Copy Markdown
Member

Why

Run #9 was down to two failures, both collect_proxy_network_data, and both consequences of #112's hand-rolled skipFlatten:

  • page_load: "provider still indicated an unknown value" — a blueprint-level skipFlatten skips the whole mapping, so an unset computed-optional attribute stays unknown after apply, which the framework rejects. The emitter's own comment warned this exact thing: "skipping the assignment is necessary and not sufficient."
  • web_transaction: false → null — its API omits the field from responses just like page_load's; run feat: nested attributes, SDK binding checks and a drift gate #8 simply failed earlier (on block_domains) before reaching it.

What

Both blueprints now declare behaviour.returnedOnRead: false — the observed-behaviour channel the emitter already honours (it's how the resty pilot's tag match_type learned this same lesson in its own first live run). The generated mapper then does both halves correctly: a configured value is carried through untouched, an unset one resolves to null. The hand skipFlatten is gone and the flatten wire restored, so evidence decides at render time and the curated wire keeps saying what the API documents.

http_server deliberately keeps its flatten: its probes observed the field returned, and the live runs agree — the test families genuinely differ.

Verification

  • 1126/1126 bindings check; probe verify exit 0; both pilots 0 drift; all suites 0 failures.
  • Generated page_load/web_transaction state.go now carries the canonical "deliberately not read back" block with the unknown→null resolution.

After merge: dispatch go | Acceptance tests (kiota) run #10.

🤖 Generated with Claude Code

… say so as observed behaviour

Run #9 answered run #8's patch with the two halves of the same truth. A
blueprint-level skipFlatten leaves an unset computed-optional attribute
unknown after apply, which the framework rejects -- the emitter's own
comment warned that skipping the assignment is necessary and not
sufficient. And web_transaction's API omits the field from its responses
just as page_load's does; it merely failed later once blockDomains was
fixed.

Both blueprints now declare behaviour.returnedOnRead: false -- the
observed-behaviour channel the emitter already honours -- so the
generated mapper carries a configured value through and resolves an
unset one to null, exactly as the tag pilot's match_type learned in the
resty dialect's own first live run. The hand skipFlatten is gone and
the flatten wire restored; evidence decides at render time.

http_server keeps its flatten: its probes observed the field returned,
and the live runs agree. The families genuinely differ.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ShocOne
ShocOne merged commit 1b0e682 into main Aug 5, 2026
9 of 12 checks passed
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