@sun-asterisk/sungen 3.1.2-beta.134 → 3.1.2-beta.136

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.
Files changed (30) hide show
  1. package/dist/harness/audit.d.ts +2 -1
  2. package/dist/harness/audit.d.ts.map +1 -1
  3. package/dist/harness/audit.js +39 -2
  4. package/dist/harness/audit.js.map +1 -1
  5. package/dist/harness/flow-check.d.ts +9 -0
  6. package/dist/harness/flow-check.d.ts.map +1 -1
  7. package/dist/harness/flow-check.js +13 -6
  8. package/dist/harness/flow-check.js.map +1 -1
  9. package/dist/harness/sensors.d.ts +35 -0
  10. package/dist/harness/sensors.d.ts.map +1 -1
  11. package/dist/harness/sensors.js +41 -0
  12. package/dist/harness/sensors.js.map +1 -1
  13. package/dist/orchestrator/templates/ai-instructions/claude-agent-reviewer.md +1 -1
  14. package/dist/orchestrator/templates/ai-instructions/claude-cmd-create-test.md +1 -1
  15. package/dist/orchestrator/templates/ai-instructions/claude-skill-harness-audit.md +1 -1
  16. package/dist/orchestrator/templates/ai-instructions/claude-skill-tc-generation.md +2 -2
  17. package/dist/orchestrator/templates/ai-instructions/copilot-cmd-create-test.md +1 -1
  18. package/dist/orchestrator/templates/ai-instructions/github-skill-sungen-harness-audit.md +1 -1
  19. package/dist/orchestrator/templates/ai-instructions/github-skill-sungen-tc-generation.md +2 -2
  20. package/package.json +2 -2
  21. package/src/harness/audit.ts +40 -3
  22. package/src/harness/flow-check.ts +15 -6
  23. package/src/harness/sensors.ts +59 -0
  24. package/src/orchestrator/templates/ai-instructions/claude-agent-reviewer.md +1 -1
  25. package/src/orchestrator/templates/ai-instructions/claude-cmd-create-test.md +1 -1
  26. package/src/orchestrator/templates/ai-instructions/claude-skill-harness-audit.md +1 -1
  27. package/src/orchestrator/templates/ai-instructions/claude-skill-tc-generation.md +2 -2
  28. package/src/orchestrator/templates/ai-instructions/copilot-cmd-create-test.md +1 -1
  29. package/src/orchestrator/templates/ai-instructions/github-skill-sungen-harness-audit.md +1 -1
  30. package/src/orchestrator/templates/ai-instructions/github-skill-sungen-tc-generation.md +2 -2
@@ -1,4 +1,4 @@
1
- import { GateResult, DepthResult, BalanceResult, DuplicateResult, TraceResult, ClaimProofResult, TaxonomyResult } from './sensors';
1
+ import { GateResult, DepthResult, BalanceResult, DuplicateResult, TraceResult, ClaimProofResult, TaxonomyResult, AutomatableManualResult } from './sensors';
2
2
  import { IntentProfile } from './intent';
3
3
  import { Provenance } from './provenance';
4
4
  import { SpecCoverageResult } from './spec-coverage';
@@ -17,6 +17,7 @@ export interface AuditReport {
17
17
  taxonomyMismatch: boolean;
18
18
  downstream: DownstreamResult;
19
19
  manualOracle: ManualOracleResult;
20
+ automatableManual: AutomatableManualResult;
20
21
  ledger: LedgerResult;
21
22
  calibration: {
22
23
  axes: Record<string, number>;
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/harness/audit.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EACvG,MAAM,WAAW,CAAC;AACnB,OAAO,EAAwC,aAAa,EAAE,MAAM,UAAU,CAAC;AAC/E,OAAO,EAAiB,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAgB,kBAAkB,EAAoB,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAA2C,gBAAgB,EAAE,kBAAkB,EAC1B,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAwC,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKxF,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO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,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;IACvB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAcD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,iBAAiB,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGlH;AAED,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,WAAW,CA0N3E"}
@@ -48,6 +48,7 @@ const fs = __importStar(require("fs"));
48
48
  const parse_1 = require("./parse");
49
49
  const unit_paths_1 = require("./unit-paths");
50
50
  const sensors_1 = require("./sensors");
51
+ const flow_check_1 = require("./flow-check");
51
52
  const intent_1 = require("./intent");
52
53
  const provenance_1 = require("./provenance");
53
54
  const spec_coverage_1 = require("./spec-coverage");
@@ -114,6 +115,26 @@ function runAudit(screenDir, screenName) {
114
115
  const provided = capGate?.({ scenarios, viewpoints, catalog, focus: intent.focus, cwd: (0, intent_1.projectRootFromScreenDir)(screenDir), screenName: catalogScreenName, threshold: (0, sensors_1.depthThresholdFor)(intent.focus), businessCriticalMethods: intent.businessCriticalMethods });
115
116
  const gate = provided?.gate ?? (0, sensors_1.viewpointGate)(scenarios, viewpoints, catalog);
116
117
  const depth = provided?.depth ?? (0, sensors_1.assertionDepth)(scenarios, (0, sensors_1.dataThemesFor)(catalog, gate.pageType), intent.focus);
118
+ // TQ-4 — deferral-aware coverage credit: an inherently cross-screen theme (cart / detail /
119
+ // filter correctness) belongs in a FLOW, not on the screen. When a flow deeply covers a screen
120
+ // gate gap, credit it to the flow instead of double-counting it as a screen gap. Screens only
121
+ // (a flow/api unit is not credited by sibling flows); mutates the gate before coverage is scored.
122
+ const flowCredits = [];
123
+ const isScreenUnit = !/^(flows|api)\//.test(catalogScreenName);
124
+ if (isScreenUnit && gate.gaps.length) {
125
+ const flowScenarios = (0, flow_check_1.loadFlowScenarios)((0, intent_1.projectRootFromScreenDir)(screenDir));
126
+ if (flowScenarios.length) {
127
+ for (const c of (0, sensors_1.flowCoveredThemes)(gate.gaps, flowScenarios)) {
128
+ const i = gate.gaps.findIndex((g) => g.theme === c.theme);
129
+ if (i >= 0) {
130
+ gate.gaps.splice(i, 1);
131
+ gate.themesCovered++;
132
+ flowCredits.push(c);
133
+ }
134
+ }
135
+ gate.coverageRatio = gate.themesTotal ? gate.themesCovered / gate.themesTotal : 1;
136
+ }
137
+ }
117
138
  const claim = (0, sensors_1.claimProof)(scenarios, intent.focus);
118
139
  const taxonomy = (0, sensors_1.taxonomyLint)(scenarios);
119
140
  const balance = (0, sensors_1.coverageBalance)(scenarios);
@@ -124,6 +145,7 @@ function runAudit(screenDir, screenName) {
124
145
  // #2 downstream-scope + #4 manual-oracle
125
146
  const downstream = (0, quality_gates_1.downstreamScope)((0, quality_gates_1.readText)(specPath), scenarios);
126
147
  const manualOracleResult = (0, quality_gates_1.manualOracle)(featureText);
148
+ const autoManual = (0, sensors_1.automatableManual)(scenarios); // TQ-2 — @manual that is really automatable
127
149
  const ledger = (0, viewpoint_ledger_1.viewpointLedger)(viewpointPath, scenarios, featureText);
128
150
  const negSideEffect = (0, quality_gates_1.negativeSideEffect)(scenarios);
129
151
  const ownership = (0, quality_gates_1.crossArtifactOwnership)(screenDir, scenarios);
@@ -138,6 +160,9 @@ function runAudit(screenDir, screenName) {
138
160
  // Business-weighted overall (coverage + depth dominate)
139
161
  const overall = (0.4 * coverage + 0.3 * businessDepth + 0.15 * balanceScore + 0.15 * traceScore) * 10;
140
162
  const findings = [];
163
+ for (const c of flowCredits) {
164
+ findings.push(`COVERED-VIA-FLOW: critical theme "${c.theme}" is not covered on this screen but is deeply covered by flow "${c.flow}" — cross-screen depth correctly owned by the flow, so it is credited (not a screen gap). Verify with \`sungen flow-check\`.`);
165
+ }
141
166
  for (const g of gate.gaps) {
142
167
  if (g.status === 'shallow') {
143
168
  findings.push(`GATE: critical theme "${g.theme}" is covered only by SHALLOW scenarios (no data assertion) → deepen with \`... with {{value}}\` / \`table ... with {{value}}\` (count @manual cross-screen too).`);
@@ -181,6 +206,15 @@ function runAudit(screenDir, screenName) {
181
206
  for (const m of manualOracleResult.insufficient.slice(0, 8)) {
182
207
  findings.push(`MANUAL-STEPS-INSUFFICIENT: "${m}" — a @manual scenario needs setup · action · observable expected · oracle/tool (not just a one-line note).`);
183
208
  }
209
+ // TQ-2 — automatable @manual: deferred (usually cross-screen) but fully DSL-expressible.
210
+ for (const m of autoManual.scenarios.slice(0, 8)) {
211
+ findings.push(`MANUAL-AUTOMATABLE: "${m.name}" is @manual but its steps are fully automatable (a data assertion, no visual/mock/a11y judgment) → generate it as an AUTOMATED flow scenario (or tag @manual:Mx with a real capability reason). Don't leave a non-running @manual duplicate of a flow scenario.`);
212
+ }
213
+ // TQ-3 — businessDepth de-inflation: a high ratio on a tiny denominator because business-critical
214
+ // scenarios were deferred to @manual is misleading. Surface the deferral so 1.0 isn't read as "done".
215
+ if (depth.deferredBusinessCritical > 0 && depth.deferredBusinessCritical >= depth.businessCriticalTotal) {
216
+ findings.push(`DEPTH-DEFERRED: businessDepth ${businessDepth.toFixed(2)} is computed over only ${depth.businessCriticalTotal} on-screen scenario(s); ${depth.deferredBusinessCritical} business-critical scenario(s) are deferred to @manual (excluded from the ratio). Automate them in a flow and verify with \`sungen flow-check\` — this ratio is NOT "all business depth covered".`);
217
+ }
184
218
  if (ledger.hasViewpoint && ledger.missing.length) {
185
219
  const sample = ledger.missing.slice(0, 6).map((m) => m.id || `"${m.text}"`).join(', ');
186
220
  findings.push(`VIEWPOINT-ITEM-MISSING: ${ledger.missing.length}/${ledger.total} atomic viewpoint items have no covering scenario (${(ledger.ratio * 100).toFixed(0)}% covered) — e.g. ${sample}. Cover each item or mark it deferred/spec-gap.`);
@@ -226,7 +260,10 @@ function runAudit(screenDir, screenName) {
226
260
  };
227
261
  const weakestEntry = Object.entries(axes).sort((a, b) => a[1] - b[1])[0];
228
262
  const weakest = { axis: weakestEntry[0], value: weakestEntry[1] };
229
- const inflated = overall >= 8 && weakest.value < 0.6;
263
+ // Inflated when breadth hides a weak axis, OR when businessDepth is high but rests on a
264
+ // denominator collapsed by deferral-to-@manual (TQ-3): the headline depth can't be trusted.
265
+ const depthInflated = businessDepth >= 0.9 && depth.deferredBusinessCritical >= depth.businessCriticalTotal && depth.deferredBusinessCritical > 0;
266
+ const inflated = (overall >= 8 && weakest.value < 0.6) || depthInflated;
230
267
  if (inflated) {
231
268
  findings.push(`SCORE-INFLATED-BY-BREADTH: overall ${Math.round(overall * 10) / 10}/10 but the weakest axis "${weakest.axis}" is ${(weakest.value * 100).toFixed(0)}% — breadth is hiding a weak dimension. Raise "${weakest.axis}" before trusting the headline.`);
232
269
  }
@@ -238,7 +275,7 @@ function runAudit(screenDir, screenName) {
238
275
  screen: screenName,
239
276
  scenarioCount: scenarios.length,
240
277
  gate, depth, claim, taxonomy, balance, duplicates, trace, spec,
241
- taxonomyMismatch, downstream, manualOracle: manualOracleResult, ledger, calibration,
278
+ taxonomyMismatch, downstream, manualOracle: manualOracleResult, automatableManual: autoManual, ledger, calibration,
242
279
  score: {
243
280
  overall: Math.round(overall * 10) / 10,
244
281
  coverage: Math.round(coverage * 100) / 100,
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/harness/audit.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA,oDAGC;AAED,4BAwLC;AA3QD;;;;;;;GAOG;AACH,2CAA6B;AAC7B,uCAAyB;AACzB,mCAA8F;AAC9F,6CAA+C;AAC/C,uCAGmB;AACnB,qCAA+E;AAC/E,6CAAyD;AACzD,mDAAqF;AACrF,mDACoF;AACpF,yDAAwF;AACxF,uDAA8D;AAC9D,uDAA2E;AAC3E,mEAA+D;AAoC/D,yHAAyH;AACzH,SAAS,sBAAsB,CAAC,SAAiB;IAC/C,MAAM,KAAK,GA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C,CAAC,MAAM,CAAC;IAEvK,OAAO;QACL,MAAM,EAAE,UAAU;QAClB,aAAa,EAAE,SAAS,CAAC,MAAM;QAC/B,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI;QAC9D,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW;QAClH,KAAK,EAAE;YACL,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,EAAE;YACtC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,GAAG,GAAG;YAC1C,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,GAAG,CAAC,GAAG,GAAG;YACpD,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,GAAG,CAAC,GAAG,GAAG;YAC7C,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,GAAG;YAChD,OAAO,EAAE,sFAAsF;SAChG;QACD,UAAU;QACV,QAAQ;QACR,MAAM;QACN,UAAU,EAAE,IAAA,0BAAa,GAAE;KAC5B,CAAC;AACJ,CAAC"}
@@ -19,5 +19,14 @@ export interface FlowCheckReport {
19
19
  contracts: Contract[];
20
20
  missing: number;
21
21
  }
22
+ export interface FlowScenario {
23
+ flow: string;
24
+ name: string;
25
+ haystack: string;
26
+ deep: boolean;
27
+ }
28
+ /** Index every flow's scenarios (name + haystack + whether it carries a data assertion).
29
+ * Shared so the screen audit can credit a cross-screen theme covered deeply by a flow (TQ-4). */
30
+ export declare function loadFlowScenarios(cwd: string): FlowScenario[];
22
31
  export declare function buildFlowCheck(cwd: string, onlyFlow?: string): FlowCheckReport;
23
32
  //# sourceMappingURL=flow-check.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flow-check.d.ts","sourceRoot":"","sources":["../../src/harness/flow-check.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,QAAQ;IAAG,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE;AACzJ,MAAM,WAAW,QAAQ;IAAG,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AAC/G,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACnC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AA0BD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,eAAe,CA+C9E"}
1
+ {"version":3,"file":"flow-check.d.ts","sourceRoot":"","sources":["../../src/harness/flow-check.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,QAAQ;IAAG,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE;AACzJ,MAAM,WAAW,QAAQ;IAAG,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE;AAC/G,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACnC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;CACjB;AA0BD,MAAM,WAAW,YAAY;IAAG,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE;AAE7F;kGACkG;AAClG,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,CAQ7D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,eAAe,CA0C9E"}
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.loadFlowScenarios = loadFlowScenarios;
36
37
  exports.buildFlowCheck = buildFlowCheck;
37
38
  /**
38
39
  * Flow first-class checks (flow_firstclass_spec).
@@ -77,16 +78,22 @@ function targetsFromHint(hint) {
77
78
  const after = h.split('->').pop() || h;
78
79
  return after.split(/[^a-z]+/).filter((w) => w.length > 3 && !['home', 'page', 'flow', 'products', 'product', 'result'].includes(w));
79
80
  }
80
- function buildFlowCheck(cwd, onlyFlow) {
81
- const screens = listDirs(path.join(cwd, 'qa', 'screens'));
82
- const flows = (onlyFlow ? [onlyFlow] : listDirs(path.join(cwd, 'qa', 'flows')));
83
- // Index flow scenarios (name + haystack + depth).
84
- const flowScenarios = [];
81
+ /** Index every flow's scenarios (name + haystack + whether it carries a data assertion).
82
+ * Shared so the screen audit can credit a cross-screen theme covered deeply by a flow (TQ-4). */
83
+ function loadFlowScenarios(cwd) {
84
+ const out = [];
85
85
  for (const f of listDirs(path.join(cwd, 'qa', 'flows'))) {
86
86
  for (const s of (0, parse_1.loadScenarios)(featurePath(cwd, 'flows', f))) {
87
- flowScenarios.push({ flow: f, name: s.name, haystack: s.haystack, deep: s.hasDataAssertion });
87
+ out.push({ flow: f, name: s.name, haystack: s.haystack, deep: s.hasDataAssertion });
88
88
  }
89
89
  }
90
+ return out;
91
+ }
92
+ function buildFlowCheck(cwd, onlyFlow) {
93
+ const screens = listDirs(path.join(cwd, 'qa', 'screens'));
94
+ const flows = (onlyFlow ? [onlyFlow] : listDirs(path.join(cwd, 'qa', 'flows')));
95
+ // Index flow scenarios (name + haystack + depth).
96
+ const flowScenarios = loadFlowScenarios(cwd);
90
97
  // A. Deferral integrity (screens).
91
98
  const deferrals = [];
92
99
  for (const sc of screens) {
@@ -1 +1 @@
1
- {"version":3,"file":"flow-check.js","sourceRoot":"","sources":["../../src/harness/flow-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,wCA+CC;AAlGD;;;;;;;;;;GAUG;AACH,uCAAyB;AACzB,2CAA6B;AAC7B,mCAAwC;AACxC,uDAAmD;AAEnD,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AAWnH,SAAS,QAAQ,CAAC,CAAS;IACzB,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,C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,CAAC,CAAC,CAAC,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnE,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,yGAAyG,EAAE,CAAC,CAAC;YACvL,CAAC;YACD,IAAI,wCAAwC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAAE,cAAc,EAAE,CAAC;QACzE,CAAC;QACD,IAAI,QAAQ,IAAI,cAAc,IAAI,CAAC,EAAE,CAAC;YACpC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,cAAc,mGAAmG,EAAE,CAAC,CAAC;QAC5L,CAAC;IACH,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,MAAM,EAAE,CAAC;AACpH,CAAC"}
@@ -43,6 +43,7 @@ export interface DepthResult {
43
43
  name: string;
44
44
  category?: string;
45
45
  }[];
46
+ deferredBusinessCritical: number;
46
47
  focus: string;
47
48
  threshold: number;
48
49
  verdict: DepthVerdict;
@@ -60,6 +61,40 @@ export declare function depthWarnOnly(focus: string): boolean;
60
61
  * This avoids the old keyword-based false-positives (e.g. "API list page").
61
62
  */
62
63
  export declare function assertionDepth(scenarios: ScenarioInfo[], dataThemes?: CatalogTheme[], focus?: string): DepthResult;
64
+ export interface AutomatableManualResult {
65
+ manualTotal: number;
66
+ automatable: number;
67
+ scenarios: {
68
+ name: string;
69
+ category?: string;
70
+ }[];
71
+ }
72
+ /**
73
+ * Automatable-@manual (TQ-2) — a `@manual` scenario whose steps are fully DSL-expressible
74
+ * (it carries a real data assertion) and shows no genuine-judgment marker is *automatable*:
75
+ * it was deferred (typically cross-screen → a flow) rather than truly un-automatable. Leaving
76
+ * it `@manual` creates a non-running duplicate AND inflates businessDepth (it's excluded from
77
+ * the ratio). The UI analog of the API driver's `api-manual-automatable`.
78
+ */
79
+ export declare function automatableManual(scenarios: ScenarioInfo[]): AutomatableManualResult;
80
+ /**
81
+ * Which of the given gate gap-themes are deeply covered by a FLOW scenario (a cross-screen
82
+ * deferral the flow actually fulfils). Returns theme → covering flow. The screen audit uses
83
+ * this to credit an inherently-cross-screen theme to the flow that owns it, instead of
84
+ * double-counting it as a screen gap. A flow scenario covers a theme when its haystack hits
85
+ * the theme keywords AND it carries a data assertion (`deep`).
86
+ */
87
+ export declare function flowCoveredThemes(gaps: {
88
+ theme: string;
89
+ keywords: string[];
90
+ }[], flowScenarios: {
91
+ flow: string;
92
+ haystack: string;
93
+ deep: boolean;
94
+ }[]): {
95
+ theme: string;
96
+ flow: string;
97
+ }[];
63
98
  /** Collect data-correctness themes (depth.requires) for a page-type + universal. */
64
99
  export declare function dataThemesFor(catalog: Catalog, pageType: string | null): CatalogTheme[];
65
100
  export interface BalanceResult {
@@ -1 +1 @@
1
- {"version":3,"file":"sensors.d.ts","sourceRoot":"","sources":["../../src/harness/sensors.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAY,MAAM,SAAS,CAAC;AAcjE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE;AACvF,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,MA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AQ,EAAE,aAAa,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;CACvB;AAyJD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAcD,wBAAgB,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,GAAG,cAAc,CAkBtE;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,KAAK,SAAe,GAAG,gBAAgB,CAmC5F"}
@@ -38,6 +38,8 @@ exports.viewpointGate = viewpointGate;
38
38
  exports.depthThresholdFor = depthThresholdFor;
39
39
  exports.depthWarnOnly = depthWarnOnly;
40
40
  exports.assertionDepth = assertionDepth;
41
+ exports.automatableManual = automatableManual;
42
+ exports.flowCoveredThemes = flowCoveredThemes;
41
43
  exports.dataThemesFor = dataThemesFor;
42
44
  exports.coverageBalance = coverageBalance;
43
45
  exports.duplicateClusters = duplicateClusters;
@@ -152,6 +154,8 @@ function assertionDepth(scenarios, dataThemes = [], focus = 'functional') {
152
154
  const isDepthRequired = (s) => s.category !== 'NAV' && !isDismissBehavior(s) && depthKeywords.some((k) => s.haystack.includes(k.toLowerCase()));
153
155
  const required = nonManual.filter(isDepthRequired);
154
156
  const reqShallow = required.filter((s) => s.shallow);
157
+ // Business-critical scenarios deferred to @manual (match a data-theme but excluded above).
158
+ const deferredBusinessCritical = scenarios.filter((s) => s.manual && isDepthRequired(s)).length;
155
159
  // No data-theme scenarios on this screen → depth is not the binding constraint
156
160
  // (the viewpoint gate already flags missing data themes). Don't double-penalize.
157
161
  const ratio = required.length ? 1 - reqShallow.length / required.length : 1;
@@ -167,11 +171,48 @@ function assertionDepth(scenarios, dataThemes = [], focus = 'functional') {
167
171
  businessCriticalShallow: reqShallow.length,
168
172
  bcDepthRatio: ratio,
169
173
  shallowBusinessCritical: reqShallow.map((s) => ({ name: s.name, category: s.category })),
174
+ deferredBusinessCritical,
170
175
  focus,
171
176
  threshold,
172
177
  verdict,
173
178
  };
174
179
  }
180
+ // Genuine-judgment markers (M6/M8/M9 territory): visual/responsive/a11y/mock/network/
181
+ // external/empty-state — these legitimately stay @manual (or need a future driver).
182
+ const JUDGMENT_MARKER = /\b(visual|responsive|layout|breakpoint|mobile|tablet|viewport|accessib|a11y|keyboard|screen reader|focus order|\baria\b|empty[- ]?(state|product|list|category|cart)|no[- ]?result|missing (image|product|data)|placeholder|fallback|slow|failing|offline|network|loading|spinner|external|new tab|video tutorial|email|mailbox|download|payment gateway|exploratory|not worth)\b/;
183
+ /**
184
+ * Automatable-@manual (TQ-2) — a `@manual` scenario whose steps are fully DSL-expressible
185
+ * (it carries a real data assertion) and shows no genuine-judgment marker is *automatable*:
186
+ * it was deferred (typically cross-screen → a flow) rather than truly un-automatable. Leaving
187
+ * it `@manual` creates a non-running duplicate AND inflates businessDepth (it's excluded from
188
+ * the ratio). The UI analog of the API driver's `api-manual-automatable`.
189
+ */
190
+ function automatableManual(scenarios) {
191
+ const manual = scenarios.filter((s) => s.manual);
192
+ const automatable = manual.filter((s) => s.hasDataAssertion && !JUDGMENT_MARKER.test(s.haystack));
193
+ return {
194
+ manualTotal: manual.length,
195
+ automatable: automatable.length,
196
+ scenarios: automatable.map((s) => ({ name: s.name, category: s.category })),
197
+ };
198
+ }
199
+ // ---------- TQ-4: deferral-aware coverage credit ----------
200
+ /**
201
+ * Which of the given gate gap-themes are deeply covered by a FLOW scenario (a cross-screen
202
+ * deferral the flow actually fulfils). Returns theme → covering flow. The screen audit uses
203
+ * this to credit an inherently-cross-screen theme to the flow that owns it, instead of
204
+ * double-counting it as a screen gap. A flow scenario covers a theme when its haystack hits
205
+ * the theme keywords AND it carries a data assertion (`deep`).
206
+ */
207
+ function flowCoveredThemes(gaps, flowScenarios) {
208
+ const out = [];
209
+ for (const g of gaps) {
210
+ const hit = flowScenarios.find((s) => s.deep && g.keywords.some((k) => s.haystack.includes(k.toLowerCase())));
211
+ if (hit)
212
+ out.push({ theme: g.theme, flow: hit.flow });
213
+ }
214
+ return out;
215
+ }
175
216
  /** Collect data-correctness themes (depth.requires) for a page-type + universal. */
176
217
  function dataThemesFor(catalog, pageType) {
177
218
  const themes = [];
@@ -1 +1 @@
1
- {"version":3,"file":"sensors.js","sourceRoot":"","sources":["../../src/harness/sensors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,kCAGC;AAkBD,sCAyCC;AA6BD,8CAEC;AAED,sCAEC;AASD,wCAwCC;AAGD,sCAKC;AAaD,0CA0BC;AAUD,8CAoBC;AAaD,oCAqBC;AA6MD,oCAkBC;AAED,gCAmCC;AA1iBD;;;;;;;GAOG;AACH,uCAAyB;AACzB,2CAA6B;AAC7B,+BAA0C;AAC1C,mCAAiE;AAEjE,oFAAoF;AACpF,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAE1F,gCAAgC;AAChC,MAAM,OAAO,GAA6B;IACxC,eAAe,EAAE,sBAAsB;IACvC,cAAc,EAAE,CAAC,IAAI,CAAC;IACtB,qBAAqB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IAC5C,UAAU,EAAE,CAAC,OAAO,CAAC;IACrB,YAAY,EAAE,CAAC,KAAK,CAAC;CACtB,CAAC;AAcF,SAAgB,WAAW;IACzB,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,2BAA2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O,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IACrE,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AACpG,CAAC"}
@@ -17,7 +17,7 @@ You are an **independent Senior QA Reviewer**. You did **not** write these tests
17
17
  - **Negative / "does-not-happen" claims** (any language — "does not", "no", "prevents", "không", "chưa"): the proof must be a step whose result **differs** between the claim holding and not holding. Ask: *would this `Then` still pass if the bad thing happened?* If yes, it proves nothing. The classic trap: title "browser back does **not** re-submit" with `Then see [sent] page` — that page is identical whether or not the request re-fired. Demand a **contrast/count** proof (record count unchanged, state hidden/empty, error shown) or a justified `@manual` with a setup→action→assert-absence oracle. This generalises to every side-effect (re-charge, duplicate order, resend OTP, data leak), not just re-submit.
18
18
  2. **Observable Then.** Is each `Then` an **observable outcome**, not a restated action or a tautology (e.g. `Then User see [Carousel] section` after clicking next — proves nothing changed)?
19
19
  3. **Business-critical depth.** For cart / product-detail / filter / list viewpoints, do steps assert **DATA** (name, price, quantity, all-items-belong) — not just page/modal visibility? Recommend the concrete deep step: `User remember [X] text as {{v}}` + `... with {{v}}`, or `User see all [X] contain {{v}}`.
20
- 4. **@manual justification.** Is each `@manual` genuinely unautomatable (cross-screen/external/visual) — or a cop-out to dodge the gate? Cross-screen → should be a flow.
20
+ 4. **@manual justification.** Is each `@manual` genuinely unautomatable (external/visual/a11y/mock-needed/judgment) — or a cop-out to dodge the gate? **Cross-screen is NOT a valid `@manual` reason** — a homedetail/cart journey runs as one automated test, so it belongs in a **flow** (`/sungen:add-flow`), not a `@manual` screen copy. A `@manual` scenario that still carries full automatable steps (a data assertion, no visual/mock/a11y judgment) is automatable — flag it (the gate reports it as `MANUAL-AUTOMATABLE`). Genuine `@manual` must name its reason (`@manual:Mx`).
21
21
  5. **Meaning-level duplicates & missing criticals** the keyword gate can't see.
22
22
  6. **API units** (`qa/api/<area>/` — `@api` scenarios, no UI). Judge what the api gate can't:
23
23
  - **Prove the effect, not the status.** A mutating endpoint's success path asserting only `{{r.status}} is 201` proves nothing about WHAT changed — demand a **body** assertion (`{{r.body.id}}` / `{{r.body.<field>}}`), a **`@query`** DB side-effect, or (idempotency) a `{{r.ok_count}}` invariant. This is the API businessDepth bar.
@@ -78,7 +78,7 @@ If the unit is **api-first** (`qa/api/<name>/` or `qa/api/flows/<name>/`), the d
78
78
  - **Independent semantic review.** **Claude Code:** spawn the **`sungen-reviewer`** sub-agent (Task tool, `subagent_type: sungen-reviewer`) — it judges what the gate can't (does each scenario's steps PROVE its title/viewpoint, observable Thens, business-critical assertion depth) and returns `VERDICT` + `ISSUES` with concrete fixes. **Merge its NEEDS-REPAIR issues with the audit findings.** (Copilot / no sub-agents: run the same review inline using the `sungen-reviewer` criteria.)
79
79
  - Repair **both** the audit findings and the reviewer issues (budget 3 rounds), then re-audit:
80
80
  - If the gate FAILs or there are findings, **repair** (budget 3 rounds), then re-audit:
81
- - **GATE** missing critical theme → generate scenarios for it. If it is **cross-screen** (cart-correctness, product-detail-consistency, filter-result-correctness): write the scenario with **observable data assertions** (`... with {{value}}`, `table ... with {{value}}`), tag it `@manual`, and add a comment `# Deferred to a flow (<screen> -> <target>) for automation`. Do **not** fake a shallow single-screen pass.
81
+ - **GATE** missing critical theme → generate scenarios for it. If it is **cross-screen** (cart-correctness, product-detail-consistency, filter-result-correctness): **automate it in the flow** (`/sungen:add-flow` if none exists) with observable data assertions (`... with {{value}}`, `see all ... contain {{v}}`) a single home→target journey runs as one Playwright test. Do **not** write a full `@manual` duplicate of it on the screen (that is a non-running dead copy — `sungen audit` flags it `MANUAL-AUTOMATABLE`), and do **not** fake a shallow single-screen pass. Reserve `@manual` for true judgment / missing-capability, tagged `@manual:Mx`.
82
82
  - **DEPTH** → replace `see [X] page/section` on business-critical scenarios with data assertions.
83
83
  - **BALANCE** → stop expanding secondary viewpoints; add business-core scenarios first.
84
84
  - **TRACE** → align `VP-` ids with the viewpoint-overview.
@@ -58,7 +58,7 @@ Use these when repairing GATE/DEPTH findings for the hard viewpoints (cart/detai
58
58
  ```
59
59
  `see all [X] contain {{v}}` asserts EVERY matching element contains the value → "all displayed products belong to the selected category/brand", not just one.
60
60
 
61
- > Cross-screen flows (home → detail/cart): if the target screen is a separate screen, prefer a **flow** (`/sungen:add-flow`) so the journey is one test. On a single screen, keep the cross-screen assertion but tag `@manual` with a `# Deferred to a flow` comment.
61
+ > Cross-screen flows (home → detail/cart): **automate the journey as a flow** (`/sungen:add-flow`) it runs as one test, so it is automatable. Do **not** keep a full `@manual` duplicate of it on the screen (a non-running dead copy that `sungen audit` flags as `MANUAL-AUTOMATABLE` and that inflates nothing — deferred business-critical is reported as `DEPTH-DEFERRED`). The screen keeps its screen-contract; the flow owns the cross-screen depth. `@manual` is for genuine judgment / missing-capability only, tagged `@manual:Mx`.
62
62
 
63
63
  ## Repair loop rules
64
64
 
@@ -268,12 +268,12 @@ Security: [S1 – admin only]
268
268
  Then User see [Detail Product Name] header with {{selected_product_name}}
269
269
  And User see [Detail Product Price] text contains {{selected_product_price}}
270
270
  ```
271
- Cross-screen target → tag `@manual` + `# Deferred to a flow (home -> detail)`.
271
+ Cross-screen target → **automate it in the flow** (`/sungen:add-flow`), NOT as a `@manual` screen copy. A single home→target journey runs as one Playwright test, so it is automatable — "needs another screen" is not a reason for `@manual`. The screen keeps its screen-contract scenarios; the flow owns the cross-screen depth.
272
272
  - Filter result (category AND brand, separately): `Then User see all [Result Product Name] contain {{selected_category}}` — proves EVERY item belongs, not one.
273
273
 
274
274
  **Depth is a GATE dimension (harness-roadmap P1) — self-raise, never silently go shallow:**
275
275
  - For every data-correctness theme the catalog marks `depth.requires: data-assertion`, emit its `depth.template` shape by **default** — don't wait for the repair loop. `sungen audit` measures `businessDepth` (ratio of these scenarios that assert data) against an intent threshold (functional ≥ 0.70); below it the **gate FAILs**.
276
- - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape but tag `@manual` + `# Deferred to a flow (...)`. These are excluded from the ratio (they're correctly deferred), so they don't hurt depth.
276
+ - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape as an **automated flow scenario** (in the flow — do NOT leave a full-step `@manual` duplicate on the screen). `@manual` is **only** for genuine judgment (M6 visual/UX · M8 not-worth · M9 human) or a missing capability (M1–M5/M7), and it **must** carry a reason code (`@manual:Mx`, or a reason comment the planner can infer). A `@manual` scenario that still has full automatable steps (a data assertion, no visual/mock/a11y judgment) is now flagged by `sungen audit` as `MANUAL-AUTOMATABLE`, and business-critical scenarios you defer to `@manual` are reported as `DEPTH-DEFERRED` (they do NOT silently inflate `businessDepth`). Deferring automatable work to `@manual` lowers quality — automate it in the flow instead.
277
277
  - **If the spec lacks the concrete value** a deep assertion needs (exact message, price, count): still write the deep shape with a `{{var}}` placeholder and leave a `# SPEC-GAP: <field> value not in spec` comment — do **not** downgrade to `see [X] section`. A visible gap is better than a silent shallow pass.
278
278
  - **Blind-Spot Memory:** before finishing, run `sungen blindspot list --prompt` (Bash) and make sure the suite satisfies each recorded pattern (e.g. "for any Add/Create action: check success + resulting data state + duplicate/double-submit"). These are gaps QA hit before — don't repeat them.
279
279
 
@@ -65,7 +65,7 @@ If the unit is **api-first** (`qa/api/<name>/` or `qa/api/flows/<name>/`), the d
65
65
 
66
66
  4. Follow the `sungen-tc-generation` skill for section identification, viewpoint generation, and output format. **For flows**, use the "Flow Test Generation" section in the skill. When requirements exist, use the "Requirements-Driven Generation" strategy. **For Tier 1**, apply the **Lightweight Guard** — verify required fields, validation rules, business rules, security checks, and key state transitions all have TCs after generation. **For Tier 2+**, **MUST** apply the full **Mapping Contract** — walk every `spec.md` section top-to-bottom and produce the indicated TCs per Table 1; handle `test-viewpoint.md` per Table 2. Do not silently skip sections. Present sections as a numbered list and let user pick.
67
67
  5. Generate or update `.feature` + `test-data.yaml` following `sungen-gherkin-syntax` and `sungen-tc-generation` skills. **For flows**: use `[Screen:Element]` namespace format, namespace test-data by phase, add `@flow` tag.
68
- 5.5. **Quality gate & repair (harness — always run).** Per `sungen-harness-audit`: run `sungen audit --screen ${input:name}` (structural), THEN do an **independent semantic review inline** using the `sungen-reviewer` criteria (does each scenario's steps PROVE its title/viewpoint? observable Thens? business-critical assertion depth?). Merge both sets of issues; if gate FAILs / findings exist, repair (budget 3) and re-audit — GATE missing theme → generate it (cross-screen → write data assertions, tag `@manual`, comment `# Deferred to a flow`); DEPTH → add data assertions; BALANCE → add business-core first; TRACE → align VP ids. Never fake a pass.
68
+ 5.5. **Quality gate & repair (harness — always run).** Per `sungen-harness-audit`: run `sungen audit --screen ${input:name}` (structural), THEN do an **independent semantic review inline** using the `sungen-reviewer` criteria (does each scenario's steps PROVE its title/viewpoint? observable Thens? business-critical assertion depth?). Merge both sets of issues; if gate FAILs / findings exist, repair (budget 3) and re-audit — GATE missing theme → generate it (cross-screen → **automate it in the flow** via `/sungen:add-flow`, NOT a full `@manual` screen duplicate `sungen audit` flags an automatable `@manual` as `MANUAL-AUTOMATABLE`; reserve `@manual:Mx` for true judgment/missing-capability); DEPTH → add data assertions; BALANCE → add business-core first; TRACE → align VP ids. Never fake a pass.
69
69
  5.6. **Record.** `sungen manifest --screen ${input:name}`. Ledger **each phase** (not just repair) — pick one `runId` at the start and pass it so `trace`/`ledger report` show THIS run, not a mix: `sungen ledger record --screen ${input:name} --run <runId> --step <discovery|viewpoint|gherkin|audit|repair:N> --ms <elapsed>`. On re-run, start with `sungen manifest --screen ${input:name} --diff` and only regenerate changed sections.
70
70
  6. **Converge — show the trace.** Run `sungen trace --screen ${input:name}` and present: process map (phases + repair rounds), bottlenecks, **HUMAN-LOOP FOCUS** (@manual to verify), audit score + gate + residual gaps. Then offer next steps based on which tier was just generated:
71
71
 
@@ -58,7 +58,7 @@ Use these when repairing GATE/DEPTH findings for the hard viewpoints (cart/detai
58
58
  ```
59
59
  `see all [X] contain {{v}}` asserts EVERY matching element contains the value → "all displayed products belong to the selected category/brand", not just one.
60
60
 
61
- > Cross-screen flows (home → detail/cart): if the target screen is a separate screen, prefer a **flow** (`/sungen:add-flow`) so the journey is one test. On a single screen, keep the cross-screen assertion but tag `@manual` with a `# Deferred to a flow` comment.
61
+ > Cross-screen flows (home → detail/cart): **automate the journey as a flow** (`/sungen:add-flow`) it runs as one test, so it is automatable. Do **not** keep a full `@manual` duplicate of it on the screen (a non-running dead copy that `sungen audit` flags as `MANUAL-AUTOMATABLE` and that inflates nothing — deferred business-critical is reported as `DEPTH-DEFERRED`). The screen keeps its screen-contract; the flow owns the cross-screen depth. `@manual` is for genuine judgment / missing-capability only, tagged `@manual:Mx`.
62
62
 
63
63
  ## Repair loop rules
64
64
 
@@ -268,12 +268,12 @@ Security: [S1 – admin only]
268
268
  Then User see [Detail Product Name] header with {{selected_product_name}}
269
269
  And User see [Detail Product Price] text contains {{selected_product_price}}
270
270
  ```
271
- Cross-screen target → tag `@manual` + `# Deferred to a flow (home -> detail)`.
271
+ Cross-screen target → **automate it in the flow** (`/sungen:add-flow`), NOT as a `@manual` screen copy. A single home→target journey runs as one Playwright test, so it is automatable — "needs another screen" is not a reason for `@manual`. The screen keeps its screen-contract scenarios; the flow owns the cross-screen depth.
272
272
  - Filter result (category AND brand, separately): `Then User see all [Result Product Name] contain {{selected_category}}` — proves EVERY item belongs, not one.
273
273
 
274
274
  **Depth is a GATE dimension (harness-roadmap P1) — self-raise, never silently go shallow:**
275
275
  - For every data-correctness theme the catalog marks `depth.requires: data-assertion`, emit its `depth.template` shape by **default** — don't wait for the repair loop. `sungen audit` measures `businessDepth` (ratio of these scenarios that assert data) against an intent threshold (functional ≥ 0.70); below it the **gate FAILs**.
276
- - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape but tag `@manual` + `# Deferred to a flow (...)`. These are excluded from the ratio (they're correctly deferred), so they don't hurt depth.
276
+ - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape as an **automated flow scenario** (in the flow — do NOT leave a full-step `@manual` duplicate on the screen). `@manual` is **only** for genuine judgment (M6 visual/UX · M8 not-worth · M9 human) or a missing capability (M1–M5/M7), and it **must** carry a reason code (`@manual:Mx`, or a reason comment the planner can infer). A `@manual` scenario that still has full automatable steps (a data assertion, no visual/mock/a11y judgment) is now flagged by `sungen audit` as `MANUAL-AUTOMATABLE`, and business-critical scenarios you defer to `@manual` are reported as `DEPTH-DEFERRED` (they do NOT silently inflate `businessDepth`). Deferring automatable work to `@manual` lowers quality — automate it in the flow instead.
277
277
  - **If the spec lacks the concrete value** a deep assertion needs (exact message, price, count): still write the deep shape with a `{{var}}` placeholder and leave a `# SPEC-GAP: <field> value not in spec` comment — do **not** downgrade to `see [X] section`. A visible gap is better than a silent shallow pass.
278
278
  - **Blind-Spot Memory:** before finishing, run `sungen blindspot list --prompt` (Bash) and make sure the suite satisfies each recorded pattern (e.g. "for any Add/Create action: check success + resulting data state + duplicate/double-submit"). These are gaps QA hit before — don't repeat them.
279
279
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sun-asterisk/sungen",
3
- "version": "3.1.2-beta.134",
3
+ "version": "3.1.2-beta.136",
4
4
  "description": "Deterministic E2E Test Compiler - Gherkin + Selectors → Playwright tests",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -33,7 +33,7 @@
33
33
  "node": ">=18.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@sungen/driver-ui": "3.1.2-beta.134",
36
+ "@sungen/driver-ui": "3.1.2-beta.136",
37
37
  "@anthropic-ai/sdk": "^0.71.0",
38
38
  "@babel/parser": "^7.28.5",
39
39
  "@babel/traverse": "^7.28.5",
@@ -12,8 +12,10 @@ import { loadScenarios, parseViewpointOverview, ScenarioInfo, ViewpointEntry } f
12
12
  import { featureBasename } from './unit-paths';
13
13
  import {
14
14
  loadCatalog, viewpointGate, assertionDepth, dataThemesFor, depthThresholdFor, coverageBalance, duplicateClusters, traceability, claimProof, taxonomyLint,
15
- GateResult, DepthResult, BalanceResult, DuplicateResult, TraceResult, ClaimProofResult, TaxonomyResult, Catalog,
15
+ automatableManual, flowCoveredThemes,
16
+ GateResult, DepthResult, BalanceResult, DuplicateResult, TraceResult, ClaimProofResult, TaxonomyResult, Catalog, AutomatableManualResult,
16
17
  } from './sensors';
18
+ import { loadFlowScenarios } from './flow-check';
17
19
  import { readIntent, projectRootFromScreenDir, IntentProfile } from './intent';
18
20
  import { getProvenance, Provenance } from './provenance';
19
21
  import { specCoverage, SpecCoverageResult, parseSpecClauses } from './spec-coverage';
@@ -37,6 +39,7 @@ export interface AuditReport {
37
39
  taxonomyMismatch: boolean; // scenarios use IDs not in the project's test-viewpoint.md
38
40
  downstream: DownstreamResult; // downstream screens referenced but under-covered
39
41
  manualOracle: ManualOracleResult; // @manual scenarios lacking setup/action/oracle
42
+ automatableManual: AutomatableManualResult; // @manual that is actually automatable (deferred, not judgment) — TQ-2
40
43
  ledger: LedgerResult; // atomic viewpoint-item coverage (per-bullet status)
41
44
  calibration: { // #8 — multi-axis score so a high overall can't hide a weak axis
42
45
  axes: Record<string, number>;
@@ -119,6 +122,23 @@ export function runAudit(screenDir: string, screenName: string): AuditReport {
119
122
  const provided = capGate?.({ scenarios, viewpoints, catalog, focus: intent.focus, cwd: projectRootFromScreenDir(screenDir), screenName: catalogScreenName, threshold: depthThresholdFor(intent.focus), businessCriticalMethods: intent.businessCriticalMethods });
120
123
  const gate = provided?.gate ?? viewpointGate(scenarios, viewpoints, catalog);
121
124
  const depth = provided?.depth ?? assertionDepth(scenarios, dataThemesFor(catalog, gate.pageType), intent.focus);
125
+
126
+ // TQ-4 — deferral-aware coverage credit: an inherently cross-screen theme (cart / detail /
127
+ // filter correctness) belongs in a FLOW, not on the screen. When a flow deeply covers a screen
128
+ // gate gap, credit it to the flow instead of double-counting it as a screen gap. Screens only
129
+ // (a flow/api unit is not credited by sibling flows); mutates the gate before coverage is scored.
130
+ const flowCredits: { theme: string; flow: string }[] = [];
131
+ const isScreenUnit = !/^(flows|api)\//.test(catalogScreenName);
132
+ if (isScreenUnit && gate.gaps.length) {
133
+ const flowScenarios = loadFlowScenarios(projectRootFromScreenDir(screenDir));
134
+ if (flowScenarios.length) {
135
+ for (const c of flowCoveredThemes(gate.gaps, flowScenarios)) {
136
+ const i = gate.gaps.findIndex((g) => g.theme === c.theme);
137
+ if (i >= 0) { gate.gaps.splice(i, 1); gate.themesCovered++; flowCredits.push(c); }
138
+ }
139
+ gate.coverageRatio = gate.themesTotal ? gate.themesCovered / gate.themesTotal : 1;
140
+ }
141
+ }
122
142
  const claim = claimProof(scenarios, intent.focus);
123
143
  const taxonomy = taxonomyLint(scenarios);
124
144
  const balance = coverageBalance(scenarios);
@@ -129,6 +149,7 @@ export function runAudit(screenDir: string, screenName: string): AuditReport {
129
149
  // #2 downstream-scope + #4 manual-oracle
130
150
  const downstream = downstreamScope(readText(specPath), scenarios);
131
151
  const manualOracleResult = manualOracle(featureText);
152
+ const autoManual = automatableManual(scenarios); // TQ-2 — @manual that is really automatable
132
153
  const ledger = viewpointLedger(viewpointPath, scenarios, featureText);
133
154
  const negSideEffect = negativeSideEffect(scenarios);
134
155
  const ownership = crossArtifactOwnership(screenDir, scenarios);
@@ -146,6 +167,9 @@ export function runAudit(screenDir: string, screenName: string): AuditReport {
146
167
  const overall = (0.4 * coverage + 0.3 * businessDepth + 0.15 * balanceScore + 0.15 * traceScore) * 10;
147
168
 
148
169
  const findings: string[] = [];
170
+ for (const c of flowCredits) {
171
+ findings.push(`COVERED-VIA-FLOW: critical theme "${c.theme}" is not covered on this screen but is deeply covered by flow "${c.flow}" — cross-screen depth correctly owned by the flow, so it is credited (not a screen gap). Verify with \`sungen flow-check\`.`);
172
+ }
149
173
  for (const g of gate.gaps) {
150
174
  if (g.status === 'shallow') {
151
175
  findings.push(`GATE: critical theme "${g.theme}" is covered only by SHALLOW scenarios (no data assertion) → deepen with \`... with {{value}}\` / \`table ... with {{value}}\` (count @manual cross-screen too).`);
@@ -190,6 +214,15 @@ export function runAudit(screenDir: string, screenName: string): AuditReport {
190
214
  for (const m of manualOracleResult.insufficient.slice(0, 8)) {
191
215
  findings.push(`MANUAL-STEPS-INSUFFICIENT: "${m}" — a @manual scenario needs setup · action · observable expected · oracle/tool (not just a one-line note).`);
192
216
  }
217
+ // TQ-2 — automatable @manual: deferred (usually cross-screen) but fully DSL-expressible.
218
+ for (const m of autoManual.scenarios.slice(0, 8)) {
219
+ findings.push(`MANUAL-AUTOMATABLE: "${m.name}" is @manual but its steps are fully automatable (a data assertion, no visual/mock/a11y judgment) → generate it as an AUTOMATED flow scenario (or tag @manual:Mx with a real capability reason). Don't leave a non-running @manual duplicate of a flow scenario.`);
220
+ }
221
+ // TQ-3 — businessDepth de-inflation: a high ratio on a tiny denominator because business-critical
222
+ // scenarios were deferred to @manual is misleading. Surface the deferral so 1.0 isn't read as "done".
223
+ if (depth.deferredBusinessCritical > 0 && depth.deferredBusinessCritical >= depth.businessCriticalTotal) {
224
+ findings.push(`DEPTH-DEFERRED: businessDepth ${businessDepth.toFixed(2)} is computed over only ${depth.businessCriticalTotal} on-screen scenario(s); ${depth.deferredBusinessCritical} business-critical scenario(s) are deferred to @manual (excluded from the ratio). Automate them in a flow and verify with \`sungen flow-check\` — this ratio is NOT "all business depth covered".`);
225
+ }
193
226
  if (ledger.hasViewpoint && ledger.missing.length) {
194
227
  const sample = ledger.missing.slice(0, 6).map((m) => m.id || `"${m.text}"`).join(', ');
195
228
  findings.push(`VIEWPOINT-ITEM-MISSING: ${ledger.missing.length}/${ledger.total} atomic viewpoint items have no covering scenario (${(ledger.ratio * 100).toFixed(0)}% covered) — e.g. ${sample}. Cover each item or mark it deferred/spec-gap.`);
@@ -236,7 +269,11 @@ export function runAudit(screenDir: string, screenName: string): AuditReport {
236
269
  };
237
270
  const weakestEntry = Object.entries(axes).sort((a, b) => a[1] - b[1])[0];
238
271
  const weakest = { axis: weakestEntry[0], value: weakestEntry[1] };
239
- const inflated = overall >= 8 && weakest.value < 0.6;
272
+ // Inflated when breadth hides a weak axis, OR when businessDepth is high but rests on a
273
+ // denominator collapsed by deferral-to-@manual (TQ-3): the headline depth can't be trusted.
274
+ const depthInflated =
275
+ businessDepth >= 0.9 && depth.deferredBusinessCritical >= depth.businessCriticalTotal && depth.deferredBusinessCritical > 0;
276
+ const inflated = (overall >= 8 && weakest.value < 0.6) || depthInflated;
240
277
  if (inflated) {
241
278
  findings.push(`SCORE-INFLATED-BY-BREADTH: overall ${Math.round(overall * 10) / 10}/10 but the weakest axis "${weakest.axis}" is ${(weakest.value * 100).toFixed(0)}% — breadth is hiding a weak dimension. Raise "${weakest.axis}" before trusting the headline.`);
242
279
  }
@@ -251,7 +288,7 @@ export function runAudit(screenDir: string, screenName: string): AuditReport {
251
288
  screen: screenName,
252
289
  scenarioCount: scenarios.length,
253
290
  gate, depth, claim, taxonomy, balance, duplicates, trace, spec,
254
- taxonomyMismatch, downstream, manualOracle: manualOracleResult, ledger, calibration,
291
+ taxonomyMismatch, downstream, manualOracle: manualOracleResult, automatableManual: autoManual, ledger, calibration,
255
292
  score: {
256
293
  overall: Math.round(overall * 10) / 10,
257
294
  coverage: Math.round(coverage * 100) / 100,
@@ -49,17 +49,26 @@ function targetsFromHint(hint: string): string[] {
49
49
  return after.split(/[^a-z]+/).filter((w) => w.length > 3 && !['home', 'page', 'flow', 'products', 'product', 'result'].includes(w));
50
50
  }
51
51
 
52
- export function buildFlowCheck(cwd: string, onlyFlow?: string): FlowCheckReport {
53
- const screens = listDirs(path.join(cwd, 'qa', 'screens'));
54
- const flows = (onlyFlow ? [onlyFlow] : listDirs(path.join(cwd, 'qa', 'flows')));
52
+ export interface FlowScenario { flow: string; name: string; haystack: string; deep: boolean }
55
53
 
56
- // Index flow scenarios (name + haystack + depth).
57
- const flowScenarios: { flow: string; name: string; haystack: string; deep: boolean }[] = [];
54
+ /** Index every flow's scenarios (name + haystack + whether it carries a data assertion).
55
+ * Shared so the screen audit can credit a cross-screen theme covered deeply by a flow (TQ-4). */
56
+ export function loadFlowScenarios(cwd: string): FlowScenario[] {
57
+ const out: FlowScenario[] = [];
58
58
  for (const f of listDirs(path.join(cwd, 'qa', 'flows'))) {
59
59
  for (const s of loadScenarios(featurePath(cwd, 'flows', f))) {
60
- flowScenarios.push({ flow: f, name: s.name, haystack: s.haystack, deep: s.hasDataAssertion });
60
+ out.push({ flow: f, name: s.name, haystack: s.haystack, deep: s.hasDataAssertion });
61
61
  }
62
62
  }
63
+ return out;
64
+ }
65
+
66
+ export function buildFlowCheck(cwd: string, onlyFlow?: string): FlowCheckReport {
67
+ const screens = listDirs(path.join(cwd, 'qa', 'screens'));
68
+ const flows = (onlyFlow ? [onlyFlow] : listDirs(path.join(cwd, 'qa', 'flows')));
69
+
70
+ // Index flow scenarios (name + haystack + depth).
71
+ const flowScenarios = loadFlowScenarios(cwd);
63
72
 
64
73
  // A. Deferral integrity (screens).
65
74
  const deferrals: Deferral[] = [];
@@ -111,6 +111,11 @@ export interface DepthResult {
111
111
  businessCriticalShallow: number; // = depth-required scenarios that are shallow
112
112
  bcDepthRatio: number; // fraction of depth-required scenarios with a real data assertion
113
113
  shallowBusinessCritical: { name: string; category?: string }[];
114
+ // @manual scenarios that would be business-critical if automated (match a data-theme).
115
+ // They are EXCLUDED from bcDepthRatio, so deferring them to @manual collapses the
116
+ // denominator and inflates the ratio toward 1.0 — reported so a high ratio on a tiny
117
+ // denominator isn't misread as "all good" (TQ-3).
118
+ deferredBusinessCritical: number;
114
119
  // Depth-as-Gate (harness-roadmap P1)
115
120
  focus: string; // intent focus driving the threshold
116
121
  threshold: number; // required bcDepthRatio for this focus
@@ -161,6 +166,8 @@ export function assertionDepth(
161
166
 
162
167
  const required = nonManual.filter(isDepthRequired);
163
168
  const reqShallow = required.filter((s) => s.shallow);
169
+ // Business-critical scenarios deferred to @manual (match a data-theme but excluded above).
170
+ const deferredBusinessCritical = scenarios.filter((s) => s.manual && isDepthRequired(s)).length;
164
171
  // No data-theme scenarios on this screen → depth is not the binding constraint
165
172
  // (the viewpoint gate already flags missing data themes). Don't double-penalize.
166
173
  const ratio = required.length ? 1 - reqShallow.length / required.length : 1;
@@ -177,12 +184,64 @@ export function assertionDepth(
177
184
  businessCriticalShallow: reqShallow.length,
178
185
  bcDepthRatio: ratio,
179
186
  shallowBusinessCritical: reqShallow.map((s) => ({ name: s.name, category: s.category })),
187
+ deferredBusinessCritical,
180
188
  focus,
181
189
  threshold,
182
190
  verdict,
183
191
  };
184
192
  }
185
193
 
194
+ // ---------- Sensor 2b: Automatable-@manual (TQ-2) ----------
195
+
196
+ export interface AutomatableManualResult {
197
+ manualTotal: number; // all @manual scenarios
198
+ automatable: number; // @manual that are actually automatable
199
+ scenarios: { name: string; category?: string }[]; // the automatable ones (to surface)
200
+ }
201
+
202
+ // Genuine-judgment markers (M6/M8/M9 territory): visual/responsive/a11y/mock/network/
203
+ // external/empty-state — these legitimately stay @manual (or need a future driver).
204
+ const JUDGMENT_MARKER =
205
+ /\b(visual|responsive|layout|breakpoint|mobile|tablet|viewport|accessib|a11y|keyboard|screen reader|focus order|\baria\b|empty[- ]?(state|product|list|category|cart)|no[- ]?result|missing (image|product|data)|placeholder|fallback|slow|failing|offline|network|loading|spinner|external|new tab|video tutorial|email|mailbox|download|payment gateway|exploratory|not worth)\b/;
206
+
207
+ /**
208
+ * Automatable-@manual (TQ-2) — a `@manual` scenario whose steps are fully DSL-expressible
209
+ * (it carries a real data assertion) and shows no genuine-judgment marker is *automatable*:
210
+ * it was deferred (typically cross-screen → a flow) rather than truly un-automatable. Leaving
211
+ * it `@manual` creates a non-running duplicate AND inflates businessDepth (it's excluded from
212
+ * the ratio). The UI analog of the API driver's `api-manual-automatable`.
213
+ */
214
+ export function automatableManual(scenarios: ScenarioInfo[]): AutomatableManualResult {
215
+ const manual = scenarios.filter((s) => s.manual);
216
+ const automatable = manual.filter((s) => s.hasDataAssertion && !JUDGMENT_MARKER.test(s.haystack));
217
+ return {
218
+ manualTotal: manual.length,
219
+ automatable: automatable.length,
220
+ scenarios: automatable.map((s) => ({ name: s.name, category: s.category })),
221
+ };
222
+ }
223
+
224
+ // ---------- TQ-4: deferral-aware coverage credit ----------
225
+
226
+ /**
227
+ * Which of the given gate gap-themes are deeply covered by a FLOW scenario (a cross-screen
228
+ * deferral the flow actually fulfils). Returns theme → covering flow. The screen audit uses
229
+ * this to credit an inherently-cross-screen theme to the flow that owns it, instead of
230
+ * double-counting it as a screen gap. A flow scenario covers a theme when its haystack hits
231
+ * the theme keywords AND it carries a data assertion (`deep`).
232
+ */
233
+ export function flowCoveredThemes(
234
+ gaps: { theme: string; keywords: string[] }[],
235
+ flowScenarios: { flow: string; haystack: string; deep: boolean }[],
236
+ ): { theme: string; flow: string }[] {
237
+ const out: { theme: string; flow: string }[] = [];
238
+ for (const g of gaps) {
239
+ const hit = flowScenarios.find((s) => s.deep && g.keywords.some((k) => s.haystack.includes(k.toLowerCase())));
240
+ if (hit) out.push({ theme: g.theme, flow: hit.flow });
241
+ }
242
+ return out;
243
+ }
244
+
186
245
  /** Collect data-correctness themes (depth.requires) for a page-type + universal. */
187
246
  export function dataThemesFor(catalog: Catalog, pageType: string | null): CatalogTheme[] {
188
247
  const themes: CatalogTheme[] = [];
@@ -17,7 +17,7 @@ You are an **independent Senior QA Reviewer**. You did **not** write these tests
17
17
  - **Negative / "does-not-happen" claims** (any language — "does not", "no", "prevents", "không", "chưa"): the proof must be a step whose result **differs** between the claim holding and not holding. Ask: *would this `Then` still pass if the bad thing happened?* If yes, it proves nothing. The classic trap: title "browser back does **not** re-submit" with `Then see [sent] page` — that page is identical whether or not the request re-fired. Demand a **contrast/count** proof (record count unchanged, state hidden/empty, error shown) or a justified `@manual` with a setup→action→assert-absence oracle. This generalises to every side-effect (re-charge, duplicate order, resend OTP, data leak), not just re-submit.
18
18
  2. **Observable Then.** Is each `Then` an **observable outcome**, not a restated action or a tautology (e.g. `Then User see [Carousel] section` after clicking next — proves nothing changed)?
19
19
  3. **Business-critical depth.** For cart / product-detail / filter / list viewpoints, do steps assert **DATA** (name, price, quantity, all-items-belong) — not just page/modal visibility? Recommend the concrete deep step: `User remember [X] text as {{v}}` + `... with {{v}}`, or `User see all [X] contain {{v}}`.
20
- 4. **@manual justification.** Is each `@manual` genuinely unautomatable (cross-screen/external/visual) — or a cop-out to dodge the gate? Cross-screen → should be a flow.
20
+ 4. **@manual justification.** Is each `@manual` genuinely unautomatable (external/visual/a11y/mock-needed/judgment) — or a cop-out to dodge the gate? **Cross-screen is NOT a valid `@manual` reason** — a homedetail/cart journey runs as one automated test, so it belongs in a **flow** (`/sungen:add-flow`), not a `@manual` screen copy. A `@manual` scenario that still carries full automatable steps (a data assertion, no visual/mock/a11y judgment) is automatable — flag it (the gate reports it as `MANUAL-AUTOMATABLE`). Genuine `@manual` must name its reason (`@manual:Mx`).
21
21
  5. **Meaning-level duplicates & missing criticals** the keyword gate can't see.
22
22
  6. **API units** (`qa/api/<area>/` — `@api` scenarios, no UI). Judge what the api gate can't:
23
23
  - **Prove the effect, not the status.** A mutating endpoint's success path asserting only `{{r.status}} is 201` proves nothing about WHAT changed — demand a **body** assertion (`{{r.body.id}}` / `{{r.body.<field>}}`), a **`@query`** DB side-effect, or (idempotency) a `{{r.ok_count}}` invariant. This is the API businessDepth bar.
@@ -78,7 +78,7 @@ If the unit is **api-first** (`qa/api/<name>/` or `qa/api/flows/<name>/`), the d
78
78
  - **Independent semantic review.** **Claude Code:** spawn the **`sungen-reviewer`** sub-agent (Task tool, `subagent_type: sungen-reviewer`) — it judges what the gate can't (does each scenario's steps PROVE its title/viewpoint, observable Thens, business-critical assertion depth) and returns `VERDICT` + `ISSUES` with concrete fixes. **Merge its NEEDS-REPAIR issues with the audit findings.** (Copilot / no sub-agents: run the same review inline using the `sungen-reviewer` criteria.)
79
79
  - Repair **both** the audit findings and the reviewer issues (budget 3 rounds), then re-audit:
80
80
  - If the gate FAILs or there are findings, **repair** (budget 3 rounds), then re-audit:
81
- - **GATE** missing critical theme → generate scenarios for it. If it is **cross-screen** (cart-correctness, product-detail-consistency, filter-result-correctness): write the scenario with **observable data assertions** (`... with {{value}}`, `table ... with {{value}}`), tag it `@manual`, and add a comment `# Deferred to a flow (<screen> -> <target>) for automation`. Do **not** fake a shallow single-screen pass.
81
+ - **GATE** missing critical theme → generate scenarios for it. If it is **cross-screen** (cart-correctness, product-detail-consistency, filter-result-correctness): **automate it in the flow** (`/sungen:add-flow` if none exists) with observable data assertions (`... with {{value}}`, `see all ... contain {{v}}`) a single home→target journey runs as one Playwright test. Do **not** write a full `@manual` duplicate of it on the screen (that is a non-running dead copy — `sungen audit` flags it `MANUAL-AUTOMATABLE`), and do **not** fake a shallow single-screen pass. Reserve `@manual` for true judgment / missing-capability, tagged `@manual:Mx`.
82
82
  - **DEPTH** → replace `see [X] page/section` on business-critical scenarios with data assertions.
83
83
  - **BALANCE** → stop expanding secondary viewpoints; add business-core scenarios first.
84
84
  - **TRACE** → align `VP-` ids with the viewpoint-overview.
@@ -58,7 +58,7 @@ Use these when repairing GATE/DEPTH findings for the hard viewpoints (cart/detai
58
58
  ```
59
59
  `see all [X] contain {{v}}` asserts EVERY matching element contains the value → "all displayed products belong to the selected category/brand", not just one.
60
60
 
61
- > Cross-screen flows (home → detail/cart): if the target screen is a separate screen, prefer a **flow** (`/sungen:add-flow`) so the journey is one test. On a single screen, keep the cross-screen assertion but tag `@manual` with a `# Deferred to a flow` comment.
61
+ > Cross-screen flows (home → detail/cart): **automate the journey as a flow** (`/sungen:add-flow`) it runs as one test, so it is automatable. Do **not** keep a full `@manual` duplicate of it on the screen (a non-running dead copy that `sungen audit` flags as `MANUAL-AUTOMATABLE` and that inflates nothing — deferred business-critical is reported as `DEPTH-DEFERRED`). The screen keeps its screen-contract; the flow owns the cross-screen depth. `@manual` is for genuine judgment / missing-capability only, tagged `@manual:Mx`.
62
62
 
63
63
  ## Repair loop rules
64
64
 
@@ -268,12 +268,12 @@ Security: [S1 – admin only]
268
268
  Then User see [Detail Product Name] header with {{selected_product_name}}
269
269
  And User see [Detail Product Price] text contains {{selected_product_price}}
270
270
  ```
271
- Cross-screen target → tag `@manual` + `# Deferred to a flow (home -> detail)`.
271
+ Cross-screen target → **automate it in the flow** (`/sungen:add-flow`), NOT as a `@manual` screen copy. A single home→target journey runs as one Playwright test, so it is automatable — "needs another screen" is not a reason for `@manual`. The screen keeps its screen-contract scenarios; the flow owns the cross-screen depth.
272
272
  - Filter result (category AND brand, separately): `Then User see all [Result Product Name] contain {{selected_category}}` — proves EVERY item belongs, not one.
273
273
 
274
274
  **Depth is a GATE dimension (harness-roadmap P1) — self-raise, never silently go shallow:**
275
275
  - For every data-correctness theme the catalog marks `depth.requires: data-assertion`, emit its `depth.template` shape by **default** — don't wait for the repair loop. `sungen audit` measures `businessDepth` (ratio of these scenarios that assert data) against an intent threshold (functional ≥ 0.70); below it the **gate FAILs**.
276
- - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape but tag `@manual` + `# Deferred to a flow (...)`. These are excluded from the ratio (they're correctly deferred), so they don't hurt depth.
276
+ - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape as an **automated flow scenario** (in the flow — do NOT leave a full-step `@manual` duplicate on the screen). `@manual` is **only** for genuine judgment (M6 visual/UX · M8 not-worth · M9 human) or a missing capability (M1–M5/M7), and it **must** carry a reason code (`@manual:Mx`, or a reason comment the planner can infer). A `@manual` scenario that still has full automatable steps (a data assertion, no visual/mock/a11y judgment) is now flagged by `sungen audit` as `MANUAL-AUTOMATABLE`, and business-critical scenarios you defer to `@manual` are reported as `DEPTH-DEFERRED` (they do NOT silently inflate `businessDepth`). Deferring automatable work to `@manual` lowers quality — automate it in the flow instead.
277
277
  - **If the spec lacks the concrete value** a deep assertion needs (exact message, price, count): still write the deep shape with a `{{var}}` placeholder and leave a `# SPEC-GAP: <field> value not in spec` comment — do **not** downgrade to `see [X] section`. A visible gap is better than a silent shallow pass.
278
278
  - **Blind-Spot Memory:** before finishing, run `sungen blindspot list --prompt` (Bash) and make sure the suite satisfies each recorded pattern (e.g. "for any Add/Create action: check success + resulting data state + duplicate/double-submit"). These are gaps QA hit before — don't repeat them.
279
279
 
@@ -65,7 +65,7 @@ If the unit is **api-first** (`qa/api/<name>/` or `qa/api/flows/<name>/`), the d
65
65
 
66
66
  4. Follow the `sungen-tc-generation` skill for section identification, viewpoint generation, and output format. **For flows**, use the "Flow Test Generation" section in the skill. When requirements exist, use the "Requirements-Driven Generation" strategy. **For Tier 1**, apply the **Lightweight Guard** — verify required fields, validation rules, business rules, security checks, and key state transitions all have TCs after generation. **For Tier 2+**, **MUST** apply the full **Mapping Contract** — walk every `spec.md` section top-to-bottom and produce the indicated TCs per Table 1; handle `test-viewpoint.md` per Table 2. Do not silently skip sections. Present sections as a numbered list and let user pick.
67
67
  5. Generate or update `.feature` + `test-data.yaml` following `sungen-gherkin-syntax` and `sungen-tc-generation` skills. **For flows**: use `[Screen:Element]` namespace format, namespace test-data by phase, add `@flow` tag.
68
- 5.5. **Quality gate & repair (harness — always run).** Per `sungen-harness-audit`: run `sungen audit --screen ${input:name}` (structural), THEN do an **independent semantic review inline** using the `sungen-reviewer` criteria (does each scenario's steps PROVE its title/viewpoint? observable Thens? business-critical assertion depth?). Merge both sets of issues; if gate FAILs / findings exist, repair (budget 3) and re-audit — GATE missing theme → generate it (cross-screen → write data assertions, tag `@manual`, comment `# Deferred to a flow`); DEPTH → add data assertions; BALANCE → add business-core first; TRACE → align VP ids. Never fake a pass.
68
+ 5.5. **Quality gate & repair (harness — always run).** Per `sungen-harness-audit`: run `sungen audit --screen ${input:name}` (structural), THEN do an **independent semantic review inline** using the `sungen-reviewer` criteria (does each scenario's steps PROVE its title/viewpoint? observable Thens? business-critical assertion depth?). Merge both sets of issues; if gate FAILs / findings exist, repair (budget 3) and re-audit — GATE missing theme → generate it (cross-screen → **automate it in the flow** via `/sungen:add-flow`, NOT a full `@manual` screen duplicate `sungen audit` flags an automatable `@manual` as `MANUAL-AUTOMATABLE`; reserve `@manual:Mx` for true judgment/missing-capability); DEPTH → add data assertions; BALANCE → add business-core first; TRACE → align VP ids. Never fake a pass.
69
69
  5.6. **Record.** `sungen manifest --screen ${input:name}`. Ledger **each phase** (not just repair) — pick one `runId` at the start and pass it so `trace`/`ledger report` show THIS run, not a mix: `sungen ledger record --screen ${input:name} --run <runId> --step <discovery|viewpoint|gherkin|audit|repair:N> --ms <elapsed>`. On re-run, start with `sungen manifest --screen ${input:name} --diff` and only regenerate changed sections.
70
70
  6. **Converge — show the trace.** Run `sungen trace --screen ${input:name}` and present: process map (phases + repair rounds), bottlenecks, **HUMAN-LOOP FOCUS** (@manual to verify), audit score + gate + residual gaps. Then offer next steps based on which tier was just generated:
71
71
 
@@ -58,7 +58,7 @@ Use these when repairing GATE/DEPTH findings for the hard viewpoints (cart/detai
58
58
  ```
59
59
  `see all [X] contain {{v}}` asserts EVERY matching element contains the value → "all displayed products belong to the selected category/brand", not just one.
60
60
 
61
- > Cross-screen flows (home → detail/cart): if the target screen is a separate screen, prefer a **flow** (`/sungen:add-flow`) so the journey is one test. On a single screen, keep the cross-screen assertion but tag `@manual` with a `# Deferred to a flow` comment.
61
+ > Cross-screen flows (home → detail/cart): **automate the journey as a flow** (`/sungen:add-flow`) it runs as one test, so it is automatable. Do **not** keep a full `@manual` duplicate of it on the screen (a non-running dead copy that `sungen audit` flags as `MANUAL-AUTOMATABLE` and that inflates nothing — deferred business-critical is reported as `DEPTH-DEFERRED`). The screen keeps its screen-contract; the flow owns the cross-screen depth. `@manual` is for genuine judgment / missing-capability only, tagged `@manual:Mx`.
62
62
 
63
63
  ## Repair loop rules
64
64
 
@@ -268,12 +268,12 @@ Security: [S1 – admin only]
268
268
  Then User see [Detail Product Name] header with {{selected_product_name}}
269
269
  And User see [Detail Product Price] text contains {{selected_product_price}}
270
270
  ```
271
- Cross-screen target → tag `@manual` + `# Deferred to a flow (home -> detail)`.
271
+ Cross-screen target → **automate it in the flow** (`/sungen:add-flow`), NOT as a `@manual` screen copy. A single home→target journey runs as one Playwright test, so it is automatable — "needs another screen" is not a reason for `@manual`. The screen keeps its screen-contract scenarios; the flow owns the cross-screen depth.
272
272
  - Filter result (category AND brand, separately): `Then User see all [Result Product Name] contain {{selected_category}}` — proves EVERY item belongs, not one.
273
273
 
274
274
  **Depth is a GATE dimension (harness-roadmap P1) — self-raise, never silently go shallow:**
275
275
  - For every data-correctness theme the catalog marks `depth.requires: data-assertion`, emit its `depth.template` shape by **default** — don't wait for the repair loop. `sungen audit` measures `businessDepth` (ratio of these scenarios that assert data) against an intent threshold (functional ≥ 0.70); below it the **gate FAILs**.
276
- - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape but tag `@manual` + `# Deferred to a flow (...)`. These are excluded from the ratio (they're correctly deferred), so they don't hurt depth.
276
+ - `depth.cross_screen: true` (cart / detail / filter / brand correctness) → write the deep capture/compare shape as an **automated flow scenario** (in the flow — do NOT leave a full-step `@manual` duplicate on the screen). `@manual` is **only** for genuine judgment (M6 visual/UX · M8 not-worth · M9 human) or a missing capability (M1–M5/M7), and it **must** carry a reason code (`@manual:Mx`, or a reason comment the planner can infer). A `@manual` scenario that still has full automatable steps (a data assertion, no visual/mock/a11y judgment) is now flagged by `sungen audit` as `MANUAL-AUTOMATABLE`, and business-critical scenarios you defer to `@manual` are reported as `DEPTH-DEFERRED` (they do NOT silently inflate `businessDepth`). Deferring automatable work to `@manual` lowers quality — automate it in the flow instead.
277
277
  - **If the spec lacks the concrete value** a deep assertion needs (exact message, price, count): still write the deep shape with a `{{var}}` placeholder and leave a `# SPEC-GAP: <field> value not in spec` comment — do **not** downgrade to `see [X] section`. A visible gap is better than a silent shallow pass.
278
278
  - **Blind-Spot Memory:** before finishing, run `sungen blindspot list --prompt` (Bash) and make sure the suite satisfies each recorded pattern (e.g. "for any Add/Create action: check success + resulting data state + duplicate/double-submit"). These are gaps QA hit before — don't repeat them.
279
279