Totem Shield
Version updated for https://github.com/mmnto-ai/totem to version @mmnto/cli@1.15.0.
- 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, cross-repository memory and enforcement layer for AI coding agents. It automates the process of converting lessons learned from past mistakes into enforceable rules, preventing recurring architectural errors and ensuring code consistency without relying on live LLMs. By using deterministic, offline linting, Totem enhances the reliability and efficiency of AI-assisted development workflows.
What’s Changed
Minor Changes
f9c287b: 1.15.0 ships Pack Distribution: the first shippable Totem pack, plus the compile-hardening and zero-trust substrate that makes packs safe to distribute.
Pack Distribution
@totem/pack-agent-security(ADR-089 flagship pack). 5 immutable security rules covering unauthorized process spawning, dynamic code evaluation with non-literal arguments, network exfiltration via hardcoded IPs or suspicious domains (API + shell-string variants), and obfuscated string assembly via byte-level primitives. Every rule shipsimmutable: true+severity: error+category: securitywith bad/good fixture pairs and 57 unit tests.totem install pack/<name>command installs a published pack into the local manifest.pack-mergeprimitive refuses downgrade of immutable rules to warning or archived; bypass attempts log to the Trap Ledger.- Content-hash substrate across TypeScript and bash (review + sync + pre-push hook) so pack integrity verifies without relying on file timestamps.
Zero-trust default (ADR-089)
- Pipeline 2 and Pipeline 3 LLM-generated rules now ship
unverified: trueunconditionally. Activation via the atomictotem rule promote <hash>CLI or the ADR-091 Stage 4 Codebase Verifier in 1.16.0. - Pipeline 1 (manual) keeps its conditional semantics; human-authored rules are self-evidencing.
Compile hardening (ADR-088 Phase 1)
- Layer 3 verify-retry loop: rules that fail their own smoke test re-prompt once before the compiler rejects them.
- Compile-time smoke gate runs both
badExampleandgoodExample; rules that fire on both directions are rejected with reason codematches-good-example(closes the over-matching hole that drove the 2026-04-18 security-pack 10-of-10 archive rate). archivedAttimestamp preserved across schema round-trips so the institutional first-archive-provenance ledger survives every compile cycle.unverifiedflag andnonCompilable4-tuple with 9-value reason-code enum replaces the opaque 2-tuples.totem doctorstale-rule advisory (ADR-088 Phase 1) plus the grandfathered-rule advisory that surfaces the pre-zero-trust cohort categorized byvintage-pre-1.13.0,no-badExample, andno-goodExample.
Platform
- Compound ast-grep rules (ADR-087, promoted from Proposal 226).
astGrepYamlRulefield onCompiledRulewith mutual exclusion onastGrepPattern, structural combinators (all / any / not / inside / has / precedes / follows), and canonical-serialization hashing viacanonicalStringify. - Windows shell-injection fix in
safeExecviacross-spawn.sync(closes a three-week-latent vector). - Cross-Repo Context Mesh (
totem searchfederation +totem doctorLinked Indexes health check). - Standalone binary distribution unblocked (darwin-arm64, linux-x64, win32-x64).
Positioning
- ADR-090 (Multi-Agent State Substrate). Scopes Totem as the shared state, enforcement, and audit substrate for multi-agent development. Totem does not own agent routing, capability negotiation, session lifecycle, or live-edit conflict resolution. Future feature admission passes the Scope Decision Test.
- ADR-091 (Ingestion Pipeline Refinements). Redefines the 1.16.0 ingestion pipeline as a 5-stage funnel: Extract → Classify → Compile → Verify-Against-Codebase → Activate. Renames the legacy
allowlistterminology tobaseline. - ADR-085 (Pack Ecosystem). Accepted with five deferred decisions resolved: Behavioral SemVer with refinement classification, array-order precedence plus
totem doctorshadowing warning, Local Supreme Authority with ADR-089 immutable-severity carve-out, Sigstore + in-toto signing, native npm lifecycle with 72-hour unpublish constraint.
Detailed patch-level changes: CHANGELOG.md entries 1.14.1 through 1.14.17.
Patch Changes
- Updated dependencies [f9c287b]
- @mmnto/totem@1.15.0