qualiow-exploratory-testing 2.2.1 → 2.3.1
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/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.env.example +6 -0
- package/CHANGELOG.md +183 -0
- package/README.md +110 -27
- package/agents/qa-bug-judge.md +115 -0
- package/agents/qa-diff-indexer-agent.md +1 -1
- package/agents/qa-gather-agent.md +1 -1
- package/agents/qa-reporting-agent.md +15 -4
- package/bin/mobile-cli.mjs +74 -26
- package/bin/qualiow +7 -2
- package/bin/wk-ios +60 -6
- package/bin/wkeval.mjs +7 -2
- package/data/security/SECURITY-POLICY.md +17 -1
- package/data/templates/bug-report.md +11 -0
- package/data/templates/session-report.md +12 -4
- package/dist/cli/index.js +1660 -85
- package/dist/index.d.ts +623 -2
- package/dist/index.js +1626 -47
- package/docs/GETTING-STARTED.md +44 -12
- package/docs/MOBILE-SETUP.md +31 -0
- package/hooks/hooks.json +12 -2
- package/hooks/scripts/bash-guard.mjs +242 -0
- package/hooks/scripts/secret-patterns.d.mts +4 -1
- package/hooks/scripts/secret-patterns.mjs +126 -34
- package/hooks/scripts/write-guard.mjs +70 -15
- package/package.json +2 -2
- package/skills/qa-explore/SKILL.md +9 -5
- package/skills/qa-explore/phases/00-setup.md +9 -1
- package/skills/qa-explore/phases/07-reporting.md +186 -11
- package/skills/qa-explore/references/delegation-rules.md +21 -2
- package/skills/qa-explore/references/evidence-triage.md +213 -0
- package/skills/qa-explore/references/output-contract.md +41 -8
- package/skills/qa-explore/references/security-rules.md +31 -2
- package/skills/qa-explore-cleanup/SKILL.md +1 -1
- package/skills/qa-explore-mobile/SKILL.md +13 -3
- package/skills/qa-explore-mobile/references/mobile-edges.md +3 -1
- package/skills/qa-explore-quick/SKILL.md +1 -1
- package/skills/qa-explore-report/SKILL.md +4 -2
- package/skills/qa-gather/SKILL.md +1 -1
- package/skills/qa-knowledge-add/SKILL.md +1 -1
- package/skills/qa-knowledge-list/SKILL.md +1 -1
- package/skills/qa-verify-backend/SKILL.md +1 -1
- package/skills/qa-verify-backend/phases/05-reporting.md +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { Command } from 'commander';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Core type definitions for Qualiow Exploratory Testing Skills.
|
|
@@ -87,6 +88,29 @@ interface SourceBranchConfig {
|
|
|
87
88
|
base_branch?: string;
|
|
88
89
|
components?: Record<string, string>;
|
|
89
90
|
}
|
|
91
|
+
type TriageProvider = 'typesafe' | 'laya';
|
|
92
|
+
interface LayaTriageConfig {
|
|
93
|
+
endpoint?: string;
|
|
94
|
+
model?: string;
|
|
95
|
+
max_len?: number;
|
|
96
|
+
/** NAME of the env var holding the local server's key, only when it requires one. */
|
|
97
|
+
api_key_env?: string;
|
|
98
|
+
}
|
|
99
|
+
interface VerificationConfig {
|
|
100
|
+
/** `judge` (default): every candidate bug faces `qa-bug-judge` before it ships.
|
|
101
|
+
* `off`: drafts ship unverified, with no `verification/` directory.
|
|
102
|
+
* `triage-shadow`: the judge as in `judge`, plus an advisory decision-model
|
|
103
|
+
* triage of each claim recorded beside the verdict. */
|
|
104
|
+
mode?: 'judge' | 'off' | 'triage-shadow';
|
|
105
|
+
/** Single-provider shorthand. `laya` = a self-hosted, loopback-only server. */
|
|
106
|
+
triage_provider?: TriageProvider;
|
|
107
|
+
/** Several providers side by side, each recorded in its own file. */
|
|
108
|
+
triage_providers?: TriageProvider[];
|
|
109
|
+
/** NAME of the env var holding the TypeSafe API key (default TYPESAFE_API_KEY). */
|
|
110
|
+
triage_api_key_env?: string;
|
|
111
|
+
laya?: LayaTriageConfig;
|
|
112
|
+
evidence_max_lines?: number;
|
|
113
|
+
}
|
|
90
114
|
interface TargetConfig {
|
|
91
115
|
id: string;
|
|
92
116
|
name: string;
|
|
@@ -96,6 +120,7 @@ interface TargetConfig {
|
|
|
96
120
|
browser: BrowserConfig;
|
|
97
121
|
scope: ScopeConfig;
|
|
98
122
|
safety?: SafetyConfig;
|
|
123
|
+
verification?: VerificationConfig;
|
|
99
124
|
environment?: EnvironmentConfig;
|
|
100
125
|
backend?: BackendConfig;
|
|
101
126
|
api?: ApiSurfaceConfig;
|
|
@@ -308,6 +333,39 @@ declare const SafetyConfigSchema: z.ZodObject<{
|
|
|
308
333
|
no_file_upload: z.ZodOptional<z.ZodBoolean>;
|
|
309
334
|
no_delete_actions: z.ZodOptional<z.ZodBoolean>;
|
|
310
335
|
}, z.core.$strict>;
|
|
336
|
+
declare const TriageProviderSchema: z.ZodEnum<{
|
|
337
|
+
typesafe: "typesafe";
|
|
338
|
+
laya: "laya";
|
|
339
|
+
}>;
|
|
340
|
+
declare const LayaTriageConfigSchema: z.ZodObject<{
|
|
341
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
342
|
+
model: z.ZodOptional<z.ZodString>;
|
|
343
|
+
max_len: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
345
|
+
}, z.core.$strict>;
|
|
346
|
+
declare const VerificationConfigSchema: z.ZodObject<{
|
|
347
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
348
|
+
judge: "judge";
|
|
349
|
+
off: "off";
|
|
350
|
+
"triage-shadow": "triage-shadow";
|
|
351
|
+
}>>;
|
|
352
|
+
triage_provider: z.ZodOptional<z.ZodEnum<{
|
|
353
|
+
typesafe: "typesafe";
|
|
354
|
+
laya: "laya";
|
|
355
|
+
}>>;
|
|
356
|
+
triage_providers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
357
|
+
typesafe: "typesafe";
|
|
358
|
+
laya: "laya";
|
|
359
|
+
}>>>;
|
|
360
|
+
triage_api_key_env: z.ZodOptional<z.ZodString>;
|
|
361
|
+
laya: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
363
|
+
model: z.ZodOptional<z.ZodString>;
|
|
364
|
+
max_len: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strict>>;
|
|
367
|
+
evidence_max_lines: z.ZodOptional<z.ZodNumber>;
|
|
368
|
+
}, z.core.$strict>;
|
|
311
369
|
declare const WebTargetConfigSchema: z.ZodObject<{
|
|
312
370
|
id: z.ZodString;
|
|
313
371
|
name: z.ZodString;
|
|
@@ -360,6 +418,29 @@ declare const WebTargetConfigSchema: z.ZodObject<{
|
|
|
360
418
|
no_file_upload: z.ZodOptional<z.ZodBoolean>;
|
|
361
419
|
no_delete_actions: z.ZodOptional<z.ZodBoolean>;
|
|
362
420
|
}, z.core.$strict>>;
|
|
421
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
422
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
423
|
+
judge: "judge";
|
|
424
|
+
off: "off";
|
|
425
|
+
"triage-shadow": "triage-shadow";
|
|
426
|
+
}>>;
|
|
427
|
+
triage_provider: z.ZodOptional<z.ZodEnum<{
|
|
428
|
+
typesafe: "typesafe";
|
|
429
|
+
laya: "laya";
|
|
430
|
+
}>>;
|
|
431
|
+
triage_providers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
432
|
+
typesafe: "typesafe";
|
|
433
|
+
laya: "laya";
|
|
434
|
+
}>>>;
|
|
435
|
+
triage_api_key_env: z.ZodOptional<z.ZodString>;
|
|
436
|
+
laya: z.ZodOptional<z.ZodObject<{
|
|
437
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
438
|
+
model: z.ZodOptional<z.ZodString>;
|
|
439
|
+
max_len: z.ZodOptional<z.ZodNumber>;
|
|
440
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strict>>;
|
|
442
|
+
evidence_max_lines: z.ZodOptional<z.ZodNumber>;
|
|
443
|
+
}, z.core.$strict>>;
|
|
363
444
|
environment: z.ZodOptional<z.ZodObject<{
|
|
364
445
|
kind: z.ZodEnum<{
|
|
365
446
|
dev: "dev";
|
|
@@ -538,6 +619,19 @@ declare const TargetConfigSchema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
|
|
|
538
619
|
no_file_upload?: boolean | undefined;
|
|
539
620
|
no_delete_actions?: boolean | undefined;
|
|
540
621
|
} | undefined;
|
|
622
|
+
verification?: {
|
|
623
|
+
mode: "judge" | "off" | "triage-shadow";
|
|
624
|
+
triage_provider?: "typesafe" | "laya" | undefined;
|
|
625
|
+
triage_providers?: ("typesafe" | "laya")[] | undefined;
|
|
626
|
+
triage_api_key_env?: string | undefined;
|
|
627
|
+
laya?: {
|
|
628
|
+
endpoint?: string | undefined;
|
|
629
|
+
model?: string | undefined;
|
|
630
|
+
max_len?: number | undefined;
|
|
631
|
+
api_key_env?: string | undefined;
|
|
632
|
+
} | undefined;
|
|
633
|
+
evidence_max_lines?: number | undefined;
|
|
634
|
+
} | undefined;
|
|
541
635
|
environment?: {
|
|
542
636
|
kind: "dev" | "ephemeral" | "staging" | "production";
|
|
543
637
|
destroyed_automatically?: boolean | undefined;
|
|
@@ -826,6 +920,11 @@ declare const KnowledgeChangelogSchema: z.ZodObject<{
|
|
|
826
920
|
* require an actual `=` or `:` operator so ordinary prose ("Password field
|
|
827
921
|
* accepts…", "the secret sauce") is left intact; card numbers are only redacted
|
|
828
922
|
* when they pass a Luhn check, so millisecond timestamps and order ids survive.
|
|
923
|
+
*
|
|
924
|
+
* `hooks/scripts/secret-patterns.mjs` carries the same list, regex for regex
|
|
925
|
+
* (`tests/unit/redact-hardening.test.ts` compares the sources). Every pattern
|
|
926
|
+
* must stay linear on adversarial input: a write-guard hook that times out
|
|
927
|
+
* fails open, so no unbounded quantifier may restart at every offset of a run.
|
|
829
928
|
*/
|
|
830
929
|
interface RedactOptions {
|
|
831
930
|
emails?: boolean;
|
|
@@ -926,7 +1025,8 @@ declare function describeSessionDir(name: string): DiscoveredSessionDir | null;
|
|
|
926
1025
|
*
|
|
927
1026
|
* Splits pipe-delimited rows and drops only the leading/trailing empty cells
|
|
928
1027
|
* produced by the outer pipes — internal empty cells are preserved, so column
|
|
929
|
-
* indices stay aligned even when a cell is blank.
|
|
1028
|
+
* indices stay aligned even when a cell is blank. An escaped pipe (`\|`) is cell
|
|
1029
|
+
* content, not a delimiter, as in GFM.
|
|
930
1030
|
*/
|
|
931
1031
|
interface ParsedTable {
|
|
932
1032
|
headers: string[];
|
|
@@ -1035,6 +1135,13 @@ declare function resolveTargetPath(cwd: string, name: string | undefined, pkgRoo
|
|
|
1035
1135
|
declare function resolveDataDir(cwd: string, explicit?: string, pkgRoot?: string): string;
|
|
1036
1136
|
/** Resolve a domain config, trying `<id>.yml` then `_<id>.yml`. */
|
|
1037
1137
|
declare function resolveDomainPath(dataDir: string, id: string): string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Read one credential by NAME in the order `paths.md` defines for the skills:
|
|
1140
|
+
* a variable already in the environment wins, then `<cwd>/qa/.env`, then
|
|
1141
|
+
* `<cwd>/.env`. Files never override the process environment, and the value
|
|
1142
|
+
* is returned to the caller only — never logged.
|
|
1143
|
+
*/
|
|
1144
|
+
declare function readEnvVar(cwd: string, name: string): string | undefined;
|
|
1038
1145
|
|
|
1039
1146
|
/**
|
|
1040
1147
|
* Knowledge-base manifest synchronisation.
|
|
@@ -1117,6 +1224,16 @@ interface ParsedSession {
|
|
|
1117
1224
|
content: string;
|
|
1118
1225
|
}[];
|
|
1119
1226
|
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Extracts the content under a markdown heading that starts with the
|
|
1229
|
+
* given prefix. Searches for both ## and ### level headings.
|
|
1230
|
+
*/
|
|
1231
|
+
declare function extractSection(content: string, headingPrefix: string): string;
|
|
1232
|
+
/**
|
|
1233
|
+
* Extracts numbered list items from markdown text.
|
|
1234
|
+
* Handles lines like "1. Navigate to ..." and continuation lines.
|
|
1235
|
+
*/
|
|
1236
|
+
declare function extractNumberedList(text: string): string[];
|
|
1120
1237
|
/**
|
|
1121
1238
|
* Parses a single bug report markdown file into structured data.
|
|
1122
1239
|
*/
|
|
@@ -1316,4 +1433,508 @@ interface KbDigestOptions {
|
|
|
1316
1433
|
*/
|
|
1317
1434
|
declare function runKbDigest(options: KbDigestOptions, cwd: string): string;
|
|
1318
1435
|
|
|
1319
|
-
|
|
1436
|
+
/**
|
|
1437
|
+
* Types for the opt-in decision-model triage of a candidate bug.
|
|
1438
|
+
*
|
|
1439
|
+
* A decision model answers narrow typed questions about text — a probability
|
|
1440
|
+
* (noul), a choice or a score — and nothing else: no reasoning, no prose. Both
|
|
1441
|
+
* providers speak the same `/v1/systemone` wire protocol: TypeSafe's hosted Jev
|
|
1442
|
+
* and a self-hosted Laya server. Everything in this file is a request/response
|
|
1443
|
+
* shape or the parsed form of a claim card; the judgement stays in the session,
|
|
1444
|
+
* and the prediction rule lives in `triage.ts`.
|
|
1445
|
+
*/
|
|
1446
|
+
interface NoulQuestion {
|
|
1447
|
+
type: 'noul';
|
|
1448
|
+
instructions: string;
|
|
1449
|
+
criteria?: {
|
|
1450
|
+
true?: string;
|
|
1451
|
+
false?: string;
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
interface ChoiceQuestion {
|
|
1455
|
+
type: 'choice';
|
|
1456
|
+
instructions: string;
|
|
1457
|
+
/** option key → description; the model picks one key. */
|
|
1458
|
+
criteria: Record<string, string>;
|
|
1459
|
+
}
|
|
1460
|
+
interface ScoreQuestion {
|
|
1461
|
+
type: 'score';
|
|
1462
|
+
instructions: string;
|
|
1463
|
+
/** Ordered level descriptions, low to high (2–10). */
|
|
1464
|
+
criteria: string[];
|
|
1465
|
+
}
|
|
1466
|
+
type TriageQuestion = NoulQuestion | ChoiceQuestion | ScoreQuestion;
|
|
1467
|
+
interface SystemOneRequest {
|
|
1468
|
+
state: unknown;
|
|
1469
|
+
model: string;
|
|
1470
|
+
questions: Record<string, TriageQuestion>;
|
|
1471
|
+
/** Laya only: per-call token budget (its default window would truncate a claim state). */
|
|
1472
|
+
max_len?: number;
|
|
1473
|
+
}
|
|
1474
|
+
interface NoulAnswer {
|
|
1475
|
+
type: 'noul';
|
|
1476
|
+
/** P(yes), 0–1. */
|
|
1477
|
+
noul: number;
|
|
1478
|
+
}
|
|
1479
|
+
interface ChoiceAnswer {
|
|
1480
|
+
type: 'choice';
|
|
1481
|
+
choice: string;
|
|
1482
|
+
probabilities: Record<string, number>;
|
|
1483
|
+
/** Concentration of the distribution, 0–1. */
|
|
1484
|
+
confidence: number;
|
|
1485
|
+
}
|
|
1486
|
+
interface ScoreAnswer {
|
|
1487
|
+
type: 'score';
|
|
1488
|
+
score: number;
|
|
1489
|
+
legend?: Record<string, unknown>;
|
|
1490
|
+
probabilities: Record<string, number>;
|
|
1491
|
+
confidence: number;
|
|
1492
|
+
}
|
|
1493
|
+
type TriageAnswer = NoulAnswer | ChoiceAnswer | ScoreAnswer;
|
|
1494
|
+
type TriageAnswers = Record<string, TriageAnswer>;
|
|
1495
|
+
interface TriageUsage {
|
|
1496
|
+
input_tokens: number;
|
|
1497
|
+
output_tokens: number;
|
|
1498
|
+
}
|
|
1499
|
+
interface SystemOneResponse {
|
|
1500
|
+
model: string;
|
|
1501
|
+
answers: TriageAnswers;
|
|
1502
|
+
usage: TriageUsage;
|
|
1503
|
+
}
|
|
1504
|
+
interface ParsedClaim {
|
|
1505
|
+
/** `CLAIM-NNN`, or '' when the heading is missing. */
|
|
1506
|
+
id: string;
|
|
1507
|
+
/** False for a stub card (no title, no actual behaviour or no steps). */
|
|
1508
|
+
complete: boolean;
|
|
1509
|
+
title: string;
|
|
1510
|
+
url: string;
|
|
1511
|
+
claimedSeverity: string;
|
|
1512
|
+
environment: string;
|
|
1513
|
+
reproductionRate: string;
|
|
1514
|
+
expected: string;
|
|
1515
|
+
actual: string;
|
|
1516
|
+
steps: string[];
|
|
1517
|
+
/** Raw bullet lines under `## Evidence`. */
|
|
1518
|
+
evidenceLines: string[];
|
|
1519
|
+
/** Path tokens found in those bullets, in order, deduplicated. */
|
|
1520
|
+
evidencePaths: string[];
|
|
1521
|
+
/** The bullets' prose once the path tokens are removed (console/network excerpts). */
|
|
1522
|
+
evidenceInline: string;
|
|
1523
|
+
}
|
|
1524
|
+
type JudgeVerdict = 'CONFIRMED' | 'CONFIRMED-ADJUSTED' | 'REFUTED' | 'UNREPRODUCIBLE' | 'UNVERIFIED';
|
|
1525
|
+
interface ParsedVerdict {
|
|
1526
|
+
verdict: JudgeVerdict | 'UNKNOWN';
|
|
1527
|
+
verdictRaw: string;
|
|
1528
|
+
/** True when the block was fenced; the one-line `VERDICT: UNVERIFIED (…)` form is not. */
|
|
1529
|
+
fenced: boolean;
|
|
1530
|
+
method?: string;
|
|
1531
|
+
confidence?: string;
|
|
1532
|
+
severityRaw?: string;
|
|
1533
|
+
/** Severity the judge settled on: `agree with claimed X` → X, `adjusted to Y` → Y, `n/a` → null. */
|
|
1534
|
+
severity?: string | null;
|
|
1535
|
+
reproResult?: string;
|
|
1536
|
+
reasoning?: string;
|
|
1537
|
+
falsePositivePattern?: string;
|
|
1538
|
+
}
|
|
1539
|
+
interface EvidenceFile {
|
|
1540
|
+
/** Basename only — never a full path. */
|
|
1541
|
+
file: string;
|
|
1542
|
+
lines: number;
|
|
1543
|
+
text: string;
|
|
1544
|
+
truncated_from?: number;
|
|
1545
|
+
/** The file was larger than the read window: `truncated_from` is a lower bound. */
|
|
1546
|
+
partial?: boolean;
|
|
1547
|
+
}
|
|
1548
|
+
/**
|
|
1549
|
+
* `outside-session` also covers a symlink whose target leaves the session;
|
|
1550
|
+
* `auth-state` is anything under `.auth/` (by name or by real path) or a file
|
|
1551
|
+
* shaped like a Playwright storage state; `not-file` is a directory, FIFO,
|
|
1552
|
+
* device or anything else that is not a regular file.
|
|
1553
|
+
*/
|
|
1554
|
+
type EvidenceSkipReason = 'image' | 'missing' | 'type' | 'outside-session' | 'excluded' | 'auth-state' | 'not-file' | 'budget';
|
|
1555
|
+
interface EvidenceSkipped {
|
|
1556
|
+
file: string;
|
|
1557
|
+
reason: EvidenceSkipReason;
|
|
1558
|
+
}
|
|
1559
|
+
interface CollectedEvidence {
|
|
1560
|
+
sent: EvidenceFile[];
|
|
1561
|
+
notSent: EvidenceSkipped[];
|
|
1562
|
+
}
|
|
1563
|
+
interface TriageState {
|
|
1564
|
+
claim: {
|
|
1565
|
+
id: string;
|
|
1566
|
+
title: string;
|
|
1567
|
+
url: string;
|
|
1568
|
+
claimed_severity: string;
|
|
1569
|
+
environment: string;
|
|
1570
|
+
reproduction_rate: string;
|
|
1571
|
+
expected: string;
|
|
1572
|
+
actual: string;
|
|
1573
|
+
steps: string[];
|
|
1574
|
+
};
|
|
1575
|
+
evidence_inline: string;
|
|
1576
|
+
evidence_files: Array<{
|
|
1577
|
+
file: string;
|
|
1578
|
+
lines: number;
|
|
1579
|
+
text: string;
|
|
1580
|
+
}>;
|
|
1581
|
+
note: string;
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* The triage's reading of a claim, recorded beside the judge's verdict. A
|
|
1585
|
+
* prediction only: Phase 7 never orders, shortens or skips a judge run on it.
|
|
1586
|
+
*/
|
|
1587
|
+
type Route = 'refute-risk' | 'unclear' | 'likely-confirmed';
|
|
1588
|
+
/** What the decision model predicts the judge will say — a prediction, never a verdict. */
|
|
1589
|
+
type PredictedVerdict = 'CONFIRMED' | 'CONFIRMED-ADJUSTED' | 'REFUTED' | 'UNREPRODUCIBLE';
|
|
1590
|
+
type SeverityName = 'Critical' | 'High' | 'Medium' | 'Low';
|
|
1591
|
+
interface RoutingThresholds {
|
|
1592
|
+
/** P(refuted) + P(unreproducible) at or above this → refute-risk. */
|
|
1593
|
+
refuteMass: number;
|
|
1594
|
+
/** Any false-positive pattern noul at or above this → refute-risk. */
|
|
1595
|
+
fpPattern: number;
|
|
1596
|
+
byDesign: number;
|
|
1597
|
+
altExplanation: number;
|
|
1598
|
+
/** predicted_verdict confidence needed for likely-confirmed. */
|
|
1599
|
+
confirmConfidence: number;
|
|
1600
|
+
confirmEvidence: number;
|
|
1601
|
+
confirmSteps: number;
|
|
1602
|
+
/** Every fp_* noul must stay below this for likely-confirmed. */
|
|
1603
|
+
confirmFpCeiling: number;
|
|
1604
|
+
}
|
|
1605
|
+
interface RouteDecision {
|
|
1606
|
+
route: Route;
|
|
1607
|
+
reasons: string[];
|
|
1608
|
+
predictedVerdict: PredictedVerdict;
|
|
1609
|
+
refuteMass: number;
|
|
1610
|
+
}
|
|
1611
|
+
type TriageMode = 'triage-shadow';
|
|
1612
|
+
interface TriageResult {
|
|
1613
|
+
claimId: string;
|
|
1614
|
+
mode: TriageMode;
|
|
1615
|
+
model: string;
|
|
1616
|
+
createdAt: string;
|
|
1617
|
+
/** The exact request body sent (state, model, questions, and `max_len` for Laya). */
|
|
1618
|
+
request: SystemOneRequest & {
|
|
1619
|
+
state: TriageState;
|
|
1620
|
+
};
|
|
1621
|
+
response: SystemOneResponse | null;
|
|
1622
|
+
usage: TriageUsage | null;
|
|
1623
|
+
costUsd: number | null;
|
|
1624
|
+
ms: number | null;
|
|
1625
|
+
route: {
|
|
1626
|
+
route: Route;
|
|
1627
|
+
reasons: string[];
|
|
1628
|
+
thresholds: RoutingThresholds;
|
|
1629
|
+
} | null;
|
|
1630
|
+
evidence: {
|
|
1631
|
+
sent: Array<Omit<EvidenceFile, 'text'>>;
|
|
1632
|
+
not_sent: EvidenceSkipped[];
|
|
1633
|
+
};
|
|
1634
|
+
redactions: string[];
|
|
1635
|
+
/** Question id → pattern text (scrubbed), for the fp_* questions. */
|
|
1636
|
+
patterns: Record<string, string>;
|
|
1637
|
+
unavailable?: string;
|
|
1638
|
+
/** Set for providers other than typesafe (absent = the hosted provider). */
|
|
1639
|
+
provider?: 'laya';
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* `qualiow judge triage <claim-file>` — opt-in, advisory decision-model triage
|
|
1644
|
+
* of ONE claim card, run by Phase 7 of /qa-explore before the adversarial
|
|
1645
|
+
* judge. The judge still sees every claim and never reads what this writes.
|
|
1646
|
+
*
|
|
1647
|
+
* Off by default. A live run sends nothing unless the resolved target config
|
|
1648
|
+
* sets `verification.mode: triage-shadow` and lists the provider:
|
|
1649
|
+
* - `typesafe` (hosted) also needs its API key under the env var the config
|
|
1650
|
+
* names (default `TYPESAFE_API_KEY`, read from the environment, `qa/.env`,
|
|
1651
|
+
* then `.env`);
|
|
1652
|
+
* - `laya` (self-hosted) must point at a loopback endpoint.
|
|
1653
|
+
* `--provider` only narrows the target's own list; it can never add a provider
|
|
1654
|
+
* the target did not name. The card must resolve (symlinks included) to
|
|
1655
|
+
* `<cwd>/output/sessions/<dir>/verification/claims/CLAIM-NNN.md` in a real
|
|
1656
|
+
* session directory. What leaves the machine is written verbatim to
|
|
1657
|
+
* `verification/<STEM>-NNN.json`; the human block goes to `<STEM>-NNN.md`.
|
|
1658
|
+
*
|
|
1659
|
+
* Exit codes: 0 triaged (or --dry-run) · 1 usage / unparseable card ·
|
|
1660
|
+
* 2 not enabled for this target or key missing (nothing sent) ·
|
|
1661
|
+
* 3 every provider unavailable after retries (files written with `UNAVAILABLE`).
|
|
1662
|
+
*/
|
|
1663
|
+
|
|
1664
|
+
declare const EXIT_NOT_ENABLED = 2;
|
|
1665
|
+
declare const EXIT_UNAVAILABLE = 3;
|
|
1666
|
+
/** The target does not opt in, or the key is missing. Nothing was sent. */
|
|
1667
|
+
declare class TriageNotEnabledError extends Error {
|
|
1668
|
+
constructor(message: string);
|
|
1669
|
+
}
|
|
1670
|
+
interface JudgeTriageOptions {
|
|
1671
|
+
target?: string;
|
|
1672
|
+
out?: string;
|
|
1673
|
+
evidenceMaxLines?: number;
|
|
1674
|
+
dryRun?: boolean;
|
|
1675
|
+
mock?: string;
|
|
1676
|
+
/** Run only this one of the providers the target lists. Never adds a provider. */
|
|
1677
|
+
provider?: TriageProvider;
|
|
1678
|
+
/** Overrides `verification.laya.endpoint` (loopback only). */
|
|
1679
|
+
endpoint?: string;
|
|
1680
|
+
}
|
|
1681
|
+
interface JudgeTriageResult {
|
|
1682
|
+
ok: boolean;
|
|
1683
|
+
exitCode: 0 | typeof EXIT_UNAVAILABLE;
|
|
1684
|
+
claimId: string;
|
|
1685
|
+
mode: TriageMode;
|
|
1686
|
+
route: Route | null;
|
|
1687
|
+
predictedVerdict: string;
|
|
1688
|
+
block: string;
|
|
1689
|
+
/** What the command prints: the block and the `<STEM>_FILE:` line, or the dry-run summary. */
|
|
1690
|
+
stdout: string;
|
|
1691
|
+
mdPath?: string;
|
|
1692
|
+
jsonPath?: string;
|
|
1693
|
+
usage?: TriageUsage;
|
|
1694
|
+
costUsd?: number;
|
|
1695
|
+
ms?: number;
|
|
1696
|
+
evidenceSent: Array<Omit<EvidenceFile, 'text'>>;
|
|
1697
|
+
evidenceNotSent: EvidenceSkipped[];
|
|
1698
|
+
redactions: string[];
|
|
1699
|
+
stateChars: number;
|
|
1700
|
+
/** One entry per provider that ran (in config order); the top-level fields mirror the first that answered. */
|
|
1701
|
+
providers?: Array<{
|
|
1702
|
+
provider: TriageProvider;
|
|
1703
|
+
verdict: string;
|
|
1704
|
+
route: Route | null;
|
|
1705
|
+
mdPath: string;
|
|
1706
|
+
jsonPath: string;
|
|
1707
|
+
ms?: number;
|
|
1708
|
+
}>;
|
|
1709
|
+
/** Providers the config lists that could not run here, with the reason. */
|
|
1710
|
+
skipped?: Array<{
|
|
1711
|
+
provider: TriageProvider;
|
|
1712
|
+
reason: string;
|
|
1713
|
+
}>;
|
|
1714
|
+
}
|
|
1715
|
+
interface JudgeTriageContext {
|
|
1716
|
+
cwd: string;
|
|
1717
|
+
fetch?: typeof fetch;
|
|
1718
|
+
sleep?: (ms: number) => Promise<void>;
|
|
1719
|
+
now?: () => number;
|
|
1720
|
+
}
|
|
1721
|
+
declare function judgeCommand(): Command;
|
|
1722
|
+
/**
|
|
1723
|
+
* The providers the target lists (`triage_providers`, else `triage_provider`),
|
|
1724
|
+
* deduplicated, order kept. `--provider` narrows that list to one entry and is
|
|
1725
|
+
* refused when the target does not list it. Only a run that sends nothing
|
|
1726
|
+
* (`--dry-run`, `--mock`) with no list at all falls back to the flag or to
|
|
1727
|
+
* `typesafe`.
|
|
1728
|
+
*/
|
|
1729
|
+
declare function resolveProviders(verification: VerificationConfig | undefined, forced?: TriageProvider): TriageProvider[];
|
|
1730
|
+
declare function runJudgeTriage(claimFileArg: string, options: JudgeTriageOptions, ctx: JudgeTriageContext): Promise<JudgeTriageResult>;
|
|
1731
|
+
/** The most cautious reading of the providers that answered. */
|
|
1732
|
+
declare function combineRoutes(routes: Route[]): Route;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* One POST to a `/v1/systemone` endpoint: TypeSafe's hosted API or a
|
|
1736
|
+
* self-hosted Laya server, which speak the same wire protocol.
|
|
1737
|
+
*
|
|
1738
|
+
* Kept dependency-free on purpose: the call is a bearer header and a JSON
|
|
1739
|
+
* body, and retrying 429/503/529 with backoff is a dozen lines. `fetch`,
|
|
1740
|
+
* `sleep` and the clock are injectable so the tests never touch the network.
|
|
1741
|
+
* Redirects are refused: a 307/308 would re-send the body to wherever the
|
|
1742
|
+
* server points, which defeats both the fixed hosted endpoint and the
|
|
1743
|
+
* loopback-only rule for Laya.
|
|
1744
|
+
*
|
|
1745
|
+
* The response is untrusted: its text ends up in stdout and in the
|
|
1746
|
+
* `<STEM>-NNN.md` block the Phase 7 agent reads. `assertResponse()` keeps
|
|
1747
|
+
* only the fields the question set asked for, allow-lists every `choice`,
|
|
1748
|
+
* clamps every probability to [0, 1] and flattens the model id; the body is
|
|
1749
|
+
* read with a byte limit before it is parsed.
|
|
1750
|
+
*/
|
|
1751
|
+
|
|
1752
|
+
declare const JEV_ENDPOINT = "https://api.typesafe.ai/v1/systemone";
|
|
1753
|
+
declare const JEV_MODEL = "jev-latest";
|
|
1754
|
+
/** USD per input token, from TypeSafe's published pricing ($0.042 per 1M). Output tokens are free. */
|
|
1755
|
+
declare const JEV_USD_PER_INPUT_TOKEN: number;
|
|
1756
|
+
declare class TriageApiError extends Error {
|
|
1757
|
+
readonly status?: number | undefined;
|
|
1758
|
+
readonly retryable: boolean;
|
|
1759
|
+
constructor(message: string, status?: number | undefined, retryable?: boolean);
|
|
1760
|
+
}
|
|
1761
|
+
interface CallOptions {
|
|
1762
|
+
/** Empty for a keyless local Laya server: no Authorization header is sent. */
|
|
1763
|
+
apiKey: string;
|
|
1764
|
+
fetch?: typeof fetch;
|
|
1765
|
+
sleep?: (ms: number) => Promise<void>;
|
|
1766
|
+
/** Retries on 429 / 503 / 529 / network failure (default 3). */
|
|
1767
|
+
retries?: number;
|
|
1768
|
+
/** Per-attempt timeout in milliseconds (default 15 000). */
|
|
1769
|
+
timeoutMs?: number;
|
|
1770
|
+
endpoint?: string;
|
|
1771
|
+
now?: () => number;
|
|
1772
|
+
}
|
|
1773
|
+
interface CallResult {
|
|
1774
|
+
response: SystemOneResponse;
|
|
1775
|
+
ms: number;
|
|
1776
|
+
attempts: number;
|
|
1777
|
+
}
|
|
1778
|
+
/** 500 ms, 1 s, 2 s … plus up to 250 ms of jitter. */
|
|
1779
|
+
declare function backoffMs(attempt: number, random?: () => number): number;
|
|
1780
|
+
declare function callSystemOne(req: SystemOneRequest, opts: CallOptions): Promise<CallResult>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Every requested question must be answered with the type it was asked as.
|
|
1783
|
+
* What comes back is rebuilt from the question set, never passed through:
|
|
1784
|
+
* answers to questions that were not asked and unknown fields are dropped, a
|
|
1785
|
+
* `choice` outside the question's criteria keys is malformed, probabilities
|
|
1786
|
+
* are kept only for those keys and clamped to [0, 1], the model id is one
|
|
1787
|
+
* sanitised line of at most 64 characters.
|
|
1788
|
+
*/
|
|
1789
|
+
declare function assertResponse(json: unknown, questions: Record<string, TriageQuestion>): SystemOneResponse;
|
|
1790
|
+
declare const LAYA_DEFAULT_ENDPOINT = "http://127.0.0.1:8000/v1/systemone";
|
|
1791
|
+
declare const LAYA_DEFAULT_MODEL = "multilingual";
|
|
1792
|
+
/** The multilingual checkpoint reads up to 8,192 tokens; its shipped 1,024 cuts a claim state off. */
|
|
1793
|
+
declare const LAYA_DEFAULT_MAX_LEN = 8192;
|
|
1794
|
+
/**
|
|
1795
|
+
* True only for an http(s) endpoint on this machine — the only kind a Laya
|
|
1796
|
+
* provider may use: `localhost`, `::1`, or a dotted-quad 127.0.0.0/8 address.
|
|
1797
|
+
* A hostname that merely starts with `127.` (`127.evil.example`) is not one.
|
|
1798
|
+
*/
|
|
1799
|
+
declare function isLoopbackEndpoint(endpoint: string): boolean;
|
|
1800
|
+
declare function estimateCostUsd(usage: Pick<TriageUsage, 'input_tokens'>): number;
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Parsers for the two Phase 7 verification artefacts: the claim card the judge
|
|
1804
|
+
* sees (`verification/claims/CLAIM-NNN.md`) and the verdict block it returns
|
|
1805
|
+
* (`verification/VERDICT-NNN.md`). Both formats are defined in
|
|
1806
|
+
* `.claude/skills/qa-explore/phases/07-reporting.md` and `qa-bug-judge.md`.
|
|
1807
|
+
*/
|
|
1808
|
+
|
|
1809
|
+
declare function parseClaimCard(content: string): ParsedClaim;
|
|
1810
|
+
declare function normaliseJudgeVerdict(raw: string): JudgeVerdict | 'UNKNOWN';
|
|
1811
|
+
/** `agree with claimed High` → High; `adjusted to Medium — …` → Medium; `n/a` → null. */
|
|
1812
|
+
declare function parseSeverityField(raw: string | undefined): string | null | undefined;
|
|
1813
|
+
declare function parseVerdictBlock(content: string): ParsedVerdict;
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* What may leave the machine.
|
|
1817
|
+
*
|
|
1818
|
+
* `redact()` is the pack's secret list and is shared with the write guard, so
|
|
1819
|
+
* it must not learn URL, host or path rules (`tests/unit/hooks.test.ts` pins
|
|
1820
|
+
* that parity). This module composes it: secrets first, then every URL (any
|
|
1821
|
+
* `scheme://`, JSON-escaped `scheme:\/\/` too) is reduced to its path, every
|
|
1822
|
+
* dotted hostname to `[HOST]` (a scheme-less `host.tld/path?query` keeps the
|
|
1823
|
+
* path and loses the query) and every absolute path under a common root
|
|
1824
|
+
* (`/Users`, `/home`, `/tmp`, `/srv`, `/workspace`, a drive letter, …) to its
|
|
1825
|
+
* basename. A path under any other root passes through: a generic rule would
|
|
1826
|
+
* also eat the `[URL /path]` tokens kept on purpose. The path of a URL carries
|
|
1827
|
+
* the signal a triage needs (which screen); the host does not.
|
|
1828
|
+
*
|
|
1829
|
+
* Pattern-based, so it has gaps, and the docs state them: IP addresses,
|
|
1830
|
+
* single-label hostnames (`intranet`), URL paths (kept on purpose, and they can
|
|
1831
|
+
* name a customer or an internal service) and free-text product, company or
|
|
1832
|
+
* people names all pass through unchanged. The exact request is saved next to
|
|
1833
|
+
* the verdict so a human can see what was sent.
|
|
1834
|
+
*
|
|
1835
|
+
* Every pattern here is bounded so hostile page text cannot stall the scrub.
|
|
1836
|
+
* A run of more than `LONG_RUN` token characters (`[A-Za-z0-9._%+-]` with no
|
|
1837
|
+
* separator) is replaced whole before `redact()` sees it: some of its rules
|
|
1838
|
+
* are quadratic on such runs, and nothing a triage needs is that long.
|
|
1839
|
+
* Callers cap each field first (`capForScrub()`); `scrubForTransmission()`
|
|
1840
|
+
* itself never looks past `MAX_SCRUB_CHARS`.
|
|
1841
|
+
*/
|
|
1842
|
+
interface ScrubResult {
|
|
1843
|
+
text: string;
|
|
1844
|
+
/** `redact()` categories plus 'URL', 'Host', 'Path' and 'Long token' when they fired. */
|
|
1845
|
+
redactions: string[];
|
|
1846
|
+
}
|
|
1847
|
+
declare function scrubForTransmission(text: string): ScrubResult;
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* The pure half of `qualiow judge triage`: evidence collection, the state that
|
|
1851
|
+
* leaves the machine, the question set, the prediction rule and the block that
|
|
1852
|
+
* is written next to the judge's verdict.
|
|
1853
|
+
*
|
|
1854
|
+
* Nothing here decides anything. `route()` turns probabilities into a recorded
|
|
1855
|
+
* reading of the claim (`refute-risk`, `unclear`, `likely-confirmed`) and the
|
|
1856
|
+
* predicted verdict is a guess at what the judge will say. Phase 7 still sends
|
|
1857
|
+
* every claim to the judge, never reads these files to order or shorten that
|
|
1858
|
+
* run, and keeps severity, business impact and whether a bug ships in the
|
|
1859
|
+
* session (`references/delegation-rules.md`).
|
|
1860
|
+
*/
|
|
1861
|
+
|
|
1862
|
+
declare const DEFAULT_EVIDENCE_MAX_LINES = 120;
|
|
1863
|
+
/** ≈ 24k tokens at 4 chars/token — under the 32k-token state limit with margin. */
|
|
1864
|
+
declare const MAX_STATE_CHARS = 96000;
|
|
1865
|
+
declare const MAX_PATTERNS = 12;
|
|
1866
|
+
declare const EVIDENCE_NOTE: string;
|
|
1867
|
+
/** `verification/claims/CLAIM-NNN.md` → the session directory, by position only. */
|
|
1868
|
+
declare function sessionDirOfClaim(claimFile: string): string;
|
|
1869
|
+
/**
|
|
1870
|
+
* The text files a card lists, read under the containment rules. `sessionDir`
|
|
1871
|
+
* is the directory `resolveClaimLocation()` validated; without it the
|
|
1872
|
+
* directory is taken from the card's position (tests, library callers).
|
|
1873
|
+
*/
|
|
1874
|
+
declare function collectEvidence(claim: ParsedClaim, claimFile: string, maxLines?: number, sessionDir?: string): CollectedEvidence;
|
|
1875
|
+
/**
|
|
1876
|
+
* The bold lead-ins of the "False Positive" sections of `learned-patterns.md`
|
|
1877
|
+
* (project copy first, then the resolved data dir) plus the session's own
|
|
1878
|
+
* `verification/proposed-patterns.md` bullets. Deduplicated, capped. Raw text:
|
|
1879
|
+
* `buildQuestionSet()` scrubs each one before it becomes part of a question.
|
|
1880
|
+
*/
|
|
1881
|
+
declare function loadFalsePositivePatterns(cwd: string, sessionDir?: string): string[];
|
|
1882
|
+
declare function buildTriageState(claim: ParsedClaim, evidence: CollectedEvidence): {
|
|
1883
|
+
state: TriageState;
|
|
1884
|
+
redactions: string[];
|
|
1885
|
+
};
|
|
1886
|
+
/**
|
|
1887
|
+
* Keeps the serialised state under `maxChars`: first the last evidence file is
|
|
1888
|
+
* halved, then dropped (reason `budget`) once it is down to a stub; with no
|
|
1889
|
+
* evidence file left, `evidence_inline`, `actual`, the longest step and
|
|
1890
|
+
* `expected` are halved in that order, down to a floor. Returns the evidence
|
|
1891
|
+
* metadata as it stands after the cut.
|
|
1892
|
+
*/
|
|
1893
|
+
declare function fitStateToBudget(state: TriageState, evidence: CollectedEvidence, maxChars?: number): {
|
|
1894
|
+
sent: Array<Omit<EvidenceFile, 'text'>>;
|
|
1895
|
+
notSent: EvidenceSkipped[];
|
|
1896
|
+
};
|
|
1897
|
+
/** Verbatim from `references/severity-guide.md`. */
|
|
1898
|
+
declare const SEVERITY_CRITERIA: Record<'critical' | 'high' | 'medium' | 'low', string>;
|
|
1899
|
+
declare const VERDICT_CRITERIA: Record<'confirmed' | 'confirmed_adjusted' | 'refuted' | 'unreproducible', string>;
|
|
1900
|
+
/**
|
|
1901
|
+
* The fixed question set. Each false-positive pattern passes through
|
|
1902
|
+
* `scrubForTransmission()` before it is placed in a question, because the
|
|
1903
|
+
* question text leaves the machine with the state. `redactions` lists what
|
|
1904
|
+
* that scrub removed.
|
|
1905
|
+
*/
|
|
1906
|
+
declare function buildQuestionSet(patterns: string[]): {
|
|
1907
|
+
questions: Record<string, TriageQuestion>;
|
|
1908
|
+
patternIds: Record<string, string>;
|
|
1909
|
+
redactions: string[];
|
|
1910
|
+
};
|
|
1911
|
+
declare const DEFAULT_THRESHOLDS: RoutingThresholds;
|
|
1912
|
+
declare function normaliseSeverity(raw: string): SeverityName | undefined;
|
|
1913
|
+
declare function toPredictedVerdict(choice: string): PredictedVerdict;
|
|
1914
|
+
/**
|
|
1915
|
+
* `refute-risk` when any refutation signal fires; otherwise `likely-confirmed`
|
|
1916
|
+
* when every confirmation condition holds; otherwise `unclear`. Recorded, never
|
|
1917
|
+
* acted on.
|
|
1918
|
+
*/
|
|
1919
|
+
declare function route(answers: TriageAnswers, t?: RoutingThresholds): RouteDecision;
|
|
1920
|
+
interface TriageBlockInput {
|
|
1921
|
+
mode: TriageMode;
|
|
1922
|
+
/** First line's key: `JEV_VERDICT` (hosted) or `LAYA_VERDICT` (local). */
|
|
1923
|
+
verdictKey: string;
|
|
1924
|
+
claimedSeverity: string;
|
|
1925
|
+
answers: TriageAnswers | null;
|
|
1926
|
+
decision: RouteDecision | null;
|
|
1927
|
+
patternIds: Record<string, string>;
|
|
1928
|
+
evidenceSent: Array<Omit<EvidenceFile, 'text'>>;
|
|
1929
|
+
evidenceNotSent: EvidenceSkipped[];
|
|
1930
|
+
redactions: string[];
|
|
1931
|
+
usage: TriageUsage | null;
|
|
1932
|
+
costUsd: number | null;
|
|
1933
|
+
ms: number | null;
|
|
1934
|
+
model: string;
|
|
1935
|
+
unavailable?: string;
|
|
1936
|
+
}
|
|
1937
|
+
/** The fenced block written to `verification/JEV-NNN.md` / `LAYA-NNN.md` (without the fences). */
|
|
1938
|
+
declare function renderTriageBlock(input: TriageBlockInput): string;
|
|
1939
|
+
|
|
1940
|
+
export { ALL_BUGS_COLUMNS, ALL_BUGS_MD_HEADER, type AnyTargetConfig, type AuthConfig, AuthConfigSchema, type BrowserConfig, BrowserConfigSchema, type BugReport, type BugSeverity, CONFIDENTIALITY_HEADER_MD, CONFIDENTIALITY_LINES, CONFIDENTIALITY_NOTICE, type CallOptions, type CallResult, type ChoiceAnswer, type ChoiceQuestion, type CollectedEvidence, type CopyRecord, type CopyStatus, type CoverageEntry, DEFAULT_EVIDENCE_MAX_LINES, DEFAULT_THRESHOLDS, type DiscoveredSessionDir, type DomainConfig, DomainConfigSchema, EVIDENCE_NOTE, EXIT_NOT_ENABLED, EXIT_UNAVAILABLE, type EvidenceFile, type EvidenceSkipReason, type EvidenceSkipped, INDEX_COLUMNS, INDEX_MD_HEADER, type InitOptions, type InitResult, JEV_ENDPOINT, JEV_MODEL, JEV_USD_PER_INPUT_TOKEN, type Journey, JourneySchema, type JudgeTriageOptions, type JudgeTriageResult, type JudgeVerdict, type KbDigestOptions, KnowledgeChangelogSchema, type KnowledgeEntry, type KnowledgeEntryContent, KnowledgeEntryContentSchema, KnowledgeEntrySchema, type KnowledgeManifest, type KnowledgeManifestEntry, KnowledgeManifestEntrySchema, KnowledgeManifestSchema, type KnowledgeManifestStats, KnowledgeManifestStatsSchema, KnowledgeReleaseSchema, LAYA_DEFAULT_ENDPOINT, LAYA_DEFAULT_MAX_LEN, LAYA_DEFAULT_MODEL, LEGACY_SESSION_DIR_RE, type LayaTriageConfig, LayaTriageConfigSchema, type ListOptions, type LoadingStrategy, LoadingStrategySchema, MAX_PATTERNS, MAX_STATE_CHARS, type ManifestStats, type MobileAppConfig, MobileAppConfigSchema, type MobileDeviceConfig, MobileDeviceConfigSchema, type MobileScopeConfig, MobileScopeConfigSchema, type MobileTargetConfig, MobileTargetConfigSchema, type MobileWebConfig, MobileWebConfigSchema, type NoulAnswer, type NoulQuestion, type ParsedBug, type ParsedClaim, type ParsedSession, type ParsedSessionDir, type ParsedTable, type ParsedVerdict, type PredictedVerdict, QUALIOW_GITIGNORE_ENTRIES, QUALIOW_GITIGNORE_HEADER, REDACTION_CATEGORIES, type RedactOptions, type RegistryEntry, type ReportMeta, type RiskRanking, type Route, type RouteDecision, type RoutingThresholds, SESSION_DIR_RE, SESSION_KINDS, SEVERITY_CRITERIA, type SafetyConfig, SafetyConfigSchema, type ScopeConfig, ScopeConfigSchema, type ScoreAnswer, type ScoreQuestion, type ScrubResult, type SessionKind, type SessionMetrics, SessionMetricsSchema, type SessionRow, type SeverityCounts, SeverityCountsSchema, type SeverityName, type SourceRepoConfig, SourceRepoConfigSchema, type SyncResult, type SystemOneRequest, type SystemOneResponse, type TargetConfig, TargetConfigSchema, type TriageAnswer, type TriageAnswers, TriageApiError, type TriageBlockInput, type TriageMode, TriageNotEnabledError, type TriageProvider, TriageProviderSchema, type TriageQuestion, type TriageResult, type TriageState, type TriageUsage, VERDICT_CRITERIA, type ValidationError, type ValidationResult, type VerificationConfig, VerificationConfigSchema, WebTargetConfigSchema, appendSessionMetrics, appendSessionMetricsDeduped, assertResponse, backoffMs, buildManifestRegistry, buildQuestionSet, buildTableRow, buildTriageState, callSystemOne, collectEvidence, combineRoutes, computeStats, containsSecrets, csvEscape, describeSessionDir, estimateCostUsd, extractCoverage, extractListSection, extractNumberedList, extractReportMeta, extractSection, fitStateToBudget, generateHtmlReport, generateJiraExport, generateJsonReport, generateMarkdownSummary, getPackageRoot, getPackageVersion, hasConfidentialityHeader, headersMatchColumns, isLoopbackEndpoint, judgeCommand, listReleaseDirs, loadFalsePositivePatterns, loadSessionForOutput, mergeGitignore, missingColumns, normaliseJudgeVerdict, normaliseSeverity, parseBugReport, parseClaimCard, parseMarkdownTable, parseSession, parseSessionDirName, parseSeverityField, parseTimeBox, parseVerdictBlock, readAllMetrics, readEnvVar, readSessionIndex, redact, renderTriageBlock, resolveDataDir, resolveDomainPath, resolveProviders, resolveSessionDir, resolveSkillsSource, resolveTargetPath, route, runExplore, runInit, runJudgeTriage, runKb, runKbDigest, runList, runReport, runValidate, scrubForTransmission, sessionDirName, sessionDirOfClaim, sessionTimestamp, slugify, syncKnowledgeManifest, toPredictedVerdict, validateAllConfigs, validateDomainConfig, validateKnowledgeBase, validateKnowledgeEntry, validateTargetConfig };
|