Remediate Tosca Cloud tests from results
Apply ranked fixes from analysis. Mutating — confirm scope before edits. Hybrid: tn mutations, toscactl verify.
Prerequisite: diagnosis from tosca-analyzing-execution-results or user-provided failure detail. tn configured for mutation steps.
Runtime: tn for Builder mutations and playlist-item rename — see runtime-routing.md.
Session checklist
Remediate Cloud tests:
- [ ] Confirm scope and user approval
- [ ] Apply fix [tn]
- [ ] Re-run playlist [toscactl]
- [ ] Report changes, run ID, outcome, confidence
toscactl (default) — verify re-run
toscactl playlists run start "<name>" --wait --json --silent
toscactl playlists run view <run_id> --json --silent
tn (gap fallback) — apply mutations
REPL (approval for mutations):
tn
# /tosca — apply remediation for <test case>; confirm each destructive change with user
Loop (batch fix + verify):
tn --loop "Activate /tosca. Remediate failing tests in playlist '<name>' per approved scope. loop_complete when done."
Then re-run with toscactl (above).
Fast path
- Confirm scope — user approval
- [tn] Resolve artifacts —
tosca_inventory_search→ entityIds - [tn] Apply fix — references/remediation-recipes.md: playlist item rename, API message update, scaffold replacement
- [toscactl] Verify —
playlists run start --wait - Report — changes, run ID, outcome, confidence
Destructive operations
Confirm before: tosca_builder_deleteApiMessage, tosca_playlist_deleteById, folder deletes.
See references/editability-and-persistence.md.