Harness offboarding

From Intense-Visions/harness-engineering · View interactive version

Harness offboarding is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Conduct a structured departure debrief for an engineer leaving a harness-managed project. Capture the in-flight context, decisions, and social knowledge they hold in their head, hand off open work a

How to use this skill

Skill file

Harness Offboarding

Conduct a structured departure debrief for an engineer leaving a harness-managed project. Capture the in-flight context, decisions, and social knowledge they hold in their head, hand off open work and ownership, run an access/knowledge/secret checklist, and verify nothing load-bearing leaves with the person. The symmetric counterpart to harness-onboarding: onboarding gets knowledge _in_, offboarding gets knowledge _out_ before it is lost.

When to Use

Process

Phase 1: CAPTURE — Debrief the In-Flight Context

The goal is to extract what is _only_ in the departing person's head before it walks out the door. Run this as a structured interview, one topic at a time, and record the answers verbatim — do not paraphrase away specifics.

  1. Seed the debrief from durable surfaces first, so the interview fills gaps rather than re-deriving what is already written:
  1. Conduct the debrief across the five extraction topics. Ask about each explicitly; silence on a topic is a gap, not a pass:
  1. Record answers into the handoff artifact scaffold (written in Phase 3), keeping the person's own words for gotchas and fragility notes — the phrasing carries the warning.

Phase 2: HANDOFF — Transfer Open Work and Ownership

Move everything the person currently _owns_ to a named successor or an explicit "unowned — needs an owner" state. Nothing may silently remain assigned to someone who is gone.

  1. Reassign roadmap ownership. Enumerate roadmap rows where the departing person is the Assignee (sharded shards under docs/roadmap.d/, or docs/roadmap.md for monolith projects). For each, either reassign to a successor or mark the assignee empty and flag the row in the handoff artifact as needing an owner. Use manage_roadmap (or edit the shard's - **Assignee:** line directly for sharded roadmaps — never hand-edit the generated docs/roadmap.md).
  1. Hand off in-flight work. For each open branch, draft PR, or mid-execution plan the person owns:
  1. Transfer expertise ownership. For each area of expertise from Phase 1, record the successor. Where there is no successor, that is the highest-priority gap for the team to resolve — surface it prominently.

Phase 3: CHECKLIST — Knowledge, Access, and Secrets

Run the departure checklist. Knowledge items are performed here; access and secret items are _reminders_ the skill surfaces for a human or platform admin to action — the skill never touches credentials itself.

  1. Materialize the handoff artifact. Write docs/knowledge/handoff-{person}-{date}.md containing the captured debrief, the ownership transfer table, and the checklist status. Use the template in "Handoff Artifact Format" below. This is the durable deliverable — unlike onboarding's conversational orientation, offboarding leaves a permanent record.
  1. Generate ADR drafts from the "recent decisions" captured in Phase 1. Write each as a draft decision record under the project's decisions location (docs/knowledge/decisions/ or wherever AGENTS.md points), marked status: draft for a remaining team member to ratify. Do not invent rationale the person did not give.
  1. Ingest into the knowledge graph. Run ingest_source on the new handoff artifact and any ADR drafts so the captured knowledge is queryable via query_graph after the person is gone. This is what makes the capture load-bearing rather than a document that rots unread.
  1. Access and secret revocation reminders (surface as an actionable checklist — the skill does not execute these):
  1. Knowledge-surface gap review. Compare the debrief answers against the project's written knowledge surfaces and list what is missing:

Each gap becomes a follow-up item in the handoff artifact.

Phase 4: VERIFY — Confirm Nothing Is Orphaned

The exit gate. The person should not leave until each of these is closed or explicitly accepted as a known gap.

  1. No orphaned ownership. No roadmap row still lists the departing person as assignee without either a successor or an explicit "needs owner" flag. Re-scan the roadmap to confirm.
  1. No orphaned in-flight work. Every open branch/PR/plan the person owned has a named successor or is flagged for triage. Nothing is silently abandoned.
  1. Capture is durable and queryable. The handoff artifact exists, ADR drafts are written, and query_graph can retrieve the ingested handoff — verify with a spot query (e.g., ask the graph for the person's areas of expertise).
  1. Access checklist is acknowledged. Every revocation/rotation reminder has an owner and a status (done / pending / N/A). Secrets the person knew are flagged for rotation, not just access removal.
  1. Gaps are visible, not hidden. Any area of expertise with no successor, any undocumented convention, any fragile component with no written warning is listed prominently at the top of the handoff artifact as an accepted risk — so the team decides knowingly rather than discovering it the day it breaks.

Handoff Artifact Format

Write to docs/knowledge/handoff-{person}-{date}.md:

# Handoff: <person> — <date>

## Open Risks (read first)

- <area of expertise with no successor>
- <fragile component with no written owner>
- <undocumented convention now at risk>

## In-Flight Work

| Item             | State   | What's Left | Successor            |
| ---------------- | ------- | ----------- | -------------------- |
| <branch/PR/plan> | <state> | <remaining> | <name / NEEDS OWNER> |

## Ownership Transfer

| Area of Expertise | Successor            | Notes     |
| ----------------- | -------------------- | --------- |
| <subsystem>       | <name / NEEDS OWNER> | <context> |

## Decisions Captured (ADR drafts pending)

- <decision> → <adr-draft path> (status: draft)

## Undocumented Gotchas

- <gotcha, in the person's own words>

## Fragile Components

- <component>: <why it's fragile, what breaks it>

## Access & Secret Checklist

| Item            | Action | Owner   | Status  |
| --------------- | ------ | ------- | ------- |
| <repo access>   | revoke | <admin> | pending |
| <shared secret> | rotate | <admin> | pending |

## Knowledge-Surface Gaps

- AGENTS.md: <missing convention>
- STRATEGY.md: <missing context>
- .harness/learnings.md: <missing gotcha>

Harness Integration

Success Criteria

Rationalizations to Reject

| Rationalization | Reality |

| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| "They wrote good commit messages, so the context is already captured — I can skip the debrief." | Commit messages record _what_ changed, not the decisions not taken, the gotchas never hit in a commit, or the conventions enforced in review. The tacit knowledge is exactly what commits do not hold. |

| "There's no successor for this area, so I'll leave it blank and move on." | A blank owner is the single most dangerous outcome of offboarding. An unowned area of expertise must be surfaced as an open risk at the top of the artifact so the team resolves it knowingly — not discovered the day it breaks. |

| "Revoking their repo access covers the secrets too." | Removing access does not un-know a secret. Any shared credential, signing key, or token the person knew must be flagged for rotation. Access revocation and secret rotation are different actions with different owners. |

| "I'll write the handoff doc but skip graph ingestion — the file is enough." | A file nobody queries rots unread. Ingesting into the knowledge graph is what makes the capture retrievable by the next person who asks 'who understood X?' — that is the difference between capture and burial. |

Examples

Example: Offboarding the De-Facto Owner of a Payments Module

CAPTURE:

search_sessions(author: "dana") → 3 recent sessions on the payments retry logic
summarize_session → "chose exponential backoff over fixed; idempotency key is (orderId, attempt)"

Debrief:
  - Decisions: "Picked Stripe over Adyen for the EU rollout — Adyen's webhook retry
    semantics didn't match our idempotency model." (no ADR exists)
  - Gotchas: "The reconciliation job MUST run after the settlement window closes at
    23:00 UTC — running it early double-counts refunds."
  - Conventions held in head: "All money is cents-as-integer, never float — enforced
    in review, never linted."
  - Areas of expertise: payments/, the reconciliation cron — no clear successor.
  - Fragile components: "The refund path has a race if two partial refunds land in the
    same second — guarded by a DB unique constraint nobody documented."

HANDOFF:

Roadmap: 2 rows assigned to dana → 1 reassigned to sam, 1 marked NEEDS OWNER
In-flight: branch fix/refund-race → 80% done, review feedback unaddressed → successor sam
State: .harness/state.json shows execute phase, task 3 of 5 on the reconciliation plan
Expertise: payments/ → NEEDS OWNER (surfaced as top open risk)

CHECKLIST + VERIFY:

Wrote docs/knowledge/handoff-dana-2026-08-05.md
ADR draft: docs/knowledge/decisions/stripe-over-adyen.md (status: draft)
ingest_source(handoff-dana-2026-08-05.md) → 1 node, 4 edges
query_graph("dana areas of expertise") → returns payments, reconciliation ✓
Access checklist: repo access (revoke), Stripe dashboard seat (revoke),
  shared Stripe restricted key dana provisioned (ROTATE), CI deploy token (re-issue under service acct)
Gaps: AGENTS.md missing "money is integer-cents"; learnings.md missing reconciliation timing gotcha
Open risk logged: payments/ has no successor

Example: Offboarding a Rolling-Off Contractor

CAPTURE:

Short-tenure contributor, one subsystem (the CSV import feature).
Debrief:
  - Decisions: none beyond what's in the merged PRs.
  - Gotchas: "The importer assumes UTF-8; latin-1 files silently corrupt — no test covers it."
  - Conventions: followed existing ones, none held in head.
  - Expertise: CSV import only; the full-time team already knows it.
  - Fragile: the encoding assumption above.

HANDOFF + CHECKLIST + VERIFY:

Roadmap: no rows assigned. In-flight: none open.
Wrote docs/knowledge/handoff-jordan-2026-08-05.md (short — most sections "none")
No ADR drafts (no undocumented decisions).
ingest_source → captured the encoding gotcha as a knowledge node.
Access checklist: contractor GitHub collaborator access (revoke), no secrets known (N/A).
Gap: learnings.md missing the UTF-8/latin-1 encoding gotcha → added.
Verify: no orphaned ownership, no orphaned work, gotcha is queryable. Clean exit.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.