cyberneticlibrary

Refactor transformer block with gates

finish-l2-transformer-blockworkflowsetup L32
OriPekelman/toy
What it does

Lift the seq-forward block body (build_seq_block + build_seq_qhead) out of the m

Best for

Continuing the toy-framework P2 refactor after L1: extract the L2 TransformerBlock as a single gated unit.

Inputs
  • · args object with workflow parameters
Outputs
  • · structured JSON with findings or results
Preconditions

Valid args; agent dispatch configured; schema validation enabled

Failure modes
  • · Invalid or missing args
  • · Agent dispatch error
  • · Schema validation failure
  • · Token budget exceeded
  • · Barrier/gate failure
Trust signals
  • · Structured output schemas
  • · Multi-phase barriers
  • · Adversarial verification
  • · Specialized agent lenses