UI-Test A2A Handoff
Purpose
This skill only does one thing: transform a source ui-test-packet into a deterministic, reviewable, and replayable handoff bundle for the next Codex turn.
It preserves:
failure_history
retry_history
required_fix_points
artifact_refs
next_action
It does not:
- run browser automation
- send remote A2A messages
- manage checkpoint runtime
- rewrite large prompt prose into the packet
- mutate business pages or credentials
Inputs
ui-test-packet JSON
- previous handoff packet if present
- optional Codex review notes
- stable evidence references only
Outputs
handoff_packet
prompt_packet
artifact_refs
Operating rules
- Preserve source lineage with
source_packet_id and, when derived, parent_packet_id.
- Never drop historical failures or retries when a new revision is created.
- Do not embed long prompt prose in
artifact_refs.
- Keep outputs deterministic for the same normalized input.
- If a field is unsafe, malformed, or ambiguous, reject it. Do not downgrade missing
steps, non-read-only safety, empty forbidden_actions, or sensitive artifact_refs.
- Treat
handoff_packet as the contract for Codex continuation, not as a transport protocol.
Workflow
- Validate the source packet shape.
- Extract stable context and prior failures.
- Build the minimal handoff contract.
- Build the prompt packet with clear action, constraints, and expected verification.
- Emit stable artifact references only; reject references containing credentials, cookies, tokens, passwords,
Bearer values, or long prompt prose.
- Produce a machine-readable summary for downstream review.
References
- Schema
- Mapping
- Boundaries
- Deterministic mapper
Validation
Run the bundled unit tests and confirm valid input maps deterministically while missing IDs and sensitive artifact references fail closed.
Safety
Do not execute transport, browsers, external messages, or business writes. Reject credentials, authentication state, private raw URLs, and unreviewed prompt payloads.
1---2name: ui-test-a2a-handoff3description: Convert ui-test-packet into a stable A2A-compatible handoff_packet, prompt_packet, and artifact_refs bundle for Codex to keep refining Midscene requests. Use when the user asks for a UI-test交接协议层, prompt转换层, packet to packet mapping, failure_history preservation, retry_history preservation, or artifact reference hygiene. Do not use for real A2A transport, browser execution, or checkpoint runtime.4---56# UI-Test A2A Handoff78## Purpose910This skill only does one thing: transform a source `ui-test-packet` into a deterministic, reviewable, and replayable handoff bundle for the next Codex turn.1112It preserves:13- `failure_history`14- `retry_history`15- `required_fix_points`16- `artifact_refs`17- `next_action`1819It does **not**:20- run browser automation21- send remote A2A messages22- manage checkpoint runtime23- rewrite large prompt prose into the packet24- mutate business pages or credentials2526## Inputs2728- `ui-test-packet` JSON29- previous handoff packet if present30- optional Codex review notes31- stable evidence references only3233## Outputs3435- `handoff_packet`36- `prompt_packet`37- `artifact_refs`3839## Operating rules40411. Preserve source lineage with `source_packet_id` and, when derived, `parent_packet_id`.422. Never drop historical failures or retries when a new revision is created.433. Do not embed long prompt prose in `artifact_refs`.444. Keep outputs deterministic for the same normalized input.455. If a field is unsafe, malformed, or ambiguous, reject it. Do not downgrade missing `steps`, non-read-only safety, empty `forbidden_actions`, or sensitive `artifact_refs`.466. Treat `handoff_packet` as the contract for Codex continuation, not as a transport protocol.4748## Workflow49501. Validate the source packet shape.512. Extract stable context and prior failures.523. Build the minimal handoff contract.534. Build the prompt packet with clear action, constraints, and expected verification.545. Emit stable artifact references only; reject references containing credentials, cookies, tokens, passwords, `Bearer` values, or long prompt prose.556. Produce a machine-readable summary for downstream review.5657## References5859- [Schema](references/schema.md)60- [Mapping](references/mapping.md)61- [Boundaries](references/boundaries.md)62- [Deterministic mapper](scripts/a2a_handoff.py)6364## Validation6566Run the bundled unit tests and confirm valid input maps deterministically while missing IDs and sensitive artifact references fail closed.6768## Safety6970Do not execute transport, browsers, external messages, or business writes. Reject credentials, authentication state, private raw URLs, and unreviewed prompt payloads.