Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add negoro26/mcp-taiga --skill verify-invariantsgit clone --depth 1 https://github.com/negoro26/mcp-taigaWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/negoro26/mcp-taiga/verify-invariants)<a href="https://agentmods.dev/skills/negoro26/mcp-taiga/verify-invariants"><img src="https://agentmods.dev/badge/skills/negoro26/mcp-taiga/verify-invariants/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/negoro26/mcp-taiga/verify-invariants"><img src="https://agentmods.dev/badge/skills/negoro26/mcp-taiga/verify-invariants.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00090 | $0.04454 |
| Opus 5.5 | $0.00036 | $0.01782 |
| Sonnet 5.5 | $0.00018 | $0.00891 |
| Haiku 4.5 | $0.00009 | $0.00445 |
Grade A, and why
verify-invariants scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Verify the implicit invariants
Rule. Each row of the catalog below holds for every input in its stated domain. Harm. The code never states these rules. A change that breaks one fails nowhere else: the agent just writes to a read-only install, reads another endpoint, or reports a wrong total.
Run
npm run test:invariants
npm run verify:invariants
npm run verify:retry
npm run test:invariantsrunstest/invariantTest.ts, about 3 seconds, and is part ofnpm test. It needs no network: it replacesfetchwith an in-process fake Taiga and talks to the real tools over an in-memory MCP transport. It printsokfor a rule that holds andFAILplus the counterexample for anything else.npm run verify:invariantstakes about 15 seconds. It copies the tree, applies each variant inverify/invariants/mutants.mjs, builds it, and requires the named checks to FAIL. Each variant puts one bug back. A variant that no longer matches itsfindtext is reported as stale. It also runs the unmodified code first.npm run verify:retryis the TLA+ model of the auth and retry loop. Seeverify-api-retry.
Environment: INVARIANT_ONLY=RO-1,PATH-3 runs just those checks. INVARIANT_SEED and INVARIANT_RUNS change fast-check's seed (default 20261202) and run count (default 100).
Catalog
Every row holds for all inputs in its domain. The last column names the variants that put the bug back.
| ID | Invariant | Code | Harm if broken | Tool | Variants that must be caught |
|---|---|---|---|---|---|
| PATH-1 | A request URL is the API base plus the path, and query pairs round-trip exactly, whatever the base's own query or fragment. | api.ts buildApiUrl |
A value with & or # adds or hides a filter. |
fast-check | search-params-unencoded |
| PATH-2 | A request never goes to another origin, and a path with a backslash is refused. | api.ts buildApiUrl |
The bearer token goes to another host. | fast-check | path-origin-check-removed, path-backslash-check-removed |
| PATH-2b | A request path stays under the API base path, and a . or .. segment, however spelled, is refused. |
api.ts buildApiUrl |
The call hits an endpoint outside /api/v1. |
fast-check | path-prefix-check-removed, path-dot-segment-check-removed |
| PATH-3 | For any identifier an agent passes, every request stays on the API host, its path holds only fixed words and digits, and no query key is added. | all of tools/* |
A crafted ID reads or writes a different endpoint. | fast-check over MCP | comment-id-unencoded, attachment-id-not-validated |
| PATH-4 | An identifier that isNumericId accepts reaches the path as bare digits, padded or not. |
taiga.ts resolveProject, every tool |
" 12" calls /projects/%2012 and fails. |
fast-check over MCP | project-path-untrimmed |
| PATH-5 | An attachment ID is digits before it reaches the path. 1e3, 0x10, 1.5, Infinity, 0 are refused with no request. |
tools/attachments.ts attachmentPathId |
1e3 would fetch attachment 1000, 0x10 attachment 16. |
scenario | attachment-id-parsed-with-number |
| RO-1 | With TAIGA_READONLY on, request() sends only GET and the login POST, also after a 401 retry, and a refused write does not even log in. |
api.ts fetchRequest |
Writes on a read-only install. | fast-check | readonly-guard-removed, readonly-guard-skips-patch |
| RO-2 | The same holds for every op of every tool, and every write op stops at the guard. | tools/*, api.ts |
A tool bypasses the guard. | MCP matrix of 37 calls | readonly-guard-removed, readonly-guard-skips-patch |
| RO-3 | TAIGA_READONLY fails closed: off only when unset, empty, or 0, false, no, off in any case with padding; every other value is on. |
api.ts isReadOnly |
on, y, enabled would leave writes enabled and say nothing. |
fast-check | readonly-flag-case-sensitive, readonly-flag-allowlist |
| RO-4 | 1, true, yes in any case or padding turn it on; unset, empty, 0, false, no, off leave it off. |
api.ts isReadOnly |
Read-only silently off. | fast-check | readonly-flag-case-sensitive |
| TOOLS-1 | TAIGA_TOOLS exposes exactly the named tools in registration order, however cased, padded or repeated; only separators means none. |
api.ts requestedToolNames, tools/index.ts |
An agent sees a tool the operator hid. | fast-check over MCP | tools-filter-case-sensitive |
| TOOLS-2 | An unknown name aborts registration. | tools/index.ts enabledTools |
A typo silently serves a different subset. | fast-check | unknown-tool-accepted |
| TOOLS-3 | The time-log nudge is skipped when the activity tool is filtered out. | tools/work.ts timeLogNudge |
The agent is told to call a tool it does not have. | scenario | nudge-ignores-tool-filter |
| AUTH-1 | A login token is reused for 12 hours, replaced at the 12-hour mark, and the bearer sent is the latest login. | api.ts getToken, login |
Login on every call, or an expired token reused. | fast-check, fake clock | token-lives-24h |
| AUTH-2 | A failed login clears the cached token; missing credentials fail before any request. | api.ts login, getToken |
A stale token is reused, or passwords are sent empty. | scenario | missing-credentials-unchecked |
| RETRY-1 | One send() sends at most 4 data requests and 2 logins, retries 401 once, 429 at most twice, and never waits over 5 s; the outcome matches a small state machine for any status sequence. |
api.ts send |
A request storm, or a call that never ends. | fast-check, 300 runs; TLA+ | throttle-never-decremented, throttle-wait-cap-raised, throttle-retries-five, no-retry-on-401 |
| RETRY-2 | After a 401 the retry carries the token from a new login. | api.ts request |
The retry repeats the rejected token. | scenario | no-retry-on-401, retry-reuses-rejected-token |
| RETRY-3 | Any Retry-After value (negative, huge, a date, garbage) keeps waiting under 5 s and retries at most twice. |
api.ts parseRetryAfter |
A server header stalls the agent. | fast-check | throttle-never-decremented, throttle-wait-cap-raised, throttle-retries-five |
| RETRY-4 | Of two concurrent requests that both get 401, both end up served. | api.ts send |
One call fails with HTTP 401 though a re-login would work. | fake with controlled order; TLA+ | second-401-needs-live-token |
| RETRY-5 | One token revocation costs one re-login. | api.ts send |
A late 401 discards the fresh token: two logins, two cache flushes. | fake with controlled order; TLA+ | late-401-clears-fresh-token |
| META-1 | Metadata is fetched once per path and params within 60 s, refetched from the 60 s mark, never shared across params. | api.ts getMetadata |
Stale or wrong taxonomy IDs are written. | fast-check, fake clock | metadata-ttl-doubled, metadata-expiry-inclusive, metadata-key-ignores-params |
| META-2 | A failed fetch is not cached, and a login drops the cache. | api.ts getMetadata, login |
An error is served for 60 s, or another user's data is reused. | scenario | login-keeps-metadata |
| LIST-2 | Every API request carries x-disable-pagination: true and the bearer token, and cached taxonomies and users are unchanged after every op ran. |
api.ts fetchRequest, taiga.ts |
A truncated page is reported as the full list, or a caller edits the shared cache. | MCP matrix | users-consumed-from-cache, pagination-header-dropped |
| OWN-1 | Only the creator may delete; the creator or an assignee may update; an unreported owner is refused. | taiga.ts assertWritable |
Edits or deletes on a colleague's item. | fast-check | delete-allowed-for-assignee, unreported-owner-accepted |
| ID-1 | isNumericId is true exactly for non-empty ASCII digits after trimming. |
taiga.ts isNumericId |
A slug is read as an ID, or the reverse. | fast-check | empty-string-is-numeric |
| ID-2 | #N is a ref lookup that needs a project, digits are an ID path, anything else is an error with no request. |
taiga.ts resolveItem |
The wrong item is read or changed. | fast-check | resolve-item-untrimmed |
| ID-3 | A project slug is sent verbatim as a query value; digits are never looked up. | taiga.ts resolveProjectId, resolveMemberId |
A slug lands in the path. | fast-check | slug-trimmed |
| ID-4 | A name that matches several members or sprints is refused with the candidates and their ids. An exact username or numeric id wins outright. none, null, remove clear a sprint, so a sprint with that name is reachable by id only. |
taiga.ts resolveMemberId, resolveSprintId, findSprintId |
A story is assigned to the wrong person, or moved to the wrong sprint. | fast-check | ambiguous-member-first-wins, ambiguous-sprint-first-wins, member-username-has-no-precedence |
| SPR-1 | currentSprintId never returns a closed sprint, prefers the open sprint covering today with the latest start, else the open sprint with the latest start; the fallback can pick a sprint that starts in the future. |
taiga.ts currentSprintId |
New work lands in a closed sprint. | fast-check, 300 runs | closed-sprints-included, earliest-sprint-first |
| SPR-2 | none/null/remove (any case) clear with no request, digits are the ID, a name matches case-insensitively, anything else lists the names. |
taiga.ts resolveSprintId |
A sprint is cleared or chosen by mistake. | fast-check, 300 runs | sprint-clear-word-dropped |
| SPR-3 | The clear words are for writes. work list sprint=none filters the backlog (milestone=null); sprints get, stats, review, close_preview refuse them with no request and say a sprint of that name needs its numeric id. |
tools/work.ts buildFilters, tools/sprints.ts readSprintId, taiga.ts findSprintId |
work list sprint=none would list everything; sprints get sprint=none would call /milestones/null. |
fast-check over MCP | sprint-clear-leaks-into-work-list, sprint-reads-accept-clear-word |
| FMT-1 | Every record formatter keeps one record on one line when free-text fields hold \n, \r, tabs, \v, \f. |
format.ts row, listing |
A subject forges a second row. | fast-check | one-line-drops-carriage-return, row-cells-unflattened, format-flattening-removed |
| FMT-2 | The same for U+0085, U+2028, U+2029, U+001C to U+001E. | format.ts oneLine |
A consumer that splits on Unicode line breaks sees two rows. | fast-check | one-line-ignores-unicode-breaks |
| FMT-3 | A newline in a name, subject, slug or comment never starts a row in projects, work, sprint list, comments, attachments, wiki list or activity today. | tools/*, format.ts |
Forged rows in tool output. | MCP | format-flattening-removed |
| FMT-4 | The same for sprints review members and activity summary idle members. |
tools/sprints.ts, tools/activity.ts, format.ts listing |
A member's display name injects text into the agent's context. | MCP | format-flattening-removed, listing-rows-unflattened |
| FMT-5 | Ids, refs, dates, place, kind and counts are flattened too, whatever type the server sends. | format.ts row, listing |
A field documented as a number or an enum forges a row. | fast-check | row-cells-unflattened, format-flattening-removed |
| LIST-1 | work list shows min(limit or 50, N) rows in server order and the header says K of N when truncated. |
tools/work.ts list |
A truncated list is read as complete. | fast-check over MCP | list-off-by-one, list-total-is-shown-count |
| PAY-1 | Create and update send exactly the documented body for each work type; unsupported fields are refused with no write, for every type and every field; stories get assigned_users; task points and priority are add-on POSTs; only stories and tasks default to the current sprint. |
tools/work.ts buildPayload |
A field is silently dropped or sent to the wrong type. | fast-check over MCP, 200 runs, plus every unsupported field | task-accepts-severity, issue-gets-default-sprint, color-accepted-on-tasks |
| PAY-2 | Batch create continues after a bad item, writes nothing for it, and created + failed = submitted. | tools/work.ts create items |
One bad item aborts or duplicates the batch. | fast-check over MCP | batch-aborts-on-first-failure |
| PAY-3 | When the task is created but a points or priority POST fails, create reports success plus a warning naming the failed add-on, and a batch counts the item as created. Both add-ons are attempted. | tools/work.ts postTaskAddons |
A failed task-points POST would report an error for a task that exists; a retry duplicates it. |
fake with failing routes | task-add-on-failure-fails-create |
| PAY-4 | An argument the tool accepts is applied. Epics take color (#rgb or #rrggbb) on create, batch create and update; a malformed color, or color on another type, is refused with no write. |
tools/work.ts input schema, buildPayload |
color would be dropped silently. |
scenario | color-silently-dropped, color-not-validated, color-accepted-on-tasks |
| ACT-1 | activity log sends exactly one target: a task or issue ID with an empty title, or a non-empty trimmed title with neither; anything else is refused before any write. |
tools/activity.ts |
Time is logged against the wrong or no target. | fast-check over MCP, 300 runs | activity-issue-sets-task, activity-title-allowed-with-task |
| ATT-1 | Download fetches only http(s) URLs on the Taiga hostname and never sends the bearer token. | tools/attachments.ts |
Token or request leaks to another host. | fast-check over MCP | download-host-unchecked |
| ATT-2 | The download URL shares the API's full origin: scheme, host and port. | tools/attachments.ts |
An http:// URL on another port of the same host is fetched. |
scenario | download-host-only-compared |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 101 lines · 90 tokens per session scan A 01bdf3265a68
verify-invariants is a skill published in the GitHub repository negoro26/mcp-taiga (3 stars, last pushed 2d ago), licensed MIT. It adds 90 tokens to every session and 4,454 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.
verify-invariants compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| verify-invariantsnegoro26/mcp-taiga | Skill | 3 | 2d ago | MIT | A | 90 | Claude Code, Codex |
| systematic-debuggingNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 16 | Claude Code, Codex |
| python-debugpyNousResearch/hermes-agent | Skill | 268k | today | MIT | B | 17 | Claude Code, Codex |
| sglang-diffusion-benchmark-profilesgl-project/sglang | Skill | 39k | today | Apache-2.0 | A | 26 | Claude Code, Codex |
| resolve-handoffomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 23 | Claude Code, Codex |
| verify-omnigentomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| iterate-implementationhumanlayer/humanlayer | Skill | 13k | yesterday | Apache-2.0 | A | 16 | Claude Code, Codex |