STAGE_S7_REVIEW

STAGE_S7_REVIEW is a cursor rule for Cursor from SilenceInsect/AIDocxWorkFlow. It costs 19 tokens per session (7,117 once invoked), scanned A, original, MIT.

A standalone review stage for checking generated software test cases against earlier requirement, workflow, coverage, and omission records. It is part of a larger process whose materials and names are partly documented in Chinese.

In plain words
What is it for?
Use it to review test-case completeness, calculate coverage across modules and business-flow risks, check reported omissions, and identify whether test cases belong to the correct module.
Why use it?
It prevents test-case review from relying on memory by requiring the source files and coverage records first. Missing prerequisites produce a failure report and stop the review.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/silenceinsect/aidocxworkflow/stage_s7_review
Clone the repo
git clone --depth 1 https://github.com/SilenceInsect/AIDocxWorkFlow

Made for: Cursor.

Wrote 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.

agentmods badge for STAGE_S7_REVIEW

README.md
[![agentmods](https://agentmods.dev/badge/rules/silenceinsect/aidocxworkflow/stage_s7_review.svg)](https://agentmods.dev/rules/silenceinsect/aidocxworkflow/stage_s7_review)
Your own site
<a href="https://agentmods.dev/rules/silenceinsect/aidocxworkflow/stage_s7_review"><img src="https://agentmods.dev/badge/rules/silenceinsect/aidocxworkflow/stage_s7_review.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,117 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.07117
Opus 5 $0.00010 $0.03558
Sonnet 5 $0.00004 $0.01423
Haiku 4.5 $0.00002 $0.00712

Measured 4d ago against content hash 41d919870d92, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

STAGE_S7_REVIEW 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 4d ago.

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.

.cursor/rules/STAGE_S7_REVIEW.mdc · 549 lines

How it starts

The opening of the file, as written. The whole thing — 549 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AIDocxWorkFlow S7 — 用例审查

独立阶段:可以单独调用。上游材料(S6 test_cases.json + coverage/omission 账本)审查合格后开始,失败写失败报告。


阶段入口

触发方式/aidocx-s7-review 或粘贴 S6 test_cases.json

前置材料(必须全部满足)

材料 来源 审查要求
S6 test_cases.json workflow_assets/<req_name>/<version>/「S6 测试用例生成」/test_cases.json 存在且用例数量 > 0
S5 test_points.json(必须读取 workflow_assets/<req_name>/<version>/「S5 测试点生成」/test_points.json 存在则用于覆盖率计算
S4 business_flow.md(必须读取 workflow_assets/<req_name>/<version>/「S4 流程图导出」/business_flow.md 用于 S4 风险点覆盖率计算
coverage_ledger.json workflow_assets/<req_name>/<version>/「S6 测试用例生成」/coverage_ledger.json 覆盖缺口事实源
omission_ledger.json workflow_assets/<req_name>/<version>/「S6 测试用例生成」/omission_ledger.json 豁免/人工复核事实源

前置材料缺失时:生成失败报告,停止 S7。


§1.4 LLM 必读材料(阶段前置)

审查前,必须先读取以下全部材料。禁止凭印象直接生成审查报告。

# 材料 路径 读取原因
1 8 模块总表 .cursor/MODULES.md(§1 总表) 覆盖率按模块统计;审查员 B 的 module_coverage 以 8 模块为分母
2 模块边界区分 .cursor/MODULES.md(§4 各模块 O_boundary.md) 判断 TP 模块归属是否正确;HINT vs UI 是最高误标区
3 S6 test_cases workflow_assets/<req_name>/<version>/「S6 测试用例生成」/test_cases.json 审查对象
4 S5 test_points(必须读取 workflow_assets/<req_name>/<version>/「S5 测试点生成」/test_points.json S4 风险点覆盖率对比基准
5 S4 business_flow(必须读取 workflow_assets/<req_name>/<version>/「S4 流程图导出」/business_flow.md S4 风险点全量覆盖(100%)是硬约束,不是拍脑袋

核心原则

🚨 强制阅读指令(MANDATORY):S7 阶段采用账本驱动模式——脚本只输出事实数字,LLM 按业务实际写建议。

S7 质量门禁:无硬阈值

S7 阶段不设硬指标(不强制"覆盖率=100% = PASS"),但必须消费 coverage/omission 账本。 脚本只输出事实数字,LLM 按业务实际写建议。 真实业务有取舍,LLM 审查员按业务实际给出判断

禁止出现的行为

  • ❌ 用脚本覆盖率数字直接判定 PASS / FAIL
  • ❌ 设置"覆盖率 ≥85% = 通过"之类的硬阈值
  • ❌ 用覆盖率数字替代 LLM 的语义审查
  • ❌ 在报告结构中保留"整体判决:PASS / FAIL"行

Read the full file on GitHub · 549 lines

Changes

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.

  1. 4d ago First seen · 549 lines · 19 tokens per session scan A 41d919870d92

Subscribe to this mod's changes

STAGE_S7_REVIEW is a cursor rule published in the GitHub repository SilenceInsect/AIDocxWorkFlow (2 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 7,117 once invoked, about $0.0001 per session on Opus 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-08-31.