@atbash/sdk 0.7.1-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.
@@ -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/browser.mjs CHANGED
@@ -43881,6 +43881,7 @@ var Atbash = class _Atbash {
43881
43881
  onChain: Boolean(data.on_chain),
43882
43882
  enforced: Boolean(data.enforced),
43883
43883
  enforcementMode: String(data.enforcement_mode ?? ""),
43884
+ status: String(data.status ?? ""),
43884
43885
  score
43885
43886
  };
43886
43887
  }
@@ -43922,6 +43923,12 @@ var Atbash = class _Atbash {
43922
43923
  resolved: input.resolved
43923
43924
  });
43924
43925
  if (result.verdict === "No verdict") {
43926
+ if (result.status !== "logged") {
43927
+ return this.fail(
43928
+ `judge returned no verdict without an audit-tier marker (status: ${result.status || "absent"})`,
43929
+ result.toolCallId
43930
+ );
43931
+ }
43925
43932
  return {
43926
43933
  allow: true,
43927
43934
  verdict: "ALLOW",