claude-everything-workflow 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/hooks.json +1 -6
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +1 -2
- package/README.zh-CN.md +1 -2
- package/docs/plugins.md +4 -4
- package/evals/routing-scenarios.json +9 -0
- package/hooks/check-code-size.js +4 -126
- package/hooks/check-console-log.js +4 -79
- package/hooks/check-edited-file.js +139 -0
- package/hooks/commit-quality.js +1029 -72
- package/hooks/runtime/antigravity-pre-tool.js +116 -0
- package/package.json +4 -3
- package/rules/02-implementation.md +1 -1
- package/rules/common/hooks.md +2 -2
- package/scripts/cleanup-retired-skills.js +80 -3
- package/scripts/install-antigravity.js +65 -105
- package/scripts/install-rules.js +27 -7
- package/scripts/install.ps1 +21 -25
- package/scripts/install.sh +2 -2
- package/scripts/merge-claude-settings.cjs +14 -2
- package/scripts/retired-skill-files.json +50 -0
- package/scripts/verify/commit-quality.test.js +481 -0
- package/scripts/verify/core.js +0 -1
- package/scripts/verify/install-rules.test.js +258 -22
- package/scripts/verify/metadata-checks.js +18 -10
- package/scripts/verify/runtime-checks.js +57 -2
- package/scripts/verify/workflow-checks.js +11 -1
- package/settings.json +1 -6
- package/skills/feature-acceptance/SKILL.md +1 -1
- package/skills/systematic-debugging/SKILL.md +7 -4
- package/skills/systematic-debugging/references/diagnostic-scenarios.md +7 -0
- package/agents/database-reviewer.md +0 -41
- package/agents/e2e-runner.md +0 -21
- package/agents/harness-optimizer.md +0 -93
- package/agents/refactor-cleaner.md +0 -54
- package/agents/security-reviewer.md +0 -47
- package/references/agents/refactor-cleaner.md +0 -75
- package/references/agents/security-reviewer.md +0 -542
|
@@ -7,7 +7,7 @@ const path = require("node:path");
|
|
|
7
7
|
const crypto = require("node:crypto");
|
|
8
8
|
const { spawnSync } = require("node:child_process");
|
|
9
9
|
const { installRules, finalizeBackups, BACKUP_ROOT_NAME } = require("../install-rules");
|
|
10
|
-
const { installAntigravity, parseFrontmatter
|
|
10
|
+
const { installAntigravity, parseFrontmatter } = require("../install-antigravity");
|
|
11
11
|
|
|
12
12
|
const sourceRoot = path.resolve(__dirname, "../..");
|
|
13
13
|
const tempRoot = fs.mkdtempSync(path.join(os.tmpdir(), "cew-rules-"));
|
|
@@ -353,6 +353,100 @@ function checkInstallerMergeFailure() {
|
|
|
353
353
|
assert.equal(fs.readFileSync(settingsPath, "utf8"), previous);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
function checkRetiredAgentCleanup() {
|
|
357
|
+
const fixture = path.join(tempRoot, "retired-agent");
|
|
358
|
+
const agents = path.join(fixture, "agents");
|
|
359
|
+
const name = "harness-optimizer.md";
|
|
360
|
+
const target = path.join(agents, name);
|
|
361
|
+
const cleanup = path.join(fixture, "cleanup-retired-skills.js");
|
|
362
|
+
const original = "Distributed agent\n";
|
|
363
|
+
const manifest = JSON.parse(read(path.join(sourceRoot, "scripts/retired-skill-files.json")));
|
|
364
|
+
manifest.retired_agent_hashes = { [name]: [crypto.createHash("sha256").update(original).digest("hex")] };
|
|
365
|
+
fs.mkdirSync(agents, { recursive: true });
|
|
366
|
+
fs.copyFileSync(path.join(sourceRoot, "scripts/cleanup-retired-skills.js"), cleanup);
|
|
367
|
+
fs.writeFileSync(path.join(fixture, "retired-skill-files.json"), JSON.stringify(manifest));
|
|
368
|
+
const run = (...args) => {
|
|
369
|
+
const result = spawnSync(process.execPath, [cleanup, fixture, ...args], { encoding: "utf8" });
|
|
370
|
+
assert.ifError(result.error);
|
|
371
|
+
assert.equal(result.status, 0, result.stderr);
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
fs.writeFileSync(target, original.replace("\n", "\r\n"));
|
|
375
|
+
fs.chmodSync(target, 0o444);
|
|
376
|
+
run("--dry-run");
|
|
377
|
+
assert.equal(read(target), original);
|
|
378
|
+
run();
|
|
379
|
+
assert.equal(fs.existsSync(target), false, "remove an unmodified distribution on upgrade");
|
|
380
|
+
fs.writeFileSync(target, original + "My changes\n");
|
|
381
|
+
run();
|
|
382
|
+
assert.equal(read(target), original + "My changes\n");
|
|
383
|
+
|
|
384
|
+
const outside = path.join(fixture, "personal-agents");
|
|
385
|
+
fs.renameSync(agents, outside);
|
|
386
|
+
fs.writeFileSync(path.join(outside, name), original);
|
|
387
|
+
fs.symlinkSync(outside, agents, process.platform === "win32" ? "junction" : "dir");
|
|
388
|
+
run();
|
|
389
|
+
assert.equal(read(path.join(outside, name)), original, "preserve files outside the install root's agents directory");
|
|
390
|
+
|
|
391
|
+
// File-level symlink inside a regular agents/ directory must also be preserved.
|
|
392
|
+
if (process.platform === "win32") {
|
|
393
|
+
fs.rmdirSync(agents);
|
|
394
|
+
} else {
|
|
395
|
+
fs.unlinkSync(agents);
|
|
396
|
+
}
|
|
397
|
+
fs.mkdirSync(agents);
|
|
398
|
+
const linkedFileTarget = path.join(outside, "linked.md");
|
|
399
|
+
fs.writeFileSync(linkedFileTarget, original);
|
|
400
|
+
if (process.platform !== "win32") {
|
|
401
|
+
fs.symlinkSync(linkedFileTarget, path.join(agents, name));
|
|
402
|
+
const linkRun = spawnSync(process.execPath, [cleanup, fixture], { encoding: "utf8" });
|
|
403
|
+
assert.ifError(linkRun.error);
|
|
404
|
+
assert.equal(linkRun.status, 0, linkRun.stderr);
|
|
405
|
+
assert.match(linkRun.stdout, /Preserving symlinked retired agent:/);
|
|
406
|
+
assert.equal(read(linkedFileTarget), original);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// Retired reference cleanup: remove unmodified, preserve customized and symlinked, remove empty subdir.
|
|
410
|
+
const refAgents = path.join(fixture, "references/agents");
|
|
411
|
+
const refName = "security-reviewer.md";
|
|
412
|
+
const refRel = `agents/${refName}`;
|
|
413
|
+
const refTarget = path.join(refAgents, refName);
|
|
414
|
+
fs.mkdirSync(refAgents, { recursive: true });
|
|
415
|
+
const refManifest = JSON.parse(read(path.join(sourceRoot, "scripts/retired-skill-files.json")));
|
|
416
|
+
refManifest.retired_reference_hashes = {
|
|
417
|
+
[refRel]: [crypto.createHash("sha256").update(original).digest("hex")],
|
|
418
|
+
};
|
|
419
|
+
fs.writeFileSync(path.join(fixture, "retired-skill-files.json"), JSON.stringify(refManifest));
|
|
420
|
+
fs.writeFileSync(refTarget, original.replace("\n", "\r\n"));
|
|
421
|
+
run("--dry-run");
|
|
422
|
+
assert.equal(read(refTarget), original);
|
|
423
|
+
run();
|
|
424
|
+
assert.equal(fs.existsSync(refTarget), false, "remove unmodified retired reference on upgrade");
|
|
425
|
+
assert.equal(fs.existsSync(refAgents), false, "remove empty retired reference subdir");
|
|
426
|
+
assert.equal(fs.existsSync(path.join(fixture, "references")), true, "keep references/ root");
|
|
427
|
+
|
|
428
|
+
fs.mkdirSync(refAgents, { recursive: true });
|
|
429
|
+
fs.writeFileSync(refTarget, original + "Custom checklist\n");
|
|
430
|
+
run();
|
|
431
|
+
assert.equal(read(refTarget), original + "Custom checklist\n");
|
|
432
|
+
|
|
433
|
+
const refOutside = path.join(fixture, "personal-ref-agents");
|
|
434
|
+
fs.mkdirSync(refOutside, { recursive: true });
|
|
435
|
+
fs.writeFileSync(path.join(refOutside, refName), original);
|
|
436
|
+
fs.rmSync(refAgents, { recursive: true, force: true });
|
|
437
|
+
fs.symlinkSync(refOutside, refAgents, process.platform === "win32" ? "junction" : "dir");
|
|
438
|
+
run();
|
|
439
|
+
assert.equal(read(path.join(refOutside, refName)), original, "preserve symlinked retired reference dir");
|
|
440
|
+
|
|
441
|
+
// Reject invalid retired_reference_hashes / retired_agent_hashes (including explicit null).
|
|
442
|
+
for (const field of ["retired_agent_hashes", "retired_reference_hashes"]) {
|
|
443
|
+
const badManifest = { ...refManifest, [field]: null };
|
|
444
|
+
fs.writeFileSync(path.join(fixture, "retired-skill-files.json"), JSON.stringify(badManifest));
|
|
445
|
+
const invalidRes = spawnSync(process.execPath, [cleanup, "--validate"], { encoding: "utf8" });
|
|
446
|
+
assert.notEqual(invalidRes.status, 0, `${field}: null must fail manifest validation`);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
356
450
|
function checkInstallerEntrypoint() {
|
|
357
451
|
const profile = path.join(tempRoot, "installer-profile");
|
|
358
452
|
const windows = process.platform === "win32";
|
|
@@ -444,9 +538,35 @@ function checkInstallerEntrypoint() {
|
|
|
444
538
|
type: "command",
|
|
445
539
|
command: 'node scripts/hooks/run-with-flags.js post:write:console-log hooks/check-console-log.js standard,strict',
|
|
446
540
|
};
|
|
541
|
+
const claudeRootPrefix = windows ? path.join(profile, ".claude") : "$HOME/.claude";
|
|
542
|
+
const oldEditHooks = [
|
|
543
|
+
{
|
|
544
|
+
type: "command",
|
|
545
|
+
command: `node "${claudeRootPrefix}/hooks/runtime/run-with-flags.js" post:edit:console-log "${claudeRootPrefix}/hooks/check-console-log.js" standard,strict`,
|
|
546
|
+
timeout: 5,
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
type: "command",
|
|
550
|
+
command: `node "${claudeRootPrefix}/hooks/runtime/run-with-flags.js" post:edit:code-size "${claudeRootPrefix}/hooks/check-code-size.js" standard,strict`,
|
|
551
|
+
timeout: 5,
|
|
552
|
+
},
|
|
553
|
+
];
|
|
554
|
+
const legacyEditMatcherGroup = {
|
|
555
|
+
matcher: "Edit",
|
|
556
|
+
hooks: [
|
|
557
|
+
{
|
|
558
|
+
type: "command",
|
|
559
|
+
command: `node "${claudeRootPrefix}/hooks/runtime/run-with-flags.js" post:edit:console-log "${claudeRootPrefix}/hooks/check-console-log.js" standard,strict`,
|
|
560
|
+
timeout: 5,
|
|
561
|
+
},
|
|
562
|
+
],
|
|
563
|
+
};
|
|
447
564
|
fs.writeFileSync(settingsPath, JSON.stringify({
|
|
448
565
|
hooks: {
|
|
449
|
-
PostToolUse: [
|
|
566
|
+
PostToolUse: [
|
|
567
|
+
{ ...userHookGroup, hooks: [...userHookGroup.hooks, retiredConsole, ...oldEditHooks] },
|
|
568
|
+
legacyEditMatcherGroup,
|
|
569
|
+
],
|
|
450
570
|
SessionStart: [{ ...unrelatedHook, hooks: [...unrelatedHook.hooks, retiredSession] }],
|
|
451
571
|
},
|
|
452
572
|
}));
|
|
@@ -460,8 +580,13 @@ function checkInstallerEntrypoint() {
|
|
|
460
580
|
const installedSettings = JSON.parse(read(settingsPath).replace(/^\uFEFF/, ""));
|
|
461
581
|
assert.deepEqual(installedSettings.hooks.PostToolUse[0], userHookGroup);
|
|
462
582
|
assert.deepEqual(installedSettings.hooks.SessionStart, [unrelatedHook]);
|
|
463
|
-
assert.equal(installedSettings.hooks.PostToolUse.
|
|
464
|
-
|
|
583
|
+
assert.equal(installedSettings.hooks.PostToolUse.some((g) => g.matcher === "Edit"), false,
|
|
584
|
+
"legacy matcher=Edit official console-log hook must be cleaned on upgrade");
|
|
585
|
+
const allPostEditCommands = installedSettings.hooks.PostToolUse.flatMap(({ hooks }) => hooks)
|
|
586
|
+
.map(({ command }) => command || "");
|
|
587
|
+
assert.equal(allPostEditCommands.filter((c) => /hooks[\\/]check-edited-file\.js/.test(c)).length, 1);
|
|
588
|
+
assert.equal(allPostEditCommands.filter((c) => /hooks[\\/]check-console-log\.js/.test(c)).length, 0);
|
|
589
|
+
assert.equal(allPostEditCommands.filter((c) => /hooks[\\/]check-code-size\.js/.test(c)).length, 0);
|
|
465
590
|
const codexRule = path.join(profile, ".codex/rules/02-implementation.md");
|
|
466
591
|
const customizedRule = read(codexRule) + "\nKeep unrelated work separate.\n";
|
|
467
592
|
fs.writeFileSync(codexRule, customizedRule);
|
|
@@ -483,7 +608,11 @@ function checkInstallerEntrypoint() {
|
|
|
483
608
|
assert.equal(read(codexRule), customizedRule, "the host installer must preserve the active Codex rule");
|
|
484
609
|
|
|
485
610
|
// Once a regular ~/.gemini directory exists, default install syncs Antigravity automatically.
|
|
486
|
-
|
|
611
|
+
if (windows) {
|
|
612
|
+
fs.rmdirSync(path.join(profile, ".gemini"));
|
|
613
|
+
} else {
|
|
614
|
+
fs.unlinkSync(path.join(profile, ".gemini"));
|
|
615
|
+
}
|
|
487
616
|
fs.mkdirSync(path.join(profile, ".gemini"));
|
|
488
617
|
run();
|
|
489
618
|
assert.equal(read(codexRule), customizedRule, "the host installer must preserve the active Codex rule");
|
|
@@ -542,22 +671,132 @@ function checkInstallerEntrypoint() {
|
|
|
542
671
|
}
|
|
543
672
|
assert.doesNotMatch(read(path.join(agRoot, "skills/pr/SKILL.md")), /\$ARGUMENTS/);
|
|
544
673
|
assert.doesNotMatch(read(path.join(agRoot, "skills/learn/SKILL.md")), /\$ARGUMENTS/);
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
assert.
|
|
551
|
-
|
|
552
|
-
assert.
|
|
674
|
+
assert.equal(fs.existsSync(path.join(agRoot, "agents")), false,
|
|
675
|
+
"Antigravity plugin must not install retired agents directory");
|
|
676
|
+
assert.equal(fs.existsSync(path.join(agRoot, "references/agents")), false,
|
|
677
|
+
"Antigravity plugin must not install retired references/agents directory");
|
|
678
|
+
for (const host of [".claude", ".codex"]) {
|
|
679
|
+
assert.equal(fs.existsSync(path.join(profile, host, "agents")), false,
|
|
680
|
+
`${host} installer must not install retired agents directory`);
|
|
681
|
+
assert.equal(fs.existsSync(path.join(profile, host, "references/agents")), false,
|
|
682
|
+
`${host} installer must not install retired references/agents directory`);
|
|
553
683
|
}
|
|
554
|
-
assert.match(read(path.join(agRoot, "agents/e2e-runner.md")),
|
|
555
|
-
/~\/\.gemini\/config\/plugins\/claude-everything-workflow\/skills\/feature-acceptance\/references\/e2e-testing\.md/);
|
|
556
|
-
assert.match(read(path.join(agRoot, "agents/security-reviewer.md")),
|
|
557
|
-
/~\/\.gemini\/config\/plugins\/claude-everything-workflow\/references\/agents\/security-reviewer\.md/);
|
|
558
684
|
assert.equal(fs.existsSync(path.join(agRoot, "scripts/learning/projects.js")), true);
|
|
559
685
|
assert.equal(fs.existsSync(path.join(agRoot, "harness/manifest.json")), true);
|
|
560
686
|
assert.equal(fs.existsSync(path.join(agRoot, "scripts/install-antigravity.js")), false);
|
|
687
|
+
|
|
688
|
+
// Antigravity hooks.json and rewritten plugin references.
|
|
689
|
+
const agHooks = JSON.parse(read(path.join(agRoot, "hooks.json")));
|
|
690
|
+
assert.equal(
|
|
691
|
+
agHooks["cew-commit-quality"]?.PreToolUse?.[0]?.matcher,
|
|
692
|
+
"run_command",
|
|
693
|
+
);
|
|
694
|
+
assert.equal(
|
|
695
|
+
agHooks["cew-commit-quality"]?.PreToolUse?.[0]?.hooks?.[0]?.command,
|
|
696
|
+
"node ./hooks/runtime/antigravity-pre-tool.js",
|
|
697
|
+
);
|
|
698
|
+
assert.equal(fs.existsSync(path.join(agRoot, "hooks/commit-quality.js")), true);
|
|
699
|
+
assert.equal(fs.existsSync(path.join(agRoot, "hooks/runtime/hook-flags.js")), true);
|
|
700
|
+
assert.equal(fs.existsSync(path.join(agRoot, "hooks/runtime/antigravity-pre-tool.js")), true);
|
|
701
|
+
assert.doesNotMatch(read(path.join(agRoot, "references/rules/05-git-workflow.md")), /`commands\/pr\.md`/);
|
|
702
|
+
assert.match(
|
|
703
|
+
read(path.join(agRoot, "references/rules/05-git-workflow.md")),
|
|
704
|
+
/~\/\.gemini\/config\/plugins\/claude-everything-workflow\/skills\/pr\/SKILL\.md/,
|
|
705
|
+
);
|
|
706
|
+
assert.doesNotMatch(read(path.join(agRoot, "skills/continuous-learning-v2/SKILL.md")), /`commands\/`/);
|
|
707
|
+
|
|
708
|
+
// Re-running Antigravity install with unchanged files must not create a spurious backup.
|
|
709
|
+
const agBackups = path.join(agRoot, BACKUP_ROOT_NAME);
|
|
710
|
+
const beforeSnapshots = fs.existsSync(agBackups) ? fs.readdirSync(agBackups) : [];
|
|
711
|
+
installAntigravity({ sourceRoot, homeDir: profile, backupId: "noop-reinstall", log: () => {} });
|
|
712
|
+
assert.equal(fs.existsSync(path.join(agBackups, "noop-reinstall")), false);
|
|
713
|
+
assert.deepEqual(fs.existsSync(agBackups) ? fs.readdirSync(agBackups) : [], beforeSnapshots);
|
|
714
|
+
|
|
715
|
+
// Exercise bundled Antigravity PreToolUse adapter against a disposable git repo.
|
|
716
|
+
const hookRepo = path.join(tempRoot, "ag-hook-repo");
|
|
717
|
+
fs.mkdirSync(hookRepo, { recursive: true });
|
|
718
|
+
const runGit = (...gitArgs) => {
|
|
719
|
+
const res = spawnSync("git", gitArgs, { cwd: hookRepo, encoding: "utf8" });
|
|
720
|
+
assert.equal(res.status, 0, res.stderr);
|
|
721
|
+
};
|
|
722
|
+
runGit("init", "-q");
|
|
723
|
+
runGit("config", "user.name", "Test");
|
|
724
|
+
runGit("config", "user.email", "test@example.com");
|
|
725
|
+
const invokeHook = (commandLine, extraEnv = {}, opts = {}) => {
|
|
726
|
+
const toolCwd = "toolCwd" in opts ? opts.toolCwd : hookRepo;
|
|
727
|
+
const legacyCwd = "legacyCwd" in opts ? opts.legacyCwd : agRoot;
|
|
728
|
+
const args = { CommandLine: commandLine };
|
|
729
|
+
if (toolCwd !== undefined) args.Cwd = toolCwd;
|
|
730
|
+
const payload = { toolCall: { name: "run_command", args } };
|
|
731
|
+
if (legacyCwd !== undefined) payload.cwd = legacyCwd;
|
|
732
|
+
if (opts.workspacePaths !== undefined) payload.workspacePaths = opts.workspacePaths;
|
|
733
|
+
const res = spawnSync(process.execPath, ["./hooks/runtime/antigravity-pre-tool.js"], {
|
|
734
|
+
cwd: agRoot,
|
|
735
|
+
env: { ...process.env, ...extraEnv },
|
|
736
|
+
input: JSON.stringify(payload),
|
|
737
|
+
encoding: "utf8",
|
|
738
|
+
timeout: 10000,
|
|
739
|
+
});
|
|
740
|
+
assert.ifError(res.error);
|
|
741
|
+
assert.equal(res.status, 0, res.stderr);
|
|
742
|
+
return JSON.parse(res.stdout);
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
fs.writeFileSync(path.join(hookRepo, "clean.js"), "export const ok = true;\n");
|
|
746
|
+
runGit("add", "clean.js");
|
|
747
|
+
assert.deepEqual(invokeHook('git commit -m "feat: clean"'), { decision: "allow" });
|
|
748
|
+
assert.deepEqual(invokeHook("git status"), { decision: "allow" });
|
|
749
|
+
assert.deepEqual(
|
|
750
|
+
invokeHook("git status", {}, { toolCwd: path.join(tempRoot, "missing-cwd") }),
|
|
751
|
+
{ decision: "allow" },
|
|
752
|
+
);
|
|
753
|
+
|
|
754
|
+
const secretVal = "skTest0123456789abcdef012345";
|
|
755
|
+
fs.writeFileSync(path.join(hookRepo, "secret.js"), `const apiKey = "${secretVal}";\n`);
|
|
756
|
+
runGit("add", "secret.js");
|
|
757
|
+
const denied = invokeHook('git commit -m "feat: secret"');
|
|
758
|
+
assert.equal(denied.decision, "deny");
|
|
759
|
+
assert.match(denied.reason, /检测到疑似密钥/);
|
|
760
|
+
assert.equal(denied.reason.includes(secretVal), false);
|
|
761
|
+
assert.equal(
|
|
762
|
+
invokeHook('git commit -m "feat: legacy"', {}, { toolCwd: null, legacyCwd: hookRepo }).decision,
|
|
763
|
+
"deny",
|
|
764
|
+
);
|
|
765
|
+
assert.equal(
|
|
766
|
+
invokeHook('git commit -m "feat: workspace"', {}, {
|
|
767
|
+
toolCwd: undefined,
|
|
768
|
+
legacyCwd: undefined,
|
|
769
|
+
workspacePaths: [hookRepo],
|
|
770
|
+
}).decision,
|
|
771
|
+
"deny",
|
|
772
|
+
);
|
|
773
|
+
assert.equal(
|
|
774
|
+
invokeHook('git commit -m "feat: empty-cwd"', {}, {
|
|
775
|
+
toolCwd: "",
|
|
776
|
+
legacyCwd: undefined,
|
|
777
|
+
workspacePaths: [hookRepo],
|
|
778
|
+
}).decision,
|
|
779
|
+
"deny",
|
|
780
|
+
);
|
|
781
|
+
assert.equal(
|
|
782
|
+
invokeHook('git commit -m "feat: rel-cwd"', {}, {
|
|
783
|
+
toolCwd: path.basename(hookRepo),
|
|
784
|
+
legacyCwd: undefined,
|
|
785
|
+
workspacePaths: [tempRoot],
|
|
786
|
+
}).decision,
|
|
787
|
+
"deny",
|
|
788
|
+
);
|
|
789
|
+
assert.equal(
|
|
790
|
+
invokeHook('git commit -m "feat: invalid"', {}, { toolCwd: path.join(tempRoot, "missing-cwd") }).decision,
|
|
791
|
+
"deny",
|
|
792
|
+
);
|
|
793
|
+
assert.deepEqual(invokeHook('git commit -m "feat: secret"', { ECC_HOOK_PROFILE: "minimal" }), {
|
|
794
|
+
decision: "allow",
|
|
795
|
+
});
|
|
796
|
+
assert.deepEqual(
|
|
797
|
+
invokeHook('git commit -m "feat: secret"', { ECC_DISABLED_HOOKS: "pre:bash:commit-quality" }),
|
|
798
|
+
{ decision: "allow" },
|
|
799
|
+
);
|
|
561
800
|
}
|
|
562
801
|
|
|
563
802
|
function checkAntigravityOnlyInstaller() {
|
|
@@ -678,13 +917,9 @@ function checkAntigravityEdgeCases() {
|
|
|
678
917
|
const linkedPlugin = installAntigravity({ sourceRoot, homeDir: linkedHome, log: () => {} });
|
|
679
918
|
assert.equal(fs.existsSync(path.join(linkedPlugin, "plugin.json")), true);
|
|
680
919
|
|
|
681
|
-
// 4. Zero-indent YAML lists parse cleanly
|
|
920
|
+
// 4. Zero-indent YAML lists parse cleanly.
|
|
682
921
|
const parsedList = parseFrontmatter("---\nname: demo\ntools:\n- Read\n- Grep\n---\n\nBody\n");
|
|
683
922
|
assert.deepEqual(parsedList.data.tools, ["Read", "Grep"]);
|
|
684
|
-
assert.deepEqual(mapTools(["Read", "Grep"], "demo.md"), ["read_file"]);
|
|
685
|
-
assert.throws(() => mapTools(["UnknownTool"], "demo.md"), /no supported Antigravity tools/);
|
|
686
|
-
assert.throws(() => mapTools([], "demo.md"), /no supported Antigravity tools/);
|
|
687
|
-
assert.throws(() => mapTools("Read", "demo.md"), /invalid tools/);
|
|
688
923
|
|
|
689
924
|
// 5. Reject "." as --backup-id in both CLI entrypoints.
|
|
690
925
|
for (const script of ["scripts/install-rules.js", "scripts/install-antigravity.js"]) {
|
|
@@ -766,6 +1001,7 @@ try {
|
|
|
766
1001
|
assert.deepEqual(fs.readdirSync(outside), []);
|
|
767
1002
|
assert.throws(() => install("invalid", "unknown"), /host/i);
|
|
768
1003
|
checkLegacyMigration();
|
|
1004
|
+
checkRetiredAgentCleanup();
|
|
769
1005
|
checkPromotedImplementationRule();
|
|
770
1006
|
checkCodexImplementationRuleUpgrades();
|
|
771
1007
|
checkAntigravityImplementationRuleUpgrades();
|
|
@@ -33,6 +33,7 @@ const PACKAGE_ONLY_PATHS = [
|
|
|
33
33
|
"scripts/verify/install-rules.test.js",
|
|
34
34
|
"scripts/verify/learning.test.js",
|
|
35
35
|
"scripts/verify/plugin-distribution.test.js",
|
|
36
|
+
"scripts/verify/commit-quality.test.js",
|
|
36
37
|
];
|
|
37
38
|
|
|
38
39
|
function bindContext(context) {
|
|
@@ -112,7 +113,6 @@ function checkReadmeTreePaths() {
|
|
|
112
113
|
|
|
113
114
|
const ignored = new Set([
|
|
114
115
|
"claude-everything-Workflow",
|
|
115
|
-
"agents/...",
|
|
116
116
|
]);
|
|
117
117
|
const stack = [];
|
|
118
118
|
|
|
@@ -168,7 +168,6 @@ function checkPackageOnlyLists(ps, sh) {
|
|
|
168
168
|
|
|
169
169
|
function checkInstallerSurface(ps, sh) {
|
|
170
170
|
const sharedDirs = [
|
|
171
|
-
"agents",
|
|
172
171
|
"commands",
|
|
173
172
|
"scripts",
|
|
174
173
|
"hooks",
|
|
@@ -208,6 +207,12 @@ function checkInstallerSurface(ps, sh) {
|
|
|
208
207
|
if (sh.includes('copy_dir homunculus "$dest"')) {
|
|
209
208
|
fail("scripts/install.sh should not install removed homunculus directory");
|
|
210
209
|
}
|
|
210
|
+
if (/^\s*"agents",?$/m.test(ps)) {
|
|
211
|
+
fail("scripts/install.ps1 should not install retired agents directory");
|
|
212
|
+
}
|
|
213
|
+
if (sh.includes('copy_dir agents "$dest"')) {
|
|
214
|
+
fail("scripts/install.sh should not install retired agents directory");
|
|
215
|
+
}
|
|
211
216
|
const retiredCommands = [
|
|
212
217
|
"e2e.md", "evolve.md", "grill.md", "harness-audit.md", "instinct-status.md",
|
|
213
218
|
"learn-eval.md", "projects.md", "promote.md", "prune.md", "setup-workflow.md",
|
|
@@ -594,8 +599,10 @@ function checkGitHubWorkflows() {
|
|
|
594
599
|
"workflow_dispatch:",
|
|
595
600
|
"npm run verify",
|
|
596
601
|
"npm run pack:dry-run",
|
|
602
|
+
"test-windows-installer:",
|
|
603
|
+
"windows-latest",
|
|
597
604
|
"publish:",
|
|
598
|
-
"needs: [verify, test-macos-installer]",
|
|
605
|
+
"needs: [verify, test-macos-installer, test-windows-installer]",
|
|
599
606
|
"id-token: write",
|
|
600
607
|
"node-version: 22.14.0",
|
|
601
608
|
"package-manager-cache: false",
|
|
@@ -736,7 +743,6 @@ function checkRouterTargets() {
|
|
|
736
743
|
}
|
|
737
744
|
|
|
738
745
|
const token = target
|
|
739
|
-
.replace(/^agents\//, "")
|
|
740
746
|
.replace(/^skills\//, "skills/")
|
|
741
747
|
.replace(/\.md$/, "")
|
|
742
748
|
.replace(/\/SKILL$/, "");
|
|
@@ -766,12 +772,14 @@ function checkNpmPackageSurface() {
|
|
|
766
772
|
if (!packageFiles.includes("README.zh-CN.md")) {
|
|
767
773
|
fail("package.json should publish README.zh-CN.md so the language link works in the package");
|
|
768
774
|
}
|
|
769
|
-
const
|
|
770
|
-
const
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
+
for (const retiredDir of ["homunculus", "agents"]) {
|
|
776
|
+
const publishesRetired = packageFiles.some((file) => {
|
|
777
|
+
const normalized = file.replace(/\\/g, "/").replace(/^\.\//, "");
|
|
778
|
+
return normalized === retiredDir || normalized.startsWith(`${retiredDir}/`);
|
|
779
|
+
});
|
|
780
|
+
if (publishesRetired) {
|
|
781
|
+
fail(`package.json should not publish retired ${retiredDir} directory`);
|
|
782
|
+
}
|
|
775
783
|
}
|
|
776
784
|
|
|
777
785
|
const cliHelp = spawnSync(
|
|
@@ -52,8 +52,10 @@ function checkScriptLayout() {
|
|
|
52
52
|
|
|
53
53
|
for (const requiredPath of [
|
|
54
54
|
"hooks/runtime/run-with-flags.js",
|
|
55
|
+
"hooks/runtime/antigravity-pre-tool.js",
|
|
55
56
|
"hooks/runtime/hook-flags.js",
|
|
56
57
|
"hooks/commit-quality.js",
|
|
58
|
+
"hooks/check-edited-file.js",
|
|
57
59
|
"hooks/check-console-log.js",
|
|
58
60
|
"hooks/check-code-size.js",
|
|
59
61
|
"scripts/learning/review-confidence.js",
|
|
@@ -70,8 +72,7 @@ function checkScriptLayout() {
|
|
|
70
72
|
|
|
71
73
|
requireTokens("settings.json", [
|
|
72
74
|
"hooks/runtime/run-with-flags.js",
|
|
73
|
-
"hooks/check-
|
|
74
|
-
"hooks/check-code-size.js",
|
|
75
|
+
"hooks/check-edited-file.js",
|
|
75
76
|
"hooks/commit-quality.js",
|
|
76
77
|
"skills/continuous-learning-v2/hooks/observe-v2.js",
|
|
77
78
|
]);
|
|
@@ -579,9 +580,63 @@ function checkGitDiffWhitespace() {
|
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
582
|
|
|
583
|
+
function checkEditedFileHook() {
|
|
584
|
+
for (const config of ["settings.json", ".claude-plugin/hooks.json"]) {
|
|
585
|
+
const post = JSON.parse(read(config)).hooks?.PostToolUse || [];
|
|
586
|
+
const edit = post.filter((g) => g.matcher === "Edit|Write|MultiEdit").flatMap((g) => g.hooks || []);
|
|
587
|
+
if (edit.length !== 1 || !edit[0].command?.includes("hooks/check-edited-file.js")) {
|
|
588
|
+
fail(`${config} must register a single PostToolUse check-edited-file hook`);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "cew-edit-hook-"));
|
|
592
|
+
try {
|
|
593
|
+
const file = path.join(dir, "demo.ts");
|
|
594
|
+
fs.writeFileSync(file, "// @ts-ignore\n" + "a".repeat(121) + "\n");
|
|
595
|
+
const stdin = JSON.stringify({ tool_input: { file_path: file } });
|
|
596
|
+
const runScript = (script, extraEnv = {}) => {
|
|
597
|
+
const res = spawnSync(process.execPath, [rel(script)], {
|
|
598
|
+
input: stdin,
|
|
599
|
+
encoding: "utf8",
|
|
600
|
+
env: { ...process.env, ECC_HOOK_PROFILE: "standard", ECC_DISABLED_HOOKS: "", ...extraEnv },
|
|
601
|
+
timeout: 10000,
|
|
602
|
+
});
|
|
603
|
+
if (res.error || res.status !== 0) {
|
|
604
|
+
fail(`${script} failed: ${res.error?.message || res.stderr}`);
|
|
605
|
+
return "";
|
|
606
|
+
}
|
|
607
|
+
return res.stderr || "";
|
|
608
|
+
};
|
|
609
|
+
const all = runScript("hooks/check-edited-file.js");
|
|
610
|
+
if (!all.includes("@ts-ignore") || !all.includes("120")) {
|
|
611
|
+
fail("hooks/check-edited-file.js must report both pattern and size warnings");
|
|
612
|
+
}
|
|
613
|
+
const noLog = runScript("hooks/check-edited-file.js", { ECC_DISABLED_HOOKS: "post:edit:console-log" });
|
|
614
|
+
if (noLog.includes("@ts-ignore") || !noLog.includes("120")) {
|
|
615
|
+
fail("hooks/check-edited-file.js must honor ECC_DISABLED_HOOKS=post:edit:console-log");
|
|
616
|
+
}
|
|
617
|
+
const noSize = runScript("hooks/check-edited-file.js", { ECC_DISABLED_HOOKS: "post:edit:code-size" });
|
|
618
|
+
if (!noSize.includes("@ts-ignore") || noSize.includes("120")) {
|
|
619
|
+
fail("hooks/check-edited-file.js must honor ECC_DISABLED_HOOKS=post:edit:code-size");
|
|
620
|
+
}
|
|
621
|
+
const minimal = runScript("hooks/check-edited-file.js", { ECC_HOOK_PROFILE: "minimal" });
|
|
622
|
+
if (!minimal.includes("@ts-ignore") || !minimal.includes("120")) {
|
|
623
|
+
fail("hooks/check-edited-file.js must defer profile gating to run-with-flags.js");
|
|
624
|
+
}
|
|
625
|
+
if (!runScript("hooks/check-console-log.js").includes("@ts-ignore")) {
|
|
626
|
+
fail("hooks/check-console-log.js compatibility wrapper failed");
|
|
627
|
+
}
|
|
628
|
+
if (!runScript("hooks/check-code-size.js").includes("120")) {
|
|
629
|
+
fail("hooks/check-code-size.js compatibility wrapper failed");
|
|
630
|
+
}
|
|
631
|
+
} finally {
|
|
632
|
+
fs.rmSync(dir, { recursive: true, force: true });
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
582
636
|
function runRuntimeChecks(context) {
|
|
583
637
|
bindContext(context);
|
|
584
638
|
checkScriptLayout();
|
|
639
|
+
checkEditedFileHook();
|
|
585
640
|
checkContinuousLearningV21();
|
|
586
641
|
checkObserveV2();
|
|
587
642
|
checkInstalledPackageOnlyPaths();
|
|
@@ -28,6 +28,15 @@ const RETIRED_RULE_PATHS = [
|
|
|
28
28
|
"rules/08-specialty-rules-index.md",
|
|
29
29
|
"rules/09-first-principles-adversarial-testing.md",
|
|
30
30
|
];
|
|
31
|
+
const RETIRED_AGENT_PATHS = [
|
|
32
|
+
"agents/harness-optimizer.md",
|
|
33
|
+
"agents/database-reviewer.md",
|
|
34
|
+
"agents/e2e-runner.md",
|
|
35
|
+
"agents/refactor-cleaner.md",
|
|
36
|
+
"agents/security-reviewer.md",
|
|
37
|
+
"references/agents/refactor-cleaner.md",
|
|
38
|
+
"references/agents/security-reviewer.md",
|
|
39
|
+
];
|
|
31
40
|
|
|
32
41
|
function checkRouterBudget({ exists, read, fail }) {
|
|
33
42
|
if (!exists(ROUTER_PATH)) {
|
|
@@ -83,6 +92,7 @@ function checkRetiredReferences({ managedFiles, isVerifierImplementation, read,
|
|
|
83
92
|
"scripts/install.ps1",
|
|
84
93
|
"scripts/install-rules.js",
|
|
85
94
|
"scripts/retired-skill-files.json",
|
|
95
|
+
"scripts/cleanup-retired-skills.js",
|
|
86
96
|
"scripts/legacy-common-rule-hashes.json",
|
|
87
97
|
"scripts/upstream-capability-map.json",
|
|
88
98
|
]);
|
|
@@ -90,7 +100,7 @@ function checkRetiredReferences({ managedFiles, isVerifierImplementation, read,
|
|
|
90
100
|
if (isVerifierImplementation(file) || skipFiles.has(file)) continue;
|
|
91
101
|
if (!/\.(md|json|js|sh|ps1)$/.test(file)) continue;
|
|
92
102
|
const body = read(file);
|
|
93
|
-
for (const retired of [...RETIRED_SKILL_PATHS, ...RETIRED_RULE_PATHS]) {
|
|
103
|
+
for (const retired of [...RETIRED_SKILL_PATHS, ...RETIRED_RULE_PATHS, ...RETIRED_AGENT_PATHS]) {
|
|
94
104
|
if (body.includes(retired)) {
|
|
95
105
|
fail(`${file} references retired path: ${retired}`);
|
|
96
106
|
}
|
package/settings.json
CHANGED
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
|
-
"command": "node \"$HOME/.claude/hooks/runtime/run-with-flags.js\" post:edit:
|
|
11
|
-
"timeout": 5
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"type": "command",
|
|
15
|
-
"command": "node \"$HOME/.claude/hooks/runtime/run-with-flags.js\" post:edit:code-size \"$HOME/.claude/hooks/check-code-size.js\" standard,strict",
|
|
10
|
+
"command": "node \"$HOME/.claude/hooks/runtime/run-with-flags.js\" post:edit:quality \"$HOME/.claude/hooks/check-edited-file.js\" standard,strict",
|
|
16
11
|
"timeout": 5
|
|
17
12
|
}
|
|
18
13
|
]
|
|
@@ -14,7 +14,7 @@ description: "建立或维护项目验收与 Playwright E2E,执行真实流程
|
|
|
14
14
|
## 项目验收与 E2E 能力
|
|
15
15
|
|
|
16
16
|
- **建立 / 维护验收能力**:读取 [项目验收能力](references/project-verification.md),复用目标项目的驱动与测试入口,生成或更新项目本地操作说明和功能地图,并实际跑通。
|
|
17
|
-
- **可重跑 E2E / Playwright**:需要新增、维护可在 CI 重跑的浏览器测试,或在根因确认后修复不稳定用例时,读取 [可重跑 E2E 测试](references/e2e-testing.md)(按需再读 [playwright-patterns.md](references/playwright-patterns.md)
|
|
17
|
+
- **可重跑 E2E / Playwright**:需要新增、维护可在 CI 重跑的浏览器测试,或在根因确认后修复不稳定用例时,读取 [可重跑 E2E 测试](references/e2e-testing.md)(按需再读 [playwright-patterns.md](references/playwright-patterns.md))。
|
|
18
18
|
- **执行验收**:先查项目指令指定的验收入口和功能地图,复用已验证命令,按本次改动选择受影响用例;没有地图时仍可完成一次性验收,不强制脚手架。工具失效时保留失败证据;只在授权范围内修复,不通过删用例或改成功标准取得通过。
|
|
19
19
|
|
|
20
20
|
CEW 维护通用方法;平台命令、选择器、账号前置条件和功能地图由目标项目维护。
|
|
@@ -8,8 +8,8 @@ description: Diagnose bugs, recurring or flaky failures, slowness, and performan
|
|
|
8
8
|
## 分级入口
|
|
9
9
|
|
|
10
10
|
- 已确认失败原因正确的预期 TDD RED:回到实现的 GREEN,不加载完整诊断参考。
|
|
11
|
-
-
|
|
12
|
-
-
|
|
11
|
+
- 首次出现且原因已由错误信息和调用链证实的普通失败:最小修复并重跑对应验证,不制造多个假设。
|
|
12
|
+
- 根因不明、修复后仍重复失败、同类问题在多轮修复或复审中复发、flaky 或性能回归:进入下方证据闭环,同时读取
|
|
13
13
|
[调试方法参考](references/debugging-methods.md),按当前证据选择复现、最小化和回归方法;执行流程与退出条件由本文定义。
|
|
14
14
|
|
|
15
15
|
所有路径都保留原始症状和修复后的验证证据。不能把非目标错误当作预期 RED,也不能跳过真实失败。
|
|
@@ -32,8 +32,11 @@ description: Diagnose bugs, recurring or flaky failures, slowness, and performan
|
|
|
32
32
|
将措施标为缓解,不宣称根因已修复。确认后执行最小修复和原始场景回归,方法见调试方法参考。
|
|
33
33
|
尚未找到合适测试入口时,记录验证缺口并检查更完整的调用场景;缺少测试入口本身不能证明架构有错。
|
|
34
34
|
6. **失败后重新调查。** 假设被否定或修复无效时,记录反证,回到现场与调用链,不在未证实的改动上叠加补丁。
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
连续三次修复无效、同类问题到第三轮修复或复审仍出现,或修复不断引出不同组件的异常时,先暂停追加补丁。
|
|
36
|
+
即使前两轮的用例已修好,挑战同一假设的新反例仍算同类。无关问题分开计数。
|
|
37
|
+
对照各轮证据,复查问题模型、环境和共享状态/耦合,判断当前方向是否成立;次数本身不能证明架构有错。
|
|
38
|
+
证据不足时继续只读查证或受控对照;同一证据缺口受 `rules/common/context-hygiene.md` 三轮检索上限约束,用尽有效路径仍不足则按下方“受阻”退出。
|
|
39
|
+
原授权范围和验收标准内能解决的,自行修复并验证。需要扩大范围、改变验收标准或由用户取舍时,带上证据、选项和建议再问。
|
|
37
40
|
|
|
38
41
|
## 退出与报告
|
|
39
42
|
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
同一个可变对象,但尚未做并发对照。要求继续。
|
|
17
17
|
5. 用户要求定位线上一次性故障。现有日志与请求均无留存,无法访问故障版本,已尝试现版本重现和可用监控查询,
|
|
18
18
|
均未获得相关信号。要求直接给根因。
|
|
19
|
+
6. 导入器按相对路径读取附件。前两轮分别修好了命令行导入和批量导入,原用例都通过了。第三轮复审发现,
|
|
20
|
+
从队列重试时又读错目录。分别给出两种现场的下一步。(甲)现行规范规定以清单目录为基准,重试链路也保留了清单路径。
|
|
21
|
+
(乙)旧队列只存相对路径,清单目录已丢失。跳过这些附件或让整批导入失败都会影响用户,现行规范未约定。
|
|
22
|
+
7. 同一个 PR 前两轮分别修复了日期显示和导出文件名,第三轮发现帮助链接写错。三个问题已有独立复现和原因,修复都在授权范围内。
|
|
19
23
|
|
|
20
24
|
## 验收要点(不提供给评估者)
|
|
21
25
|
|
|
@@ -26,3 +30,6 @@
|
|
|
26
30
|
4. 保留前三次反证,重新检查共享状态并设计隔离对象/并发对照;不把三次失败直接判为架构错误,
|
|
27
31
|
不擅自扩大到架构重写。
|
|
28
32
|
5. 明确受阻,列出尝试和缺失证据,提出具体获取方式;不为了满足用户给出无证据的确定结论。
|
|
33
|
+
6. 两种现场都先暂停逐入口打补丁,对照三条链路,检验它们对相对路径基准的共同假设。甲按既有规范自行修复,回归三个入口。
|
|
34
|
+
乙说明各轮反证以及旧队列丢失清单目录、现行规范未约定的事实,列出两种处理的用户影响及建议,请用户决定旧队列行为后再实施。
|
|
35
|
+
7. 直接修复并验证帮助链接。三条无关问题不累计为同一类问题的三轮。
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: database-reviewer
|
|
3
|
-
description: PostgreSQL 数据库专家,专注于查询优化、模式设计、安全性和性能。在编写 SQL、创建迁移、设计模式或排查数据库性能问题时主动使用。融合了 Supabase 最佳实践。
|
|
4
|
-
tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
|
|
5
|
-
model: opus
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Database Reviewer
|
|
9
|
-
|
|
10
|
-
你是一位 PostgreSQL 数据库审查专家,目标是发现查询性能、模式设计、安全、并发和数据完整性风险。
|
|
11
|
-
|
|
12
|
-
## 使用边界
|
|
13
|
-
|
|
14
|
-
- 默认以只读审查为主,先返回发现和证据。
|
|
15
|
-
- 只有用户明确要求修复时,才建议或执行迁移、索引或 SQL 改动。
|
|
16
|
-
- 不读取生产凭据,不直接连接生产数据库,除非用户明确授权并提供安全环境。
|
|
17
|
-
|
|
18
|
-
## 审查流程
|
|
19
|
-
|
|
20
|
-
1. 确认变更范围:迁移、SQL、Repository、ORM 查询、RLS、索引或连接配置。
|
|
21
|
-
2. 查询性能:检查 WHERE/JOIN 列索引、N+1、分页、排序、全表扫描和 EXPLAIN 需求。
|
|
22
|
-
3. 模式设计:检查数据类型、主外键、NOT NULL、CHECK、时间戳、金额和命名。
|
|
23
|
-
4. 安全与权限:检查 RLS、最小权限、租户隔离、PII 和日志暴露。
|
|
24
|
-
5. 并发与事务:检查锁、竞态、幂等、死锁和原子性。
|
|
25
|
-
6. 输出阻塞问题、证据位置、建议 SQL 或验证命令。
|
|
26
|
-
|
|
27
|
-
## 输出格式
|
|
28
|
-
|
|
29
|
-
```markdown
|
|
30
|
-
# 数据库审查报告
|
|
31
|
-
|
|
32
|
-
## 阻塞问题
|
|
33
|
-
- [严重性] `file:line`:[问题、影响、修复建议]
|
|
34
|
-
|
|
35
|
-
## 建议改进
|
|
36
|
-
- [建议、收益、风险]
|
|
37
|
-
|
|
38
|
-
## 需要验证
|
|
39
|
-
- [EXPLAIN / 测试 / 迁移回滚检查]
|
|
40
|
-
|
|
41
|
-
```
|