> For the complete documentation index, see [llms.txt](https://wong-coupon.gitbook.io/flutter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wong-coupon.gitbook.io/flutter/my-ai/quality-safety.md).

# Quality & Safety

Distinguish evidence levels, run quality gates, connect diagrams to source, and limit MCP permissions.

Distinguish evidence levels, run quality gates, connect diagrams to source, and limit MCP permissions.

## Articles

* [Distinguish Mocks, Scaffolds, and Runtime Evidence](/flutter/my-ai/quality-safety/mock-scaffold-configured-runtime-evidence.md) — Bind every software claim to the right evidence level, provenance, and freshness without promoting declarations, mocks, tests, or configuration into runtime proof.
* [Quality Gates for AI](/flutter/my-ai/quality-safety/focused-tests-full-quality-gate.md) — Separate focused feedback from promoted full gates through source-bound plans and finite receipts that preserve cache, skip, waiver, timeout, stale state, and external evidence gaps.
* [CI/CD for AI-Generated Tests](/flutter/my-ai/quality-safety/ci-cd-ai-generated-tests.md) — Review test value, reduce repeated pipeline work, and test CI policies to preserve quality as the suite grows.
* [Flow IDs for Diagrams and Source](/flutter/my-ai/quality-safety/flow-diagram-id-source-markers.md) — Connect diagrams, source markers, and indexes through stable identities and source-generation receipts while keeping rename, replacement, retirement, stale results, and apply authority inside fail-closed boundaries.
* [Least-Privilege MCP](/flutter/my-ai/quality-safety/least-privilege-mcp.md) — Keep discovery, OAuth, exact approval, and external effects inside finite capabilities while quarantining ambiguous outcomes until the proper authority reconciles them.

[Buy Me a Coffee](https://buymeacoffee.com/ducmng12g) | [Support Me on Ko-fi](https://ko-fi.com/I2I81AEJG8)
