You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #259 introduced the new ContextResolver architecture based on provider/auth-scoped source-of-truth paths, deterministic Views, and the execution-time Request.Context.Current alias.
This resolved the architectural direction, but follow-up cleanup is still needed to make the repository fully consistent.
At the moment, there is still a risk that some documentation, examples, troubleshooting guidance, comments, or tests may reflect older assumptions from the superseded flattening approach that was explored in PR #258. In particular, profile attribute access must be documented and tested consistently so workflow authors do not infer unsupported paths from outdated examples.
Without this cleanup, users may:
use legacy or incorrect path assumptions,
misunderstand the difference between scoped source-of-truth data and convenience Views,
misdiagnose condition/template failures when inspecting resolver output.
Proposed Solution
Perform a focused post-#259 consistency pass covering documentation, examples, troubleshooting, and tests.
Scope:
Documentation consistency review
Review all ContextResolver-related docs and references.
Remove or correct any stale wording that implies the old flattening model.
Ensure the documentation consistently distinguishes:
source of truth: Request.Context.Providers.<ProviderAlias>.<AuthSessionKey>...
deterministic Views: Request.Context.Views...
execution-time alias: Request.Context.Current...
Correct profile attribute consumption examples
Review all examples using identity profile values.
Ensure examples use the actually supported path shape.
Explicitly document that workflow authors must not assume that convenience Views are raw mirrors of one scoped resolver output.
Troubleshooting improvements
Add a focused troubleshooting section for debugging ContextResolver output.
Document the recommended inspection/debugging approach, including:
dumping relevant context fragments with ConvertTo-Json,
checking scoped provider/auth paths first,
then checking the derived View,
understanding deterministic ordering / effective last-writer-wins selection for profile Views.
Explain why a View may differ from one specific scoped source path.
Test coverage review
Review existing tests for stale flattening expectations.
Add/adjust tests that verify:
supported profile attribute access paths,
deterministic View behavior,
examples/fixtures match the documented model,
no regressions around template substitution and condition-path validation.
Problem Statement
PR #259 introduced the new ContextResolver architecture based on provider/auth-scoped source-of-truth paths, deterministic Views, and the execution-time
Request.Context.Currentalias.This resolved the architectural direction, but follow-up cleanup is still needed to make the repository fully consistent.
At the moment, there is still a risk that some documentation, examples, troubleshooting guidance, comments, or tests may reflect older assumptions from the superseded flattening approach that was explored in PR #258. In particular, profile attribute access must be documented and tested consistently so workflow authors do not infer unsupported paths from outdated examples.
Without this cleanup, users may:
Proposed Solution
Perform a focused post-#259 consistency pass covering documentation, examples, troubleshooting, and tests.
Scope:
Documentation consistency review
Request.Context.Providers.<ProviderAlias>.<AuthSessionKey>...Request.Context.Views...Request.Context.Current...Correct profile attribute consumption examples
Troubleshooting improvements
ConvertTo-Json,Test coverage review
Example workflow review
Alternatives Considered
Reopen or continue PR Remove attribute flattening to align with scoped ContextResolver model (breaking change) #258
Continue tracking this under bug ContextResolver Identity.Read values not working in EnsureOutOfOffice template substitution #254
Do nothing
Impact
Does this affect existing workflows?
Any backward compatibility concerns?
Additional Context
Step-0 guidance / acceptance focus:
ConvertTo-Json.