test: assert structured recovery facts instead of recovery wording in tests/ (#12723)

Drop recovery-sentence locks when a structured field or the owning
formatter already carries the fact, and own this batch's per-test
temporary directories through createTestTempDirectory. Keep setting
names, caller data, and prose that has no structured carrier.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
morlutoandCursor Agent authored and GitHub committed 2026-11-19 23:03:53 -05:00
1 parent 847c2d5253
commit bb8e6833eb
19 files changed
+339 -430

No files matched your search

@@ -96,8 +96,16 @@ it("does not recommend a timer above the supported maximum", () => {
sqliteDatabaseDialect("/selected.db", "worker", undefined, 2_147_483_647),
),
);
expect(failure.details).toMatchObject({ timeout_ms: 2_147_483_647 });
expect(failure.remediation.action).toContain("no higher worker deadline");
expect(failure.details).toMatchObject({
timeout_ms: 2_147_483_647,
limit: {
control_kind: "parameter",
parameter: "worker_timeout_ms",
effective_value: 2_147_483_647,
maximum: 2_147_483_647,
applies_at: "next_call",
},
});
expect(failure.remediation.action).not.toContain("Increase");
});
@@ -116,12 +124,17 @@ it("reports exceeded diagnostic capture as a fixed resource constraint", () => {
reported_limits: {
diagnostic_capture_bytes: SQLITE_DATABASE_LIMITS.diagnosticBytes,
},
refusal: {
kind: "fixed_ceiling",
allowance_kind: "capture",
limit: SQLITE_DATABASE_LIMITS.diagnosticBytes,
unit: "bytes",
},
},
});
expect(projected.remediation.action).toContain(
String(SQLITE_DATABASE_LIMITS.diagnosticBytes),
);
expect(projected.remediation.action).toContain("no runtime override");
expect(projected.remediation.action).toContain(
"worker_timeout_ms does not raise it",
);