Skip to content

Fraktal/AB — Allen-Bradley (Logix) Binding (Part III)

Unified PLC Programming Standard · Part III: the Allen-Bradley Logix binding of Fraktal Core

Status: Draft — R0–R6 all record PASS; Phase 4 in progress: the runtime base runs in its generated form and the press demo executes on the bench. Part III of III (Part I: Fraktal_Core_Part_I.md; Part II: Fraktal_TC3_Part_II.md) Platform: Rockwell Automation Logix (ControlLogix / CompactLogix / GuardLogix) · Studio 5000 Logix Designer · IEC 61131-3 subset without the OOP extensions

Every clause in this Part binds a Core contract and cites it as Core §x.y; a binding clause carries the number of the Core clause it realizes. Nothing here introduces new normative model content — tiers, contracts, state machines, diagnostics and routing live in Part I. A port to another platform re-implements this document only (Core §1.1 O8).


This Part was written before the Phase 0 spikes of ALLEN_BRADLEY_PORT_PLAN.md. That is deliberate: a binding document with explicit holes drives a spike programme far better than a spike list drives a document. But it means the two kinds of clause here must never be confused.

Marker Meaning
(unmarked) Fraktal’s decision to make. Architecture, naming, structure, generation and gate rules. Normative now; changing it is a specification change.
[PROVISIONAL Sn] Depends on Rockwell platform behaviour not yet verified on a controller. Reflects the current best understanding, is not a conformance claim, and is settled by spike Sn.

No [PROVISIONAL] clause may be cited as conformance evidence. Phase 0 either confirms the clause, rewrites it, or escalates to a Core amendment. AB §12 is the register of every one of them.

Implementation-readiness rule. Only disposable Phase 0 fixtures may be written while this document is pre-spike. Runtime/library implementation shall not begin until all of these gates are recorded as PASS:

Gate Status Required evidence
R0 Core authority PASS OOP-neutral lifecycle and transport-neutral Self-Description Service accepted in Core, with TC3 re-audited; evidence: AB_R0_CORE_AUTHORITY_EVIDENCE.md
R1 platform baseline PASS named controller catalogue, firmware, Studio 5000 edition/version and usable licence, communication module/route, and gateway-host baseline; evidence: AB_R1_PLATFORM_BASELINE_EVIDENCE.md
R2 executable shape PASS S1/S2/S4/S11/S12 prove CIP, both sequence execution forms, L5X fidelity, scan ordering, restart behavior, and the physical type map, and all five now record PASS: AB_S1_CIP_DATA_PATH_EVIDENCE.md, AB_S2_AOI_PARAMETER_EVIDENCE.md, AB_S11_SEQUENCE_EXECUTION_EVIDENCE.md, AB_S12_TYPE_MAP_EVIDENCE.md, AB_S4_S15_OFFLINE_ROUNDTRIP_EVIDENCE.md, AB_PHASE0_PHYSICAL_EXECUTION_EVIDENCE.md
R3 frozen contracts PASS versioned manifest, mailbox, registry, repository-handshake, quality/timestamp, and host-event schemas, frozen at version 1 in AB_FROZEN_CONTRACTS_V1.json and gated against this document by tools/check_ab_contracts.py; capacities remain owned holes. Evidence: AB_R3_FROZEN_CONTRACTS.md
R4 gates PASS a fresh clone regenerates every fixture from an SDK seed, imports each at 0/0, round-trips each canonically, passes a generated-versus-exported census, and clears Studio v33 Verify Controller at 0/0 on all nine legs; canonical form proved stable across seeds. Studio Verify needs a logged-in desktop and download is deliberately not automated — both itemised rather than glossed; evidence: AB_R4_REGENERATION_GATE_EVIDENCE_2026-09-06.md
R5 test execution PASS the disposable reference suite — two reference types with the module type instantiated twice — is regenerated by the gate, Verified 0/0, allow-list audited, downloaded to the named bench and executed: nine machine-readable rows, all PASS on three consecutive runs, cross-talk zero. Echo is unavailable, so the CI path is the named isolated hardware with the download as an authorized manual step, recorded as a deliberate narrowing; evidence: AB_R5_REFERENCE_SUITE_EVIDENCE_2026-09-06.md
R6 security PASS for the declared read-only claim zone/conduit Z-CTRL/Z-ENG with C-EIP/C-ENG and a declared SL-T 1 / SL-C 0; the External Access allow-list audit run against both downloaded fixtures, Conforms: true; the three-state client identity model with the transport’s weakness stated; Core §14.2/§14.3 secret handling inherited; and an update lifecycle of regeneration gate plus recorded rollback. CIP Security, SL 2 and writes are explicitly not claimed; evidence: AB_R6_SECURITY_EVIDENCE.md

A failed gate changes this binding or stops the port; it is not converted into an undocumented implementation exception. Passing this documentation audit means the spike programme is complete enough to start—not that these open gates have already passed.

R0 authority is settled. Core §2.2/§3.14/§5.5 now defines the lifecycle obligation independently of inheritance and permits a binding to discharge it through machine-checked generated composition. Core §3.10/§4.8/§7.7/§11 now defines the transport-neutral Fraktal Self-Description Service and binding-qualified optional projections. Part II continues to bind that service to TF6100 OPC UA; this Part binds it by default to EtherNet/IP explicit messaging plus the Fraktal gateway, with OPC UA as an alternative. The exact amendments, objective check and TC3 compatibility audit are recorded in AB_R0_CORE_AUTHORITY_EVIDENCE.md.


AB §1 — Binding identity & technology baseline

Section titled “AB §1 — Binding identity & technology baseline”

Binds Core §1.1 (technology baseline), §1.2 (scope), §1.6 (definitions).

Fraktal/AB is the Allen-Bradley Logix binding of Fraktal Core. Conformance claims compose as “Fraktal Core + Fraktal/AB (+ profiles)” (Core §1.1 O8).

Technology baseline. Logix controllers programmed in Studio 5000 Logix Designer, using Add-On Instructions, UDTs and the IEC-subset languages Logix provides (ST, Ladder, FBD, SFC); EtherNet/IP (CIP) for fieldbus and device integration (AB §10); GuardLogix / CIP Safety for functional safety (AB §9); EtherNet/IP explicit messaging plus one Fraktal gateway is the default for connectivity and self-description (AB §3.10, AB §11); the same generic Flutter HMI domain and UI consumes the same repository contract (Core §3.13). The gateway and repository transport adapter require the neutral protocol work in AB §11.3; “same HMI” never means “no transport implementation changes”.

Alternative connectivity. OPC UA remains a permitted alternative transport or north-bound projection—embedded where the named controller/firmware supports and proves it, or through a gateway (AB §11.7–§11.11). It is never a prerequisite and does not replace EtherNet/IP as the Fraktal/AB default.

Binding definitions (extends the Core §1.6 table):

Term Meaning
AOI Add-On Instruction — the Logix reusable code unit. No inheritance, methods, interfaces or dynamic dispatch.
UDT User-Defined Type — the Logix structure type. Composition only.
L5X The Studio 5000 XML export/import form (AB §2.5).
CIP / EtherNet/IP Common Industrial Protocol / its Ethernet transport (AB §10, AB §11).
FRK_Manifest The controller-resident live self-description record (AB §3.10).
FRK_Registry The controller-scope array of module contract rows (AB §3.2).
Fraktal gateway The host process translating CIP into the Fraktal repository protocol (AB §11.2).

AB §2 — Development & runtime environment

Section titled “AB §2 — Development & runtime environment”

Binds Core §2 (pinned-toolchain rule).

  • The exact Studio 5000 Logix Designer version, controller catalogue number and firmware revision shall be pinned per project and recorded; every station on a line uses the same pinned versions.
  • The recommended deployment baseline is firmware v37 or above on a CIP Security-capable controller family, because that is the only baseline where AB §11.2.1’s recommended security posture is available at all. Older families remain supported through the legacy zone-and-conduit posture.

The evidence baseline and the recommended baseline are not the same, and this matters. Every Phase 0 spike was proved on the available bench: a 1769-L24ER-QB1B at firmware 33.014 with Studio v33. Those results are valid for what they measured and are the reason the legacy posture is supported at all. They are not evidence about a v37+ controller. S2, S4, S11 and S12 each record that a different family or revision reruns the spike, and the S12 type map is explicitly a property of this controller — a v37+ family may well offer LREAL and a native TIME, which would change the generated contract. A project pinning the recommended baseline therefore owes a rerun of the target-specific spikes on that target before it can claim conformance; it does not inherit the v33 numbers.

  • The framework requires no language extension beyond the Logix base instruction set and AOIs. Where Part II relies on OOP, this binding relies on composition plus generation (AB §3.14).

Binds Core §2.2.

  • The framework ships as a versioned set of AOI and UDT definitions exported as L5X, plus the generator that emits per-type code (AB §5.2). A project imports a pinned release; it never copies and edits a framework AOI.
  • AOI definitions carry a Revision and Revision Note; the Fraktal semantic version shall be recorded there and in the manifest, so a running controller can be asked which framework version it holds.
  • AOI signature versioning follows the pinned-v33 S2 import/Verify result. An appended optional atomic Input with a compatible default may be a minor revision only when import and every existing invocation Verify with zero errors/warnings. An added required parameter, any added InOut, removal, retype, reorder, or meaning change is breaking and requires a major revision plus coordinated regeneration. No optional-Output compatibility is inferred without its own evidence. See AB_S2_AOI_PARAMETER_EVIDENCE.md.

Binds Core §2 note; baseline in AB §4.1.

  • Controller firmware major revision and Logix Designer major version shall match and the tested minor/build pair shall be recorded in the binding evidence. A project may claim only controller families in that matrix.
  • Required licensed components—Logix Designer edition, Logix Designer SDK, FactoryTalk Logix Echo, and the gateway’s CIP stack—shall be named with their versions. “Available on a developer workstation” is not a CI baseline.
  • Source protection shall not encode any generated AOI/routine needed by lint, regeneration, review, or conformance evidence. A delivered release may be signed/sealed only after its clear reviewed source and reproducible signature input are archived.

Binds Core §2.5. The text-diffable storage form is L5X export.

This is load-bearing far beyond source control. Every Fraktal gate — lint, generation, manifest-consistency, structural checks — reads the exported text. A binding whose source cannot be exported, diffed and re-imported faithfully cannot be gated, and Core §1.5 makes a CI/lint gate a shall.

  • The exported L5X shall be the reviewed artifact. Generated code is generated into L5X, never typed into the IDE and exported afterwards.
  • [PROVISIONAL S4] L5X round-trip must be stable — export → import → export produces an equal document modulo a declared ignore-list (timestamps, edit metadata). If it is not stable, the gate compares a canonicalised form, and AB §5.3 defines that canonicalisation. If it is not faithful, the binding is not viable in its present shape and Phase 0 escalates.

Binds Core §2.6, §5.7.

Every reusable type runs against the same semantic HAL in real and simulated projects. Simulation selects generated semantic HAL tags; it never writes module I/O tags directly or compiles a second behavior path. The preferred isolated runner is FactoryTalk Logix Echo because it accepts the production controller project without simulation-only controller logic. [PROVISIONAL S5] pins the supported Echo/SDK/controller matrix, licensing, clean-snapshot procedure, and whether physical hardware is still required for I/O, safety, motion, or timing evidence. No test controller or emulator image is a production boot/download artifact.

Binds Core §2.7. Timestamps for the §8 diagnostic model come from the controller wall clock. The AB adapter reads TimeSynchronize state independently and publishes the source timestamp with TimeSynchronized=FALSE whenever CIP Sync/PTP is disabled or IsSynchronized=0; gateway reception time is retained separately and never substituted for the source event time. Such an unsynchronized timestamp remains valid evidence of the controller’s local event order but shall not be used to claim correlated ordering across controllers. An application requiring that ordering shall commission CIP Sync (IEEE-1588) and prove IsSynchronized=1. Commissioning shall set/verify WallClockTime and record a bounded host/reference offset. S1 evidence on the named v33 target is AB_S1_CIP_DATA_PATH_EVIDENCE.md.

AB §2.8 Restart, download, and retention classes

Section titled “AB §2.8 Restart, download, and retention classes”

Binds Core §2.3, §3.14, §6.1, §8.3, §13.

The generated application shall distinguish at least: prescan; first normal scan after Program→Run; warm restart; power-cycle restart; and first scan after download. On every path, command Execute/Abort, sequence transition latches, mailbox in-flight state, manual requests, and force requests initialize safe and cannot self-resume. Retained recipe/configuration, access policy, lifetime counters, and closed-event history are explicitly declared and schema-versioned; everything not declared retained is treated as volatile.

S11 settled the first-scan half of this: the generated wrapper drives SFR to the declared initial step from the Program→Run edge with AOI prescan routines disabled, so re-entry does not depend on Rockwell prescan or postscan (evidence).

[PROVISIONAL S11] still owes the output and replay half: that a download or mode transition cannot energize an output, re-issue an old command, or replay a committed HMI request. The S11 fixture is memory-only with output updating disabled and no mailbox, so it cannot carry that claim. The generator and gate shall own the retention list; project engineers do not mark individual generated members ad hoc.


Binds Core §2.2, §3.1–§3.3, §3.12.

A reusable Fraktal module type has one public module AOI plus one context UDT family. The generator may emit private nested service/sequence AOIs, but a project sees one module call and never wires those helpers itself:

FRK_<Type> AOI — the public behaviour entry point
FRK_<Type>Ctx UDT — the whole contract for one instance
Base : FRK_ModuleBase — the common contract (Core §3.12), composed not inherited
ParCfg : FRK_<Type>ParCfg
ParCmd : FRK_<Type>ParCmd
OutCmd : FRK_<Type>OutCmd
OutImm : FRK_<Type>OutImm
Priv : FRK_<Type>Priv — implementation state; External Access None

FRK_ModuleBase is a UDT, not a base class. Tier is a declared field (Base.Tier), not a type relationship: FRK_TIER_CM / _EM / _UNIT. Core §3.3’s structural prohibition — no Unit inside an EquipmentModule — is therefore not enforced by the compiler here and shall be enforced by a gate (AB §5.3).

This is the first place the binding is genuinely weaker than Part II. On TC3 the type system rejects the illegal composition; here a linter does. Say so rather than implying parity.

A deployed application owner that selects the native-SFC execution form in AB §3.5 also has an owner-local chart instance scheduled by its root program’s generated runner. That runner is an application execution shell, not a second module type or contract: the owner still has one public Ctx, one public module AOI, one lifecycle owner, and one manifest row. The runner only reset-calls and schedules the SFC; it is never hand-wired by a project engineer.

AB §3.2 Capability query and module identity

Section titled “AB §3.2 Capability query and module identity”

Binds Core §3.2, §3.7, §3.9.

There is no interface and no upcast, so __QUERYINTERFACE has no analogue. Capability is declared data:

  • every module registers one row in the controller-scope FRK_Registry : FRK_RegistryRow[FRK_MAX_MODULES];
  • a module reference — Core’s I_Module, the sequence Awaits, the rollup parent link — is a DINT registry index, not a pointer. Index 0 means “none”;
  • capability is a bitfield Base.Capabilities, set by the generator from the type declaration. A client tests a bit; it never infers capability from the presence of a tag.

Registry indices are generated deterministically from the application declaration and are internal handles, never durable external identity. Index 0 remains reserved; adding/reordering modules may change indices only together with ConfigRevision and a regenerated manifest. Each manifest module/key ID is an explicit stable declaration ID with a collision gate—not an array ordinal or unchecked hash. Renaming a canonical module path is an identity/configuration change and follows the HMI’s deterministic remapping rules; it is never hidden behind a stale ID.

Bounds are normative: every index shall be range-checked before use (Core §5.6), and a registry overflow is a fail-closed startup fault, never a silent truncation.

Logical registry schema, version 1. Physical Logix member types, packing, array bounds and CIP encoding remain S3/S12 outputs, but the information model does not. The registry header contains SchemaMajor, SchemaMinor, ConfigRevision, Count, Capacity, and Valid. Each active nonzero row contains exactly these logical groups:

Group Required logical fields
Identity RegistryIndex, stable ModuleId, RootId, ParentModuleId, Tier, TypeId, Capabilities, Valid
Execution ExecState, Busy, Done, Error, Aborted, Held, ErrorId
First-out ReasonCode, source ModuleId, Since, TimeSynchronized
Coherence monotonically changing DataRevision covering every field in that row

RegistryIndex is the internal relation key; ModuleId is the manifest and repository identity. The two shall never be substituted. A missing/invalid row, identity disagreement, impossible state combination, or unstable DataRevision is rejected before rollup or publication. Operator-facing paths and localization keys remain manifest lookups rather than cyclic registry strings. Minor schema additions require an explicit capability and compatible default; removing/retyping a field or changing its meaning is a major change.

Why this is not merely a workaround. The registry is a flat bounded array with static discovery cost (Core §1.1 O4), and it is exactly the shape the gateway must mirror. Evaluate it as a Core improvement for Part II too (plan §8).

AB §3.3 Public contract parameter classes

Section titled “AB §3.3 Public contract parameter classes”

Binds Core §3.10(a′)/(a″), §3.12, §6.1.

Rockwell’s AOI contract restricts Input/Output to atomic types and requires structures/arrays to use InOut (passed by reference). The binding is therefore:

  • the whole contract travels as one InOut parameter, Ctx, of the type’s Ctx UDT. Both base halves and the device logic see the same instance;
  • EnableIn/EnableOut are not used as application logic. The module runs every scan (Core §2.2);
  • an AOI InOut parameter is not itself externally addressable; access is controlled on the connected controller/program tag and its data-type members;
  • Priv, every implementation-only AOI local tag, provider state, and scratch buffer shall be External Access: None;
  • published contract members are Read Only; the root request/configuration mailbox in AB §7.7 is the only Read/Write Fraktal surface, and the PLC re-checks every committed request. The gateway never writes an individual module Ctx member even if a permissive engineering project would allow it.

The Core rule is unchanged and is what matters: a client may request through the published request surface, and the PLC decides.

S2 fixes the pinned-v33 limits and access behavior:

  • the public module surface uses one Ctx InOut; a generated AOI shall not exceed 64 InOut parameters, 512 combined Inputs/Outputs/local tags, or a 2 MB data instance, and the generator reports and gates each count/size;
  • the generated AOI invocation graph shall not exceed eight nested levels. The v33 platform boundary is sixteen, but eight is the physically executed Fraktal ceiling and Rockwell’s current complexity recommendation;
  • member Read Only/Read/Write/None, private UDT members, AOI instance tags, and private nested-AOI local storage behaved as declared over EtherNet/IP; and
  • production Ctx sizes and array/string bounds remain S12 outputs and shall be materially below platform maxima according to the frozen polling budget.

If a future pinned target cannot exclude private state while the public contract is readable, split Ctx into a read-only public UDT and an inaccessible private state UDT; never publish private state as the workaround. Evidence: AB_S2_AOI_PARAMETER_EVIDENCE.md.

AB §3.4, §3.6–§3.7 Mode, device, and cascade mechanics

Section titled “AB §3.4, §3.6–§3.7 Mode, device, and cascade mechanics”

Binds Core §3.4–§3.7, §6.1, §6.3, §6.4.

The state machines and ordinals port unchanged. Their Logix execution rules are:

  • every deployed module AOI is invoked unconditionally exactly once in the generated periodic scan path. In Ladder its incoming rung is always true; in ST the call is unconditional. EnableIn/EnableOut never select Fraktal behavior. A conditional call is a G-CYCLIC failure because it skips edge, timeout, hold, abort, rollup, and Execute-drop handling;
  • Unit mode, start/stop/reset, manual, decision, configuration, alarm, and power requests arrive only through the root mailbox in AB §7.7. Parent-to-child commands are internal Ctx data and are not separate external write targets;
  • one generated owner writes each sequence token and one generated invocation owns each child AOI. Two routines/AOIs never command the same child in one scan;
  • child Unit mode cascade and awaited-child rollup use validated registry indices. Index 0 means absent, never module zero; and
  • OperatorReset closes the MANUAL_RESET event and recursively releases the Unit command plus every child command issued by the suspended chain. It clears latches, not live conditions, and therefore cannot bypass a release gate.

Mode-switch, graceful-exit, run-style, single-step, unsupported-command, abort, hold, and Execute-drop semantics remain exactly Core §3.4/§6.1 behavior. The AB test matrix in §5.7 proves the same observable transitions rather than defining a Logix-specific variant.

Binds Core §3.5, §5.5, §6.2–§6.3, §6.8.

Studio 5000 supports native SFC routines. The restriction is narrower: an AOI’s primary logic supports LD/FBD/ST, and an AOI cannot JSR a project routine. Fraktal/AB therefore defines two generated execution forms over the same Seq : FRK_SequenceCtx contract and the same observable Core semantics:

  1. AOI-contained ST/LD (reference form). A multi-step sequence is a generated sequence AOI nested by its owning Unit or EM AOI. Its ST primary logic is the Core §6.8 CASE Seq.Step OF skeleton; generated Ladder is permitted on the same integer-state-machine rule. This form is reusable and available at every permitted owner tier.
  2. Program-owned native SFC (graphical form). A generated program-level routine hosts the chart and the root program’s generated main routine calls it as a subroutine. The initial claim covers application-owned Unit mode and EM command chains. Because Logix SFC step/action tags hold chart state, the generator emits one routine/tag set per deployed owner; it never calls one stateful chart concurrently for multiple instances. A reusable library AOI therefore retains the ST/LD form unless application generation deliberately materializes and proves an SFC instance from its single graph declaration.

The SFC runner has this generated order:

1. Call the root module AOI (owner + every nested module, exactly once).
2. For each generated application-owned chart instance:
a. issue SFR on a declared reset/re-entry edge; then
b. JSR the owner-local SFC only while that owner command is BUSY.

This order deliberately gives SFC-issued child intent to the module AOI on the next periodic scan. It lets the owner finish lifecycle/rollup first and keeps every module AOI unconditional. The one-scan latency and all terminal/error/reset edges are part of the S11 parity proof, not an undocumented scheduling accident.

The graphical form has additional binding rules:

  • every step has one non-Boolean N (Non-Stored) action containing generated ST; stored, delayed, timed and Boolean actions are outside the initial claim;
  • the action records the Core step and may call FRK_Seq_* service AOIs or write generated sequence intent only. It shall not call a public module AOI, access raw I/O/HAL, or directly write a terminal module state/output;
  • transitions read explicit generated Seq results. The controller setting is Execute current active steps only, so the chart returns to its caller after one active step/group instead of traversing an unbounded run of true transitions in one task scan;
  • the generated wrapper uses SFR on fresh-command, mode-exit, abort/error, operator-reset and Program→Run initialization edges, targeting the declared initial step. Core owns command/step latches; Rockwell stored-action state or automatic postscan is never a second latch authority; and
  • SFC step tags have explicit stable Core step numbers and branch numbers. Active actions call the normal step/publication service every active scan, so CurrentStep, ActiveSteps, profiling, diagnostics and the §3.13 table have the same contract as ST/LD. Simultaneous branches require one numbered FRK_SequenceCtx leg per Core branch.

The framework services Part II exposes as methods on FB_SequenceBase become AOI calls taking Seq as InOut: FRK_Seq_Step, FRK_Seq_Await, FRK_Seq_TryIssue, FRK_Seq_Delay, FRK_Seq_Advance, and the part / decision / completion forwards. In the ST/LD form, FRK_Seq_Advance commits the transition; in SFC, the chart runtime commits it and the generated transition result only declares the edge. Branching, decisions, private sub-chains and parallel legs retain the Core result/branch rules; no shared RetVal is written by two calls.

Settled by S4/S11 for the pinned v33 baseline. Generated SFC routines, step/action tags, transition expressions, NonStored qualifiers, the three controller execution settings, SFR targets and JSR parameters round-trip canonically through L5X and pass Studio v33 Verify Controller with zero errors and warnings. On the named target, both the nested-AOI path and the program-owned SFC runner walked one declared graph with identical step traces in an identical four scans, with the module AOI unconditional and ahead of sequence intent, the command/result loop at exactly one scan, one numbered leg per simultaneous Core branch, deterministic SFR reset/re-entry, and no watchdog fault at a 10 ms period. Evidence: AB_S11_SEQUENCE_EXECUTION_EVIDENCE.md.

The SFC form is therefore enabled rather than provisional. It remains bounded by what was proved: ST and native SFC only, one minimal graph, and the start, reset and Program→Run edges. Generated Ladder, alternative branches, jumps, private sub-chains, and the abort/hold/mode-exit edges still owe their own evidence, and none of it may be supplied by hand editing.

Which renditions a station carries is a declaration choice. A chain whose only rendition is ST stays in its owner AOI. Any other choice — one LD or SFC rendition, or several — is hosted in program routines that the owner’s scan calls after the module AOIs. A rendition selector (harness-only, never published) exists only where a chain carries more than one; ST is then the reference and comes first, while a single rendition is compared with the declaration itself by the rendition gate. Memory is the usual reason to carry one: the press carried AUTO in ST, SFC and LD through press79, which proved all three on the bench, and from press80 carries the ladder alone, at the owner’s request after press79 ran out of controller memory while linking. The generator and its tests keep all three renditions.

AB §3.8 Configuration, providers, and value-type binding

Section titled “AB §3.8 Configuration, providers, and value-type binding”

Binds Core §3.8, §3.8b, §3.10.2, §5.6.

Core duration semantics are integer milliseconds and retain wire ordinal 3 / transport name time. Do not assume a native Logix TIME is absent or suitable: controller families/revisions differ. S12 selects native TIME/TIME32 where their range/arithmetic/CIP encoding match the contract, otherwise a range-checked DINT-milliseconds representation. The repository value is identical either way; this is binding spelling, not a contract change.

On the pinned v33 baseline the choice is already made. S12’s type-acceptance matrix found that 1769-L24ER-QB1B at 33.014 has no TIME or TIME32 at all — the import fails closed — so duration binds to the range-checked DINT-milliseconds form on this target. The same matrix removed two more candidates and constrains what a generated contract may contain (evidence):

Core concept Pinned v33 verdict
SINT / INT / DINT / REAL / BOOL / bit string / STRING / arrays / public UDT usable
LINT transport only — declarable and carriable in a UDT, but no arithmetic form compiles
LREAL unavailable — Studio rejects the declaration for this controller type
TIME / TIME32 unavailable — the project will not import

Because this section forbids silent narrowing, the two removals are explicit constraints rather than generator conveniences. A Core value requiring 64-bit float precision either states its REAL precision loss in the contract or the controller leaves the baseline; a Core value requiring 64-bit accumulation is computed in the gateway or represented as DINT with declared rollover. A generator shall not substitute either quietly.

Note also that the SDK’s import summary is not a type gate: LREAL imported with Warnings="0" Errors="0" and was caught only by Studio Verify.

The physical layout is measured, not assumed. Reading a structured tag returns the CIP payload the gateway will decode. On the pinned baseline a flat BOOL/SINT/INT/DINT/LINT/REAL type laid out at offsets 0, 1, 2, 4, 8 and 16 in a 24-byte payload with a 24-byte array stride — naturally aligned, with four bytes of trailing padding that exist only because the LINT forces 8-byte alignment. A generated contract that assumed dense packing would be wrong by four bytes per instance. Generated UDT layout shall be derived from a measured stride for the target, never from member widths alone.

Two behavioral rules follow from the same run and are binding on generated code:

  • integer overflow wraps two’s-complement on this target with ReportMinorOverflow false, so a range check is the generator’s responsibility, not the controller’s; and
  • NaN shall be detected by bit pattern or range, never by x <> x. The NaN bit pattern transports faithfully over CIP, but Logix ST evaluated NaN <> NaN as false, so the idiomatic IEEE test compiles, verifies, and never fires.

Enumerations. Core enum members bind to generated integer constants in FRK_K; the published ordinal remains the Core ordinal. Hand-written literals for a Core enum value are a gate violation (AB §5.3). This avoids depending on a controller/version-specific enum editor feature.

Operator-facing strings and identities. Long canonical paths and localization keys are not carried cyclically in every row. The controller stores stable module/key IDs; FRK_Manifest carries the bounded ID→name/path/key tables; the gateway reconstructs the exact string keys and canonical paths required by the repository/HMI contract. This is a physical binding representation, not a change to Core identity. Names that must exist in the controller use a generated Logix string type sized for their declared maximum.

S12 froze the Core→Logix→repository type table for the pinned baseline before any public UDT is generated: signed widths, bit strings, REAL (and the absence of LREAL), duration, arrays and their zero lower bound, enum ordinals, NaN and overflow behavior, and the measured CIP UDT layout (evidence). Unsupported target arithmetic shall use a range-checked representation or remove that controller from the baseline; silent narrowing is forbidden. SchemaVersion remains the first logical configuration member and migrate-or-fault still applies.

[PROVISIONAL S12] still owes two entries of that table: the UTF-8 policy above ASCII, since only ASCII was written through the Logix STRING, and the timestamp plus synchronization-quality representation, which S1 established as a transport property but which is not yet pinned as a generated member.

Providers. The logical I_RecipeProvider, I_PartCarrier, event-sink, and similar capabilities bind to (ProviderKind, ProviderIdx) plus one generated dispatch AOI per seam. Unknown kinds/indices fail closed. Recipe changeover remains fallible PrepareRecipe(Model, RecipeKey) → recursive readiness → bounded infallible CommitRecipe(); rejection invokes AbortRecipe(). Provider payloads are validated before mutation, and commit performs no validation or I/O.

Persistence (Core §3.8b). Logix has no PERSISTENT variable class: retention is a property of controller memory and its nonvolatile medium, so this binding shall state which values survive a power cycle, a download, and a firmware upgrade rather than assume any of the three behaves like the others. A generated station keeps editable configuration in tags declared for retention, stamps every StationCfg UDT with the Core SchemaVersion first member at an initial value of zero, and applies Core §3.8a on the first scan (S:FS): zero is never written and installs the declared values silently, the declared version is left alone, and any other version is a restore failure — declared values reinstalled and RestoreLost raised. A download resets a Logix tag to its L5X initial value, so a freshly downloaded image reads zero and is a first boot, which is what Core §3.8a says and not a failure. (This clause previously called a cleared image a restore failure, which contradicted Core §3.8a; corrected 2026-09-29.) Set save/load binds to the gateway store rather than the controller: the controller owns the values and every validation, the gateway owns the document and the medium. [PROVISIONAL] the physical form — nonvolatile medium, the durability window measured on the pinned v33 baseline, and the download/upgrade retention matrix — is owed a spike before any AB deployment claims Core §3.8b conformance.

The medium is the project’s choice (Core §3.8b). The declaration’s ConfigMedium says where the gateway keeps this station’s documents, as TC3’s MAIN declares one I_PersistMedium and hands it to the root, the set store and the users. store is the Core E_ConfigStore ordinal and is what ConfigPersist.StoreKind publishes; a declaration with sets and no medium is the file medium, which is what every earlier declaration had. FILE_JSON is the first and only implementation: the four named sets keep their existing FileStore documents behind the gateway’s SetStore interface. A database medium (EXTERNAL) is the same interface and is refused until an owner names its server, schema and credentials owner. The folder is deployment data, one per controller serial and root (FRAKTAL_AB_CONFIG_SET_DIR, else %LOCALAPPDATA%\Fraktal\ConfigSets\<serial>-<root>), never a declaration literal.

Live documents (Core §3.8b), opt-in with ConfigMedium(live_documents=True). A download resets every tag to its L5X initial value. Instead of seeding each new image from a capture, the gateway keeps the root’s live configuration as documents on the same medium (live\ under the set folder) and re-applies them after a download. TC3’s live documents (IMPLEMENTATION_NOTES §163) are the oracle; the controller remains the only validator and the only authority.

  • Documents. <root>.station, <root>.line for a Line owner and <root>.model<n> for each catalog position, each the existing JSON-lines set document with set name _live; a station document’s model names the active model. An index of confirmed keys sits beside them, written after each document.
  • Keeping. While the controller’s image is intact it is the truth: the gateway renders the documents from the values the projection already reads, with no additional controller read, and rewrites only those whose content changed. A write the medium refuses is published as ConfigPersist.Failed for every viewer and retried. These documents add no Pending window to ordinary writes.
  • Restoring is controller state, derived and never latched. On the first scan a station image that is not intact receives the declared values but stays at SchemaVersion zero (a rejected image also raises RestoreLost). While it reads zero, Start names std.release.configRestoring, WRITE_CONFIG and CAPTURE_CONFIG are refused with that key, and a set cannot be saved: TC3’s rule that the restore would replay over them. Model documents may load into their bank only in this state, never into live ParCfg; the active model’s record follows its bank through the changeover’s own bounded CommitModel copy.
  • The restore runs only from a write-enabled gateway, under a controller session the set gate already permits (CurrentLevel >= Required[CONFIG_SET]). Every document goes through the ordinary staged, all-or-nothing transaction and is audited as a set load by that session’s user; nothing gains a write path the logged-in operator lacks, and there is no anonymous or gateway-credential restore. Model banks load first, a model the catalog no longer holds is created again at its next position (CREATE_MODEL), then the line, and the station load answers last: it carries the active model by code (the changeover’s copy follows) and StoreResult 2 when anything was lost, which raises RestoreLost. Stamping the station image ends the restore. A read-only gateway keeps documents and never restores, so Start keeps naming the restore and the read-only claim is unchanged.
  • Failure is announced, never concluded. A confirmed document that is missing or does not parse, a document whose identity differs, a bank whose catalog position moved and a document the controller refuses are losses: named in ConfigPersist.LastRejectScope/LastRejectKey and the gateway’s health, and raised with the station answer. A medium that cannot answer (an I/O error or a damaged index) and an access refusal conclude nothing: the restore is retried every ten seconds and never completes on defaults, so defaults are never captured over documents. A lost whole folder, index included, is indistinguishable from first commissioning: a lost index can only miss a loss, as TC3’s lost marker can.
  • The first live-document image is seeded. No document exists before the first download of a live-document build, so that image is generated from a fresh, twice-identical capture (--initial-config); a seeded image is intact, is not restored and becomes the documents. Later downloads need no seed.

Unlike TC3, which replays its documents at every start, this binding restores only when the controller did not keep its image: Logix is expected to retain tags across a power cycle, which the retention matrix above has yet to measure. If it does not, the image reads not intact and the same restore runs. [PROVISIONAL] the power-cycle/download/upgrade matrix, host power loss and compiled fit are owner acceptance steps; offline tests prove the mechanism only.

Binds Core §3.9, §1.1 O4.

Optional features are generated capability bits and manifest/catalogue entries. An absent feature has no cyclic tag family and no gateway polling demand; a client never infers support from a guessed tag. Compile-time variants that change public UDT layout change its schema/signature and are versioned as such.

AB §3.10 Self-description exposure mechanics

Section titled “AB §3.10 Self-description exposure mechanics”

Binds Core §3.10 and AB §11; R0 authority recorded in AB_R0_CORE_AUTHORITY_EVIDENCE.md.

Publication is the controller-resident FRK_Manifest, generated from the same declaration as the AOIs, the registry indices and the constants. It carries at minimum: protocol/schema version and a monotonic configuration revision; for every deployed root and module its stable ID, parent ID, local name, canonical qualified path, tier, type and capability flags; the registry location of its contract data; the command / manual / decision / state / I/O catalogues by numeric key; and declared limits and feature flags.

The manifest describes the declared graph once, rendition-agnostic. A chain carried in more than one language (AB §3.5) has exactly one graph; each rendition is an emission of it. The manifest therefore publishes the steps, transitions and named conditions of that graph and says nothing about which language rendered it, and nothing that would let a client select one - the same way the TC3 HMI sees one chart whichever rendition ran. A rendition selector is a property of how an application is being measured, not of the machine it describes, so it stays probe-only: writable for a parity harness, and absent from anything published. The same applies to tags that exist only because of how a rendition is implemented, such as a ladder rendition’s one-step-per-scan guard and its arithmetic scratch.

The split is declared in the generator (harness_only_tags / publishable_tags) rather than left for the manifest emitter to remember, and a test requires the publishable set to be identical whether a chain is rendered once or three times - otherwise the contract would be describing the emission rather than the machine.

Three rules make it trustworthy:

  1. It is live. A generated L5X on disk is an engineering artifact; the runtime source of truth is the manifest in the controller. A client that cannot read it does not proceed on assumption.
  2. It is generated, never hand-edited. It necessarily restates what the AOIs and registry encode, which is a bounded, deliberate exception to Core §1.1 O9 — admissible only because one declaration produces all of them.
  3. Agreement is gated. Manifest ↔ registry ↔ AOI consistency is proven on every change (AB §5.3). Without that gate a hand-edited AOI leaves the manifest describing a machine that no longer exists.

The logical schema is fixed before physical UDT layout. Physical types and capacities are named FRK_MAX_* constants settled by S3/S7/S12, never magic numbers copied into the gateway:

Manifest table Required logical content
Header magic, protocol/schema version, framework version, binding version, configuration revision, generated-content hash, controller identity, table counts/capacities, truncation/valid flags
Roots stable root ID, module-table index, repository scope, access/mailbox identity, host-event identity
Modules stable nonzero module ID, parent/root ID, registry index, tier, type ID, local-name key, canonical-path key, capability mask, public-contract symbolic address
Nameplates module ID, manufacturer/product/model, serial, hardware/software revision, asset/device IDs and optional location keys required by Core §3.10.1
Fields/facets module/type ID, repository-relative path key, logical value type, dimensions/bounds, read tier, access class, quality/timestamp source, optional write-capability index
Commands/manual/decisions/config numeric ID/key, target scope, parameter/result type, required gated action, min/max/enum/schema metadata, mailbox operation kind
Localization/rationalization stable numeric key to portable string key; reason code to priority/category/action/consequence/shelvable metadata
Optional profiles profile ID/version, capability and projection requirements

Physical nameplate row, version 5 (opt-in). A declaration with a root or module nameplate selects manifest major 5. It preserves the nine v4 Nameplates columns and appends YearKey, HardwareVersionKey, FirmwareVersionKey, SoftwareVersionKey, OrderCodeKey, and DocumentationKey, all DINT text-key references. ManufacturerKey, ProductKey, SerialKey, and AssetKey carry manufacturer, product designation, serial and product URI. Legacy numeric revision columns are not reinterpreted as text; they remain zero when the text version columns are used. Missing optional text uses key zero. These values are activation-static identity, included in the manifest hash, never recipe values or HMI writes. A v4 reader shall refuse major 5 before reading its enlarged rows. A declaration without nameplates retains major 4 and its exact row layout. No AAS/IDTA companion-profile conformance follows from these fields.

This is manifest logical schema version 1. Its canonical header field names are Magic, SchemaMajor, SchemaMinor, CoreVersion, BindingVersion, FrameworkVersion, ConfigRevision, ContentHash, ControllerIdentity, Valid, Truncated, and one Count/Capacity pair per table. Magic and a supported major are checked before any count is trusted. ContentHash covers the canonical logical rows and their order plus the versioned native mailbox profile (schema, connection bound and derived argument capacity), excluding volatile payloads and transport framing. ConfigRevision changes whenever that content can change. The generated-content hash used in build evidence and this live ContentHash shall agree after canonical encoding is frozen.

All unresolved bounds retain symbolic names (FRK_MAX_ROOTS, FRK_MAX_MODULES, FRK_MAX_FIELDS, FRK_MAX_OPERATIONS, FRK_MAX_LOCALIZATION_KEYS, FRK_MAX_REASONS, and FRK_MAX_OPTIONAL_PROFILES). Their numeric values, table splitting and CIP fragmentation are deliberately not frozen here. S3/S7/S12 either assign measured values and a physical representation or revise the binding; a generator shall reject an unresolved symbol when producing a deployable artifact.

Counts greater than capacity, duplicate IDs/paths/write keys, unknown types, invalid parent/root links, hash disagreement, or Valid = FALSE invalidate the whole manifest. Partial discovery is not a degraded conformance mode. The gateway reports the exact validation reason and exposes no write surface.

Settled by S7. Manifest size, read cost and revision-change detection are measured on the named target: a 43,728-byte manifest at the resolved capacities read completely and coherently in 293 ms at S1’s conservative 500-byte connection and 62 ms at 4000 bytes, with a ~32 ms header-only poll in steady state. A single bounded manifest therefore holds and is not split by root. The eight capacity symbols above are resolved in AB_FROZEN_CONTRACTS_V1.json at the sizes actually measured; raising one is a cost-curve calculation against AB_S7_MANIFEST_EVIDENCE.md, not a new spike.

The generator retains 768-row ceilings for Fields and Localization, but allocates each from its declared row count plus eight rows of growth reserve, rounded up to an eight-row block and capped at that ceiling. Other discovery tables reserve one row rounded to small blocks within their frozen ceilings; Modules and Nameplates share the module capacity symbol. The header and native array dimensions carry the actual capacity. A capacity-only change preserves the logical content hash, so the reader also checks capacities independently. This allocation reduces empty discovery storage; it never truncates content or changes row layouts, logical hashes or write permissions. This policy was prepared in press73 after press72’s failed controller linking. Press73 also failed with a final global memory error; the owner’s Capacity Estimate exceeds data/logic capacity by 12,996 bytes. Press75 keeps this allocation and removes repeated native alarm/startup code without layout growth. The owner confirms press75 completed download at 0/0 and Run; online data/logic use is 758,568 of 786,432 bytes, leaving 27,864 available. This is not directly comparable to press73’s offline estimate. See fit evidence, the allocation correction and alarm-memory correction. The earlier policies used 16-row reserve/32-row blocks and, before that, 64-row reserve/blocks; press67 allocates 640 rows for each. Its complete 68,472-byte manifest reads back coherent and equal on serial 7036B510, with a final repeat of 154.664 ms. Shelving and all regression fixtures pass with restored settings/session. See the hardware record. The earlier fixed 768-row press64 allocation remains historical evidence.

Published as of 2026-09-07. S7 measured the shape; the press demo now carries the content, emitted from the same declaration as its AOIs (evidence). Two rules are normative from that record. First, the published key string is sized to the declared maximum and its width is published in the header as KeyLength: a key that does not fit fails the build, because truncation silently published two different paths under one name. Second, acceptance is not publication — a manifest is only claimed once it has been read back out of the imported project, since the first build imported with two warnings, zero errors, and stored not one of its 208 strings.

The read shape matters and is now normative guidance: reading the manifest as arrays of UDT rows batches into far fewer round trips than one monolithic tag. S1’s 4 KiB fragmented single-tag figure is a worst case for that access pattern, not the rate a manifest reader sees. A reader also pays a per-request floor of roughly 4.7 ms, so splitting the manifest into many small tables would cost more, not less.

Binds Core §3.11 (constructor injection).

Logix has no constructor and no FB_init. Wiring binds to an explicit, generated first-scan routine in the composition-root program:

FRK_<Type>_Setup(Ctx, Name, ParentIdx, HalIdx, RecipeProviderIdx, …)

Each declared instance is set up exactly once, before its first cyclic call, and setup failure is a fail-closed startup fault (Core §5.6).

The honest cost. Core §1.1 forbids requiring a project to remember a call for correctness, and this binding reintroduces exactly that. It is admissible only because the setup routine is generated from the instance declarations and a gate proves every declared instance is set up exactly once, in order (AB §5.3). Enforcement moves from the compiler to the gate, which is weaker. That trade is the price of a platform without constructors, and it should be stated in every project’s binding record rather than discovered.

AB §3.13 HMI projection and snapshot coherence

Section titled “AB §3.13 HMI projection and snapshot coherence”

Binds Core §3.10, §3.13; HMI_CONTRACT.md.

The gateway, not the Flutter UI, maps manifest/registry/contract data into the existing repository paths and domain types. No station/type screen, Logix tag name, registry index, or CIP type escapes that adapter boundary.

CIP reads across several tags are not assumed atomic. Every published root and module row therefore carries a generated data revision or equivalent coherence token. The gateway accepts a composite sample only when its pre/post token is stable; otherwise it retries within a bounded budget and marks the value set Uncertain/Bad rather than mixing scans. Static manifest data is cached until ConfigRevision changes. Fast, slow, and on-demand data are polled at separately budgeted rates; on-demand work cannot starve command acknowledgement or fast state.

Quality/timestamp mapping is explicit:

  • PLC-provided event/diagnostic timestamps remain the source timestamp and keep their synchronization-quality flag;
  • the gateway stamps server/receipt time and never fabricates a controller source timestamp for a value that has none;
  • a validated current sample inside its tier’s freshness limit is Good; a coherent but late/partially supported sample is Uncertain with a reason; and a lost session, invalid manifest, decode/type error, or expired value is Bad;
  • Bad/Uncertain data never enables a write and no cached value is promoted to Good after reconnect.

Every repository value uses the same logical value envelope, version 1:

Field Meaning
PathId manifest field/path identity; never a registry ordinal
LogicalType S12/Core logical type ID
Value the typed value; absent when quality forbids a value
Quality exactly GOOD, UNCERTAIN, or BAD
QualityReason stable reason/key explaining every non-GOOD quality
SourceTimestamp optional PLC-owned timestamp
SourceTimeSynchronized whether the source clock met Core §2.7
ServerTimestamp gateway receipt/publication timestamp
DataRevision coherence token of the accepted PLC sample

The envelope is repository semantics, not a CIP or OPC UA DataValue. A transport adapter may map a native status into it only through a documented, tested table. Unknown native status, type, or timestamp state maps fail-closed to BAD; it never defaults to GOOD.

The tier model is TC3’s, not a new one. Fraktal/AB adopts the same three read tiers the HMI contract and the TC3 transports already use — live/fast read every snapshot, slow read every snapshot where the transport affords it or on a heartbeat where it does not, and on-demand/excluded never read cyclically but served by bounded targeted reads. The gateway intersects every connected client’s slow and on-demand sets before changing tier setup, exactly as the existing gateway does. A binding does not get to invent a tier vocabulary; the HMI classifies once and every adapter obeys it.

Freshness thresholds and poll budgets are per deployment, not per binding. They are declared in the project’s binding record against the measured cost of that station, and the measurement inputs now exist: S1’s conservative four-reader and 500-byte ceiling, and S7’s manifest cost — a 43,728-byte manifest in 293 ms at 500 bytes and 62 ms at 4000, with a ~32 ms header-only poll in steady state (evidence). TC3’s measured figures are the reference point for what “interactive” means: ~15 ms steady-state ADS snapshot and ~86 ms median mode-change round trip.

Coherence-token behavior is settled (evidence). Under concurrent mutation the retry-until-stable guard never once accepted a torn snapshot, produced no false rejection on a quiet controller, and degraded to refusing service rather than to lying. Unguarded reads of the same array were directly observed straddling two generations, so the failure mode is real and the guard demonstrably catches it.

The measurement yields a rule that binds generated snapshots:

Any data set guarded by a coherence token shall have a mutation interval longer than its guarded read window, or it shall be double-buffered on the PLC side. Retry is not a substitute for either.

Measured on the named target, a 4 KiB payload guarded by two bracketing revision reads converged 0 % of the time at 10 ms mutation, 80 % at 50 ms, and 100 % at 200 ms and above. This is why the contract guards what it does: the manifest changes only on configuration change, the HostEvents ring only on append, and a registry row is small enough to read in one request. A coherent snapshot of the entire live tier is not achievable by retry and Core does not ask for one — coherence is specified per row.

S9 PASS — press68 reference deployment (2026-10-03). This deployment declares 500 ms polls, 250 ms cache, 1,000 ms slow heartbeat, 2,000 ms Good / 3,000 ms expiry and a 4,000-byte reader. Monotonic expiry, quality mapping and command refusal pass offline, and the read-only cost check fits the budget. The generic HMI’s optional version-1 freshness envelope is specified in OPCUA_TRANSPORT.md. After the owner’s restart, corrected live verification passes: 60 seconds, 121 complete updates, 224 detail batches, no stale/down transition, three fresh connections and S3 6/6. The owner confirms stable Chrome behavior. This supersedes the prior activation and detail-loop pending state without changing budgets or the PLC; live acceptance and loop correction.

AB §3.14 Lifecycle binding — generated Begin / End composition

Section titled “AB §3.14 Lifecycle binding — generated Begin / End composition”

Binds Core §2.2, §3.14; R0 authority recorded in AB_R0_CORE_AUTHORITY_EVIDENCE.md.

Logix has no template-method inheritance. The generator therefore emits the concrete AOI as one composed lifecycle:

FRK_CylinderCM (AOI)
FRK_ModuleBase_Begin(Ctx) ← terminal reset when Execute-drop permits,
new-edge acceptance, OnInit/OnCommandStart,
OnCyclic, child/rollup and abort routing
<generated call to the type's device/sequence dispatch, only while BUSY>
FRK_ModuleBase_End(Ctx) ← HELD resolution, timing, terminal outputs,
diagnostics/status, registry publication,
one-shot release for the next scan

Normative rules:

  • Both calls, in that order, exactly once per scan per module instance, with the declared dispatch between them. A module body with one, neither, a duplicate, or them out of order is a gate violation.
  • The device CASE shall not write any Base.* member that Begin/End own; it signals through the provided helpers (FRK_Mod_Complete, FRK_Mod_Fault, FRK_Mod_Hold) exactly as Part II’s _M_Complete / _M_Fault / _M_Hold.
  • Core §3.14 extensions (OnInit, OnCyclic, OnCommandStart, OnAbort, OnModeExit, OnModeChanged, OnManRelease) have no override mechanism. They bind as optional generated call-outs: the generator emits a call to FRK_<Type>_On<Hook> only where the type declares one, so an absent hook costs nothing and a present one cannot be forgotten.
  • Core’s framework-first extension order is generated inside Begin; a type cannot omit or reorder it. OnModeExit is the specified exception: its generated callout may hold the transition before the cancel phase, and returning consent runs that cancel/commit phase exactly once. End always remains last.

AB §3.15 External connector and byte-transport binding

Section titled “AB §3.15 External connector and byte-transport binding”

Binds Core §3.15.

Device modules still depend on a platform-neutral bounded byte-channel contract, never on socket/serial instructions. On AB, I_ByteChannel binds to a provider kind/index and generated adapter AOIs for the selected Ethernet socket, serial, or vendor module. The adapter owns connection state, request IDs, timeouts, buffer bounds, reconnect/backoff, stale-response rejection, and the Core link diagnostic. A module may not contain MSG, socket-service, or serial-module details directly.

[PROVISIONAL S13] selects and proves byte transports for each claimed controller/communication module, including maximum payload, concurrency, socket count, reconnect, and simulation. Until it passes, TCP/serial-derived reusable modules are outside the initial library claim rather than silently stubbed.

AB §3.16 Traceability and provider binding

Section titled “AB §3.16 Traceability and provider binding”

Binds Core §3.16, §8.3, §11.6.

Every Unit context contains the same part context and bounded record set. A carrier binds through (ProviderKind, ProviderIdx) and generated dispatch; no carrier configured means traceability is explicitly off. The four canonical received/started/processed/aborted events retain their order, part identity, verdict, reason, synchronized timestamp, and carrier-write-before-event rule. Carrier failure faults with the Core reason code and is never replaced by a gateway-only error. The controller-resident HostEvents transport is specified in AB §11.6.

Implementation boundary (2026-10-18, non-normative). An optional local BY_POSITION provider now implements PLC identity, scaled bounded measurements, verdict/count commitment, failure propagation and the four host lifecycle events. Its typed (ProviderKind=1, ProviderIdx=1) dispatch accepts the local provider only; the published Core CarrierKind is BY_POSITION=2. Required InOut additions use new versioned AOIs/UDTs, and existing carrier-off output is unchanged. Confirmed-component genealogy is an opt-in local-provider profile, specified below. Device providers, external expected identity, runtime retention and complete §8.3 message-log parity remain unqualified. See the local-carrier evidence.

Confirmed-component genealogy (optional Part schema V2). A local carrier may declare genealogy_capacity in 1..8 (Core §3.16.1); zero omits genealogy storage and preserves earlier output. A nonzero capacity requires a consumer. Step.part_parents is a tuple of AsciiSource confirmations on an existing non-terminal MARK. Each source is a literal of 1..64 printable ASCII bytes or an exact declared DINT array of 1..64 cells. Short arrays are zero-padded; shorter UIDs shall have an entirely zero tail. A full 64-byte UID is permitted. Empty, control/non-ASCII, self-referencing and over-capacity batches are refused with RESULT_RECORD_REJECTED. The service shall validate the complete batch before changing the Part context. Repeated UIDs are idempotent confirmations, retained once in first-confirmation order; only distinct additions consume space. This is a confirmed consumption boundary, not a new canonical Part event.

Part V2 publishes ParentCount and stable Parents[i] scalar UID paths with ParentCapacity; its byte storage is private to the binding. A new receive clears the live genealogy. Result write-back copies parents before verdict counters and PROCESSED publication. Aborts retain the confirmed context in the ABORTED snapshot without committing a successful result. Provider scratch and last-result storage stay private. Unit, Part-service, Part and provider types receive new version/capacity names; a project shall not change a released V1 layout in place. Device acquisition remains a separate provider qualification.

Binds Core §3.17.

Additional modes are generated catalogue entries with stable numeric IDs and repository keys. The fixed Core modes retain their ordinals. Unknown IDs are rejected; extension modes participate in the same release, cascade, sequence, stop, reset, and HMI discovery contracts and cannot introduce a parallel command surface.

Binds Core §10.2.1.

Unchanged in intent: raw controller I/O tags are read and written by exactly one project routine, which maps them to semantic HALs. MAIN’s analogue — the composition-root program — performs setup, real/simulation selection and scan order, never channel assignments.


Binds Core §2, §8.11.

  • One periodic task owns the Fraktal forest; its period is pinned and recorded. Its priority, watchdog, overlap behavior, and maximum execution budget are pinned. Scan-time headroom is measured (Core §8.11) and published (AB §8.11).
  • Program structure follows the instance tree (Core §4.2): a composition-root program plus one program per root Unit, matching Part II’s 00_System / 0N_<UnitName> layout.
  • The task program schedule and every program’s generated main routine are part of the reviewed L5X. The reference scan is: snapshot mapped inputs → system/ domain services → root programs in declared order → publish/diagnostic close → map semantic outputs once. Raw module tags are touched only by the I/O driver.
  • Controller continuous tasks, event tasks, periodic tasks, or gateway writes shall not be second writers of a Fraktal contract. Asynchronous I/O is sampled once at the boundary so a module sees one input image for its scan.
  • [PROVISIONAL S6] Online-change semantics against the registry and manifest are unverified. If adding a module online cannot extend the registry safely, commissioning gains a documented download step and this clause says so.

S11 proved the call graph and the owner-local SFC runner for chart return, concurrent branches, reset/re-entry, and the declared one-scan intent latency, which measured exactly one scan with both generated forms walking the same graph in the same number of scans (evidence). Core-observable equivalence therefore holds for the proved surface, and every other accidental delay from program ordering remains a failed design.

[PROVISIONAL S11] still owes child result/diagnostic rollup and output withdrawal, which the memory-only fixture could not exercise, plus generated Ladder as the third §6.8 form and the abort/hold/mode-exit reset edges.

Binds Core §2.3, §4.1, §6.1, §13.

The generated system routine owns FirstScan, manifest/registry validation, provider validation, and transition from STARTING to READY. Root Units remain not-startable and all command outputs remain withdrawn until that validation is complete. Program→Run, power cycle, download, partial import, and controller fault recovery all traverse this gate; none resumes AUTO or an HMI mutation.

Downloads to a production controller require the project MOC procedure, controller identity check, force check, retained-data migration/backup decision, post-download manifest hash check through the gateway, and explicit operator restart. The implementation tooling shall never choose a production route by discovery or make the AB test project a boot/download default.

AB §4.3–§4.7 Naming and ownership binding

Section titled “AB §4.3–§4.7 Naming and ownership binding”

Binds Core §4.2–§4.7.

The generator enforces the Core semantic naming rules and the Logix component limit. Public binding prefixes are FRK_ for framework AOIs/UDTs/constants and PRG_ for generated programs; project instance tags retain their schematic names without Hungarian prefixes. Generated helper names remain owner-local and do not create manifest modules. Any identifier that exceeds the pinned Logix limit, collides case-insensitively, contains ., or requires a lossy abbreviation fails generation—there is no hidden name-mangling table that lets PLC and schematic identities drift.

Application programs/routines follow the instance tree: system composition and I/O first, then one program per root with owner-local mode/sub-sequence, release, recipe and I/O routines. Reusable AOIs remain type-owned assets and are imported once; they are not copied into every root program. A generated project sequence AOI or native SFC routine belongs to its owning root; neither creates a manifest module or a second command surface.

Binds Core §4.8. A module’s canonical qualified path comes from the manifest, whose local name segment shall equal the instance’s Logix tag name. . is reserved as the path separator and is forbidden inside a local name — unchanged from Core, and checkable in L5X.


Binds Core §1.1 O1, O9.

The generator is not optional infrastructure in this binding — it is how the Core “written once” obligation is discharged without inheritance. From one type declaration it emits: the AOI skeleton with Begin/End and hook call-outs, the Ctx UDT family, the constants in FRK_K, the manifest entry, the registry registration, the setup/cyclic call in the composition root, and the RED test suite. From application declarations it also emits deterministic registry IDs, provider wiring, task/program schedule, mailboxes, manifest catalogues, project sequence-AOI shells, and any native-SFC chart/runner/reset shell.

Hand-writing any generated artifact is a gate violation. The hand-written parts are the declared device behavior/conditions and project sequence step logic inside designated generator-owned regions; regeneration shall preserve those regions and reproduce every other byte canonically.

Binds Core §1.5, §5.5.

Reading exported L5X (AB §2.5), and failing the build:

Gate Proves
G-BEGINEND every module AOI calls Begin first and End last, exactly once
G-SETUP every declared instance is set up exactly once, before first use
G-CYCLIC every deployed module AOI is called unconditionally exactly once per periodic scan in generated order
G-TIER no Unit composed inside an EquipmentModule (Core §3.3)
G-REGISTRY manifest ↔ registry ↔ AOI agree; every index in range
G-KEYS no hand-written literal where a FRK_K constant exists; no duplicate reason or key
G-NAMES Core §4.3–§4.6 naming; no . inside a local module name
G-GENERATED no hand-edit of a generated artifact (checked by regeneration, not by trust)
G-EXTACCESS all private/local/provider/scratch data are None, all published data are Read Only, and only declared mailboxes are writable
G-MAILBOX one writer/consumer per root; payload-before-commit order, sequence/ack fields, operation catalogue, and no arbitrary tag write
G-SEQUENCE each chain has one owner/token writer; nesting within limits; every branch/join and nonterminal transition is complete
G-SFC each native chart has one owner and one state/tag set, and is JSR-called only by its generated runner; N actions only; stable step/branch mapping; current-active-steps execution; generated SFR coverage; actions never call module AOIs or raw I/O
G-PROVIDER every provider kind/index is declared, bounded, initialized, and handled with a fail-closed default
G-RETAIN every retained member is declared/schema-versioned; no command/manual/force/mailbox transient is retained
G-SAFETY standard logic never writes safety tags; safety/control-power published data are read-only
G-TYPES public UDTs and manifest field descriptors match the frozen Core↔Logix↔repository type table

These are the AB analogue of plc_lint.py’s rules and shall ship with the feature each protects, not afterwards.

Binds Core §1.5, §2.5, §5.5.

Text lint is necessary but cannot prove that Studio 5000 accepts or verifies the generated project. The automated gate shall, from a clean checkout and the pinned toolchain: regenerate; compare clean; import the full L5X; Verify/Build the controller; fail on every error; export/canonicalize/recompare; download to the isolated target; run tests; and archive the exact logs, project hash, controller/firmware identity, and JUnit result.

The reference automation seam is the licensed Logix Designer SDK plus FactoryTalk Logix Echo SDK; manual IDE verification is acceptable only during Phase 0 exploration, never as the release gate. [PROVISIONAL S15] proves the SDK APIs, licensing, supported versions, unattended execution, diagnostic extraction, timeout/cleanup, and runner isolation. If controller Verify/Build cannot be automated reproducibly, the binding does not satisfy the Core CI gate as drafted.

AB §5.5–§5.6 Language and defensive coding

Section titled “AB §5.5–§5.6 Language and defensive coding”

Binds Core §5.5, §5.6.

Framework/base and reusable module AOI primary logic is Structured Text; generated Ladder is permitted for application chains whose parity/graph gates are in place. Generated native SFC is permitted for the program-owned form in AB §3.5 once G-SFC passes; S4/S11 have recorded their half (evidence). No protected/encoded source is accepted as conformance evidence. Every index, count, payload length, provider kind, operation kind, command, mode, logical type and motion target is validated before use. Every dispatcher has an explicit fail-closed ELSE/default. Integer overflow/ narrowing, array lower-bound translation, NaN, malformed Logix string length, and unknown CIP decode are handled according to the frozen S12 type table; none may become an implicit controller default or silent stalled state.

Binds Core §5.7.

There is no TcUnit. The binding defines a controller-resident harness mirroring its shape, because Core §5.7 requires per-type suites that run against the simulated HAL:

  • FRK_TestSuite AOI + a FRK_TestRunner program instantiating every suite;
  • results published as a bounded UDT array with the same five summary fields TcUnit reports (suites, tests, successful, failed, duration);
  • results harvested over CIP by the gateway or the CI host and converted to JUnit by an extension of the existing FraktalCore/PLC/TwinCAT/tools/tcunit_to_junit.py, so runner identity and expected counts are validated exactly as they are on TC3.
  • Core’s inheritance-free reality changes what is provable once: Part II proves T1/T4 once in the base suite because every type is a base. Here the base behaviour is proven once against a reference type, and G-BEGINEND plus G-GENERATED are what extend that proof to every other type. State this in the conformance record; it is an argument, not an inheritance guarantee.
  • The base suite covers T1/T4 plus reset-release, hold/resume, timeout/first-out, unsupported command, registry bounds, manifest invalidity, mailbox torn/stale/ duplicate requests, disconnect/no-replay, provider invalidity, and restart/ prescan safety. Type suites add the applicable Core T2/T3/T5 rows; a Unit with mode-entry policy proves T10. Expected suites/tests are generated and the CI harvester fails if a suite is uninstantiated or a count silently falls.
  • A chain carried in more than one language has one generated graph declaration and parity tests for steps, transitions, decisions, branches and terminal behavior. The native-SFC suite additionally proves initial-step reset, abort/error/reset re-entry, one active-step/group return per caller scan, and the declared one-scan command/result loop against the ST reference.
  • Tests use a deterministic simulated plant/tick where wall-clock behavior is not the subject. Performance, CIP throughput, controller health, safety-tag read paths, and motion retain named hardware/Echo evidence where simulation cannot establish the claim.

The named isolated-hardware CI path (S5, settled for the initial claim). Core §5.7’s “runs in CI” is satisfied here by a named isolated-hardware runner, not by Logix Echo. Echo is installed on no licensed Fraktal/AB workstation and carries no activation feature in any local licence file, so the Echo leg is unavailable rather than merely unused. The path is:

Element Value
Runner the isolated Phase 0 bench, 1769-L24ER-QB1B/A, firmware 33.014, serial 7036B510
Network the bench’s own segment; controller reached over EtherNet/IP for reads
Deployment conduit Studio 5000 v33 over USB, Backplane\16 — the engineering conduit of AB §11.2.1, never the gateway conduit
Suite the disposable reference suite, regenerated from an SDK seed by the Phase 0 gate
Harvest the fixed reference harness, hash-pinned pylogix, one row per test plus the five summary fields above
Results machine-readable JSON, PASS/FAIL per row, values redacted

One step in that path is a manual, authorized operation, and this is a deliberate narrowing rather than an omission. The download is performed by a person under current explicit authorization, with the controller identity re-read immediately beforehand and all I/O disconnected. Everything on either side of it — regeneration, import, Verify, canonical round trip, census, suite execution, result harvesting — runs unattended and emits machine-readable output.

This narrows Core §5.7 in a specific, stated way: the clause above says an engineer manually pressing Run is not CI evidence, and that rule is kept. What is manual here is deployment, not the test run: no human decides, observes or reports a single suite row. The alternative would be an unattended automated download to a physical controller, which this binding deliberately does not build — AB §11.2.1 keeps the engineering conduit off the gateway and out of permanent availability, and the Phase 0 toolchain contains no tool that can download at all. A binding that could deploy to a controller unattended would be a worse binding, and the decision record’s D3 already took this shape of trade once, when “parity” was narrowed to the shared contract suite rather than an A/B rig to remove a hardware blocker without weakening the claim.

The consequence is accepted in writing: Fraktal/AB does not claim push-button, zero-touch CI to a physical controller. It claims a reproducible regenerate-verify-execute pipeline with one authorized human deployment step. A deployment wanting the unattended form needs either CIP-Security-capable hardware with a supported automated download path, or a licensed Echo controller — and either is a new spike, not a configuration change.


AB §6 — Command execution & sequencing binding

Section titled “AB §6 — Command execution & sequencing binding”

Binds Core §6.

The PLCopen handshake is stored in FRK_ModuleBase and implemented only by the generated FRK_ModuleBase_Begin/End plus bounded helper AOIs. Execute, Busy, Done, Error, ErrorID, Abort, Aborted, Held, derived State, timing, and Execute-drop reset retain the Core meanings and ordinals. Concrete device logic can request complete/fault/hold only through helpers; it cannot write terminal state directly.

First-out, awaited-child error/hold rollup, pending-step diagnosis, warnings, decision waits, sub-chains, jumps, and concurrent joins use validated registry indices and FRK_SequenceCtx records. Every bounded table overflow has a named fault or explicit truncation flag according to Core; it never overwrites an unrelated row. A condition expected to recover remains HELD/BUSY and withdraws outputs with the same permit; it is not promoted to a latched alarm.

The generated scan and sequence gates prove:

  • one owner and one state writer per chain, branch, command, and child;
  • one scan with a child Execute low where Core requires Execute-drop reset;
  • no same-scan Reset-then-Set ordering that re-latches a terminal child;
  • no transition outcome is discarded by a later nested AOI call; and
  • every fault/reset/restart path reissues and retests a command rather than resuming mid-handshake unless Core explicitly defines resume.

The implementation test oracle is Core §6 plus the TC3 observable behavior, not the internal shape of FB_ModuleBase. A difference in scan ordering that changes an externally visible state/event/timestamp is a binding deviation and must be resolved or specified before release.


AB §7 — Permissives, interlocks, access, and mutation surface

Section titled “AB §7 — Permissives, interlocks, access, and mutation surface”

Binds Core §7, §14; HMI_CONTRACT.md.

FRK_PermIntlk, release reports, manual catalogues, and access policy are bounded UDT/AOI implementations of the Core records. Conditions are generated or declared at the lowest semantic owner; parents append records with the owning module ID and the gateway resolves its canonical path. Summaries such as AllOk/CommonManRelease never replace the records.

Unit Start consumes the Boolean result of the one complete Start release report after the access check. Manual release is common Unit conditions plus only the selected target/direction conditions. Safety, muting, bridging, and control-power state may explain a refusal but never become bypass bits in the standard task.

External mutations use one generated mailbox per root Unit. This is the only Fraktal data with External Access: Read/Write; all target module/configuration data are read-only. Its logical contract is versioned before physical layout:

Request field Required logical meaning
SchemaVersion mailbox major/minor; logically first and validated before all payload fields
CommitSeq changing uint32 transaction sequence; the only commit marker and physically written last
OperationId stable generated operation-catalogue ID; unknown IDs are refused
RootId / TargetModuleId stable manifest identities; registry ordinals are forbidden on the external surface
ArgumentSchema / Arguments operation-declared typed values; no free-form tag/path/value bag
Secret optional ephemeral credential slot, copied privately then cleared in the same consume path
Response field Required logical meaning
SchemaVersion response/mailbox schema actually processed
AckSeq exact consumed CommitSeq; published only after processing completes
Accepted PLC decision, distinct from transport success
ReasonCode / DescriptionKey refusal or result explanation; never a transport-generated substitute for PLC refusal
ResultingState operation-declared access/command/configuration result snapshot
ReleaseReport complete act-or-explain report when the operation/query declares one
PlcTimestamp / TimeSynchronized completion/refusal time and Core §2.7 quality
ConfigRevision manifest revision under which the target/operation was resolved

This is mailbox logical schema version 1. ArgumentSchema comes from the manifest operation row and defines names, logical types, cardinality, range/domain and secret classification. Physical scalar slots, string buffers, packing and maximum argument count remain S9/S12 decisions; they may not change the logical operation meaning. Mailbox schema major mismatch is refused without copying, logging, or acting on payload/secret fields.

The gateway serializes at most one in-flight mutation per root. It writes the payload first and commits it by writing the CommitSeq DINT last. The PLC consumes only a new, complete, schema-valid sequence; copies it to private storage; clears transported secrets; validates target/type/range/access/release; acts at most once; and publishes AckSeq plus accepted/refused reason. Transport write success is never command acceptance.

On timeout/reconnect the gateway reads CommitSeq and AckSeq; it never rewrites or invents the prior request. An uncommitted local request is discarded. A committed request is observed to acknowledgement/refusal before another request is allowed. Sequence uses every uint32 bit pattern, including zero after 16#FFFFFFFF, matching TC3. Logix stores the same bits in a DINT; the PLC compares for inequality, never signed order. Wrap is permitted only after the previous sequence is acknowledged. A client/gateway reserves its sequence before I/O; a failed or ambiguous attempt is never replayed. A fresh explicit request may skip a reserved sequence, with modular forward distance below 16#80000000. Download/prescan invalidates volatile in-flight state without turning an old payload into a new commit.

The operation catalogue is generated from HMI_CONTRACT.md and the manifest: module command/abort, Unit mode/start/stop/reset, manual command, decision, configuration write, login/logout/access-policy edit, alarm shelve/unshelve, field force, lamp test, and control-power operations. Each entry names its E_GatedAction, target scope, argument type/range/schema, acknowledgement, and release-report source. Unknown/free-form operations or paths are refused; the gateway exposes no generic CIP tag-write endpoint.

The request payload shall fit one unfragmented connected write. A payload larger than the negotiated connection size fragments across CIP transactions, and a controller scan can then fall between fragments. The commit marker still gates action, so the design is likely to survive it — but “likely” is not a contract, and the cheapest way to make atomicity provable rather than arguable is to remove the fragmentation entirely. FRK_MAX_MAILBOX_ARGUMENTS is therefore derived from that rule at S1’s conservative 500-byte connection size, not chosen for expressiveness. An operation needing more than that carries an operation ID plus a bounded argument set; genuinely large payloads are a staged configuration write, never a command.

The S9 native profile is FRK_T_<Root>HmiRequestV3, with the released scalar/string/ConfigSet prefix retained and a Frame appended. The five strings and four scalar arguments are private decoded storage; only the frame and final Sequence are native writable command arguments. Frame schema 1 has ten header DINTs (schema, Kind, IntValue, BoolValue, DurationMs, five string lengths), packed ASCII argument bytes, and the matching sequence as its last word. The complete array is written once at a 500-byte connection size, then Sequence separately. The controller takes a CPS copy, validates schema, matching sequence and individual/aggregate lengths before decoding, and wipes both transported and sampled frame words before publishing acknowledgement. The public HMI paths and operation ordinals remain those of the shared TC3 contract. ConfigSet records use the separate staged transaction. The generator derives frame capacity from the native symbolic path and pinned serializer; this profile passes the 17-row native vector on the press68 reference station after the owner’s completed-download confirmation; evidence. Other deployments still prove fit and their own operational budgets. The full write-enabled S9 claim passes for this named press68 deployment after corrected live-client verification; live acceptance. Other stations still prove their own fit, budgets and writable deployment.

This mirrors TC3, where the client “writes all request arguments first and writes Sequence last” and the Unit “consumes each new sequence once … then publishes AckSequence last”. The commit-marker design is shared, so a defect found here is a defect in both bindings.

Open verification item — carried in both bindings. Bounding the AB payload removes fragmentation for AB, but it does not retire the underlying question, and it does nothing for TC3, which has no equivalent bound. The assumption both bindings rely on is that every argument becomes visible to the scan before the commit marker does. The AB press68 native vector now tests premature commit, late payload and reversed segments with scans between writes; the TC3 native ADS/TF6100 transport leg is still open. Both bindings shall test it explicitly before a writable deployment: segmented request writes, arguments committed out of order, and a scan deliberately interleaved between the argument and sequence writes. The matching item is recorded in TC3 §3.10, and the fallback — a two-slot or seqlock mailbox — would apply to both bindings, not just this one.

[PROVISIONAL S9] proves the mailbox against partial/multi-service CIP writes, duplicate/out-of-order sequences, controller scan races, DINT wrap, secret clearing/log redaction, PLC refusal, and reconnect. The single-slot design above is tested first; if its atomicity assumptions fail, adopt a two-slot/seqlock mailbox before any writable deployment and do not relax the one-write-surface rule.

Crash testing is scoped to the boundaries that can actually produce a replay or a double-act, because that is what Core §11.3 forbids — “reconnect shall not replay an unacknowledged write”: crash after payload write and before commit; after commit and before the acknowledgement is observed; after observation and before local completion; reconnect holding a stale in-flight sequence; and sequence wrap. An exhaustive crash matrix is not required; these five are. Because the initial claim is read-only (AB §11.2.1), this work is owed when writes are enabled, not before.

Binds Core §7.7. Press58 and press61 failed the controller scan budget. Press59 authenticated in 25.78 seconds without overlaps. Press62 uses a gateway-assisted hash prefix with bounded final PLC verification. Its guarded controller access fixture passes 16/16 with login results in approximately 0.5 seconds, no task overlaps and no controller fault bits. The gateway broker correction is verified by that fixture; loading it in the running gateway requires the owner’s restart. Current press68 activation and write-enabled S9 now pass; live acceptance. Physical retention remains owed. See the hardware evidence.

A declaration with access_users enables a root-owned provider. A tuple contains at most four User(name, level, salt, pin_hash) registrations; an empty tuple is the shipped template default. None retains the historical named LOGIN refusal. Registrations contain a distinct 16-byte salt and the TC3-compatible SHA-256 result: one hash of salt plus PIN, then 256 hashes of digest plus salt. Provisioning obtains the PIN through a hidden local prompt and emits only the registration. User/hash storage, sampled request and hash work shall be private (ExternalAccess=None) and excluded from discovery. The public session, policy and bounded audit metadata are read-only. Private user arrays shall be sized from the declared registration count, with one inert row for an empty provider; four is the registration ceiling, not an unconditional allocation.

LOGIN shall atomically sample its request and clear transported and private credential bytes before compression. It acknowledges consumption immediately; Access.LoginBusy remains TRUE while authentication runs. A SHA block advances through ten scans: input, eight scans of at most eight compression rounds, then output. Inline masked DINT rotates and signed high-limb sums use exact integer division without signed overflow. Only a completed block may feed comparison. Private byte/word/hash work is cleared at completion, cancellation and Run entry.

The LOGIN ordinal remains 1. Its additive profile uses the existing IntValue: 0 supplies the original PIN in Secret; 1 supplies a 64-character lowercase hexadecimal preimage in TextValue, with Secret empty. Other profiles and malformed preimages shall fail. The preimage is SHA-256(salt + PIN), followed by 255 hashes of digest + salt: 256 hashes total. The PLC shall hash that preimage plus its own registration salt once, then compare all 32 result bytes against its private stored hash and grant only that registration’s level. The stored hash itself shall not be accepted as a credential. This preserves the complete 257-hash registration derivation and PLC authority. The gateway shall derive the prefix from a PIN without testing the private stored hash or granting a role. Unknown users use a zero salt for the prefix and receive the same bounded PLC hash work and generic failure. A Web caller shall not select profile 1; the transport writer performs the derivation after its existing authorization and target guards. It shall read the controller’s dimension-aware session layout and verify the advertised derivation count and schema before writing credentials. A native mailbox client may supply either profile, subject to the same PLC verification.

Preimages are password-equivalent credentials. They shall not be retained, logged, added to evidence or published in diagnostics/audits. Both the sampled and transported TextValue bytes shall be wiped immediately, including bytes beyond LEN, as shall Secret. Profile 1 introduces no gateway access principal or trusted client level; transport protection remains required by §11.2.1.

Read-only FRK_T_AccessStateV3 preserves V2 fields and appends LoginPrehashRounds=256 and LoginResultSequence. The result sequence shall be the sampled request sequence and shall be written only when authentication finishes, before clearing Busy. The generic HMI shall ignore prior outcomes when that optional field is published. LoginTimeoutMs remains derived from the full native PIN path: 257 * 10 * task_period_ms + 10000, with a ten-minute declaration limit. On the 10 ms bench the native path has 25.7 seconds of nominal scheduling and a 35.7-second result budget; the accelerated path has 100 ms of nominal controller scheduling. These are scheduling bounds, not measured costs. Press61 measured 32,136 µs maximum scan, 771 overlaps and minor fault bits 64. The press62 hardware fixture now measures the accelerated gateway/controller request path and task budget; its native PIN path has not been timed on this build. See the hardware evidence above for the measured scope.

Failure preserves the previous session and sets LoginFailed. LOGOUT cancels pending authentication. Entering Run clears volatile session/hash state while retaining the configured policy and users. The gateway contract fingerprint changes with State V3; a gateway for this profile shall refuse an older build.

All mutations are checked on the controller, including native mailbox clients. The twelve gate ordinals, levels 0..4, default open thresholds, self-lockout rejection and idle timer follow Core §7.7. ACK_CONFIG_RESTORE directly requires ENGINEER, as TC3, independently of policy. Held-input withdrawal remains available without a level. Only successful login or accepted authenticated mutations rearm idle time; reads, pure release/list/export queries and refusals do not. A session belongs to the root, shared by its clients.

The gateway projects the PLC session and policy. --access-level is a pre-login display ceiling and cannot grant a controller role. Transport authentication through the bearer/proxy remains required by §11.2.1. Audits use the existing 64-slot §8.3 ring as LOW, AUTO_RESET, instant come-and-gone closed events. A sidecar supplies authenticated actor and action/gate metadata for those slots; ordinary alarms may overwrite them. No PIN or hash is published in the audit. FRK_T_AccessAuditV3 has SchemaVersion=3; UserWords[64*8] stores each slot’s 32 actor bytes in eight DINTs, four bytes per word in little-endian order, zero-padded after UserLength. Its six metadata arrays remain 64 rows. V3 preserves the V2 member order and appends DataCapability[64] and DataRequiredLevel[64], identifying a denied configuration value and effective minimum level. The gateway decodes that version through the manifest’s generated layout; unknown audit schema versions shall not be decoded as V3. Session state is FRK_T_AccessStateV3; private FRK_T_AccessWorkV5 holds the scan’s spent-phase flag as well as login/hash work. A new LOGIN is refused if that scan already advanced another hash phase, even if the previous login just completed. Compression and audit writes are emitted once as program routines, with private scratch storage; this does not add project glue.

AB §7.7.2 Data classes and per-value access

Section titled “AB §7.7.2 Data classes and per-value access”

Binds Core §3.8d. Press64 is downloaded on serial 7036B510; its guarded data-class fixture passes 18/18, with all regressions passing and all settings and fixture inputs restored. Maximum scan is 5,259 microseconds in the 10 ms task, with no overlaps or fault bits. See the hardware evidence. Physical retention remains owed. Write-enabled S9 now passes on press68; live acceptance.

An enabled access provider may declare up to eight root-owned DataClass records with stable ClassId, localized LabelKey and default read/write levels. Editable members carry ClassId and immutable minimum read/write levels, independently of ConfigKind. Manifest major 4 preserves the V3 write-capability prefix and appends ClassKey, MinReadLevel and MinWriteLevel in FRK_T_<Root>MfWriteCapV4. A coordinated controller/gateway update is required.

FRK_<Root>_DataPolicy is a separate retained, externally read-only tag. Startup shall not overwrite edited class levels. SET_CLASS_LEVEL shall check ACCESS_POLICY and validate the native ClassId bytes, direction and level 0..4 on the PLC before editing that policy. Class defaults and physical retention across download or power loss are distinct claims; the latter requires evidence.

One generated controller resolver shall use DATA_READ/DATA_WRITE for an empty ClassId and the retained class policy for a named ClassId, then raise the result to the value’s minimum. Unknown classes and corrupt levels shall require ADMIN. Externally read-only DataLevels publishes the resolved levels and readability; the gateway shall project them without recomputing permissions. QUERY_CONFIG shall return metadata even when DATA_READ is higher than the session, with blank ValueText and Readable=FALSE for unreadable values. Changes to effective entry levels or readability shall invalidate the configuration page revision.

WRITE_CONFIG and CAPTURE_CONFIG shall check the effective value write level before sampling or committing. LOAD_CONFIG_SET shall check every staged record’s effective write level before any commit. EXPORT_CONFIG_SET shall check every record’s effective read level before returning any line, including the header; a refused export shall clear the previous returned line. Both shall identify the first inaccessible record. SAVE and DELETE retain CONFIG_SET without an additional per-record read/write gate, as Core. Native mailbox clients shall receive the same checks and audit actor as gateway clients.

Every refused action returns the same complete release/access explanation the PLC evaluated. The gateway may pre-disable a control from the latest snapshot, but it does not decide acceptance and it does not substitute a generic network error for a PLC refusal. Accepted privileged actions and denied attempts enter the Core §8.3 audit/event ring without credentials or secret payloads.


AB §8 — Diagnostics & performance binding

Section titled “AB §8 — Diagnostics & performance binding”

Binds Core §8.

  • The diagnostic model, first-out selection, alarm ring, rationalization and shelving are Core behaviour and port unchanged as FRK_ AOIs over bounded UDT arrays. No Logix Alarm (ALMD/ALMA) instruction is used for the Fraktal alarm model: Core §8 owns the semantics, and mixing two alarm systems would give the operator two truths.
  • §8.11 timing. Task execution time, its maximum and overruns come from the GSV TASK object (LastScanTime, MaxScanTime, OverlapCount). The task’s real period and jitter come from WallClockTime between scans. Settled by S3 (evidence).
  • §8.12 system health. Controller major and minor faults come from GSV FaultLog, and time quality from GSV TimeSynchronize. Both are settled by S3. This controller exposes no CPU load or free memory through GSV, so those groups are published unavailable, as are IPC and distributed clock. CPU and memory are therefore a declared platform exclusion from Core §8.12’s “shall monitor”: unavailable and never shown healthy, but not an event. TC3 raises CONTROLLER_METRICS_UNAVAILABLE whenever they are missing because its IPC always has them; on a controller that has no source the condition could never clear, and a permanent alarm nobody can act on teaches operators to ignore the screen. A station may still declare SystemHealth(require_controller_metrics=True), like the time-sync, fieldbus and distributed-clock requirements, and is then told on every scan. Module connection state, from the module object, remains [PROVISIONAL S3].
  • Localization keys bind to numeric key IDs resolved in the HMI catalogue, not repeated cyclic strings (AB §3.8). The gateway projects the same portable string key expected by the repository. Applying numeric IDs to TC3 is a separate Core/Part II improvement decision, not something this binding changes.
  • §8.5/§8.11 OEE and profiling. Counts, machine state, cycle markers, command timing, step timing, and concurrent-leg rows use the same bounded Core records. The task clock source and arithmetic range are fixed by S3/S12; overflow and synchronization degradation are explicit.
  • §8.9 rationalization. Reason metadata and localization key IDs are generated into the manifest from the one registry. A Logix Tag-Based Alarm or ALMD/ALMA projection may integrate with plant tooling, but it is read-only/derived from the Core event state and never becomes a second latch/reset/shelving authority.
  • §8.10 shelving — measured on the enabled reference profile. AlarmActive/Ring V2 append the consumed Shelved flag. With an access provider, the mailbox resolves exactly one non-closed event by native source+description bytes and checks ALARM_SHELVE plus registry category/shelvability. SAFETY and missing rationalization fail closed. Whole-second duration is capped at 28,800 seconds; countdown uses the binding’s periodic task-duration clock, independently of calendar time. Shelf/unshelf/expiry log in the Core event ring; control and blocking remain untouched. Press65 exhausted memory in owner Verify; press66 compiled but exhausted memory at link/download and the download was cancelled. Press67 retains bounded manifest identity lookups, shares configuration audit and Start release routines, and reduces unused manifest reserve by 12,288 bytes. Public layouts and the four-user ceiling remain unchanged from press66. On serial 7036B510, press67 passes shelving 15/15 and all configuration, access, parity and Phases 1–5 regressions. Expiry after logout is logged; native role impersonation and an unshelvable defect are refused, and the defect still blocks Start. Original settings/session are restored. Maximum task scan is 5,279 µs against 10,000 µs, with zero overlaps/fault bits. The template remains offline-tested and needs its own S9 deployment evidence. Press68 S9 now passes; physical retention remains owed. See hardware evidence, link memory correction, previous correction and initial build record.
  • §8.13 signal tower. The shared generated service writes semantic lamp/buzzer requests to the HAL. Only the project I/O driver maps them to module outputs. Lamp test is a gated mailbox operation and cannot override a safety-controlled indication or energize an undeclared output. The optional typed Application.signal_tower convention selects versioned read-only semantic output storage and a private native FBD_TIMER/TONR. LAMP_TEST uses the existing MANUAL gate (ordinal 2), refuses a BUSY Unit or an already active test, and ignores client duration arguments. The service runs unconditionally after alarm processing; its native timer bounds the test independently of the client connection. Startup convention defaults nonpositive duration to 3 seconds and clamps duration to 30 seconds. The hardware driver remains the sole electrical output owner. See the scoped implementation evidence.

Binds Core §9.

  • Functional safety is GuardLogix / CIP Safety, in the safety task, and it is the sole authority for safe state, safe enable, unlock, muting and bridging.
  • The standard Fraktal application consumes safety state read-only. The binding mechanism is a generated standard-task adapter that reads controller-scoped safety tags directly and projects the approved status into FRK_SafetyStatus. Logix permits standard routines to read, but not write, controller-scoped safety tags. Safety Tag Mapping is not this path: it maps standard tags into safety tags for use by safety logic and therefore shall not be described as a safety→standard publication mechanism.
  • Fraktal code shall not write a safety tag, request a reset on behalf of an operator, or represent a bridged/muted state as anything but read-only status (Core §9.8).
  • Safety reset/unlock/muting/bridge requests, if the certified safety design accepts any standard-origin input, are outside the ordinary Fraktal mailbox and remain governed by the validated safety application. Standard-origin data mapped into safety is untrusted and never grants a safety function by itself.
  • The project evidence records safety signature/lock state, safety-task and standard-task boundaries, every safety tag read by the adapter, and proves G-SAFETY. GuardLogix absence means the optional safety/control-power profile is absent; it never means a standard emulation of safety authority.

Binds Core §10.

  • EtherNet/IP (CIP) replaces EtherCAT. Device I/O appears as controller-scope module tags; the Core HAL boundary is unchanged — exactly one project routine touches them (AB §10.2.1).
  • Connection health, module presence and configuration mismatch come from the module object and populate Core §10.5.1’s topology and I/O diagnostics. [PROVISIONAL S3]
  • The gateway’s channel values come from the declared input and output process image words. Output quality describes that sample, not electrical actuation or remote applied-output feedback. Each direction requires its own successful word read and the fault word before claiming Good channel quality. A failed read in the other direction does not invalidate an otherwise valid sample; an incomplete module sample retains the offline node indication. Unknown fault data grants neither Good quality nor an output-force affordance.
  • Core’s fieldbus-loss policy (§7.8, §11) is unchanged: a lost connection queues nothing and resumes cleanly rather than replaying stale actions.
  • Each claimed module family has a generated/module-profile adapter that records identity, configured/actual state, connection/fault code, channel catalogue, and approved electrical tag. Unknown module/fault codes remain visible as raw code plus an explicit unknown description; no CASE falls through silently.

Binds Core §10.6.

Core motion semantics bind through a FRK_AxisHAL/provider seam. Application Units and reusable motion modules command semantic operations; only the AB motion adapter owns Rockwell axis types/instructions and maps their done/busy/error/ abort, limits, home state, safety permit, and diagnostics into the Core contract. Motion object references are InOut provider parameters and never registry integer casts.

[PROVISIONAL S14] selects the supported Integrated Motion controller/axis families, instruction mappings, test-mode behavior, fault/reset semantics, limits/units, update ordering, and Logix Echo versus hardware evidence. Until it passes, motion is an unclaimed optional module family, not a generic stub.

Binds Core §10.7, §11.9/§11.10 where claimed.

Produced/Consumed tags or MSG-based peer exchange may implement a declared profile, but they are adapters behind the same provider/HAL boundary and use stable IDs/schema versions. They cannot bypass the root mailbox, invent a second Unit command surface, or silently consume a mismatched structure. Peer communication loss follows the same no-replay/rearm rule.


Binds Core §3.10, §11; R0 authority recorded in AB_R0_CORE_AUTHORITY_EVIDENCE.md.

Default and alternative. The conforming Fraktal/AB default is EtherNet/IP explicit messaging between the Logix controller and one Fraktal gateway, followed by the versioned Fraktal repository protocol to clients. OPC UA is an alternative transport/projection only when the named deployment proves it; no base Fraktal/AB claim depends on OPC UA availability.

Logix controller — FRK_Manifest + FRK_Registry + contract tags
│ EtherNet/IP explicit messaging (CIP symbolic access)
Fraktal gateway — discovery · decode · batching · freshness · write acknowledgement
│ versioned Fraktal repository protocol over TLS
Generic Flutter HMI — existing PlcRepository boundary, no station or type screens

Direct CIP from the HMI is not the reference design: Flutter Web cannot open raw industrial sockets, so a gateway is required for a shipped platform in any case, and one gateway keeps CIP decoding, batching, reconnect and credentials out of every operator client.

Binds Core §11, §7.7, §14.

The gateway owns transport work only. It shall: supervise the CIP session; read and validate the manifest before accepting data, rejecting incompatible schema versions explicitly; batch and fragment reads within measured limits; decode Logix types into the repository’s typed values; carry explicit freshness, quality and both timestamps, never presenting stale data as live; serve the existing fast/slow/on-demand read tiers and aggregate demand across clients; accept only the narrow Fraktal write vocabulary and wait for PLC acknowledgement rather than treating transport success as acceptance; discard pending writes on disconnect and require a fresh snapshot before writes resume; and expose bounded observability.

EtherNet/IP explicit messaging is polled request/response here, not treated as a subscription service. Poll rates and batch sizes come from the manifest read tier plus the measured S1/S3/S9 budget. The gateway rate-limits retries and writes independently so a slow on-demand topology read cannot starve command acknowledgement or fast state.

The gateway is not an authority. Release policy, access level and command acceptance are decided in the PLC and re-checked there (Core §7.6, §7.7). A gateway that decides anything has moved a safety-relevant decision off the controller.

The write vocabulary and the acknowledgement rule are now proved on hardware. The root’s HmiRequest/HmiResponse mailbox was commanded through the gateway on 2026-09-22: every argument written first and Sequence last, the answer taken from the controller’s own AckSequence rather than from a write returning true, and a mode change observed in what the controller publishes. The six routed kinds were accepted, three unsupported kinds refused by name, and an anonymous write, an off-mailbox write and a replayed sequence were all refused at the gateway before the controller saw them. Evidence: AB_MAILBOX_COMMAND_2026-09-22.md.

A credential may not cross a plaintext hop, so the gateway serves TLS. A conforming client refuses to attach a bearer token to a ws:// endpoint, which is why the gateway takes --tls-cert/--tls-key and its write token comes from the environment rather than from argv (§14.2/§14.3). Where a workstation’s endpoint-security product intercepts TLS — including on loopback — it re-signs the gateway’s certificate with an untrusted root and no client-side trust configuration can repair that; the deployment has to exclude the port or trust the bench CA. That is a host decision, not a binding defect, and tool/probe_gateway_tls.dart distinguishes it from a misconfigured trust store by reporting the certificate actually offered.

The write surface is closed in generation, and its download is gated. Every request tag the mailbox routes into is emitted None and is no longer described in the manifest — it is the mailbox’s output, not public data — and the contract structures are Read Only, so a CIP client can no longer set RunRequest directly and skip the validation, refusal and acknowledgement the mailbox performs. What remains writable is the simulated plant and the evidence apparatus, which is a property of a demonstration application that declares no physical I/O rather than of the binding; a real application takes those signals from a card and has no such tags. Closing it changed the manifest, so the two builds are told apart by reading the controller rather than by trusting a label.

That build must not be downloaded yet. Commanding the press exposed a defect the open write surface had been hiding: the handler raises the level-sensitive request tags it routes into and never lowers them, so a commanded bench was left with AbortRequest latched and the Unit Aborted, while every command reported Accepted. With the surface closed the mailbox is their only writer and nothing could recover it. The defect, the restored bench and what a fix must get right are recorded in AB_MAILBOX_LATCHING_DEFECT_2026-09-22.md, and the download is gated behind fixing it in AB_STUDIO_WRITE_SURFACE_HANDOVER_PROMPT.md.

The generic HMI itself now commands the press. With that exception in place, the unmodified OpcUaRepository issued the six routed kinds over an authenticated wss:// session and received the three refusals with their reasons, returning false to its caller for each — so an operator control cannot render success for a command the machine declined. Evidence: AB_HMI_COMMAND_2026-09-22.md.

Availability, stated plainly. On TC3 a native server lets any conforming client reach the controller; here the gateway is the only path for every client. The PLC never depends on it — the machine runs, releases hold, safety is untouched — but the operator interface including diagnostics is unavailable until it restarts. It is cell-local infrastructure with a supervised restart, and that expectation belongs in the project’s binding record.

One gateway process instance owns one PLC session; a host serving several PLCs runs separate instances with separate configuration, listener/origin, health, logs and restart state. There shall be one active write-owning instance per controller/root. Multiple read observers are permitted. Redundant gateways require an explicit single-writer lease/failover design proved against mailbox sequence ownership; two independently configured writers are forbidden.

Redundancy is out of scope for the initial claim, matching TC3, where a host runs one supervised instance per PLC and no lease protocol exists. The consequence is accepted deliberately rather than omitted: a gateway restart removes the operator interface including diagnostics until it returns, while the machine keeps running, releases hold and safety is untouched. That sentence belongs in the project’s binding record. Nothing in Core requires redundancy; a deployment that needs it shall first supply the lease/failover design this clause demands. Service supervision, startup ordering, health endpoint, bounded local logs/metrics, configuration backup, certificate renewal, and tested restore belong to the deployment evidence, not only to an operations README.

“Parity with the TC3 adapter” means semantic parity, and it is not an A/B test against a Beckhoff rig. What Core actually requires is that one generic HMI renders any binding with no per-station code (Core §1.1 O8, §3.10): the HMI binds a single repository interface and every adapter is a swap-in behind it. What must therefore be identical is the observable repository contract — envelope fields, quality transitions and their fail-closed defaults, tier classification, discovery and configuration revision handling, mailbox commit/acknowledgement ordering, and no-replay on reconnect.

Equal latency is explicitly not required, and demanding it would be arbitrary: ADS is Beckhoff’s native fast path and CIP is not, so the numbers differ for reasons that have nothing to do with conformance. AB latency is recorded, not matched.

The practical consequence is that parity is proven by making the AB adapter pass the same adapter-agnostic repository contract suite the existing adapters satisfy, rather than by running two rigs side by side. A Beckhoff bench is therefore not a prerequisite for S9, and its absence is not a blocker.

[PROVISIONAL S9] proves discovery, typed decode, coherent reads, tier fairness, acknowledgement, quality/timestamps, disconnect/reconnect and manifest revision, and that the AB adapter satisfies the shared repository contract suite. It is a conformance spike, not a throughput benchmark.

Binds Core §11.2, §14.

Plain CIP explicit messaging does not provide the authenticated/encrypted session model Core §11.2/§14 requires. Two deployment postures are defined, and they are not equals.

Recommended posture — CIP Security. New deployments should use a CIP Security-capable controller at firmware v37 or above and prove a supported CIP Security configuration. This is the only posture where the controller itself authenticates its peer, and it is the posture a project should choose unless the hardware is already fixed.

Legacy posture — zone and conduit. Where the controller family cannot offer CIP Security — the 1769-L24ER-QB1B at v33 used for Phase 0 evidence is such a controller — the deployment shall place the controller side in an IEC 62443-aligned zone with the gateway as the controlled conduit, declare the target Security Level (Core §14.1), and record in the binding record that the transport itself is unauthenticated. This posture remains supported because the installed base is real, but it is explicitly the weaker one: the network is the control, and the project owns that risk knowingly.

The initial claim is read-only. Core §11.2 attaches the authentication obligation to command-capable transports and requires that “a projection that is read-only shall state that restriction explicitly”. Fraktal/AB therefore ships read-only by default: the gateway is configured with no write root, every operator command is refused at the gateway before the controller sees it, and the deployment states the restriction. On a strictly segregated line this is a proportionate posture, because no write surface is exposed to authenticate.

Read-only is a property of the deployment, not of the mailbox (decision of 2026-09-29). The controller-side mailbox routes the operations supported by the committed declaration, including mode/command requests, configuration and enabled feature providers, and refuses unsupported operations by name. A read-only deployment cannot reach a mutation: the gateway carries no write root and refuses the request before the controller is addressed, so the routes exist and are unreachable. The distinction matters because both halves are claims about different things, and collapsing them makes one of them false: the binding is not “read-only because the controller accepts nothing”, it is read-only because the deployed transport commands nothing.

Controller routes depend on the committed declaration. The reference press now routes capture, station sets, the controller access provider and declared data classes. Press67’s shelving routes now pass 15/15 on serial 7036B510 after the memory correction, with all regressions and final restoration passing; see hardware evidence. A declaration without the access provider retains the named shelving refusal. A deployment can refuse any mutation at its transport gate. Enabling writes is a gateway configuration change, which re-arms §11.2.1 and the owed S9 verification.

For an enabled access provider, published Access/* comes from the PLC-owned session and policy (§7.7.1). The default thresholds remain NONE, as Core, and the pre-login level is NONE. Legacy declarations with no provider retain a named LOGIN refusal and their explicitly deployment-declared display level. The bearer and authenticated proxy supply transport authentication, separately from PLC operator levels. On press67, access passes 16/16 and data classes 18/18; the write-enabled S9 claim now passes on the named press68 deployment; live acceptance.

This gateway now exists and has been proved read-only against the bench controller. tools/fraktal_ab_gateway.py serves the projection over the HMI’s fraktal.opcua.gateway.v1 protocol and, configured with no write root, refuses write/writeBatch with a clear reason before the controller. Through that gateway the unmodified generic HMI renders the live press — the root Unit and its three control modules, with modes, states, step and counts — over the same production code path the desktop app uses, and the write refusal was exercised and seen to degrade the HMI rather than command the machine. Evidence: AB_HMI_GATEWAY_2026-09-21.md.

The project owner authorized write-enablement on 2026-09-21, which re-arms this requirement in full. The gateway now carries the §14 write gate: a write is refused unless the client presents a configured bearer token (no anonymous write), is confined to the <root>/HmiRequest/<member> mailbox surface, and — for a command — carries the monotonic HmiRequest/Sequence commit. That gate and its paired negatives are proved offline. It is not yet a commanding HMI: the controller publishes no HmiRequest mailbox (MailboxId 0) and the projection publishes no command catalog, so an authenticated in-scope write is refused as “not connected” until the AB command binding is built — either a gateway translation onto the controller’s existing command tags or a controller-side mailbox downloaded on the bench. The decision, the posture and the owed work are recorded in AB_HMI_GATEWAY_WRITE_ENABLE_2026-09-21.md. The per-use rule still binds: a specific controller write needs current authorization and an exact target check, and no mode write may issue until the loaded build’s E_Mode ordinals are confirmed.

Closed on the controller 2026-09-23. The mailbox exists, the write surface is shut, and both are proved on the bench (AB_WRITE_SURFACE_CLOSED_2026-09-23.md). Every request tag the mailbox routes into is ExternalAccess="None", which removes it from the CIP namespace: a client cannot read one, and a write to one is refused with Path segment error. FRK_<app>_HmiRequest is the single command surface, and an access audit of the generated project reports Conforms: true with CommandSurface of exactly one tag.

Two rules come out of proving it, and both are normative:

  • A command is proved by the machine state it produced, never by its acknowledgement. The mailbox’s first hardware run returned ten clean acknowledgements over a press that had been driven into a latched abort: the handler raised the request tags it routes and nothing lowered them, which went unnoticed for as long as those tags were externally writable because every client wrote 1 then 0 and supplied the deassert the controller never performed. Closing the surface made the mailbox their only writer and turned a latent defect into a blocking one (AB_MAILBOX_LATCHING_DEFECT_2026-09-22.md).
  • A request the application does not declare is refused by name, never clamped. SET_MODE carrying a valid E_Mode ordinal the application has no chain for — CHANGEOVER on a press that has none — answers project.mailbox.refused.mode_not_declared rather than landing in AUTO.

Once the surface is shut, an evidence harness is a client like any other: the fifteen-row press matrix now commands through the mailbox over CIP and seeds its sequence from the controller, because a harness that restarts its numbering has every run after the first refused as a replay.

Commanded from a browser 2026-09-24. The generic Web HMI changed the press mode from Chrome — AUTO to MANUAL, with ModeActivePublished reading back E_Mode.MANUAL off the live unit context — over the same gateway, protocol and mailbox, with no change to any of them (AB_BROWSER_COMMAND_2026-09-24.md).

That run settles where the authenticated principal lives, and it is normative: a browser cannot present the gateway’s bearer token, so the §14 principal is established at the proxy and the proxy supplies the gateway credential. The WebSocket API offers no way to set an Authorization header, and a token field in the HMI would put a long-lived gateway credential in every operator’s browser storage. An authenticated reverse proxy on the HMI’s own origin resolves both: it authenticates the operator, and presents upstream the credential the browser could not send, so the gateway never receives the operator’s secret and the operator never holds the gateway’s. Serving the HMI and the gateway on one origin is the whole configuration — a release Web build derives wss://<page-origin>/fraktal itself.

Whether a browser attaches cached credentials to a WebSocket upgrade is browser behaviour and shall be proved per browser, not assumed: only Chrome has been exercised. A browser that declines needs a cookie or token exchange at the proxy instead, which changes the proxy and nothing below it.

Enabling writes re-arms the full requirement. Writes are switched on at the gateway, not by regenerating or downloading controller code — the generated allow-list already gives root mailboxes read/write and everything else read-only or None. The moment a write root is configured, the transport becomes command-capable and Core §14’s rule applies without relaxation: authenticated principals, least-privilege roles (operator / maintenance / engineering), and anonymous or unauthenticated write is prohibited. PLC-side re-checking (Core §7.6/§7.7) is defence in depth, never a substitute.

Because that switch changes the security obligations of the whole deployment, an agent or engineer creating a new Fraktal/AB project shall ask explicitly whether the project is read-only or write-enabled, and shall record the answer in the binding record. It is not a default to be inherited silently.

The controller-side allow-list is generated and audited: manifest/public data read-only, root mailboxes read/write, everything else None.

Client identity follows the TC3 model. TC3 §11.1 permits anonymous membership with SecurityPolicy=None “only for a controlled commissioning activity” while the production requirement remains authenticated sign-and-encrypt with least privilege. Fraktal/AB adopts the same two-state rule, with the read-only claim as the third, weaker state:

State Client authentication Permitted
Commissioning anonymous permitted controlled activity only, time-bounded, recorded
Read-only production anonymous permitted on a declared isolated conduit reads and diagnostics; no write root configured
Write-enabled production authenticated principals, least-privilege roles the operator / maintenance / engineering roles of Core §11.2

Roles restrict; they never decide. The PLC remains the access authority (Core §7.6/§7.7), and a gateway role can only narrow what the controller would already have permitted.

Secrets follow Core §14.2/§14.3 and the TC3 practice. Endpoints, credentials and keys are configuration or secret-store values, never literals in generated code, L5X, customization exports or version control, and never logged. Rotation is a change-managed activity under Core §13/§14.3 with a named owner; the audit log records privileged actions without credential values.

Engineering access is a separate conduit and is not permanently open. Core §14.1 requires the engineering conduit to be access-controlled and “not permanently open on the production network”. For Fraktal/AB this is satisfied by keeping Studio 5000 access off the gateway conduit — the Phase 0 evidence path, USB at Backplane\16, already meets it, and a routed engineering VLAN reachable only on demand is the alternative. The gateway conduit carries the repository protocol and nothing else; it is never a path to project download, online edit or firmware.

When a write root is configured, the gateway additionally authenticates clients before root discovery, enforces assigned-root read/write scope, rate-limits mutation and login attempts, and records security-relevant failures without credential values.

[PROVISIONAL S8] The posture above is decided and two of its inputs are measured (evidence): the Phase 0 controller implements none of the CIP Security object classes 0x5D, 0x5E or 0x5F — a positive absence, since the device answers the session and refuses all three — and the allow-list audit this clause requires now exists and runs offline. S8 still owes either a demonstrated CIP Security configuration on a v37-or-above capable controller, or the documented zone, conduit and declared Security Level for a legacy deployment, plus the audit run against a generated production project rather than a Phase 0 fixture. Deciding the posture is not evidence that it was implemented.

Binds Core §1.5.

The Fraktal repository protocol is versioned with an explicit handshake, and both bindings speak it. The shipped gateway today carries a protocol field but no version handshake, and two OPC-UA-named diagnostic fields; creating the neutral versioned protocol is therefore work on the TC3 side as well, not an AB-only cost. Incompatibility fails closed and is reported, never negotiated down silently.

Before discovery or mutation, the client and gateway exchange: protocol name; supported major and minor range; manifest/repository schema versions; capability flags; client instance ID; and requested root scope. The gateway selects and echoes one exact compatible version or returns a structured incompatibility and closes the data session. Major mismatch is always fatal; optional minor features are enabled only when explicitly negotiated. No legacy fallback may widen the read scope or expose writes.

Every snapshot, manifest replacement, request acknowledgement, and error carries the selected protocol version plus connection/discovery revision needed to reject stale frames. Unknown fields are tolerated only under the declared additive-minor rule; unknown operation kinds and logical value types fail closed.

Repository negotiation schema, version 1. The wire encoding remains the gateway implementation’s concern, but the first application exchange on a new transport session is fixed:

Message Required logical fields
ClientHello Protocol='fraktal.repository', supported (Major, MinMinor, MaxMinor) ranges, supported manifest/repository/mailbox schema majors, capability flags, non-secret ClientInstanceId, requested stable root IDs
ServerHello one exact Major/Minor, selected schema versions, negotiated capability intersection, ServerInstanceId, new nonzero ConnectionRevision, current DiscoveryRevision, granted root IDs
Incompatible stable reason/key plus server-supported ranges; no manifest, values, root names, or write surface; session then closes

No snapshot, discovery row, targeted read, subscription/tier request, mutation, or acknowledgement is accepted before ServerHello. Every subsequent frame contains the selected version and ConnectionRevision; frames addressing discovered data also contain DiscoveryRevision. Either mismatch is stale and rejected, not coerced. A new transport connection always gets a new ConnectionRevision, even when it reconnects to the same gateway process.

Minor-version compatibility is additive only: a receiver may ignore an unknown field only when the negotiated capability says that field is optional and the operation/logical type is already understood. Unknown operation or logical type, missing required field, scope widening, or any major mismatch is fatal. The current fraktal.opcua.gateway.v1 implementation has no such handshake and is therefore explicitly pre-contract; it is not evidence for this clause.

Binds Core §11.4, §3.8.

Controller-resident and host-backed recipes both enter through the provider seam and root configuration mailbox. The manifest’s write-capability entry supplies scope, WriteKey, logical type, range/enum, schema and required gated action. Large records use a versioned bounded staging area with payload hash, length, chunk sequence and final commit; the PLC validates the completed immutable payload before PrepareRecipe. A reconnect never commits a partial/stale stage.

AB §11.5 Alarm, event, and historian projection

Section titled “AB §11.5 Alarm, event, and historian projection”

Binds Core §11.5, §8.3.

The controller event ring remains authoritative. The gateway may feed a historian, Logix/FactoryTalk alarm projection, SQL/MES adapter, or other event sink using event sequence and idempotency keys. Sink failure cannot block the PLC ring or alter alarm state; overflow/wrap is explicit and alarms are never acknowledged/shelved/reset merely because an external sink accepted a record.

Binds Core §11.6, §3.16.

Each root publishes the fixed bounded HostEvents ring with monotonic event sequence, head/count/capacity/wrapped state and the Core record fields. The gateway reads head metadata before and after a batch, accepts only a coherent view, and maintains a per-sink acknowledged cursor. Reconnect resumes by event sequence; if the controller ring wrapped beyond the cursor, the gateway emits an explicit data-loss record instead of pretending continuity.

Host-originated commands/results are never injected into this read-only ring. They use the validated recipe/host provider or root mailbox. Optional outbound sinks receive the same record and idempotency key; the PLC does not wait for them unless a particular process step explicitly awaits a host transaction.

HostEvents logical schema, version 1. Ring metadata contains SchemaVersion, Head, Count, Capacity, Wrapped, NewestSequence, and DataRevision. Each active record contains the Core §11.6 fields Sequence, Kind, StationPath, PartUid, Subject, Value, Stamp, TimeSynchronized, Verdict, and ReasonCode. Kind uses the fixed append-only Core vocabulary; optional strings are empty only when the selected kind declares them inapplicable. Sequence zero is invalid. A record sequence is also its sink idempotency key.

The gateway reads metadata before and after the requested record window and accepts the batch only when DataRevision, head and newest sequence are stable. Invalid count/capacity, duplicate/non-monotonic active sequences, an unknown kind, or an overwritten cursor interval produces an explicit BAD/data-loss result. Physical string bounds, timestamp representation, ring capacity and CIP fragmentation remain S7/S12 outputs; no physical choice may drop a logical field or turn wrap into silent continuity.

Implemented non-part stream (2026-10-18). The optional declaration host_event_capacity (1..64; zero omits it) emits a new capacity/version-named ring UDT, append AOI and Unit AOI signature. No released required-InOut signature is replaced. V1 producers are MODE_CHANGED, CHANGEOVER_STARTED, CHANGEOVER_DONE, and NOK; resource producers use V3 below. With the optional local carrier, physical host schema V2 adds received/started/processed/aborted events and PLC-captured bounded ASCII identity. V1 output stays unchanged. The owning NOK mark takes a registered reason or the Unit’s captured ReportedReason, never an inferred client cause. All event storage is controller-owned. The v33-compatible physical carrier is DINT columns; station identity and model values resolve through the validated declaration/catalog. Inapplicable PartUid/Subject fields are empty.

Confirmed resource producers (physical host schema V3). A Unit chain may annotate a confirmed MARK boundary with resource_kind (TOOL_CHANGED or MATERIAL_CHANGED), resource_subject (1..63 printable ASCII characters) and resource_value (a signed DINT literal or exact declared scalar operand). The owning process shall choose the actual confirmation boundary; changing a configuration value alone does not prove a tool or material changed. The framework captures the subject and current value into the same PLC ring at that boundary, once per visit. A failed Part helper on that MARK prevents resource publication. No remote resource command or device protocol is implied.

V3 uses the same physical member layout as V2: its 64-cell DINT ASCII identity column carries PartUid for kinds 1–4 and Subject for kinds 7–8; other kinds carry neither. Resource Value is the captured signed DINT rendered as decimal text, with no later lookup against mutable process state. Text-valued resource confirmations select the additive V4 profile below; device-backed identifiers still need a separately qualified provider. Carrier-off applications expose no Part producer and refuse Part records on acquisition. The named V3 emitter has one reusable body in either composition. The Unit and Part-service AOI names change for the V3 required-InOut type; existing V1/V2 projects remain unchanged. Exact configuration revision compatibility may recognize the same declaration with only resource annotations omitted; unrelated revisions and ordinary schema/value validation remain refused.

Captured text resource values (optional physical host schema V4). ResourceText(literal=...) selects a literal of 0..80 printable ASCII characters; ResourceText(source=...) selects exactly one declared Cfg, Unit or module DINT array of 1..81 cells. Exactly one source form shall be supplied. Arbitrary expressions, indexing in the source name, scalar sources, non-ASCII/control characters and literal truncation are refused. An array supplies ASCII cells, zero-terminated and zero-filled after its first terminator; a shorter declared array is padded by the capture owner. Eighty printable cells are permitted, with a zero terminator at cell 80. All source cells are copied at the existing confirmed MARK boundary before append; the host shall never reconstruct the value from later live process state.

V4 preserves the V3 member prefix and appends private PendingTextEnabled, PendingText[81], ValueFormat[Capacity] and ValueText[21*Capacity] DINT storage. Per-slot format 0 retains the ordinary numeric/inapplicable value; format 1 is permitted only for kinds 7/8, with the legacy numeric Value zero. Four ASCII bytes occupy each positive DINT, least-significant byte first; the 21-word slot includes the terminator and zero padding. The append owner clears text storage for every non-text record. Consumers shall reject unknown formats, malformed bounds/ASCII/termination, nonzero padding and text leaked into a non-resource record. The logical HMI/sink Value remains a string.

The single append owner validates captured text before modifying sequence, head, revision or retained rows. Invalid capture latches Failed=1 with no partial append; acquisition is BAD rather than skipping the event. This is stream integrity handling, not a resource-control command or carrier protocol. The required-InOut Unit/Part-service and append AOIs use V4 names; existing V1-V3 output remains unchanged. Exact configuration compatibility may recognize the same declaration with only text-valued confirmations omitted, preserving ordinary value/schema validation and refusal of unrelated revisions.

Genealogy event snapshots (optional physical host schema V5). A declared Part genealogy capacity selects V5. Part events (kinds 1..4) capture that boundary’s parent set in the same revision-bracketed append as identity and result; the gateway shall never join a historical event to later live parents. Other event kinds carry an empty parent set. The physical ring adds a private pending count/buffer, per-slot ParentCount and ParentWords with sixteen packed DINT words per configured parent per retained slot. Four printable ASCII bytes occupy each positive DINT, low byte first. Every append clears the slot before filling the applicable captured parents. Acquisition shall refuse invalid bounds/bytes/padding, duplicate/self UIDs, nonempty inactive slots or parents on non-Part records. Logical events expose Parents as a string list; the generic HMI projection also exposes scalar Parents[i] slots.

V5 type/AOI names encode text presence and genealogy capacity (V5T0G<n> / V5T1G<n>), so a genealogy-only declaration carries no unused text buffers. AsciiSource is the common descriptor; ResourceText remains its compatible alias. Earlier genealogy-free V1-V4 output is unchanged. Configuration restore may recognize only the exact predecessor declaration with genealogy capacity zero and parent confirmations omitted, with ordinary schema/value validation.

Publication brackets initialization and append with an odd/even DataRevision. Only equal, even metadata around a bounded read is accepted. Positive DINT sequences never wrap: exhaustion marks the stream failed. Startup WallClockTime.CurrentValue words scope the publisher epoch; observed native time quality accompanies each record. Epoch change and overwritten cursor intervals produce explicit loss records. Per-sink cursors advance only after acknowledgement, are atomically persisted and scoped to controller/build, station and epoch. Delivery is at least once; sinks deduplicate the supplied idempotency key. Clock replay, physical restart/retention and live sink recovery still require target acceptance. The compiler/model evidence does not grant a complete traceability, host-integration or v38 runtime claim. See host/nameplate compiler evidence.

AB §11.7–§11.11 Optional OPC UA and industry projections

Section titled “AB §11.7–§11.11 Optional OPC UA and industry projections”

Binds Core §11.7–§11.11, Annexes F/J/K where claimed.

OPC UA remains a permitted alternative north-bound projection—an embedded server where the named controller/firmware supports it, or a commercial gateway—generated from the same live model so it cannot create a competing identity or hierarchy.

Core §1.5 now makes companion/projection conformance binding-qualified. A base claim is Fraktal Core + Fraktal/AB; a deployment may additionally claim, for example, Fraktal/AB + PackML/OPC UA only when the complete projection is present and verified. [PROVISIONAL S10] therefore gates the optional projection and the additional claim only; it can no longer block the default EtherNet/IP path.


Every unresolved [PROVISIONAL] clause, its spike, and what it costs if the assumption fails are recorded here. Settled rows remain as immutable Phase 0 decisions and link their evidence.

Clause Spike Status Assumption or settled result If wrong
AB §2.2 S2 PASS appended optional atomic Input with compatible default preserves existing calls only after clean import/Verify; required/InOut/removal/retype/reorder/meaning changes are major; evidence settled by the evidence-gated optional-Input rule
AB §2.5 S4 PASS L5X round-trips stably and faithfully: the representative construct matrix — two task types with schedules, ST/RLL/SFC side by side, nested and tabular records, a sized string type, a generated constant, and the three AOI scan routines — imports 0/0, verifies 0/0, round-trips canonically, and passes a generated-vs-exported construct census; evidence settled for the constructs the binding generates; FBD, alias and produced/consumed tags are out of scope and motion is S14
AB §2.7 S1 PASS WallClockTime plus explicit TimeSynchronize quality satisfies Core §2.7; unsynchronized clocks remain TimeSynchronized=FALSE; evidence settled by the quality-preserving rule; correlated multi-controller order requires separately proved CIP Sync
AB §3.3 S2 PASS one public UDT Ctx InOut executed through eight nested AOIs; External Access hid private members/instance storage; v33 boundaries are 64 InOuts and 16 nesting levels, with Fraktal ceiling eight; evidence settled for the pinned v33 baseline; future targets rerun S2
AB §3.10 S7 PASS one bounded manifest fits: 43,728 bytes read completely and coherently in 293 ms at a 500-byte connection and 62 ms at 4000, with a ~32 ms header-only steady-state poll; the eight S7 capacity symbols are resolved at the measured sizes; evidence. Content published 2026-09-07: the press demo carries a generated manifest — 1 root, 4 modules, 142 fields, 5 operations, 206 localization keys, 12 reasons, Valid, not truncated — emitted from the same declaration as its AOIs, describing the declared graph once whichever rendition ran, and read back out of the imported project to prove it is stored rather than merely accepted; evidence. Read from the controller 2026-09-08: the whole 22,112-byte manifest comes off the bench in ten requests and 91 ms at a 4002-byte connection, coherent under the S7 revision protocol, with every published row equal to the declaration; evidence settled — no per-root split is required; raising a capacity is a cost-curve calculation, not a new spike. Nameplates and optional profiles publish zero rows because this application declares none
AB §4.1 S6 OPEN registry/manifest survive online change commissioning gains a documented download step
AB §5.7 S5 PASS the named isolated-hardware path is defined and executed: the disposable reference suite runs on the bench and emits nine machine-readable rows plus the five §5.7 summary fields, all passing on three consecutive runs. Echo is unavailable on every licensed workstation, so it is recorded as unavailable rather than unused, and the download is a declared authorized manual step — deployment, not the test run; evidence zero-touch CI to a physical controller is not claimed, and the full per-type harness grows with implementation
AB §8.11/§8.12, §10 S3 PARTIAL — task timing, time quality and controller faults PASS GSV and module objects supply health and timing §8.11/§8.12/§10.5.1 reduce to a declared subset. Measured 2026-10-01, read-only, on the bench: TASK LastScanTime 545-882 µs and MaxScanTime 1,021-1,190 µs against a 10 ms period; the real period 9,805-10,198 µs with jitter at most 198 µs; no overlap under the full harness load; TimeSynchronize 0/0 (no PTP, as S1/S9); no fault bits. CPU load and free memory have no GSV source and are declared unavailable; evidence. Still owed: module connection state (INT-typed MODULE attributes)
AB §11.2.1 S8 OPEN — posture decided, partly evidenced CIP Security on v37+ recommended, zone/conduit the supported legacy posture, initial claim read-only so Core §14’s write rule is armed by enabling a write root rather than relaxed. Measured: the Phase 0 controller implements none of CIP objects 0x5D/0x5E/0x5F, and the required allow-list audit now exists and runs; evidence. The legacy leg is now discharged: zones Z-CTRL/Z-ENG, conduits C-EIP/C-ENG, and a declared SL-T 1 / SL-C 0 for the v33 bench, with SL 2 named as unreachable on this family rather than exceptable; declaration. Still owed: a demonstrated CIP Security configuration on capable hardware, and the allow-list audit against a generated production L5X writes cannot meet §14; binding stays read-only until fixed
AB §3.13, §7.7, §11.2 S9 PASS — named press68 write-enabled deployment Native V3 replay/frame vector 17/17 and all eleven regressions/restoration pass; native evidence. The shared TC3/AB repository contract passes 75/75; declared 500 ms polls, 250 ms cache, 1,000 ms slow heartbeat, 2,000 ms Good / 3,000 ms expiry and 4,000-byte reader enforce quality and command refusal during stalled reads; freshness evidence. The corrected generic client passes 60 seconds with 121 updates, 224 detail batches, no stale/down transition, three fresh connections, exact-serial manifest readback and S3 6/6; owner confirms stable Chrome, HTTPS verifies the client hash; live acceptance. Coherence and unsynchronized timestamp mapping retain their earlier declarations; coherence, quality/timestamps. Zero PLC growth. The separate historical S1 clock probe, physical retention and TC3 native segmented transport are not claimed by this run another station or mailbox profile still proves its own fit, budgets and writable deployment; no blanket writable-binding claim
AB §11.7–§11.11 S10 OPEN optional OPC UA/companion projections are available where additionally claimed omit or narrow that binding-qualified optional claim; the default EtherNet/IP base claim is unaffected
AB §2.5, §3.5 S4 OPEN ST/LD plus native SFC routines, actions, transitions, settings and reset targets round-trip canonically. The ladder half of the execution question is now closed: an emitted RLL state machine walks a real application graph on the bench in step with the ST reference, which S4 never claimed - it proved RLL round-trips, not that one runs; evidence. Still open: the rest of the S4 construct matrix round-trip disable native SFC; ST remains the reference sequence form
AB §3.5 native SFC S4 PASS generated steps, NonStored actions, transition expressions, simultaneous branches, execution settings, SFR target and JSR parameters survive import, Studio v33 Verify and repeated canonical export; evidence settled for the pinned v33 baseline; the rest of the S4 construct matrix is still open above
AB §2.8, §3.5, §4.1 S11 PASS both generated forms walk one declared graph with identical traces and identical scan counts; module AOI runs unconditionally and before sequence intent; command/result latency is exactly one scan; simultaneous legs are per-branch; SFR re-entry repeats the run; evidence. Extended to the third language: the press AUTO graph is declared once and rendered in ST, native SFC and ladder, and all three walk byte-identical per-step entry-count vectors over a cycle, hold identically at the door-close step and stand down identically on abort - seventeen parity rows, three consecutive runs, no variance; evidence settled for ST, native SFC and ladder on the pinned v33 baseline, for the mechanics this graph uses; generated alternative branches and a sub-chain call are still not covered
AB §3.8 S12 PASS the bounded type map is measured: TIME/TIME32/LREAL are unavailable and LINT is transport-only; the public UDT’s CIP payload, member offsets and 24-byte stride, two’s-complement overflow, NaN transport, byte-counted STRING.LEN, zero-based arrays and the range-checked duration are all recorded; evidence settled for the pinned v33 baseline; any other controller family or revision reruns the spike
AB §3.15 S13 OPEN claimed socket/serial adapters meet byte-channel limits and reconnect semantics exclude affected connector/module families from initial claim
AB §10.6 S14 OPEN Rockwell motion maps Core motion semantics and is testable exclude motion family or define a narrower versioned profile
AB §5.4 S15 PASS, narrowed regeneration, SDK import with a gated log, export, canonical round trip, census and diagnostic capture all run unattended from a clean checkout across nine legs; Studio v33 Verify Controller runs automated but needs a logged-in desktop session, and download is deliberately not automated at all — on this workstation Studio additionally crashes when Download is invoked programmatically, three times across two mechanisms, with the controller untouched each time; evidence headless Verify and unattended deployment remain unclaimed; neither is required by R4
Core §6.1, §6.2; AB §3.14 S16 PASS the Core §6.1 PLCopen handshake and the §6.2 mode chain execute on Logix through generated composition, with no runtime base structure invented: the whole contract fits one DINT-only context UDT and two AOIs — module plus mode owner — using only types S12 proved, and the ordering rule is self-checked in the fixture rather than documented; declaration. Executed on the v33 bench: SDK import 0/0, Studio v33 Verify 0/0, canonical round trip identical, census clean, and all nine matrix phases passing identically on three consecutive runs — a held command is BUSY at LOW severity with reason 6101 and no Error, a fault raises Error with ErrorID 6102 at HIGH severity in ERROR state, abort never self-resumes, and the module AOI ran ahead of sequence intent every scan at exactly one scan of latency; evidence. That evidence only became repeatable after the executor was fixed to read the context in one request: a 25-request per-member sweep tore against the 10 ms task exactly as S9’s rule predicts, and made phases pass on one run and fail on the next. Still owed: registering S16 in the Phase 0 gate, an automated download on this workstation, and Core §6.1’s answer on whether a HELD command may time out the §6.1 lifecycle needs base structure Logix cannot express through composition, which would reopen AB §3.14

Every readiness gate R0–R6 now records PASS. S1 transport, S2 AOI parameter shape, S4 source fidelity, S5 test execution, S7 manifest read budget, S11 sequence execution, S12 public data contract, S15 the build gate and S16 command execution are settled, which closes R2, supplies R3 its resolved capacities, and closes R4 and R5. R6 passes for the declared read-only claim and no further.

Three of those PASSes are bounded, and the bounds are the interesting part: S15 is narrowed — Studio Verify needs a logged-in desktop and download is deliberately not automated; S5 claims a named isolated-hardware path with an authorized manual deployment step, not zero-touch CI; and R6/S8 claims the legacy zone-and-conduit posture with CIP Security, SL 2 and writes explicitly unclaimed. S9 now has the native press68 mailbox vector and shared repository contract evidence. Current-deployment freshness/poll source and read-only cost checks and corrected live verification pass on the named press68 deployment; live acceptance. Physical retention, the separate historical S1 clock probe and TC3’s native segmented-transport leg are separate work. Enabling writes still returns the deployment to this register; it does not inherit a complete writable claim. S13/S14/S10 gate only the optional profiles they name.


AB §13 — Versioning and change management

Section titled “AB §13 — Versioning and change management”

Binds Core §13, §1.5.

One generated declaration set owns these independently versioned artifacts: Core semantic version, AB binding version, generator version, public UDT/AOI revision/signature, manifest schema, repository protocol, gateway build, and project configuration hash. The manifest publishes the runtime-relevant set and the CI evidence records all of it. A change classification table is frozen in Phase 2:

Change Minimum treatment
implementation-only with identical public UDT/AOI/manifest behavior patch plus full regression
additive optional field/capability understood by older peers minor only if explicit negotiation/ignore rules prove compatibility
appended optional atomic AOI Input with compatible default and clean import/Verify of all calls minor is permitted; retain the S2 evidence shape
required/InOut/removed/retyped/reordered AOI parameter, public UDT layout, ordinal, mailbox, manifest major, or command meaning change major plus migration and coordinated download/gateway/HMI update
recipe/configuration record change new SchemaVersion and migrate-or-fault path

An online edit, AOI import, generated L5X replacement, firmware/toolchain update, controller-family addition, security-policy change, or gateway protocol change is managed change. Release evidence includes clean regeneration/import/build, test results, compatibility matrix, retained-data decision, rollback artifact, and post-deployment manifest/hash verification. A generated component may be sealed/signed only after these checks; the signature never replaces source review or behavioral tests.


Binds Core §14; extends AB §11.2.1.

Each deployment records the IEC 62443 zones/conduits, controller and gateway asset identities, CIP/CIP Security capabilities, firewall/allow-list, engineering path, browser/API endpoint, certificate authority/rotation, identities/roles, backup/restore, patch/vulnerability process, logging/monitoring, incident response and recovery test. Default controller/program/data-type External Access is never trusted: G-EXTACCESS proves the generated allow-list from L5X.

The gateway runs least-privileged as a dedicated service identity, binds the PLC endpoint and permitted root scope explicitly, rejects discovery-based production target selection, exposes no arbitrary CIP service/tag proxy, and redacts credentials/secrets. Dependency/SBOM and update-signing policy cover the CIP library, gateway runtime and installer. Security regression includes malformed/ oversized manifest and mailbox inputs, authentication/rate limits, stale session, scope escape, downgrade, certificate failure, log redaction and fail-closed restart. Safety authority remains independent of every cybersecurity control.


AB Annex A — What this binding does not claim

Section titled “AB Annex A — What this binding does not claim”
  • No production binding/runtime has been compiled, downloaded or run. Disposable Phase 0 fixture results are evidence only where their linked records say so; no normative clause is evidence by itself.

  • Every readiness gate R0–R6 records PASS, and Phase 4 has begun: one committed declaration emits the contract UDTs, module AOIs, mode owner and L5X, and the press demo emitted from it runs on the bench with all fifteen matrix rows passing (evidence). That is against the bounds those gates record, not around them: R6 passes for the declared read-only claim only, S15 is narrowed, and S5’s CI path carries an authorized manual deployment step. The reusable module library (Phase 6) remains unbuilt. The gateway/repository adapter and the generic HMI are built and proved on the bench: the unmodified HMI renders the live press and, as of 2026-09-24, commanded it from a browser; the packaged installer path for AB is still unexercised.

  • Where it is weaker than Part II, it says so: tier composition and lifecycle ordering are gate-enforced rather than compiler-enforced (AB §3.1, §3.11, §3.14), and per-type lifecycle correctness is an argument from generation rather than an inheritance guarantee (AB §5.7).

  • Native SFC is a program-owned application sequence form, not an AOI primary routine. S4/S11 proved the generated JSR/SFR wrapper, L5X fidelity, scan latency and restart behavior on the pinned v33 baseline, so the form is enabled within that proved surface. Application-owned Unit/EM charts get one generated stateful routine/tag set per deployed owner; reusable AOI-contained sequences retain ST/LD unless that materialization is separately proved (AB §3.5).

  • Connectors, motion, optional OPC UA/companion projections, and any controller family absent from the tested matrix are not claimed merely because a Core interface or manifest capability exists.

  • The binding is level with Fraktal Core 0.21.0.0 for the read-only claim (audited 2026-09-29, Evidence/AB_CORE021_PARITY_2026-09-29.md). Every clause added between Core 0.14 and 0.21 is bound or recorded below as not claimed with its reason; no gap was found and nothing was downloaded, the loaded build already matching the declaration at 122F979D6C141EC8. The read-only claim itself was proved on the bench under the definition of §11.2.1: both write and writeBatch refused before the controller was addressed.

  • The §146 principles parity ran on the bench the same day and passed, 17 of 17 (Evidence/AB_PARITY_146_2026-09-29.md). P8 and P9 are demonstrated on hardware in all three renditions — a two-hand release HELD at LOW with no fault and resumed on its own, an abort stood the chain down to the init step in about 3 ms, and SFC and LD matched ST on step trace, visited set, held behaviour and stand-down. P6 and P4/P11 are bound by declaration. P2 is not claimed: AB implements no §7.6 release report and the mailbox refuses RELEASE_START by name, so its Start gate is the minimal error/abort guard rather than a second predicate beside a report that does not exist. Still owed: the visual half of the HMI pass, which needs eyes on the panel.

  • Where the binding stands after the 2026-09-29 parity work (audit: Reports/AB_TC3_PARITY_AUDIT_2026-09-29.md). The controller carries 4D11673BCE65B2F2, which matches the declaration and includes Phase 0 of that plan: per-model stored configuration, the module library, module-relative field keys (manifest schema major 2), the corrected §3.8a restore, and routed WRITE_CONFIG, QUERY_CONFIG and ACK_CONFIG_RESTORE. Two consequences are stated here so they are not assumed away:

    • The §146 parity was re-run on it and passed, 17 of 17. Phase 0 moved the changeover commit into the routine and module timing into the instance context, which is control flow, so the earlier result was not inherited. press28 (4D11673BCE65B2F2) was compiled in Studio v33 and downloaded, and the pass was run against it. The changeover commit and the per-model restore that the pass does not reach were read off the controller directly (Evidence/AB_PHASE0_ON_HARDWARE_2026-09-29.md).
    • Writes are routed, and the write-enabled claim is not made. Writes were enabled on the bench by explicit decision, and the S9 row above still holds: no writable claim until the write-enabled contract suite passes. That was the 2026-09-29 state; press68 now passes the scoped S9 gate linked above. Other deployments still provide their own evidence.
  • ContentHash does not cover the emitted logic. It is a hash of the published contract, so two builds carrying the same hash may differ in ST: adding a refused mailbox kind to a CASE label changes the program and not the contract. Compare builds by regenerating and diffing the artifact; the hash answers “does the client’s picture still hold”, not “is this the same program”.

  • Core clauses added after the Phase 4 base are not claimed, each for a recorded reason (decision of 2026-09-28):

    • deleting a parameter set (Core §3.8b) and data classes with per-value access (§3.8d) change or gate persistent data, so they belong to the write-enabled profile (§11.2.1). The binding stays read-only: the mailbox refuses both requests and there is no class table. They are bound if and when a project enables writes and records that answer;
    • line data (§3.8e) and shifts (§8.5.2) form Core’s optional Line profile (Core §1.5). The additive owner/calendar-V2 implementation described below requires its own target acceptance. The Phase 4/press68 claim does not acquire + Line from a later source implementation.

    The read-surface gate records remaining absent capabilities with their reasons (tools/check_consistency.py AB_ABSENT). The Line read surface is now exercised by that gate.

Optional owner Line calendar V2. A declaration may select one line owner beside its root, with printable identities up to 80 ASCII bytes. It is data, never a module or extra root. Its manifest OptionalProfiles row uses the numeric localization key for std.profile.line, ProfileVersion=2, and masks 3: bit 0 owner configuration, bit 1 root shift accounting, in both capability and projection masks. A declaration without this profile emits no Line tags, capabilities or optional-profile row. Mirror/source transport is unbound and shall not be advertised as implemented.

FRK_T_LineCfgV2 has leading native DINT SchemaVersion (2), UTC offset and four flattened start/duration/day-mask rows as Core §8.5.2(a) specifies. Only their declared line.* capabilities enter the mailbox (ConfigKind=2). Ordinary writes validate the whole proposed calendar. A Line set contains all 13 fields, with duplicate/kind/type/range/effective-permission checks and whole weekly-overlap validation before an atomic commit and one revision increment. The owner state publishes identity keys, revision and last accepted timestamp; private candidate/applied calendars are never external write targets. The expanded value arrays use FRK_T_DataLevelsV2 and FRK_T_ConfigSetStateV2 with schema 2; V1 arrays are not reinterpreted as their larger layouts. Other released UDT layouts remain unchanged. The SchemaVersion-0 restore gate and validated commissioning images apply to Line configuration too. Native boot/download durability still needs target evidence.

FRK_T_ShiftStateV2 stores the applied revision, current/next boundary and eight newest closed records. Native UTC epoch-minute plus subminute-ms timestamps avoid REAL precision loss. The root snapshots its existing counters/raw OEE buckets, audits closure, then resets the accumulators while retaining the OEE trend. Projection derives factors from that immutable snapshot; no gateway/HMI poll accumulation is permitted. Unscheduled gaps, deferred edits and clock jump quality follow Core §8.5.2. The closed sequence/history are the northbound sink boundary; an external sink/delivery adapter remains separately unbound. Multi-root shared ownership and mirror transport require their own composition and acceptance; the single-root Press bench does not establish either.

Version 3 extension (five rows and production targets). The owner profile advertises ProfileVersion=3, retaining both masks 3. FRK_T_LineCfgV3 (SchemaVersion=3) retains V2’s first four flattened rows, appends the fifth start/duration/day row, then five DINT ProductionTarget fields (0..2147483647, 0 unconfigured). Their portable keys are line.shift.<1..5>.productionTarget, with UnitCode=30 (PIECE). A complete Line set contains 21 capabilities. Original model/station and first-four-calendar capability ordinals remain stable. Old incomplete Line sets refuse; arbitrary revision acceptance is not a migration mechanism.

The expanded derived value layouts use FRK_T_DataLevelsV3 and FRK_T_ConfigSetStateV3, schema 3. FRK_T_LineWorkV3 has five-slot private candidate/applied calendars and targets. FRK_T_ShiftStateV3 adds the latched current target and one target for each of the same eight history records. V2 type layouts are not redefined as V3. Whole-calendar validation searches all ten unordered row pairs with the existing bounded weekday-mask algorithm. Targets follow the same deferred revision application as the schedule; root closure snapshots the old target before applying the next calendar.

The explicit offline migrate_line_v2 commissioning bridge validates all four old rows, preserves them and the complete model catalog/current records, appends an unused fifth row, initializes targets to 0 and validates the complete resulting image. It does not copy credentials, sessions or runtime history. Capacity/Verify/completed-download evidence remains target-specific; an offline generated artifact is not proof of controller fit.

Adding Line capabilities preserves the earlier model/station field ordinals. The set validator recognizes only the derived exact pre-Line and pre-catalog revisions whose existing value schemas agree, then applies current complete type/range/kind/permission checks. Foreign revisions still refuse; this is a bounded additive bridge, not an accept-all migration policy.

  • The module type key (LOCALIZATION §7.1) is bound: the declaration names each module type’s key (Module.type_key, Application.type_key for the root Unit), validated against the §7.1 namespace, and the gateway projection publishes it as Status/TypeKey. It is presentation vocabulary, so it is kept out of the controller manifest - renaming it changes no content hash and asks for no download - and the press uses the keys the TwinCAT press publishes for the same types, so one faceplate serves both.

The Core model — tiers, contracts, handshake, diagnostics, release, traceability — is unchanged. That is the point: if this binding works, O8 is demonstrated rather than asserted, and the same generic HMI domain/UI drives a Logix machine without station/type screens; only the transport/gateway adapter changes.


AB Annex B — Primary platform references and evidence rule

Section titled “AB Annex B — Primary platform references and evidence rule”

Phase 0 records exact document revision, product version and retrieved URL. The licensed current Rockwell/ODVA specifications outrank this pre-spike draft where they describe platform or wire behavior; a conflict rewrites the binding before implementation.


This table is the completeness check for the binding document. “Unchanged” means the Core behavior remains normative; the cited AB clause fixes only the platform mechanism. A new Core clause shall update this table before AB implementation can claim the corresponding feature.

Core surface AB binding mechanism Pre-implementation evidence
§1 objectives, conformance, definitions AB §0/§1/§12–§14 R0 and named version/baseline
§2 environment, tasks, simulation, time AB §2/§4.1–§4.2 S1/S4/S5/S11/S15
§3.1–§3.3 tiers/containment/catalogue AB §3.1–§3.3 S2; G-TIER/G-REGISTRY
§3.4–§3.7, §3.17 modes/commands/cascade/extensions AB §3.4–§3.7/§3.17 S11; base transition tests
§3.8 recipe/providers AB §3.8/§11.4 S12; provider and migrate-or-fault tests
§3.9–§3.14 selectability/contract/HMI/lifecycle AB §3.9–§3.14 S2/S7/S9/S11/S12; generated schemas/gates
§3.15 connectors AB §3.15 S13 for each claimed transport/family
§3.16 traceability AB §3.16/§11.6 carrier/HostEvents tests
§4 structure and naming AB §4 L5X naming/ownership/schedule gates
§5 language/defensive coding/testing AB §5 S4/S5/S12/S15; clean CI evidence
§6 handshake and sequencing AB §3.5/§6 S11; base/sequence/recovery tests
§7 release/access/manual AB §7 S8/S9; mailbox and act-or-explain tests
§8 diagnostics/OEE/health/signal tower AB §8 S3/S12; timing/rationalization/I/O tests
§9 safety/control power AB §9/§14 named GuardLogix safety-boundary evidence or profile absent
§10 I/O/fieldbus/HAL/motion/routing AB §3.15/§10 S3/S13/S14 for claimed families
§11 connectivity/host/projections AB §11 S1/S7–S10; frozen protocol/manifest/host schemas
§12 worked examples port-plan Phase 3/7 fixtures examples are evidence, never normative mechanisms
§13 versioning/MOC AB §13 compatibility/migration/rollback record
§14 cybersecurity AB §11.2.1/§14 R6/S8 plus security regression

Built from Specification/Fraktal_AB_Part_III.md at revision a1163c7 of the Fraktal repository.