imMamdouhaboammar/anti-slop-engineering / skills/repo-memory-and-invariant-steward
repo-memory-and-invariant-steward
VerifiedMaintains the repository's architectural memory and enforces invariant preservation across sessions. Use when syncing historical decision records into a living compact Invariant Ledger, checking PRs/branches for architectural drift, verifying Gate 0 invariant constraints, or validating formal Reassessment Triggers — even if they don't explicitly say "invariant steward". Do NOT use for routine cosmetic edits or non-consequential scripts.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.4 KB |
| agents/openai.yaml | config | 338 B |
| evals/scenarios.json | config | 5.8 KB |
| examples/decision-record-with-invariants.json | config | 1.9 KB |
| examples/drift-violation-sample.diff | other | 558 B |
| examples/invariant-ledger-example.json | config | 4.3 KB |
| examples/reassessment-trigger-example.json | config | 997 B |
| playbooks/README.md | markdown | 2.0 KB |
| playbooks/drift-triage-playbook.md | markdown | 2.5 KB |
| playbooks/references/memory-anti-patterns.md | markdown | 2.3 KB |
| playbooks/steward-playbook.md | markdown | 2.1 KB |
| references/drift-detection-engine.md | markdown | 1.5 KB |
| references/gate0-memory-integration.md | markdown | 1.3 KB |
| references/invariant-ledger-contract.md | markdown | 1.8 KB |
| references/reassessment-protocol.md | markdown | 1.6 KB |
| usecases/drift-audit.md | markdown | 826 B |
| usecases/reassess.md | markdown | 1008 B |
| usecases/sync.md | markdown | 894 B |
references/reassessment-protocol.md
View on GitHub# Reassessment Trigger Protocol & Schema
> Formal protocol for proposing, reviewing, and approving modifications or retirement of active architectural invariants.
## Protocol Purpose
Invariants are permanent by default, but architectures must evolve. The Reassessment Protocol ensures that changes to architectural invariants are intentional, documented, and backed by evidence—never accidental.
## Reassessment Trigger Schema
A valid `reassessment-trigger.json` must contain:
```json
{
"schema_version": "1.0.0",
"target_invariant_id": "INV-PARANOID-IDEMPOTENCY",
"action": "supersede | waive | deprecate",
"justification": "Comprehensive explanation of why the existing invariant is being altered",
"trade_off_delta": {
"gain": "Concrete operational or performance improvement achieved",
"risk": "Risk or edge cases introduced and how they are mitigated"
},
"authority": {
"author": "Architect Name",
"pr_or_issue": "PR or Issue reference",
"approved_at": "ISO-8601 Timestamp"
},
"verification_proof": "Empirical evidence (e.g. load test result, security audit, benchmark) proving the new approach satisfies reliability requirements"
}
```
## Lifecycle Actions
1. **`supersede`**: Replaces the old invariant with a new, superior invariant. The old invariant status moves to `superseded` in the ledger upon merge.
2. **`waive`**: Grants a temporary scoped exception (e.g. for an isolated legacy migration or temporary prototype). Must include an issue milestone or expiry date.
3. **`deprecate`**: Marks the invariant as no longer enforced. The invariant remains in historical records with status `deprecated`.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |