
    iW                     .    d Z ddlmZmZ  G d de      Zy)u@  
Genesis Persistent Context Architecture — NullInterceptor + Scaffold
Story 1.05 — Track B

NullInterceptor: no-op passthrough for testing and reference.
Copy this file to create a new interceptor.

Usage:
    from core.interceptors.integration_contracts import NullInterceptor
    chain.register(NullInterceptor())
   )BaseInterceptorInterceptorMetadatac                   n    e Zd ZdZ eddd      ZdedefdZd	ededd
fdZde	dedefdZ
dedefdZy
)NullInterceptorad  
    No-op passthrough interceptor.

    All methods pass data through unchanged. Use as:
    1. A placeholder in the chain during development
    2. A reference implementation to copy when creating new interceptors
    3. A test double for chain-level integration testing

    Copy this class and customize the methods to create your own interceptor.
    null_interceptor2   T)namepriorityenabledtask_payloadreturnc                    K   |S w)zPass through unchanged. )selfr   s     @/mnt/e/genesis-system/core/interceptors/integration_contracts.pypre_executezNullInterceptor.pre_execute   s     s   resultNc                    K   yw)zNo-op. Does nothing.Nr   )r   r   r   s      r   post_executezNullInterceptor.post_execute"   s	     s   errorc                 &   K   t        |      |dS w)zReturns error details as dict.)r   r   )str)r   r   r   s      r   on_errorzNullInterceptor.on_error&   s     U\BBs   correction_payloadc                 ,   K   d|v rd|d    |d<   |S w)z3Prepends 'CORRECTION: ' to prompt field if present.promptzCORRECTION: r   )r   r   s     r   on_correctionzNullInterceptor.on_correction*   s.     ))-9:LX:V9W+Xx(!!s   )__name__
__module____qualname____doc__r   metadatadictr   r   	Exceptionr   r   r       r   r   r      sw    	 #(:RQUVHd t  T d CI CT Cd C"d "t "r%   r   N)r!   base_interceptorr   r   r   r   r%   r   <module>r'      s   
 C"o "r%   