Repository navigation
feat(cli): record ordered evidence steps - #81
Merged
Merged
Conversation
1 of 18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Before/after screenshots cannot show which intermediate state proves each action in a Flutter run. This made click and hot-reload evidence ambiguous.
What
stepsbetweenbeforeandafter.report.md.Schema
Schema v3 adds optional ordered
stepsand optionalchecks[].step. A recording input can look like this:{ "schemaVersion": 3, "scenario": "Counter increments and keeps state after hot reload", "outcome": "passed", "before": { "summary": "Counter was zero with the old theme.", "observations": [{ "label": "Counter", "value": "0" }], "artifacts": [] }, "steps": [ { "label": "Clicks complete", "summary": "Counter reached two before reload.", "observations": [{ "label": "Counter", "value": "2" }], "artifacts": [ { "kind": "screenshot", "label": "Clicked frame", "source": "/absolute/path/clicked.png" } ] } ], "after": { "summary": "The new theme appeared and counter stayed at two.", "observations": [{ "label": "Counter", "value": "2" }], "artifacts": [] }, "sourceChanges": ["lib/main.dart"], "checks": [ { "name": "desktop click", "status": "passed", "summary": "Counter advanced to two.", "step": "Clicks complete" } ], "limitations": [] }The canonical output keeps this order, adds run metadata, and replaces submitted artifact sources with the existing content-addressed artifact and optional preview metadata. Inputs with schema versions 1 through 3 are accepted; output is always version 3. Version 0 and future version 4 are rejected.
How it was verified
cargo fmt --checkcargo clippy --workspace --all-targets --locked -- -D warningscargo test -p pickforge-cli(85 passed)complexity-gate check --changedNot verified
Closes #74