Skip to content

fix(examples): stop claiming a guessed selector is a flagged TODO - #493

Open
HappyDevs1 wants to merge 1 commit into
mainfrom
fix/490-example-todo-comment
Open

fix(examples): stop claiming a guessed selector is a flagged TODO#493
HappyDevs1 wants to merge 1 commit into
mainfrom
fix/490-example-todo-comment

Conversation

@HappyDevs1

Copy link
Copy Markdown
Collaborator

Summary

  • examples/fiori/purchase-info-records-report.flow.yaml's header claimed "two steps left as flagged TODOs rather than guessed," but only one actually was — the tile-navigation step resolved to a concrete selector (Click "Display Purchasing Info Record") with its own comment admitting it was "a best-effort guess... not a confirmed label," directly contradicting the header.
  • Replaced it with an honest, unresolved prose TODO, matching the sibling TODO step's exact shape (a comment citing the specific PDF ambiguity, a step quoting the source via Observed - "...").
  • Added a permanent test, purchase_info_records_example_parses_as_a_multi_surface_flow, so this file's parseability is now covered by examples_resolve.rs going forward.

A bug found and fixed during verification

The first version of the replacement step used a colon (options: "Manage Info Records") inside an unquoted YAML plain scalar — read by YAML as a nested mapping key, breaking the parse. Fixed by using an em dash instead, matching the sibling step's punctuation (dash before quoted text, never colon-space).

Test plan

  • cargo test -p flowproof-cli --test examples_resolve — 7/7 pass
  • cargo fmt --check
  • cargo clippy -p flowproof-cli --all-targets -- -D warnings

Fixes #490

🤖 Generated with Claude Code

purchase-info-records-report.flow.yaml's header said two steps were
left as flagged TODOs rather than guessed, but only one was — the
tile-navigation step carried a resolved selector with its own comment
admitting it was "a best-effort guess... not a confirmed label,"
directly contradicting the header.

The step is now an honest, unresolved TODO matching its sibling's
shape, and a permanent test parses the whole file so this can't
silently regress.

Fixes #490
Copilot AI lite review requested due to automatic review settings August 18, 2026 11:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

examples: purchase-info-records flow claims a guessed selector is a flagged TODO

2 participants