Files
reverse-engineering-anything/docs/specs/agent-environments/scenario-saved-values/plan.md
T
gensokyo-devandEdgar Arakelyan 3fcbabe593 feat(browser): reuse saved response values across scenario steps (#7267)
Save typed response fields and reuse generated IDs or authentication values across browser scenario requests, UI observations and navigation through the shared CLI/MCP workflow.

Preserve exact numbers, retained Evidence, explicit source/coverage limits and prospective page-value semantics. Bound response decoding, retained spellings and request serialization before allocation, and protect marked response values across source records, follow-up text and planned screenshots.

Integrates Edgar Arakelyan's #7162, including follow-ups through 9f5191ab0. Final local validation: 560 feature-branch tests and 561 current-main integration tests, static/build/docs checks and real PocketBase CLI/MCP privacy workflows. Whole-task comparison and verification limits are recorded in docs/verification/browser-saved-values-2026-10-26.md.

Co-authored-by: Edgar Arakelyan <edgar.arakelyan@scale.com>
2026-10-27 08:15:52 +08:00

1.3 KiB

Plan

  1. Schema: save on request steps, save_response on click and press, the saved value source in headers and credential parts, basic_credentials with two parts, and the {saved:name} placeholder.
  2. Validation: every saved value a step sends was saved by an earlier step.
  3. Runtime: read the response body when a step saves, start waiting for a UI step's response before it acts, keep saved values with their JSON type, fill placeholders, build Basic credentials, and redact secret saves.
  4. Evidence: leave an empty save out of the recorded step.
  5. Environment build: warn about credential-named saved values not marked secret.
  6. Skill and docs: write through the UI first and save ids instead of guessing them; bump the skill version.
  7. Tests: schema, runtime with a fake page, Evidence parameters, the build warning, the catalog budget, and a real-Chrome recording.
  8. Write model: compose strings from generated ids and other fields, learn the & spelling of slugs, tell apart addresses whose parts are the same text, and check templates on later creates; census every recorded capture.
  9. End to end: agents build environments from prompts with main and with this branch on the same applications, and the branch's recordings are rebuilt before and after the write-model changes.