Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By a-lottesv0.3.0MITIn 1 marketplace
Deterministic gate enforcement and a hash ledger for aSPARK's .spark/ artifacts. Silent in projects that don't use aSPARK.
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Deterministic gate enforcement and a hash ledger for aSPARK. Silent in every project that doesn't use aSPARK.
aSPARK Core is Markdown prompt material with no runtime, which makes its quality
gates requests to a language model: "read qa.md, and if there are open
blockers, refuse the release." aSPARK's own roadmap names the consequence:
"The gates are prompt-enforced, not code-enforced. They hold until an agent under context pressure reasons its way around one — and a good-sounding reason is, from the agent's own view, a passed gate."
aspark-guard is a companion plugin that adds what a prompt cannot provide: a check
that runs outside the model, on the tool call itself. Two guarantees:
Core is not modified. Nothing here runs unless a project has a .spark/ directory.
This is 0.3.0. All six milestones are built, 0.2.0 added the local activity log
(see What it records), and 0.3.0 adds a fourth rule that holds code back until a plan
is approved (see Code waits for an approved plan); what is missing is field evidence,
not mechanism.
| Milestone | What it does | State |
|---|---|---|
| M0 Skeleton | Plugin manifest, four wired hooks, payload parsing, the silence and fail-open invariants | Built |
| M1 Ledger + drift check | Every .spark/ write recorded with its SHA-256 and status; artifacts edited outside the loop reported at session start | Built |
| M2 Gate guard | Rules R1–R3 deny writes that violate a phase precondition | Built |
| M3 Override mechanics | R4 plus hash-bound override entries | Built |
| M4 Template validator + trail | Form drift reported as context, never blocked; one trail line per finished subagent | Built |
| M5 Release | Installation proven from the manifest's own command lines; full-cycle test; docs/evidence.md | Built |
Both guarantees hold for the three rules below, proven by the test suite (247 tests today) and replayed over
22 real gated artifacts without a false positive. The fourth rule, new in 0.3.0, is
tested but has not been replayed over real history; see
docs/evidence.md §10. Installed from the marketplace and
verified working on 2026-09-11 — see docs/evidence.md §4.
The one gap that matters: there is no public, checkable report yet of a full feature
loop with the guard on a project other than this author's. Only a real run shows whether a rule fires where it should and stays
quiet where it shouldn't. docs/evidence.md is the complete account
of what has and has not been exercised.
Three rules, each derived from aSPARK's own artifact chain (docs/workflow.md:
"Each phase reads the artifact of the previous phase and refuses to start if the gate
isn't met"). The guard makes that refusal structural instead of instructional.
| Rule | A write to… | is denied while… |
|---|---|---|
plan-requires-approved-spec | plan.md | spec.md exists and is not approved |
qa-requires-passed-review | qa.md | review.md exists and is not passed |
release-requires-green-gates | release.md | review.md or qa.md is not passed, or qa.md still lists a Blocker whose status is exactly open |
A denial names the rule, the state that triggered it, and every way forward:
aspark-guard: a release may not be written over a red gate.
rule: release-requires-green-gates
state: .spark/weekly-stats/qa.md still lists 1 open Blocker(s): B1.
Close the gates first (/increment for the fixes, then /peer-review and /demo-day),
or record an abort by writing this release with status `aborted`.
To overrule this, append this line to .spark/weekly-stats/overrides.jsonl YOURSELF
— not via the agent — and replace <why> with the reason:
{"ts": "…", "rule": "release-requires-green-gates", "artifact": "qa.md",
"artifact_sha256": "7d41…", "reason": "<why>", "granted_by": "andreas.lottes"}
The override lapses as soon as the artifact it names changes.
If this rule does not fit this project, set it to "warn" or "off" under "rules" in
.spark/guard.json.
Every one of these is a decision, not an oversight — and each is tested:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
aspark-guard@aspark is listed by a-lottes/aspark — review the source before installing
npx claudepluginhub a-lottes/aspark --plugin aspark-guardPlugins from other owners that cover similar ground