Totem Shield
Version updated for https://github.com/mmnto-ai/totem to version @mmnto/totem@1.15.2.
- This action is used across all versions by 0 repositories.
Action Type
This is a Composite action.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
Totem is a CLI tool designed to provide a persistent memory and enforcement layer for AI coding agents, addressing their tendency to forget context and repeat architectural mistakes. It automates the creation and enforcement of coding rules by converting plain-English lessons into deterministic linting rules, ensuring consistent adherence to best practices without relying on runtime LLMs. This helps maintain architectural integrity, reduces repetitive review cycles, and prevents recurring errors in AI-assisted development workflows.
What’s Changed
Patch Changes
1c766c2: 1.15.2 ships the archive-in-place durability substrate from #1587 and the new
totem lesson archiveatomic command.Governance durability (closes #1587)
totem lesson compile --refresh-manifest— new no-LLM primitive that recomputescompile-manifest.jsonoutput_hash from the currentcompiled-rules.jsonstate. Closes the postmerge inline-archive gap where the no-op compile path only detected input-hash drift. Strict exclusivity with--force.totem lesson compile --forcenow preservesstatus,archivedReason, andarchivedAtadditively on rules whoselessonHashsurvives to the new output. Transient compile failures (network / rate-limit / manual reject / example-verification / cloud parse) leave the old rule intact instead of silently dropping it. Implemented via the newpreserveLifecycleFieldshelper in core andupsertRule/removeRuleByHashhelpers in the CLI compile loop (replace-by-hash on success; remove-on-skipped; unchanged on failed / noop). Dangling-archive guard preserved — rules whose source lesson was deleted are never resurrected.totem lesson archive <hash> [--reason <string>]— new atomic command mirroringtotem rule promote. Flips the rule’sstatustoarchived, stampsarchivedAton first transition, preservesarchivedAton reruns, refreshes the manifest, and regenerates copilot + junie exports — all in one call. Matches prefix onlessonHash; duplicate-full-hash collisions surface as data-corruption errors distinct from prefix ambiguity./postmergeskill doc rewritten to calltotem lesson archivedirectly, retiring the hand-rolledscripts/archive-bad-postmerge-*.cjspattern.