task-artifact-integrity
Skill2 starsChanged 45 days agoMITView on GitHub
Validate task context closure, artifacts, references, and safe relocation before continuation or deletion.
In this repository15 other files it gives its agents.
- compact-directory-memorySkill
- task-archaeologySkill
- task-aware-project-workSkill
- task-context-storageSkill
- task-cross-machine-syncSkill
- task-external-repos-patternSkill
- task-frameworkSkill
- task-lifecycle-disciplineSkill
- task-lifecycle-edge-casesSkill
- task-lifecycle-portabilitySkill
- task-nested-subtask-lifecycleSkill
- task-requirement-intakeSkill
- task-root-git-operationsSkill
- task-timestamp-conventionSkill
- task-trackerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Use when relocating a task root, consolidating related tasks, diagnosing an apparently empty task, or validating that another session can …
- Very specific: line 32
when runtime/ exists: INDEX.md rows must match the actual runtime/ item directories — flag orphan INDEX entries (row without directory) and …
- Distinctive: line 40
Read root and target subsystem context.
- Distinctive: line 54
Remove source only after equality and reference verification.
- Distinctive: line 86
All commands emit JSON and return nonzero when integrity or equality fails.
≈ “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
Task Artifact Integrity
Use when relocating a task root, consolidating related tasks, diagnosing an apparently empty task, or validating that another session can continue safely.
Context closure
A complete task closure includes:
TASK.md,README.md,MEMORY.md,CHANGELOG.md,.hermes-task.json;memories/<sub-system>/MEMORY.mdandCHANGELOG.mdpairs when hierarchical;- when
runtime/exists:INDEX.mdrows must match the actualruntime/item directories — flag orphan INDEX entries (row without directory) and unregistered items (directory without row); input/,output/, andscripts/inventories;- named outputs, dependencies, related/superseded tasks, ticket/project extension fields;
- absolute paths and cross-task references.
Inspection
- Resolve the task through
task_api.py describe. - Read root and target subsystem context.
- Inventory source inputs separately from generated output.
- Resolve every related task and named output.
- Report missing, empty, stale, or external references before mutation.
Safe relocation
- Confirm exact source and destination roots.
- Refuse overwrite when destination exists.
- Copy metadata-preserving content without
--delete. - Compare relative path, type, size, and SHA-256 manifests.
- Rewrite absolute references only after copy verification.
- Append relocation entries to affected CHANGELOG files.
- Regenerate both roots' indexes.
- Remove source only after equality and reference verification.
Same-machine relocation needs no archive unless requested. Cross-machine transfer or explicit rollback may retain an archive.
Completion evidence
Report task hashes, roots, input/output inventories, manifest equality, context-pair verification, rewritten references, index regeneration, and source/archive status.
See references/task-root-relocation.md for the checklist.
Symlink portability policy
symlinks and task-scope post-flight apply one reusable policy:
- allow only an existing relative target whose resolved path remains inside the same task root;
- reject absolute, missing, or task-escaping targets;
- reject a symlink at the task-root canonical files (
TASK.md,README.md,MEMORY.md,CHANGELOG.md,.hermes-task.json); - reject a symlink at tasks-root generated indexes (
README.md,TASKS.md).
The commands are read-only and emit JSON. post-flight is the per-task integrity record used after task operations; it does not mutate a global task index.
Permanent tooling
python3 scripts/task_integrity.py audit <hash-or-dir> # includes runtime/INDEX.md vs runtime/ consistency
python3 scripts/task_integrity.py symlinks <hash-or-dir>
python3 scripts/task_integrity.py post-flight <hash-or-dir>
python3 scripts/task_integrity.py closure <hash-or-dir>
python3 scripts/task_integrity.py manifest <hash-or-dir> --output <manifest.json>
python3 scripts/task_integrity.py compare <source-dir> <destination-dir>All commands emit JSON and return nonzero when integrity or equality fails.
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.

