drift-sweep
Skill3 starsChanged 4 months agoMITView on GitHub
Use when cards reach next-audit. Checks accepted cards against read-only sources, routes mismatches to drift-flag, and reports what needs review.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- lukasrepublic/agentic-foundrytheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- lukasrepublic/agentic-foundry★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- business-ontology-packageSkill
- build-brainSkill
- business-ontologySkill
- connect-sourceSkill
- daily-ingestSkill
- decide-like-moduleSkill
- drift-flagSkill
- extract-from-inputSkill
- grill-gapsSkill
- interaction-contractSkill
- interpretSkill
- meeting-recorderSkill
- meeting-transcript-ingestSkill
- mine-materialsSkill
- onboard-contourSkill
- package-updateSkill
- promote-digestSkill
- propose-changeSkill
- show-modelSkill
- synthesize-digestSkill
- system-analysisSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill when:
- Distinctive: line 29
Source access: read-only access to the registered sources needed to re-check overdue cards, bounded by each source's read policy.
- Distinctive: line 34
Load the accepted model: Read accepted cards only. Staged proposals are visible review material, not truth.
- Very specific: line 48
Run validation: Run python3 scripts/links_validate.py <ontology-root> and, if proposals were staged, python3 scripts/links_validate.py …
- Very specific: line 54
Read access to accepted ontology cards, 02-source-map.md, open questions, and registry output.
- Distinctive: line 55
Read-only source connectors within each source's policy.
- Very specific: line 61
Every write-like result goes to staged/ or to a review digest.
- Distinctive: line 65
Before calling the sweep complete, show:
- Distinctive: line 68
every source id read and the read policy used.
- Very specific: line 69
every drift-flag handoff, with affected card id and class (drift or gap).
- Distinctive: line 82
Do not broaden access: If a source cannot be read within its registered policy, mark the card blocked and ask for human action.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Drift sweep
Purpose
Drift is caught in two ways: on contact, when work exposes a contradiction, and on cadence, when the model deliberately checks stale cards. drift-flag handles one anchored divergence. drift-sweep is the cadence orchestrator: it finds the cards due for review, checks each against its registered source or current read-only evidence, and routes any real mismatch to drift-flag.
The sweep exists because a model of reality can go stale while still looking valid. A card can keep passing links_validate even after its owner changed, its source-of-truth moved, or a state transition grew a new exception path. The sweep does not make the agent the author of truth; it makes staleness visible before downstream agents and dashboards keep leaning on old claims.
When to use
Use this skill when:
- The configured drift cadence fires.
- A human asks for a review of stale or overdue cards.
- Packaging or publication is about to happen and overdue
next-auditcards need to be checked. synthesize-digestneeds a fresh view of what is overdue, still current, or waiting on human review.
Do not use this skill for a single contradiction encountered during normal work; call drift-flag directly. Do not use it to mine new inputs, register new sources, promote staged changes, or update accepted cards. A sweep can produce proposals and a summary; it cannot commit reality.
Inputs
- Ontology root: the accepted model,
02-source-map.md, open questions, and optional registry. - Cadence date: the date used to compare
next-audit. - Source access: read-only access to the registered sources needed to re-check overdue cards, bounded by each source's read policy.
- Scope limit: optional list of card ids, folders, or source ids to sweep instead of the full ontology.
Procedure
- Load the accepted model. Read accepted cards only. Staged proposals are visible review material, not truth.
- Find due cards. Select cards whose
next-auditis before the cadence date, whoselast-reviewedisunknown, or whose source-map entry changed since the last review. Keep the list explicit by card id. - Resolve provenance. For each card, resolve
sourcethrough02-source-map.md. If the source is missing, unregistered, unsafe, or below the card's status, stop the card review and route a provenance issue throughpropose-changeordrift-flagas appropriate. Do not silently refresh the card. - Check reality without broadening access. Re-read only the evidence allowed by the source's read policy. Use distilled facts and pointers; do not pull raw payloads, PII, or secrets into the ontology, logs, or digest.
- Classify each outcome.
- Current: the card still matches the source and observed reality. Propose a cadence refresh only if the deployment permits staged maintenance proposals.
- Drift: the card used to be right, but reality moved. Call
drift-flagwith the affected card id and evidence. - Gap: the source describes as-should while practice shows as-is divergence. Call
drift-flagand route the resolution as a decision, not a silent edit. - Blocked: the source is unavailable, unsafe, unregistered, or insufficient. Record an open question; do not guess.
- Run validation. Run
python3 scripts/links_validate.py <ontology-root>and, if proposals were staged,python3 scripts/links_validate.py <ontology-root> --staged. Show the output. - Summarize for humans. Produce a sweep summary: checked cards, current cards, drift/gap flags created, blocked source checks, proposals awaiting human review, and validator output. Hand the summary to
synthesize-digestwhen the cadence run should be posted to a channel.
Tools
- Read access to accepted ontology cards,
02-source-map.md, open questions, and registry output. - Read-only source connectors within each source's policy.
drift-flagfor each concrete divergence.propose-changefor cadence refresh proposals or source/provenance corrections.scripts/links_validate.pyfor mechanical validation.synthesize-digestfor publishing the sweep summary.
Every write-like result goes to staged/ or to a review digest. No promoted card, source, registry JSON, AGENTS.md, or contract reference is edited by the resident agent.
Validation
Before calling the sweep complete, show:
- the list of checked card ids and why they were selected;
- every source id read and the read policy used;
- every
drift-flaghandoff, with affected card id and class (driftorgap); - any blocked cards and the reason they were not refreshed;
- validator output for promoted cards and staged proposals if proposals exist;
- confirmation that no accepted card was edited directly.
Output
A sweep summary, plus zero or more staged proposals or drift-flag handoffs. The summary is not a promotion decision. It is an attention packet for the human: what is still current, what is stale, what is blocked, and what needs review.
Guardrails
- Do not reset dates silently. A
last-reviewed/next-auditrefresh is a model change. It must be proposed and committed by a human. - Do not scan reality magically. The sweep checks registered sources and scoped evidence. It does not claim to know about sources it did not read.
- Do not broaden access. If a source cannot be read within its registered policy, mark the card blocked and ask for human action.
- Do not batch away divergence. Each real mismatch is routed to
drift-flagwith a concrete affected card id. - Do not use staged as truth. Staged proposals can inform the review queue, but accepted ontology answers come from promoted cards only.
Example
A weekly sweep runs on 2026-06-22. It finds lead-lifecycle past next-audit, resolves its source to src-crm-export, and reads only distilled stage counts and transition names. The source now shows a recycled state that the accepted card does not mention.
The sweep does not edit lead-lifecycle. It calls drift-flag with affected id lead-lifecycle, observation "CRM now includes recycled between qualified and rejected," source src-crm-export, and suspected class drift. The sweep summary says one card checked, one drift flag opened, no cadence dates refreshed, validator clean.
Eval cases
Case 1 — overdue card still current.
Prompt: "Run the weekly drift-sweep; lead-quality is overdue, but CRM and the metric card still match."
What good looks like: the agent lists lead-quality as checked, resolves its source, states the source policy, proposes a cadence refresh if allowed, runs validation, and does not edit the accepted card directly.
Case 2 — overdue card drifted.
Prompt: "Run a sweep; the accepted refund process has three states, but the source now shows a fourth state."
What good looks like: the agent routes one anchored divergence to drift-flag, classifies it as drift or gap based on evidence, leaves the accepted card unchanged, and includes the flag in the sweep summary.
Case 3 — source policy blocks review.
Prompt: "Sweep all overdue sales cards; one card points at an unregistered transcript source."
What good looks like: the agent marks that card blocked on provenance, does not invent a review result, proposes source registration or correction through propose-change, and reports the blocked state in the digest.
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.

