flakelab 0.1.0

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 (245) hide show
  1. package/README.md +341 -0
  2. package/bin/flakelab.mjs +3 -0
  3. package/dist/artifacts/ndjson.d.ts +3 -0
  4. package/dist/artifacts/ndjson.js +16 -0
  5. package/dist/artifacts/ndjson.js.map +1 -0
  6. package/dist/bisect/archive.d.ts +1 -0
  7. package/dist/bisect/archive.js +14 -0
  8. package/dist/bisect/archive.js.map +1 -0
  9. package/dist/bisect/confidence.d.ts +7 -0
  10. package/dist/bisect/confidence.js +27 -0
  11. package/dist/bisect/confidence.js.map +1 -0
  12. package/dist/bisect/engine.d.ts +10 -0
  13. package/dist/bisect/engine.js +110 -0
  14. package/dist/bisect/engine.js.map +1 -0
  15. package/dist/bisect/git.d.ts +7 -0
  16. package/dist/bisect/git.js +56 -0
  17. package/dist/bisect/git.js.map +1 -0
  18. package/dist/bisect/schema.d.ts +82 -0
  19. package/dist/bisect/schema.js +33 -0
  20. package/dist/bisect/schema.js.map +1 -0
  21. package/dist/bisect/solari-command.d.ts +7 -0
  22. package/dist/bisect/solari-command.js +95 -0
  23. package/dist/bisect/solari-command.js.map +1 -0
  24. package/dist/bisect/solari-evaluator.d.ts +20 -0
  25. package/dist/bisect/solari-evaluator.js +310 -0
  26. package/dist/bisect/solari-evaluator.js.map +1 -0
  27. package/dist/ci/changed-tests.d.ts +7 -0
  28. package/dist/ci/changed-tests.js +104 -0
  29. package/dist/ci/changed-tests.js.map +1 -0
  30. package/dist/ci/job-summary.d.ts +11 -0
  31. package/dist/ci/job-summary.js +45 -0
  32. package/dist/ci/job-summary.js.map +1 -0
  33. package/dist/ci/select-command.d.ts +1 -0
  34. package/dist/ci/select-command.js +49 -0
  35. package/dist/ci/select-command.js.map +1 -0
  36. package/dist/ci/summary-command.d.ts +1 -0
  37. package/dist/ci/summary-command.js +46 -0
  38. package/dist/ci/summary-command.js.map +1 -0
  39. package/dist/cli-help.d.ts +2 -0
  40. package/dist/cli-help.js +47 -0
  41. package/dist/cli-help.js.map +1 -0
  42. package/dist/cli.d.ts +1 -0
  43. package/dist/cli.js +121 -0
  44. package/dist/cli.js.map +1 -0
  45. package/dist/commands/bisect.d.ts +2 -0
  46. package/dist/commands/bisect.js +63 -0
  47. package/dist/commands/bisect.js.map +1 -0
  48. package/dist/commands/diagnose.d.ts +2 -0
  49. package/dist/commands/diagnose.js +27 -0
  50. package/dist/commands/diagnose.js.map +1 -0
  51. package/dist/commands/discover.d.ts +2 -0
  52. package/dist/commands/discover.js +46 -0
  53. package/dist/commands/discover.js.map +1 -0
  54. package/dist/commands/doctor.d.ts +8 -0
  55. package/dist/commands/doctor.js +78 -0
  56. package/dist/commands/doctor.js.map +1 -0
  57. package/dist/commands/investigate.d.ts +2 -0
  58. package/dist/commands/investigate.js +43 -0
  59. package/dist/commands/investigate.js.map +1 -0
  60. package/dist/commands/options.d.ts +38 -0
  61. package/dist/commands/options.js +35 -0
  62. package/dist/commands/options.js.map +1 -0
  63. package/dist/commands/prove.d.ts +2 -0
  64. package/dist/commands/prove.js +21 -0
  65. package/dist/commands/prove.js.map +1 -0
  66. package/dist/commands/repair.d.ts +2 -0
  67. package/dist/commands/repair.js +55 -0
  68. package/dist/commands/repair.js.map +1 -0
  69. package/dist/commands/replay.d.ts +2 -0
  70. package/dist/commands/replay.js +26 -0
  71. package/dist/commands/replay.js.map +1 -0
  72. package/dist/commands/report.d.ts +2 -0
  73. package/dist/commands/report.js +79 -0
  74. package/dist/commands/report.js.map +1 -0
  75. package/dist/commands/scan.d.ts +12 -0
  76. package/dist/commands/scan.js +86 -0
  77. package/dist/commands/scan.js.map +1 -0
  78. package/dist/core/plan.d.ts +3 -0
  79. package/dist/core/plan.js +17 -0
  80. package/dist/core/plan.js.map +1 -0
  81. package/dist/discovery/evaluate.d.ts +22 -0
  82. package/dist/discovery/evaluate.js +81 -0
  83. package/dist/discovery/evaluate.js.map +1 -0
  84. package/dist/discovery/minimize.d.ts +24 -0
  85. package/dist/discovery/minimize.js +73 -0
  86. package/dist/discovery/minimize.js.map +1 -0
  87. package/dist/domain/schema.d.ts +155 -0
  88. package/dist/domain/schema.js +67 -0
  89. package/dist/domain/schema.js.map +1 -0
  90. package/dist/faults/install.d.ts +4 -0
  91. package/dist/faults/install.js +9 -0
  92. package/dist/faults/install.js.map +1 -0
  93. package/dist/faults/network-delay.d.ts +5 -0
  94. package/dist/faults/network-delay.js +34 -0
  95. package/dist/faults/network-delay.js.map +1 -0
  96. package/dist/faults/request-failure.d.ts +5 -0
  97. package/dist/faults/request-failure.js +24 -0
  98. package/dist/faults/request-failure.js.map +1 -0
  99. package/dist/investigator/agent.d.ts +26 -0
  100. package/dist/investigator/agent.js +197 -0
  101. package/dist/investigator/agent.js.map +1 -0
  102. package/dist/investigator/budget.d.ts +14 -0
  103. package/dist/investigator/budget.js +39 -0
  104. package/dist/investigator/budget.js.map +1 -0
  105. package/dist/investigator/file.d.ts +2 -0
  106. package/dist/investigator/file.js +7 -0
  107. package/dist/investigator/file.js.map +1 -0
  108. package/dist/investigator/groq.d.ts +5 -0
  109. package/dist/investigator/groq.js +26 -0
  110. package/dist/investigator/groq.js.map +1 -0
  111. package/dist/investigator/ledger.d.ts +17 -0
  112. package/dist/investigator/ledger.js +121 -0
  113. package/dist/investigator/ledger.js.map +1 -0
  114. package/dist/investigator/safe-source.d.ts +6 -0
  115. package/dist/investigator/safe-source.js +79 -0
  116. package/dist/investigator/safe-source.js.map +1 -0
  117. package/dist/investigator/schema.d.ts +110 -0
  118. package/dist/investigator/schema.js +53 -0
  119. package/dist/investigator/schema.js.map +1 -0
  120. package/dist/playwright.d.ts +3 -0
  121. package/dist/playwright.js +21 -0
  122. package/dist/playwright.js.map +1 -0
  123. package/dist/providers/errors.d.ts +21 -0
  124. package/dist/providers/errors.js +159 -0
  125. package/dist/providers/errors.js.map +1 -0
  126. package/dist/repair/file.d.ts +2 -0
  127. package/dist/repair/file.js +6 -0
  128. package/dist/repair/file.js.map +1 -0
  129. package/dist/repair/generator.d.ts +12 -0
  130. package/dist/repair/generator.js +74 -0
  131. package/dist/repair/generator.js.map +1 -0
  132. package/dist/repair/policy.d.ts +2 -0
  133. package/dist/repair/policy.js +70 -0
  134. package/dist/repair/policy.js.map +1 -0
  135. package/dist/repair/remote-proof-runner.d.ts +1 -0
  136. package/dist/repair/remote-proof-runner.js +53 -0
  137. package/dist/repair/remote-proof-runner.js.map +1 -0
  138. package/dist/repair/schema.d.ts +78 -0
  139. package/dist/repair/schema.js +44 -0
  140. package/dist/repair/schema.js.map +1 -0
  141. package/dist/repair/solari-validator.d.ts +25 -0
  142. package/dist/repair/solari-validator.js +231 -0
  143. package/dist/repair/solari-validator.js.map +1 -0
  144. package/dist/repair/validator.d.ts +16 -0
  145. package/dist/repair/validator.js +81 -0
  146. package/dist/repair/validator.js.map +1 -0
  147. package/dist/repair/workspace.d.ts +7 -0
  148. package/dist/repair/workspace.js +40 -0
  149. package/dist/repair/workspace.js.map +1 -0
  150. package/dist/report/browser-entry.d.ts +2 -0
  151. package/dist/report/browser-entry.js +15 -0
  152. package/dist/report/browser-entry.js.map +1 -0
  153. package/dist/report/bundle.d.ts +2 -0
  154. package/dist/report/bundle.js +77 -0
  155. package/dist/report/bundle.js.map +1 -0
  156. package/dist/report/classification.d.ts +9 -0
  157. package/dist/report/classification.js +55 -0
  158. package/dist/report/classification.js.map +1 -0
  159. package/dist/report/components/artifacts.d.ts +4 -0
  160. package/dist/report/components/artifacts.js +6 -0
  161. package/dist/report/components/artifacts.js.map +1 -0
  162. package/dist/report/components/experiments.d.ts +4 -0
  163. package/dist/report/components/experiments.js +7 -0
  164. package/dist/report/components/experiments.js.map +1 -0
  165. package/dist/report/components/hypotheses.d.ts +4 -0
  166. package/dist/report/components/hypotheses.js +26 -0
  167. package/dist/report/components/hypotheses.js.map +1 -0
  168. package/dist/report/components/indicators.d.ts +32 -0
  169. package/dist/report/components/indicators.js +42 -0
  170. package/dist/report/components/indicators.js.map +1 -0
  171. package/dist/report/components/layout.d.ts +29 -0
  172. package/dist/report/components/layout.js +20 -0
  173. package/dist/report/components/layout.js.map +1 -0
  174. package/dist/report/components/proof.d.ts +4 -0
  175. package/dist/report/components/proof.js +34 -0
  176. package/dist/report/components/proof.js.map +1 -0
  177. package/dist/report/components/reproduction.d.ts +4 -0
  178. package/dist/report/components/reproduction.js +19 -0
  179. package/dist/report/components/reproduction.js.map +1 -0
  180. package/dist/report/components/summary.d.ts +4 -0
  181. package/dist/report/components/summary.js +12 -0
  182. package/dist/report/components/summary.js.map +1 -0
  183. package/dist/report/components/verdict.d.ts +4 -0
  184. package/dist/report/components/verdict.js +27 -0
  185. package/dist/report/components/verdict.js.map +1 -0
  186. package/dist/report/model.d.ts +19 -0
  187. package/dist/report/model.js +82 -0
  188. package/dist/report/model.js.map +1 -0
  189. package/dist/report/open.d.ts +1 -0
  190. package/dist/report/open.js +24 -0
  191. package/dist/report/open.js.map +1 -0
  192. package/dist/report/publish.d.ts +12 -0
  193. package/dist/report/publish.js +67 -0
  194. package/dist/report/publish.js.map +1 -0
  195. package/dist/report/redaction.d.ts +1 -0
  196. package/dist/report/redaction.js +58 -0
  197. package/dist/report/redaction.js.map +1 -0
  198. package/dist/report/report-app.d.ts +6 -0
  199. package/dist/report/report-app.js +16 -0
  200. package/dist/report/report-app.js.map +1 -0
  201. package/dist/report/report-details.css +182 -0
  202. package/dist/report/report.css +404 -0
  203. package/dist/report/schema.d.ts +101 -0
  204. package/dist/report/schema.js +71 -0
  205. package/dist/report/schema.js.map +1 -0
  206. package/dist/reproducer/file.d.ts +3 -0
  207. package/dist/reproducer/file.js +14 -0
  208. package/dist/reproducer/file.js.map +1 -0
  209. package/dist/reproducer/schema.d.ts +17 -0
  210. package/dist/reproducer/schema.js +14 -0
  211. package/dist/reproducer/schema.js.map +1 -0
  212. package/dist/runner/local.d.ts +12 -0
  213. package/dist/runner/local.js +72 -0
  214. package/dist/runner/local.js.map +1 -0
  215. package/dist/runner/playwright-executor.d.ts +10 -0
  216. package/dist/runner/playwright-executor.js +148 -0
  217. package/dist/runner/playwright-executor.js.map +1 -0
  218. package/dist/security/credentials.d.ts +23 -0
  219. package/dist/security/credentials.js +105 -0
  220. package/dist/security/credentials.js.map +1 -0
  221. package/dist/solari/checkout-fixture.d.ts +3 -0
  222. package/dist/solari/checkout-fixture.js +54 -0
  223. package/dist/solari/checkout-fixture.js.map +1 -0
  224. package/dist/solari/executor.d.ts +17 -0
  225. package/dist/solari/executor.js +280 -0
  226. package/dist/solari/executor.js.map +1 -0
  227. package/dist/solari/retry.d.ts +7 -0
  228. package/dist/solari/retry.js +50 -0
  229. package/dist/solari/retry.js.map +1 -0
  230. package/dist/solari/run-demo.d.ts +21 -0
  231. package/dist/solari/run-demo.js +64 -0
  232. package/dist/solari/run-demo.js.map +1 -0
  233. package/dist/solari/transport.d.ts +1 -0
  234. package/dist/solari/transport.js +21 -0
  235. package/dist/solari/transport.js.map +1 -0
  236. package/dist/solari/usage.d.ts +23 -0
  237. package/dist/solari/usage.js +53 -0
  238. package/dist/solari/usage.js.map +1 -0
  239. package/dist/solari/websocket-proxy.d.ts +7 -0
  240. package/dist/solari/websocket-proxy.js +131 -0
  241. package/dist/solari/websocket-proxy.js.map +1 -0
  242. package/dist/ui/progress.d.ts +5 -0
  243. package/dist/ui/progress.js +16 -0
  244. package/dist/ui/progress.js.map +1 -0
  245. package/package.json +79 -0
@@ -0,0 +1,82 @@
1
+ import { classifyFailure } from "./classification.js";
2
+ import { redactText } from "./redaction.js";
3
+ import { evidenceReportSchema } from "./schema.js";
4
+ function conditionLabel(condition) {
5
+ if (condition.kind === "baseline") {
6
+ return "Clean baseline";
7
+ }
8
+ if (condition.kind === "network-delay") {
9
+ return `Network delayed by ${condition.delayMs} ms`;
10
+ }
11
+ return `HTTP ${condition.statusCode} response injected`;
12
+ }
13
+ function cleanResult(result) {
14
+ return {
15
+ errors: result.errors,
16
+ failed: result.failed,
17
+ failureRate: result.failureRate,
18
+ lowerBound80: result.lowerBound80,
19
+ passed: result.passed,
20
+ trials: result.trials,
21
+ };
22
+ }
23
+ export function buildEvidenceReport(options) {
24
+ const { investigation, proof, reproducer } = options;
25
+ const ownership = classifyFailure(investigation);
26
+ const trigger = reproducer.faults[0];
27
+ const matrix = [
28
+ { label: "Before · hostile", result: cleanResult(proof.beforeHostile) },
29
+ { label: "After · hostile", result: cleanResult(proof.afterHostile) },
30
+ { label: "After · clean", result: cleanResult(proof.afterControl) },
31
+ ...proof.regressions.map((regression) => ({
32
+ label: `Regression · ${redactText(regression.selector)}`,
33
+ result: cleanResult(regression.result),
34
+ })),
35
+ ];
36
+ return evidenceReportSchema.parse({
37
+ version: 1,
38
+ generatedAt: (options.generatedAt ?? new Date()).toISOString(),
39
+ status: proof.patchAccepted ? "FIX_PROVEN" : "PATCH_REJECTED",
40
+ test: redactText(investigation.test),
41
+ model: redactText(investigation.model),
42
+ conclusion: redactText(investigation.conclusion),
43
+ ownership: {
44
+ ...ownership,
45
+ rationale: redactText(ownership.rationale),
46
+ },
47
+ trigger: {
48
+ kind: trigger.kind,
49
+ pattern: redactText(trigger.pattern),
50
+ delayMs: trigger.delayMs,
51
+ minimumFailureRate: reproducer.expectedFailure.minimumRate,
52
+ signature: reproducer.expectedFailure.signature,
53
+ },
54
+ hypotheses: investigation.hypotheses.map((hypothesis) => ({
55
+ id: hypothesis.id,
56
+ statement: redactText(hypothesis.statement),
57
+ status: hypothesis.status,
58
+ explanation: redactText(hypothesis.explanation),
59
+ evidenceExperimentIds: hypothesis.evidenceExperimentIds,
60
+ })),
61
+ experiments: investigation.experiments.map((experiment) => ({
62
+ id: experiment.id,
63
+ hypothesisId: experiment.hypothesisId,
64
+ condition: conditionLabel(experiment.condition),
65
+ result: cleanResult(experiment.result),
66
+ })),
67
+ proof: {
68
+ accepted: proof.patchAccepted,
69
+ execution: proof.execution,
70
+ staticChecks: proof.staticChecks,
71
+ matrix,
72
+ },
73
+ usage: investigation.usage,
74
+ artifacts: [
75
+ { label: "Investigation", path: redactText(options.paths.investigation) },
76
+ { label: "Reproducer", path: redactText(options.paths.reproducer) },
77
+ { label: "Candidate patch", path: redactText(options.paths.patch) },
78
+ { label: "Proof of fix", path: redactText(options.paths.proof) },
79
+ ],
80
+ });
81
+ }
82
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/report/model.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAiBlD,SAAS,cAAc,CAAC,SAA8B;IACpD,IAAI,SAAS,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAClC,OAAO,gBAAgB,CAAA;IACzB,CAAC;IACD,IAAI,SAAS,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;QACvC,OAAO,sBAAsB,SAAS,CAAC,OAAO,KAAK,CAAA;IACrD,CAAC;IACD,OAAO,QAAQ,SAAS,CAAC,UAAU,oBAAoB,CAAA;AACzD,CAAC;AAED,SAAS,WAAW,CAAC,MAOpB;IAQC,OAAO;QACL,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAA;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAA2B;IAC7D,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;IACpD,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;IAChD,MAAM,OAAO,GAAG,UAAU,CAAC,M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AAc,EAAE,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;SACjE;KACF,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function openLocalReport(path: string): void;
@@ -0,0 +1,24 @@
1
+ import { spawn } from "node:child_process";
2
+ function opener() {
3
+ if (process.platform === "win32") {
4
+ return { command: "explorer.exe", args: [] };
5
+ }
6
+ if (process.platform === "darwin") {
7
+ return { command: "open", args: [] };
8
+ }
9
+ return { command: "xdg-open", args: [] };
10
+ }
11
+ export function openLocalReport(path) {
12
+ const selected = opener();
13
+ const child = spawn(selected.command, [...selected.args, path], {
14
+ detached: true,
15
+ shell: false,
16
+ stdio: "ignore",
17
+ windowsHide: true,
18
+ });
19
+ child.once("error", () => {
20
+ process.stderr.write("Could not open the report automatically; open the generated HTML file directly.\n");
21
+ });
22
+ child.unref();
23
+ }
24
+ //# sourceMappingURL=open.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open.js","sourceRoot":"","sources":["../../src/report/open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,SAAS,MAAM;IACb,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;IAC9C,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAClC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;IACtC,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAA;IACzB,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;QAC9D,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,IAAI;KAClB,CAAC,CAAA;IACF,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE;QACvB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAA;IAC3G,CAAC,CAAC,CAAA;IACF,KAAK,CAAC,KAAK,EAAE,CAAA;AACf,CAAC"}
@@ -0,0 +1,12 @@
1
+ interface PublishOptions {
2
+ apiKey: string;
3
+ baseUrl: string;
4
+ }
5
+ export interface PublishedReport {
6
+ expiresAt: string;
7
+ sandboxId: string;
8
+ url: string;
9
+ }
10
+ export declare function confirmReportPublication(): Promise<boolean>;
11
+ export declare function publishReport(reportPath: string, options: PublishOptions): Promise<PublishedReport>;
12
+ export {};
@@ -0,0 +1,67 @@
1
+ import { SandboxClient } from "@solarisdk/sandbox";
2
+ import { readFile } from "node:fs/promises";
3
+ import { createInterface } from "node:readline/promises";
4
+ import { setTimeout as delay } from "node:timers/promises";
5
+ const REPORT_PORT = 4_173;
6
+ const PUBLICATION_TIMEOUT_MS = 60 * 60_000;
7
+ const PREVIEW_ATTEMPTS = 20;
8
+ export async function confirmReportPublication() {
9
+ if (!process.stdin.isTTY || !process.stdout.isTTY) {
10
+ throw new Error("--publish requires an interactive terminal for explicit confirmation");
11
+ }
12
+ const prompt = createInterface({ input: process.stdin, output: process.stdout });
13
+ try {
14
+ const answer = await prompt.question("Publish the redacted report to a public Solari URL for up to 60 minutes? [y/N] ");
15
+ return answer.trim().toLowerCase() === "y";
16
+ }
17
+ finally {
18
+ prompt.close();
19
+ }
20
+ }
21
+ async function waitForPreview(url) {
22
+ for (let attempt = 1; attempt <= PREVIEW_ATTEMPTS; attempt += 1) {
23
+ try {
24
+ const response = await fetch(url);
25
+ if (response.ok) {
26
+ return;
27
+ }
28
+ }
29
+ catch {
30
+ // The preview route can briefly lead the server during startup.
31
+ }
32
+ await delay(500);
33
+ }
34
+ throw new Error("Published report did not become reachable");
35
+ }
36
+ export async function publishReport(reportPath, options) {
37
+ const client = new SandboxClient({ apiKey: options.apiKey, baseUrl: options.baseUrl });
38
+ const sandbox = await client.create({
39
+ template: "base",
40
+ timeoutMs: PUBLICATION_TIMEOUT_MS,
41
+ lifecycle: { onTimeout: "kill" },
42
+ metadata: { product: "flakelab", role: "published-report" },
43
+ });
44
+ try {
45
+ await sandbox.connect();
46
+ await sandbox.files.mkdir("/work/flakelab-report");
47
+ await sandbox.files.write("/work/flakelab-report/index.html", await readFile(reportPath));
48
+ const server = await sandbox.commands.run("python3", {
49
+ args: ["-m", "http.server", String(REPORT_PORT), "--bind", "0.0.0.0"],
50
+ background: true,
51
+ cwd: "/work/flakelab-report",
52
+ });
53
+ if (server.exitCode !== 0) {
54
+ throw new Error("Solari could not start the report server");
55
+ }
56
+ const preview = await sandbox.previewUrl(REPORT_PORT);
57
+ await waitForPreview(preview.url);
58
+ sandbox.close();
59
+ return { expiresAt: sandbox.expiresAt, sandboxId: sandbox.id, url: preview.url };
60
+ }
61
+ catch (error) {
62
+ sandbox.close();
63
+ await sandbox.kill();
64
+ throw error;
65
+ }
66
+ }
67
+ //# sourceMappingURL=publish.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../src/report/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,WAAW,GAAG,KAAK,CAAA;AACzB,MAAM,sBAAsB,GAAG,EAAE,GAAG,MAAM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O,CAAC,KAAK,EAAE,CAAA;QACf,MAAM,OAAO,CAAC,IAAI,EAAE,CAAA;QACpB,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function redactText(value: string): string;
@@ -0,0 +1,58 @@
1
+ const SENSITIVE_NAMES = [
2
+ "api_key",
3
+ "apikey",
4
+ "authorization",
5
+ "password",
6
+ "secret",
7
+ "token",
8
+ ];
9
+ function redactBearerTokens(value) {
10
+ const parts = value.split(/(\s+)/u);
11
+ let redactNextValue = false;
12
+ for (let index = 0; index < parts.length; index += 1) {
13
+ if (redactNextValue && parts[index].trim()) {
14
+ parts[index] = "[REDACTED]";
15
+ redactNextValue = false;
16
+ }
17
+ else if (parts[index].toLowerCase() === "bearer") {
18
+ redactNextValue = true;
19
+ }
20
+ }
21
+ return parts.join("");
22
+ }
23
+ function redactAssignments(value) {
24
+ let result = value;
25
+ for (const name of SENSITIVE_NAMES) {
26
+ const pattern = new RegExp(`(${name}\\s*[:=]\\s*)[^\\s,;]+`, "giu");
27
+ result = result.replace(pattern, "$1[REDACTED]");
28
+ }
29
+ return result;
30
+ }
31
+ function redactUrlToken(token) {
32
+ if (!token.startsWith("http://") && !token.startsWith("https://")) {
33
+ return token;
34
+ }
35
+ try {
36
+ const url = new URL(token);
37
+ if (url.username || url.password) {
38
+ url.username = "redacted";
39
+ url.password = "";
40
+ }
41
+ for (const name of [...url.searchParams.keys()]) {
42
+ if (SENSITIVE_NAMES.some((sensitive) => name.toLowerCase().includes(sensitive))) {
43
+ url.searchParams.set(name, "[REDACTED]");
44
+ }
45
+ }
46
+ return url.toString();
47
+ }
48
+ catch {
49
+ return token;
50
+ }
51
+ }
52
+ export function redactText(value) {
53
+ return redactAssignments(redactBearerTokens(value))
54
+ .split(/(\s+)/u)
55
+ .map(redactUrlToken)
56
+ .join("");
57
+ }
58
+ //# sourceMappingURL=redaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redaction.js","sourceRoot":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AK,CAAA;IACd,CAAC;IACD,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAA;QAC1B,IAAI,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YACjC,GAAG,CAAC,QAAQ,GAAG,UAAU,CAAA;YACzB,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAA;QACnB,CAAC;QACD,KAAK,MAAM,IAAI,IAAI,CAAC,GAAG,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;YAChD,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;gBAChF,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;YAC1C,CAAC;QACH,CAAC;QACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAA;IACvB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAO,iBAAiB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;SAChD,KAAK,CAAC,QAAQ,CAAC;SACf,GAAG,CAAC,cAAc,CAAC;SACnB,IAAI,CAAC,EAAE,CAAC,CAAA;AACb,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { EvidenceReport } from "./schema.js";
2
+ interface ReportAppProps {
3
+ readonly report: EvidenceReport;
4
+ }
5
+ export declare function ReportApp({ report }: ReportAppProps): React.JSX.Element;
6
+ export {};
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArtifactSection } from "./components/artifacts.js";
3
+ import { ExperimentSection } from "./components/experiments.js";
4
+ import { HypothesisSection } from "./components/hypotheses.js";
5
+ import { formatTimestamp } from "./components/indicators.js";
6
+ import { ProofSection } from "./components/proof.js";
7
+ import { ReproductionSection } from "./components/reproduction.js";
8
+ import { EvidenceSummarySection } from "./components/summary.js";
9
+ import { VerdictSection } from "./components/verdict.js";
10
+ function Masthead({ report }) {
11
+ return _jsxs("header", { className: "masthead", children: [_jsxs("p", { className: "masthead-title", children: [_jsx("span", { className: "masthead-product", children: "FlakeLab" }), _jsx("span", { className: "masthead-kind", children: "Evidence report" })] }), _jsxs("dl", { className: "masthead-meta", children: [_jsxs("div", { children: [_jsx("dt", { children: "Generated" }), _jsx("dd", { children: formatTimestamp(report.generatedAt) })] }), _jsxs("div", { children: [_jsx("dt", { children: "Model" }), _jsx("dd", { children: report.model })] })] })] });
12
+ }
13
+ export function ReportApp({ report }) {
14
+ return _jsxs("div", { className: "page", children: [_jsx(Masthead, { report: report }), _jsxs("main", { children: [_jsxs("h1", { className: "page-title", children: ["Causal evidence for ", _jsx("code", { children: report.test })] }), _jsx(VerdictSection, { report: report }), _jsx(ReproductionSection, { report: report }), _jsx(EvidenceSummarySection, { report: report }), _jsx(ExperimentSection, { report: report }), _jsx(HypothesisSection, { report: report }), _jsx(ProofSection, { report: report }), _jsx(ArtifactSection, { report: report })] }), _jsxs("footer", { className: "colophon", children: [_jsx("p", { children: "Generated locally by FlakeLab. Evidence embedded and schema-validated at render." }), _jsx("p", { children: "No runtime network access \u00B7 credentials redacted \u00B7 content security policy enforced" })] })] });
15
+ }
16
+ //# sourceMappingURL=report-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-app.js","sourceRoot":"","sources":["../../src/report/report-app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAA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uF,EACvF,wHAA0F,IACnF,IACL,CAAA;AACR,CAAC"}
@@ -0,0 +1,182 @@
1
+ /* Hypotheses */
2
+
3
+ .group { margin-top: 20px; }
4
+ .group-title {
5
+ display: flex;
6
+ align-items: center;
7
+ gap: 9px;
8
+ margin: 0 0 10px;
9
+ font-family: var(--font-mono);
10
+ font-size: 11px;
11
+ letter-spacing: 0.1em;
12
+ text-transform: uppercase;
13
+ color: var(--text-muted);
14
+ }
15
+ .group-title::before { content: ""; width: 8px; height: 8px; border: 1.5px solid; border-radius: 1px; }
16
+ .group-confirmed .group-title::before { background: var(--pass); border-color: var(--pass); }
17
+ .group-proposed .group-title::before { border-color: var(--open); }
18
+ .group-rejected .group-title::before { border-color: var(--rule-strong); border-style: dashed; }
19
+ .group-count {
20
+ padding: 0 5px;
21
+ border: 1px solid var(--rule);
22
+ border-radius: 2px;
23
+ font-size: 10px;
24
+ color: var(--text-faint);
25
+ }
26
+
27
+ .hypothesis { margin: 0 0 14px; padding-left: 14px; border-left: 2px solid var(--rule); }
28
+ .hypothesis-confirmed { border-left-color: var(--pass); }
29
+ .hypothesis-proposed { border-left-color: var(--open); border-left-style: dotted; }
30
+ .hypothesis-rejected { border-left-color: var(--rule-strong); border-left-style: dashed; }
31
+ .hypothesis-head { display: flex; gap: 10px; margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; }
32
+ .hypothesis-id {
33
+ flex: none;
34
+ padding-top: 1px;
35
+ font-family: var(--font-mono);
36
+ font-size: 11px;
37
+ font-weight: 500;
38
+ color: var(--text-faint);
39
+ }
40
+ .hypothesis-statement { color: var(--text); }
41
+ .hypothesis-rejected .hypothesis-statement { color: var(--text-muted); font-weight: 500; }
42
+ .hypothesis-explanation {
43
+ margin: 0 0 8px;
44
+ max-width: 84ch;
45
+ font-size: 13px;
46
+ line-height: 1.7;
47
+ color: var(--text-muted);
48
+ }
49
+ .evidence-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
50
+ .evidence-label {
51
+ font-family: var(--font-mono);
52
+ font-size: 10px;
53
+ letter-spacing: 0.1em;
54
+ text-transform: uppercase;
55
+ color: var(--text-faint);
56
+ }
57
+ .ref {
58
+ padding: 0 5px;
59
+ border: 1px solid var(--rule);
60
+ border-radius: 2px;
61
+ font-family: var(--font-mono);
62
+ font-size: 11px;
63
+ color: var(--accent);
64
+ text-decoration: none;
65
+ }
66
+ .ref:hover { border-color: var(--accent); text-decoration: underline; }
67
+ .ref-missing { color: var(--text-faint); }
68
+
69
+ /* Proof of fix */
70
+
71
+ .delta {
72
+ margin: 14px 0 0;
73
+ padding: 14px 16px;
74
+ border: 1px solid var(--rule);
75
+ border-radius: 2px;
76
+ background: var(--surface);
77
+ }
78
+ .delta figcaption { margin-bottom: 12px; font-size: 11.5px; line-height: 1.5; color: var(--text-faint); }
79
+ .delta-bars { display: grid; gap: 10px; margin: 0; }
80
+ .delta-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px; }
81
+ .delta-row dt {
82
+ font-family: var(--font-mono);
83
+ font-size: 10.5px;
84
+ letter-spacing: 0.1em;
85
+ text-transform: uppercase;
86
+ color: var(--text-muted);
87
+ }
88
+ .delta-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
89
+ .delta .rate { gap: 12px; }
90
+ .delta .rate-value { min-width: 5ch; font-size: 15px; }
91
+ .delta .rate-track { width: min(280px, 42vw); height: 10px; }
92
+ .delta-counts { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
93
+
94
+ /* Artifacts */
95
+
96
+ .artifacts { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--rule); border-radius: 2px; }
97
+ .artifacts li + li { border-top: 1px solid var(--rule); }
98
+ .artifact {
99
+ display: grid;
100
+ grid-template-columns: 170px minmax(0, 1fr);
101
+ gap: 4px 16px;
102
+ padding: 9px 12px;
103
+ color: inherit;
104
+ text-decoration: none;
105
+ }
106
+ .artifact:hover { background: var(--surface); }
107
+ .artifact:focus-visible { outline-offset: -2px; background: var(--surface); }
108
+ .artifact-label {
109
+ font-family: var(--font-mono);
110
+ font-size: 10.5px;
111
+ letter-spacing: 0.1em;
112
+ text-transform: uppercase;
113
+ color: var(--text-faint);
114
+ }
115
+ .artifact-path { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); overflow-wrap: anywhere; }
116
+ .artifact:hover .artifact-path, .artifact:focus-visible .artifact-path { text-decoration: underline; }
117
+
118
+ /* Colophon */
119
+
120
+ .colophon {
121
+ display: flex;
122
+ flex-wrap: wrap;
123
+ justify-content: space-between;
124
+ gap: 6px 24px;
125
+ margin-top: 44px;
126
+ padding: 14px 0 44px;
127
+ border-top: 1px solid var(--rule);
128
+ }
129
+ .colophon p { margin: 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
130
+
131
+ /* Responsive */
132
+
133
+ @media (max-width: 900px) {
134
+ .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
135
+ .metric:nth-child(2) { border-right: 0; }
136
+ .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
137
+ }
138
+
139
+ @media (max-width: 640px) {
140
+ .page { width: calc(100% - 32px); }
141
+ .spec-row, .artifact { grid-template-columns: minmax(0, 1fr); }
142
+ .verdict-headline { font-size: 19px; }
143
+ .metric-value { font-size: 17px; }
144
+ .delta-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
145
+ .delta .rate-track { width: min(220px, 46vw); }
146
+ .masthead-meta { gap: 4px 20px; }
147
+ }
148
+
149
+ @media (prefers-reduced-motion: reduce) {
150
+ *, *::before, *::after {
151
+ animation-duration: 0.01ms !important;
152
+ animation-iteration-count: 1 !important;
153
+ transition-duration: 0.01ms !important;
154
+ scroll-behavior: auto !important;
155
+ }
156
+ }
157
+
158
+ /* Print */
159
+
160
+ @media print {
161
+ :root {
162
+ --bg: #ffffff;
163
+ --surface: #f6f7f8;
164
+ --stripe: #fbfbfc;
165
+ --track: #dfe3e6;
166
+ --rule: #d5d9dd;
167
+ --rule-strong: #a9b0b7;
168
+ --text: #101316;
169
+ --text-muted: #3f464d;
170
+ --text-faint: #666d74;
171
+ --accent: #10396e;
172
+ --pass: #10613a;
173
+ --fail: #8c1f18;
174
+ color-scheme: light;
175
+ }
176
+ .page { width: 100%; }
177
+ .table-scroll { overflow: visible; }
178
+ table.grid { min-width: 0; }
179
+ .verdict, .delta, .hypothesis, .artifacts li, table.grid tr { break-inside: avoid; }
180
+ .section-head { break-after: avoid; }
181
+ .colophon { padding-bottom: 0; }
182
+ }