@@ -46,7 +46,7 @@ describe('Decision Explainability (ADR-043)', () => {
4646 const raw = {
4747 decision_id : 'dec_wf1_step2' ,
4848 timestamp : '2026-04-17T12:00:00Z' ,
49- decision : 'deny ' ,
49+ decision : 'blocked ' ,
5050 reason : 'SQL injection detected' ,
5151 risk_level : 'high' ,
5252 policy_matches : [
@@ -83,7 +83,7 @@ describe('Decision Explainability (ADR-043)', () => {
8383 expect ( ( callArgs [ 1 ] as { method : string } ) . method ) . toBe ( 'GET' ) ;
8484
8585 expect ( exp . decisionId ) . toBe ( 'dec_wf1_step2' ) ;
86- expect ( exp . decision ) . toBe ( 'deny ' ) ;
86+ expect ( exp . decision ) . toBe ( 'blocked ' ) ;
8787 expect ( exp . policyMatches ) . toHaveLength ( 1 ) ;
8888 expect ( exp . policyMatches [ 0 ] . policyId ) . toBe ( 'pol-sqli' ) ;
8989 expect ( exp . policyMatches [ 0 ] . allowOverride ) . toBe ( true ) ;
@@ -101,7 +101,7 @@ describe('Decision Explainability (ADR-043)', () => {
101101 mockResponse ( {
102102 decision_id : 'a/b' ,
103103 timestamp : '2026-04-17T12:00:00Z' ,
104- decision : 'allow ' ,
104+ decision : 'allowed ' ,
105105 reason : '' ,
106106 policy_matches : [ ] ,
107107 override_available : false ,
@@ -118,7 +118,7 @@ describe('Decision Explainability (ADR-043)', () => {
118118 mockResponse ( {
119119 decision_id : 'dec-1' ,
120120 timestamp : '2026-04-17T12:00:00Z' ,
121- decision : 'allow ' ,
121+ decision : 'allowed ' ,
122122 reason : '' ,
123123 policy_matches : [ ] ,
124124 override_available : false ,
@@ -135,7 +135,7 @@ describe('Decision Explainability (ADR-043)', () => {
135135 mockResponse ( {
136136 decision_id : 'dec-ctx' ,
137137 timestamp : '2026-05-30T12:00:00Z' ,
138- decision : 'deny ' ,
138+ decision : 'blocked ' ,
139139 reason : '' ,
140140 policy_matches : [ ] ,
141141 override_available : false ,
@@ -162,7 +162,7 @@ describe('Decision Explainability (ADR-043)', () => {
162162 mockResponse ( {
163163 decision_id : 'dec-1' ,
164164 timestamp : '2026-04-17T12:00:00Z' ,
165- decision : 'allow ' ,
165+ decision : 'allowed ' ,
166166 reason : '' ,
167167 policy_matches : [ ] ,
168168 override_available : false ,
@@ -179,7 +179,7 @@ describe('Decision Explainability (ADR-043)', () => {
179179 mockResponse ( {
180180 decision_id : 'dec-1' ,
181181 timestamp : '2026-04-17T12:00:00Z' ,
182- decision : 'allow ' ,
182+ decision : 'allowed ' ,
183183 reason : '' ,
184184 policy_matches : [ ] ,
185185 override_available : false ,
@@ -278,21 +278,21 @@ describe('listDecisions (Session γ #1982)', () => {
278278 {
279279 decision_id : 'dec-1' ,
280280 timestamp : '2026-05-07T12:00:00Z' ,
281- decision : 'deny ' ,
281+ decision : 'blocked ' ,
282282 policy_id : 'pol-sqli' ,
283283 tool_signature : 'postgres.query' ,
284284 } ,
285285 {
286286 decision_id : 'dec-2' ,
287287 timestamp : '2026-05-07T11:00:00Z' ,
288- decision : 'allow ' ,
288+ decision : 'allowed ' ,
289289 policy_id : 'pol-default' ,
290290 tool_signature : 'github.status' ,
291291 } ,
292292 {
293293 decision_id : 'dec-3' ,
294294 timestamp : '2026-05-07T10:00:00Z' ,
295- decision : 'require_approval ' ,
295+ decision : 'needs_approval ' ,
296296 policy_id : 'pol-amount' ,
297297 tool_signature : 'stripe.charge' ,
298298 } ,
@@ -303,10 +303,10 @@ describe('listDecisions (Session γ #1982)', () => {
303303 const got = await client . listDecisions ( ) ;
304304 expect ( got ) . toHaveLength ( 3 ) ;
305305 expect ( got [ 0 ] . decisionId ) . toBe ( 'dec-1' ) ;
306- expect ( got [ 0 ] . decision ) . toBe ( 'deny ' ) ;
306+ expect ( got [ 0 ] . decision ) . toBe ( 'blocked ' ) ;
307307 expect ( got [ 0 ] . policyId ) . toBe ( 'pol-sqli' ) ;
308308 expect ( got [ 0 ] . toolSignature ) . toBe ( 'postgres.query' ) ;
309- expect ( got [ 2 ] . decision ) . toBe ( 'require_approval ' ) ;
309+ expect ( got [ 2 ] . decision ) . toBe ( 'needs_approval ' ) ;
310310 } ) ;
311311
312312 it ( 'surfaces the truncated request context on the summary (v8.4.0)' , async ( ) => {
@@ -316,7 +316,7 @@ describe('listDecisions (Session γ #1982)', () => {
316316 {
317317 decision_id : 'dec-ctx' ,
318318 timestamp : '2026-05-30T12:00:00Z' ,
319- decision : 'deny ' ,
319+ decision : 'blocked ' ,
320320 context : {
321321 x_ai_agent : 'refund-bot' ,
322322 x_session_id : 'sess-42' ,
@@ -338,7 +338,7 @@ describe('listDecisions (Session γ #1982)', () => {
338338 mockFetch . mockReturnValueOnce (
339339 ok ( {
340340 decisions : [
341- { decision_id : 'dec-noctx' , timestamp : '2026-05-30T12:00:00Z' , decision : 'allow ' } ,
341+ { decision_id : 'dec-noctx' , timestamp : '2026-05-30T12:00:00Z' , decision : 'allowed ' } ,
342342 ] ,
343343 } )
344344 ) ;
@@ -350,7 +350,7 @@ describe('listDecisions (Session γ #1982)', () => {
350350 mockFetch . mockReturnValueOnce ( ok ( { decisions : [ ] } ) ) ;
351351 const opts : ListDecisionsOptions = {
352352 since : new Date ( '2026-05-07T00:00:00Z' ) ,
353- decision : 'deny ' ,
353+ decision : 'blocked ' ,
354354 policyId : 'pol-sqli' ,
355355 toolSignature : 'postgres.query' ,
356356 limit : 25 ,
@@ -359,18 +359,18 @@ describe('listDecisions (Session γ #1982)', () => {
359359
360360 const calledUrl = mockFetch . mock . calls [ 0 ] [ 0 ] as string ;
361361 expect ( calledUrl ) . toContain ( 'since=2026-05-07T00%3A00%3A00Z' ) ;
362- expect ( calledUrl ) . toContain ( 'decision=deny ' ) ;
362+ expect ( calledUrl ) . toContain ( 'decision=blocked ' ) ;
363363 expect ( calledUrl ) . toContain ( 'policy_id=pol-sqli' ) ;
364364 expect ( calledUrl ) . toContain ( 'tool_signature=postgres.query' ) ;
365365 expect ( calledUrl ) . toContain ( 'limit=25' ) ;
366366 } ) ;
367367
368368 it ( 'omits unset filters from the URL' , async ( ) => {
369369 mockFetch . mockReturnValueOnce ( ok ( { decisions : [ ] } ) ) ;
370- await client . listDecisions ( { decision : 'deny ' } ) ;
370+ await client . listDecisions ( { decision : 'blocked ' } ) ;
371371
372372 const calledUrl = mockFetch . mock . calls [ 0 ] [ 0 ] as string ;
373- expect ( calledUrl ) . toContain ( '?decision=deny ' ) ;
373+ expect ( calledUrl ) . toContain ( '?decision=blocked ' ) ;
374374 expect ( calledUrl ) . not . toContain ( 'since=' ) ;
375375 expect ( calledUrl ) . not . toContain ( 'policy_id=' ) ;
376376 expect ( calledUrl ) . not . toContain ( 'tool_signature=' ) ;
@@ -441,7 +441,7 @@ describe('listDecisions (Session γ #1982)', () => {
441441 {
442442 decision_id : 'dec-fwd' ,
443443 timestamp : '2026-05-07T12:00:00Z' ,
444- decision : 'deny ' ,
444+ decision : 'blocked ' ,
445445 policy_id : 'pol-x' ,
446446 tool_signature : 'tool-x' ,
447447 policy_version : 7 ,
@@ -461,7 +461,7 @@ describe('listDecisions (Session γ #1982)', () => {
461461 mockFetch . mockReturnValueOnce (
462462 ok ( {
463463 decisions : [
464- { decision_id : 'dec-min' , timestamp : '2026-05-07T12:00:00Z' , decision : 'deny ' } ,
464+ { decision_id : 'dec-min' , timestamp : '2026-05-07T12:00:00Z' , decision : 'blocked ' } ,
465465 ] ,
466466 } )
467467 ) ;
@@ -478,7 +478,7 @@ describe('buildListDecisionsQuery (#1982)', () => {
478478 } ) ;
479479
480480 it ( 'omits unset fields and emits stable order' , ( ) => {
481- const qs = buildListDecisionsQuery ( { decision : 'deny ' , limit : 7 } ) ;
482- expect ( qs ) . toBe ( 'decision=deny &limit=7' ) ;
481+ const qs = buildListDecisionsQuery ( { decision : 'blocked ' , limit : 7 } ) ;
482+ expect ( qs ) . toBe ( 'decision=blocked &limit=7' ) ;
483483 } ) ;
484484} ) ;
0 commit comments