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.
In this repository7 other files it gives its agents.
- handoffSkill
- handover-governanceSkill
- handover-publishSkill
- handover-recordSkill
- handover-resumeSkill
- handover-reviewSkill
- handover-verifySkill
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
- Distinctive: line 14
Do not report a continuity pass merely because the endpoint responded or a create call succeeded.
- Very specific: line 28
Use handover-verify instead when the user only needs a read-only connection or identity check.
- Distinctive: line 46
Use a unique marker such as:
- Distinctive: line 52
Never request, display, log, or publish credentials.
- Distinctive: line 55
If the required identities or permissions are unavailable, run only the provable subset and mark every skipped checkpoint.
- Distinctive: line 66
stop if any boundary is unexpected.
- Very specific: line 67
call handover.search for the unique marker before creating.
- Distinctive: line 83
Keep the record restricted to the test workspace.
- Very specific: line 90
call handover.get for the returned handover.
- Very specific: line 91
call handover.read_artifact for all three artifacts.
- Very specific: line 92
verify names, media types, marker, full content, and truncated: false.
- Distinctive: line 93
verify Principal A is the revision author.
- Very specific: line 139
Call handover.annotations again.
- Distinctive: line 153
read the corrected source artifacts.
- Distinctive: line 162
Run and record each result:
- Distinctive: line 170
Revoked credential: after an owner revokes a dedicated test credential, the next protected read must fail without returning or logging the …
- Distinctive: line 174
Do not substitute a broader credential when a negative path fails.
- Distinctive: line 181
search before create prevented duplicates.
- Distinctive: line 191
no credential appeared in artifacts, output, or logs.
- Distinctive: line 193
If any required checkpoint was skipped, return incomplete, not pass.
≈ “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.
Files
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:
- Connectivity: the host can reach Handover and list or call tools.
- Workflow completion: one authenticated actor publishes and reads back an immutable multi-file revision.
- 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-HHMMSSNever 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:
- call
handover.whoami; - record the server-resolved principal, organization, workspace, role, and scopes;
- stop if any boundary is unexpected; and
- call
handover.searchfor 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.mdcontaining the marker and continuation state;query.sqlcontaining executable analysis; andevidence.jsoncontaining 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:
- call
handover.getfor the returned handover; - call
handover.read_artifactfor all three artifacts; - verify names, media types, marker, full content, and
truncated: false; and - 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:
- calls
handover.whoamiand proves its principal ID differs from Principal A; - searches for the unique marker;
- calls
handover.getwith the initial revision ID; - reads
query.sqlandevidence.json; - creates an artifact annotation with
handover.annotate; - anchors it to the initial revision, SQL artifact, exact selected text, surrounding context, and offsets calculated from the returned source;
- mentions or assigns an authorized resolver when appropriate; and
- 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:
- calls
handover.whoami; - retrieves the current revision;
- calls
handover.continuewith that revision asexpectedRevisionId; - publishes corrected
query.sqlandevidence.json; - updates the brief and next steps; and
- 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"; andresolvedRevisionIdset 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:
- verify its identity;
- find and retrieve the current handover;
- inspect annotations;
- read the corrected source artifacts;
- state the objective, current revision, corrected decision, and next action; and
- 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.
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
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.

