agentleFS
44-pixels44-pixels/handover-mcp/skills/handover-test-continuity/SKILL.md

handover-test-continuity

Skill1 starsChanged 4 months agoMITView on GitHub

Run a complete Handover MCP continuity test across separate authenticated people or service agents. Use when asked to test an agent handoff end to end, qualify a Handover integration, verify multi-file round-trip, exercise revision-anchored review and correction, or test denied, read-only, stale-revision, and revoked-credential paths.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 14 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not report a continuity pass merely because the endpoint responded or a create call succeeded.

    line 14
  2. Very specific:

    Use handover-verify instead when the user only needs a read-only connection or identity check.

    line 28
  3. Distinctive:

    Use a unique marker such as:

    line 46
  4. Distinctive:

    Never request, display, log, or publish credentials.

    line 52
  5. Distinctive:

    If the required identities or permissions are unavailable, run only the provable subset and mark every skipped checkpoint.

    line 55
  6. Distinctive:

    stop if any boundary is unexpected.

    line 66
  7. Very specific:

    call handover.search for the unique marker before creating.

    line 67
  8. Distinctive:

    Keep the record restricted to the test workspace.

    line 83
  9. Very specific:

    call handover.get for the returned handover.

    line 90
  10. Very specific:

    call handover.read_artifact for all three artifacts.

    line 91
  11. Very specific:

    verify names, media types, marker, full content, and truncated: false.

    line 92
  12. Distinctive:

    verify Principal A is the revision author.

    line 93
  13. Very specific:

    Call handover.annotations again.

    line 139
  14. Distinctive:

    read the corrected source artifacts.

    line 153
  15. Distinctive:

    Run and record each result:

    line 162
  16. Distinctive:

    Revoked credential: after an owner revokes a dedicated test credential, the next protected read must fail without returning or logging the …

    line 170
  17. Distinctive:

    Do not substitute a broader credential when a negative path fails.

    line 174
  18. Distinctive:

    search before create prevented duplicates.

    line 181
  19. Distinctive:

    no credential appeared in artifacts, output, or logs.

    line 191
  20. Distinctive:

    If any required checkpoint was skipped, return incomplete, not pass.

    line 193

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test Handover continuity

Prove that work survives a change of identity, host, review state, and revision. Do not report a continuity pass merely because the endpoint responded or a create call succeeded.

Distinguish the test layers

Report each layer separately:

  1. Connectivity: the host can reach Handover and list or call tools.
  2. Workflow completion: one authenticated actor publishes and reads back an immutable multi-file revision.
  3. Continuity: another authenticated actor reviews exact evidence, a later revision corrects it, and a fresh successor continues without the original chat.

Use handover-verify instead when the user only needs a read-only connection or identity check.

Preconditions

Require:

  • Principal A with read and write access;
  • Principal B with read and annotation access;
  • Principal C with read and write access, which may be Principal A;
  • Principal D outside the workspace for the denied test;
  • a dedicated test workspace or an explicit integration-test label; and
  • permission to create harmless test data and revoke a test credential.

Grant each principal only the smallest role and workspace scope required for its checkpoint. The test must not use owner access where a member, reviewer, reader, or denied principal is the behavior under evaluation.

Use a unique marker such as:

e2e-mcp-handoff-YYYYMMDD-HHMMSS

Never request, display, log, or publish credentials. Do not put hidden reasoning or unrelated personal data in artifacts.

If the required identities or permissions are unavailable, run only the provable subset and mark every skipped checkpoint. Do not widen access merely to make a test pass.

1. Verify the publisher

As Principal A:

  1. call handover.whoami;
  2. record the server-resolved principal, organization, workspace, role, and scopes;
  3. stop if any boundary is unexpected; and
  4. call handover.search for the unique marker before creating.

Authorship comes from the accepted credential, never from a name supplied in the prompt.

2. Publish and read back the source package

Call handover.create with:

  • a brief containing objective, current state, decisions, one open question, and one open next step;
  • context.md containing the marker and continuation state;
  • query.sql containing executable analysis; and
  • evidence.json containing the marker, claim, source, and pending verification state.

Keep the record restricted to the test workspace.

Save every returned handover, revision, artifact, comment, and principal ID. Never invent IDs.

Then:

  1. call handover.get for the returned handover;
  2. call handover.read_artifact for all three artifacts;
  3. verify names, media types, marker, full content, and truncated: false; and
  4. verify Principal A is the revision author.

A create response without exact artifact read-back fails workflow completion.

3. Review exact evidence independently

In a separate authenticated session, Principal B:

  1. calls handover.whoami and proves its principal ID differs from Principal A;
  2. searches for the unique marker;
  3. calls handover.get with the initial revision ID;
  4. reads query.sql and evidence.json;
  5. creates an artifact annotation with handover.annotate;
  6. anchors it to the initial revision, SQL artifact, exact selected text, surrounding context, and offsets calculated from the returned source;
  7. mentions or assigns an authorized resolver when appropriate; and
  8. confirms the finding is open with handover.annotations.

Mentions and assignments do not grant access. Do not comment on a summary when the underlying artifact is available.

4. Publish a correction safely

Principal C:

  1. calls handover.whoami;
  2. retrieves the current revision;
  3. calls handover.continue with that revision as expectedRevisionId;
  4. publishes corrected query.sql and evidence.json;
  5. updates the brief and next steps; and
  6. records the new revision ID.

The correction must be a later immutable revision. The initial reviewed revision must remain inspectable.

5. Verify and resolve

Principal B retrieves the correcting revision and reads both corrected artifacts. Only after verifying the evidence, call handover.update_comment with:

  • the original comment ID;
  • status: "resolved"; and
  • resolvedRevisionId set to the correcting revision.

Call handover.annotations again. Require the annotation to remain anchored to the initial artifact and revision while its resolution names the correcting revision.

6. Prove successor continuity

Give a fresh authorized session only the marker or canonical handover link, not the original chat.

The successor must:

  1. verify its identity;
  2. find and retrieve the current handover;
  3. inspect annotations;
  4. read the corrected source artifacts;
  5. state the objective, current revision, corrected decision, and next action; and
  6. continue only when new work is actually performed.

The stated continuation must agree with the canonical artifacts and brief.

7. Run the required negative paths

Run and record each result:

  • Denied identity: Principal D must not discover or retrieve the protected record.
  • Read-only identity: protected reads succeed, while annotation and continuation writes are refused.
  • Stale revision: a continuation using the initial revision after the correction exists must return a conflict and require rereading.
  • Revoked credential: after an owner revokes a dedicated test credential, the next protected read must fail without returning or logging the credential.

Do not substitute a broader credential when a negative path fails.

Pass criteria

Pass only when all applicable checks are evidenced:

  • publisher and reviewer have distinct server-resolved identities;
  • search before create prevented duplicates;
  • Markdown, SQL, and JSON round-trip intact;
  • the reviewer retrieved the exact initial revision;
  • the finding is anchored to exact initial evidence;
  • the correction is a later immutable revision;
  • resolution links to the correcting revision;
  • a fresh successor recovered the objective, decision, and next action;
  • denied and read-only boundaries held;
  • stale continuation was rejected;
  • revoked credentials stopped authorizing reads; and
  • no credential appeared in artifacts, output, or logs.

If any required checkpoint was skipped, return incomplete, not pass.

Report

Return:

  • overall result: pass, fail, or incomplete;
  • connectivity, workflow completion, and continuity results separately;
  • principal types and IDs, without credentials;
  • workspace and access boundary;
  • handover and revision IDs;
  • artifact round-trip result;
  • annotation and resolution result;
  • successor recovery result;
  • every negative-path result;
  • skipped checks and why;
  • first failed checkpoint and safe remediation; and
  • cleanup or archival action.

For exact sample payloads and offsets, use the production-schema procedure and the rendered rationale.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.