Pillar 4 — Full Pydantic AI & Pydantic-Graph Runtime Implementation¶
1. Architectural Purpose: Zero-Entropy Enforcement Around Bounded Probabilistic Agents¶
Pillars 1, 2, and 3 established:
1. Pillar 1 (jezz.behaviors): A complete Fibonacci-cardinal (\(F_8 = 21\)) basis of atomic coding-agent behaviors (BHV-01..BHV-21), adjacency matrix, and Kildall fixed-point dataflow laws.
2. Pillar 2 (jezz.codes, @jezz/blueprint): The 32-provision Jezz Software Building Code (JBC Edition 1.3) and coarse-grained BlueprintGraph LVS verifier enforced across CodePermit, Rough-In, Final Gate, and dual-digest SHA-256 CertificateOfOccupancy.
3. Pillar 3 (jezz.methodology): Permit-and-Contract Engineering (PCE)—a 5-phase anti-SDD, anti-Agile engineering process featuring Phase 0/I ProjectCharter intake, pre-flight LotLineAssessment, and audit_pce_dossier (\(\mathcal{I} \models_{\text{PCE}} \mathcal{M}\)).
Pillar 4 (jezz.agents) compiles all three pillars into an executable runtime built atop pydantic-ai, pydantic-graph, and strict pydantic schemas (STRICT_FROZEN_CONFIG). Rather than pasting a prose "constitution" into an LLM prompt and hoping it behaves, jezz.agents wraps bounded probabilistic pydantic_ai.Agent specialists inside a deterministic pydantic_graph.Graph state machine where capability boundaries, rollback checkpoints, static/dynamic inspections, and occupancy seals are enforced outside the LLM's authority.
2. Strictly Acyclic 5-Layer Package Topology (JBC-COG-003)¶
flowchart BT
L0["Layer 0: jezz.guards\n(@jezz_callable, STRICT_FROZEN_CONFIG, LoopBudget, RecursionBudget, ContainedPath)"]
L1["Layer 1: jezz.behaviors\n(21 BehaviorKinds, BehaviorGraph, Kildall Dataflow, AgentExecutionState)"]
L2["Layer 2: jezz.codes\n(32 JBC v1.3 Codes, BlueprintGraph + LVS, WorkspaceAstGraph, CodePermit, BuildingInspector, CertificateOfOccupancy)"]
L3["Layer 3: jezz.methodology\n(ProjectCharter, LotLineAssessment, EngineeringMandate, ModuleWriteScope DAG, EngineeringDossier, audit_pce_dossier)"]
L4["Layer 4: jezz.agents\n(WorkspaceSandbox, Specialist Agents, Routing, AtomicBehaviorGraphNodes, PceWorkflowOrchestrator)"]
L0 --> L1 --> L2 --> L3 --> L4
Within src/jezz/agents/, every production module is strictly \(\le 1,000\) LOC and internal imports obey a strict DAG:
agy_model.py / caching.py \(\to\) providers.py / polyglot_prompts.py / schemas.py \(\to\) env_introspect.py \(\to\) memory.py \(\to\) overlay_staging.py \(\to\) workspace.py \(\to\) polyglot_gates.py / provision.py \(\to\) specialist_board.py \(\to\) specialists.py \(\to\) routing.py \(\to\) nodes_context.py \(\to\) nodes_exec.py \(\to\) nodes.py \(\to\) orchestrator.py \(\to\) __init__.py.
3. The 21-Behavior Execution Board (BEHAVIOR_EXECUTION_BOARD)¶
Every BehaviorKind in the \(F_8 = 21\) basis is mapped bijectively inside BEHAVIOR_EXECUTION_BOARD (types.MappingProxyType, satisfying JBC-COG-004) and verified at runtime by validate_execution_board_invariants():
- Zero-Entropy Deterministic Engines (
ExecutionEngineKind.DETERMINISTIC_ENGINE,ToolsetAccessLevel.NONE— 7 behaviors): BHV-03 BIND_CODES,BHV-11 RECONCILE,BHV-12 CHECKPOINT,BHV-18 VERIFY_STATIC,BHV-19 VERIFY_DYNAMIC,BHV-20 REVERT,BHV-21 CERTIFY.- Invariant: No LLM can issue its own permit, reconcile write collisions via prose, skip a snapshot, waive a
RED_TAG, or forge aCertificateOfOccupancy. - Read-Only / Governance Pydantic AI Specialists (
ExecutionEngineKind.PYDANTIC_AI_AGENT,NONE/READ_ONLY— 9 behaviors): BHV-01 FRAME,BHV-02 ELICIT,BHV-04 INSPECT_CODE,BHV-05 INSPECT_ENV,BHV-06 CONSULT,BHV-07 CURATE_MEMORY,BHV-08 HYPOTHESIZE,BHV-09 DECOMPOSE,BHV-10 DELEGATE.- Equipped exclusively with
build_readonly_toolset()(_tool_list_authorized_files,_tool_read_workspace_file,_tool_inspect_file_symbols,_tool_query_ast_graph,_tool_find_symbol_callers,_tool_read_symbol_slice,_tool_inspect_package_api,_tool_consult_building_code;timeout=30.0s). Read-only epistemic behavior is enforced by capability absence, not prompt instruction. - Scoped-Write Pydantic AI Specialists (
ExecutionEngineKind.PYDANTIC_AI_AGENT,ToolsetAccessLevel.SCOPED_WRITE— 5 behaviors): BHV-13 PROVISION,BHV-14 SPECIFY,BHV-15 INSTRUMENT,BHV-16 SYNTHESIZE,BHV-17 REFACTOR.- Exact Capability Bijection:
SCOPED_WRITEis granted if and only ifBEHAVIOR_BASIS[k].workspace_effect == WorkspaceEffect.MUTATE.
4. Dual-Tier Self-Correction: @output_validator (ModelRetry) + Graph RED_TAG Rollback¶
jezz.agents enforces contracts at two complementary levels:
Tier 1 — Intra-Step pydantic-ai Breakers (workspace.py, env_introspect.py, specialists.py, nodes.py)¶
- Syntax, CST, & Closed-Schema Gate:
FilePatchArtifactparses.pypayloads viaast.parseinside a Pydantic@model_validator, while_enforce_patch_scope_and_parse(parse_any_source_unit) validates.ts/.tsx/.rs/.goCST syntax viatree-sitterwith fail-closedSyntaxErrorrejection, turning syntax errors into immediate structured-output retries. - PEP 695
TypeAliasTypeMisuse Gate (find_type_alias_misuse): Deterministically scans candidatesrc/andtests/ASTs againstjezz.guardsand workspacetype X = ...definitions (<= 100,000workspace units), blocking runtime-fatal calls (IdentifierStr("x")) and non-generic subscripts (BoundedInt[0, 10_000]) in<1msbefore Phase III lockscheckpoint_impl. - Staged Runtime Import & Schema Rebuild Gate (
verify_runtime_importable_patches): Stages only modified candidate modules (\(\mathcal{O}(|\Delta|)\) writes via_OverlayPatchFinderMetaPathFinder+spec_from_file_location, supporting bothsrc/and flat-layout Python repositories without copying untouched modules), imports candidate modules viaimportlib.import_module, and invokescls.model_rebuild(force=True)on everyBaseModelsubclass (catchingTypeError,PydanticUserError,AssertionError/icontract.ViolationError, and import-time metaclass crashes during_tool_preview_rough_in,_validate_specify_output,_validate_synthesize_output, and_validate_refactor_output). - Memoized Monorepo Discovery, Workspace AST Graph, & Differential Preview (
discovery.py,ast_graph.py,env_introspect.py): discover_workspace_unitsmemoizes immutableInspectedUnits via@functools.lru_cache(maxsize=8192)(0.09swarm reload across700-unit /291K-LOC monorepos), whilebuild_workspace_ast_graphconstructs a topological import/call map (WorkspaceAstGraph,<= 100,000modules /200,000symbols) whoseSymbolGraphEntry.signature_summaryembeds parameter annotations,BaseModel/struct schemas, andStrEnumliterals;_format_mandate_promptinjects read-only upstream signatures into downstream multi-mandate runs so specialists never guess existing module contracts.inspect_installed_package_api(_tool_inspect_package_api, withimportlib.invalidate_caches(),pkg.mod.Symbolparent-module fallback, and side-effectful root blocklist) and_tool_preview_rough_in(backed byinspect_differential_rough_inso per-unit rules evaluate only the candidate buffer whileJBC-COG-003retains whole-workspace cycle visibility) return structured# NOT_FOUND/RED_TAGstrings rather than raisingModelRetry, preventing exploratory tool calls from exhaustingFunctionToolsetretry ceilings (max_retries=4,timeout=30.0s).- Scope, Remediation, & Inline Snapshot Context:
_tool_preview_rough_inand_parse_and_rough_in_checkattach exact line numbers and statutory-> Fix: {f.remediation}instructions to everyRED_TAGviolation._JBC_CANONICAL_EXEMPLARprovides concise domain-agnosticjezz.guards,LoopBudget,MappingProxyType, andAnnotated[int, Field(...)]idioms, while_render_inline_authorized_snapshots(nodes.py) embeds existing authorized Phase III files (<= 24_000chars) directly into downstream prompts to eliminate redundant read-tool roundtrips.build_specify_agent,build_instrument_agent, andbuild_synthesize_agentenforceModuleWriteScopefile boundaries and verify all mandatedcontract_symbolsandverification_symbols exist in the combined AST.- Phase-Scoped Resource Breakers & Crash-Safe Rollback (
run_bounded_agent,orchestrator.py): Everyagent.run(...)call is wrapped inasync with asyncio.timeout(budget.agent_timeout_sec):(JBC-FLT-005) andpydantic_ai.UsageLimits(PceRuntimeBudget.request_limit_for(kind), defaulting to18onFRAME,28onSPECIFY, and36onINSTRUMENT/SYNTHESIZE/REFACTOR/DELEGATE), while_rollback_aborted_sandboxrestores the earliest workspace checkpoint if an uncaught timeout or transport exception aborts mid-run.
Tier 2 — Inter-Step pydantic-graph State Machine (nodes.py, orchestrator.py — 21 / 21 Behaviors)¶
flowchart TD
Frame["BHV-01 FRAME\nFrameNode"] -->|"open_ambiguities > 0"| Elicit["BHV-02 ELICIT\nElicitNode"]
Elicit -->|"clarifications supplied"| Frame
Frame -->|"unambiguous"| Bind["BHV-03 BIND_CODES\nBindCodesNode"]
Bind --> IEnv["BHV-05 INSPECT_ENV\nInspectEnvNode (.jezz/memory.json + Manifest)"]
IEnv --> Inspect["BHV-04 INSPECT_CODE\nInspectCodeNode"]
Inspect -->|"consultation_targets > 0"| Consult["BHV-06 CONSULT\nConsultNode"]
Inspect -->|"self-contained"| Decompose["BHV-09 DECOMPOSE\nDecomposeNode (AST-Grounded DAG)"]
Consult --> Decompose
Decompose -->|"greenfield or brownfield+tests or deps"| CkptC["BHV-12 CHECKPOINT\nCheckpointContractNode"]
Decompose -->|"brownfield (locked tests, no deps)"| CkptI["BHV-12 CHECKPOINT\nCheckpointImplNode"]
CkptC -->|"required_dependencies > 0"| Prov["BHV-13 PROVISION\nProvisionNode (ProvisionPort + Inspector Reload)"]
CkptC -->|"greenfield (no deps)"| Specify["BHV-14 SPECIFY\nSpecifyNode"]
CkptC -->|"renovate (no deps)"| Instrument["BHV-15 INSTRUMENT\nInstrumentNode (DAG-Wave TaskGroup)"]
Prov -->|"greenfield"| Specify
Prov -->|"renovate + tests"| Instrument
Prov -->|"renovate (locked tests)"| CkptI
Specify --> Instrument
Instrument --> CkptI
CkptI -->|"1 scope (greenfield)"| Synth["BHV-16 SYNTHESIZE\nSynthesizeNode"]
CkptI -->|"1 scope (renovate)"| Refactor["BHV-17 REFACTOR\nRefactorNode"]
CkptI -->|">1 disjoint scopes"| Delegate["BHV-10 DELEGATE\nDelegateNode (Multi-Wave TaskGroup)"]
Delegate --> Reconcile["BHV-11 RECONCILE\nReconcileNode"]
Synth --> VStatic["BHV-18 VERIFY_STATIC\nVerifyStaticNode (inspect_rough_in)"]
Refactor --> VStatic
Reconcile --> VStatic
VStatic -->|"APPROVED"| VDyn["BHV-19 VERIFY_DYNAMIC\nVerifyDynamicNode (inspect_final)"]
VStatic -->|"RED_TAG"| Revert["BHV-20 REVERT\nRevertNode (restore checkpoint_impl)"]
VDyn -->|"APPROVED"| Certify["BHV-21 CERTIFY\nCertifyNode (Seal + .jezz/memory.json + Dossier Audit)"]
VDyn -->|"RED_TAG"| Revert
Revert -->|"budget remaining"| Hyp["BHV-08 HYPOTHESIZE\nHypothesizeNode"]
Revert -->|"LoopBudget exhausted"| Elicit
Hyp --> Curate["BHV-07 CURATE_MEMORY\nCurateMemoryNode (Preserve Invariants + Negations)"]
Curate -->|"impl fault"| CkptI
Curate -->|"test-only static/mypy fault"| Instrument
Key Runtime Guarantees¶
- Ambiguity Dominance & Resumable Authority Loop (
FRAME -> ELICIT -> FRAME): AnyEngineeringMandatewith non-emptyopen_ambiguitiestransitions immediately toElicitNodewithout touching disk, while--plan-only(PceRunStatus.HALTED_FOR_PLAN_APPROVAL) halts cleanly afterDecomposeNodeso humans can inspect--write-mandatebefore Phase III mutation. When authoritative clarifications are supplied (via opt-in--interactiveTTY callback bounded byLoopBudget, or out-of-process viaElicitationTicketandjezz run --resume-elicitation ... --clarification ...), execution re-entersFrameNode(reframe_resolved) in strict compliance with Pillar 1'sELICIT -> FRAMEtransition law. - Brownfield Renovation & Differential Occupancy Ratchet (
PceWorkflowMode.RENOVATE/BHV-17 REFACTOR/jezz renovate [--ratchet]): Renovates existingRED_TAGPython, TypeScript, Rust, or Go repositories toJBCv1.3 occupancy (--profile standard|strict_internal) while preserving observable public behavior—recording baselineBuildingInspectorcitations duringInspectCodeNode, optionally locking/upgrading test suites (tests/...,*.test.ts,*_test.go) viaInstrumentNode, and executingRefactorNode(build_refactor_agent) or parallelDelegateNodeworkers against locked tests. Passing--ratchet(PceRuntimeBudget.ratchet_to_scope=True,EngineeringDossier.ratchet_scoped=True) activatesinspect_differential_finalacrossInspectCodeNode,VerifyStaticNode,VerifyDynamicNode, andCertifyNodeAND scopes dynamic/compiler gates (mypy+pytest,vitest/node --test,cargo check/cargo test -p <member>,go vet/go test ./<pkg>, with configurable watchdogs up to600svia--gate-timeoutor[tool.jezz.gates]) to authorized targets, isolating untouched legacy debt in large brownfield monorepos. - AST-Grounded Topological DAG Planning & Multi-Wave Parallel Execution (
DECOMPOSE,INSTRUMENT,DELEGATE -> RECONCILE): Post-inspectionDecomposeNode(build_decompose_agent) refines multi-scope mandates againstWorkspaceAstGraphand validates acyclicModuleWriteScope.depends_onwaves viacompute_scope_execution_waves.InstrumentNodefans out concurrentasyncio.TaskGroupworkers across independent test-owning scopes, andDelegateNodeexecutes topological waves sequentially (parallelizing independent scopes within each wave while exposing completed upstream module snapshots to downstream waves).ReconcileNodeproves pairwise file-set disjointness before committing to the workspace. - Anti-Blind-Retry Remediation (
RED_TAG -> REVERT -> HYPOTHESIZE -> CURATE_MEMORY -> CHECKPOINT): If Rough-In or Final inspection issues aRED_TAG(withGateAttestation.summarycapturing exactmypy/pyteststderr diagnostics inJBC-VRF-005/006),RevertNodeforwards pre-revert candidate snapshots toHypothesizeNode, restorescheckpoint_impl, records citations inWorldModelState.falsified_paths, ticks a deterministicLoopBudget, and forces causal diagnosis (BHV-08) followed byCurateMemoryNode(BHV-07) compaction preserving active invariants and negations. Implementation faults route back toCheckpointImplNode, whereas test-only static/mypyfaults (strictly excludingpytestfailures so tests can never be weakened to pass broken code) route viaCheckpointContractNode -> InstrumentNode. IfLoopBudgetis exhausted,RevertNoderestores the clean baseline (checkpoint_contractwhen test edits faulted) and escalates viaElicitNode(PceRunStatus.ESCALATED_AFTER_RED_TAG). - Trace & Dossier Soundness: Every terminating execution path—whether
HALTED_FOR_ELICITATION,HALTED_FOR_PLAN_APPROVAL,ESCALATED_AFTER_RED_TAG, 1-passOCCUPANCY_CERTIFIED,ELICIT -> FRAMEresumedOCCUPANCY_CERTIFIED, brownfieldRENOVATEOCCUPANCY_CERTIFIED, or multi-cycle self-healedOCCUPANCY_CERTIFIED—induces a mathematically valid Pillar 1BehaviorGraph(verify_behavior_graph(result.induced_graph).is_valid == True), and every certified run passesaudit_pce_dossieracross all fivePCEphases. - Multi-Model Specialist Routing & Scheme-Routed Credential Isolation (
routing.py,secrets.py):[tool.jezz.models](plus[tool.jezz.models.roles]) and CLI tier flags (--architect-modelforFRAME/DECOMPOSE/SPECIFY/HYPOTHESIZE,--builder-modelforPROVISION/INSTRUMENT/SYNTHESIZE/REFACTOR,--inspector-modelforINSPECT_CODE/INSPECT_ENV/CONSULT/CURATE_MEMORY, and--model) resolve all 12SpecialistRoleSlot/PceModelSuiteslots deterministically. Per-providerSecretStrcredentials resolve throughSecretProviderRegistryacrossenv://,pass://(Proton Pass CLI withPROTON_PASS_AGENT_REASON),op://(1Password CLI), andkeychain://(macOS Keychain / Linuxsecret-tool) with 4-tier--secret-uri -> workspace pyproject.toml -> user config.toml -> canonical envprecedence, blocking cross-provider--secret-urileakage (JBC-SEC-002) and stamping exactmodel_idprovenance inAgentInvocationTelemetry. - Full \(F_8 = 21\) Runtime Node Closure, Lot-Line Pre-Flight, Multi-Ecosystem Provisioning, Offline Polyglot
CONSULT, & Dual-Digest Certification (env_introspect.py,memory.py,provision.py,polyglot_gates.py,polyglot_prompts.py,nodes.py):PCE_BEHAVIOR_NODE_MAPandvalidate_runtime_node_coverage()bind all21 / 21BehaviorKinds to22reachableAtomicBehaviorGraphNodesubclasses across Python, TypeScript, Rust, and Go.InspectEnvNode(BHV-05) hydrates<repo>/.jezz/memory.json(WorkspaceMemoryLedger) and checks missing dependencies across all active workspace ecosystems (pyproject.toml,package.json,Cargo.toml,go.mod);ConsultNode(BHV-06) resolves offlineConsultTargetStrreferences spanningJBCclauses (_tool_consult_building_code),ContainedPath-confined workspace docs (docs/...), and local polyglot package signatures (py:<mod>,npm:<pkg>,crate:<name>,go:<pkg>viainspect_polyglot_package_api);DecomposeNode(BHV-09) evaluatesassess_mandate_lot_linepre-flight and routes unapprovedLOT_LINE_SPLITdispositions toElicitNodeprior to mutation;ProvisionNode(BHV-13) groupsEngineeringMandate.required_dependenciesbyDependencyRequirement.ecosystemafterCheckpointContractNodeviaProvisionPort(uv add,npm install,cargo add,go get), reloadsBuildingInspector(JBC-VRF-003), and atomically rolls back manifests + lockfiles on failure orRED_TAGexhaustion;VerifyDynamicNode(BHV-19) dispatchesPolyglotSubprocessGateRunnerevaluated under universalall(...)conjunction incheck_vrf_005/006;CurateMemoryNode(BHV-07) compacts remediation observations without dropping active invariants orfalsified_pathsnegations; andCertifyNode(BHV-21) seals bothartifact_digestandextract_blueprint(...).netlist_digestintoCertificateOfOccupancyplus.jezz/memory.json. - Hot-Reloading Workspace-Jailed Polyglot Statutory MCP Gate Server (
mcp_server.py,mcp_charter.py,mcp_blueprint.py,mcp_reload.py,jezz mcp): Decouples Pillars 1–3 verification and statefulActiveWorkPermitgovernance from the autonomousPceWorkflowOrchestratorso external host agents can invokejezzoverstdioMCP across Python (.py), TypeScript (.ts/.tsx), Rust (.rs), and Go (.go) with zero shell, network, or secret access.HotReloadSupervisor(mcp_reload.py) hashes(rel_path, st_mtime_ns, st_size)acrosssrc/jezz/**/*.py(compute_package_fingerprint): unchanged state executes in-process with zero subprocess overhead, live edits transparently dispatch through a freshsys.executable -Pworker subprocess, and transient mid-editSyntaxError/ImportErrorfaults fall back seamlessly to a materialized compile-verifiedhealthy_sourcessnapshot.JezzWorkspaceGatejails all filesystem paths insideanchor_root(--root) viaContainedPath(JBC-SEC-005) and exposes 21 structured tools (16read_only_hint=True+5read_only_hint=Falsepermit/custom-code/learning tools):jbc_list_codes,jbc_get_code,jbc_verify_behavior_graph,jbc_inspect_workspace,jbc_inspect_differential,jbc_preview_source(in-memory.py/.ts/.tsx/.rs/.gooverlay preserving whole-workspaceJBC-COG-003/JBC-COG-006topology, custom.jezz/codes/*.tomlprovisions, and inter-procedural call-flow checks before disk write),jbc_prove_contracts(bounded Z3 SMT contract non-vacuity and deductive postcondition proof discharge),jbc_query_ast_graph,jbc_assess_lot_line,pce_start_intake,pce_seal_charter,jbc_extract_blueprint,jbc_verify_blueprint_lvs,jbc_audit_dossier,pce_permit_status,pce_open_permit,pce_verify_red_test,pce_seal_permit,jbc_verify_custom_code,jbc_onboard_custom_code, andpce_record_observation. - Portable Antigravity Plugin,
PreToolUsePermit Gate,StopLifecycle Ratchet, & 3-Tier Self-Healing (plugin.py,hooks.py,memory.py,jezz init,jezz hook {pre-tool,stop}):jezz initgenerates a zero-hardcoded-path.agents/plugins/jezz/bundle (plugin.json,mcp_config.json,hooks.json,rules/AGENTS.md,skills/pce/SKILL.md) and optional.git/hooks/pre-commitratchet, resolvingREPO_ROOTdynamically at runtime from${PLUGIN_ROOT}anddirname -- "$0"(JBC-SEC-006). Before every tool call (matcher = ".*"),jezz hook pre-tool(python -m jezz.hooks pre-tool) enforces a default-deny read-only tool and quote-tokenized shell allowlist (classify_shell_command, permitting safegit fetch/switch -c, feature-branchgit push, and non-admingh pr merge --squash [--auto]), unconditionally blocks.venv/**,.git/**, and.jezz/{active_permit.json,permit.json,dossiers/**}underTAMPER_GUARD, and gates governed source edits on an integrity-hashed (orJEZZ_PERMIT_HMAC_KEY-authenticated)ActiveWorkPermitadvancing fromINSTRUMENT_REDtoSYNTHESIZE_GREENviapce_verify_red_test. At turn completion,jezz hook stopevaluatesinspect_differential_rough_inagainstHEAD, returning{"decision": "continue", "reason": "..."}on unwaivedJBCv1.3 or custom-codeRED_TAGfindings and{"decision": "allow"}once clean occupancy is restored, while promoted Tier-2.jezz/learnings.jsonrecipes (jezz learn triage|record|promote) inject inside<untrusted_workspace_learnings>delimiter tags into both specialist prompts andStop-hook remediation messages. - Cross-Provider Prompt Caching, Zero-Credential
antigravity:<model>Adapter, & Authenticated Provider Factory (agy_model.py,caching.py,providers.py,specialists.py,nodes.py):PromptCacheMode(autodefault,off,prefix-only,5m,30m,1h,12h) configurespydantic_ai.ModelSettings(cache=...)across[tool.jezz.models].prompt_cacheand--prompt-cache, whileAntigravityCliModel(antigravity:<slug>, e.g.antigravity:claude-opus-5-5-medium,antigravity:claude-sonnet-5-5-medium,antigravity:gpt-oss-120b-medium) bridgespydantic-aistructured output and multi-turn--conversation <id>prefix caches over the localagyCLI with zero external API keys (isolating each subprocess turn inside an ephemeralTemporaryDirectorybecauseagy --printexposes no host-tool disable flag, and explicitly rejecting unsupportedrequest_streaminvocations withUserError). All4JBCconstruction specialists (SPECIFY,INSTRUMENT,SYNTHESIZE,REFACTOR) emit identical leading staticInstructionParts(JBC_STATUTORY_BRIEF, JBC_CANONICAL_EXEMPLAR, specialist_role)(dynamic=False), whileInstrumentNode,SynthesizeNode,RefactorNode, and parallelDelegateNodeslices insertCachePointmarkers between sharedMandate + Snapshotsprefixes and worker/remediation suffixes (automatically coalesced into a singlePartDicton implicit-prefix models vianormalize_prompt_for_model).AgentInvocationTelemetryandPceWorkflowResulttrackcache_read_tokens,cache_write_tokens,cache_hit_ratio, andeffective_billed_input_tokens, andverify_cross_provider_agent_compatibility(jezz.evals.cross_provider) verifies all16(12PCE+4SDD) agents across10Google, Anthropic, OpenAI (Chat & Responses), OpenRouter, and Antigravity wire adapters (640 / 640probes).