@atbash/sdk 0.7.0-dev.0 → 0.7.2-dev.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.
package/dist/index.d.mts CHANGED
@@ -160,6 +160,13 @@ interface JudgeResult {
160
160
  enforced: boolean;
161
161
  /** Server-reported protection mode: `off`, `monitor`, or `enforce`. */
162
162
  enforcementMode: string;
163
+ /**
164
+ * Server-reported response status. The judge sets `"logged"` on the AUDIT
165
+ * tier, where it deliberately returns no verdict. This is the ONLY signal
166
+ * that distinguishes "the server chose not to enforce" from "the verdict is
167
+ * missing" — never infer the former from a null verdict alone.
168
+ */
169
+ status: string;
163
170
  }
164
171
  interface JudgmentStatus {
165
172
  status: JudgmentState;
package/dist/index.d.ts CHANGED
@@ -160,6 +160,13 @@ interface JudgeResult {
160
160
  enforced: boolean;
161
161
  /** Server-reported protection mode: `off`, `monitor`, or `enforce`. */
162
162
  enforcementMode: string;
163
+ /**
164
+ * Server-reported response status. The judge sets `"logged"` on the AUDIT
165
+ * tier, where it deliberately returns no verdict. This is the ONLY signal
166
+ * that distinguishes "the server chose not to enforce" from "the verdict is
167
+ * missing" — never infer the former from a null verdict alone.
168
+ */
169
+ status: string;
163
170
  }
164
171
  interface JudgmentStatus {
165
172
  status: JudgmentState;
package/dist/index.js CHANGED
@@ -3560,6 +3560,7 @@ var Atbash = class _Atbash {
3560
3560
  onChain: Boolean(data.on_chain),
3561
3561
  enforced: Boolean(data.enforced),
3562
3562
  enforcementMode: String(data.enforcement_mode ?? ""),
3563
+ status: String(data.status ?? ""),
3563
3564
  score
3564
3565
  };
3565
3566
  }
@@ -3601,6 +3602,12 @@ var Atbash = class _Atbash {
3601
3602
  resolved: input.resolved
3602
3603
  });
3603
3604
  if (result.verdict === "No verdict") {
3605
+ if (result.status !== "logged") {
3606
+ return this.fail(
3607
+ `judge returned no verdict without an audit-tier marker (status: ${result.status || "absent"})`,
3608
+ result.toolCallId
3609
+ );
3610
+ }
3604
3611
  return {
3605
3612
  allow: true,
3606
3613
  verdict: "ALLOW",