topoDocs
Formal Specification

Technical Reference & Validation Rules.

The formal engineering rules and validation engine invariants that govern Topo’s network synthesis and packet audit pipeline.

Universal Generation Rules (GEN-U)

These rules are strictly enforced across both Basic and Optimal generation sub-modes:

Rule IDInvariant SpecificationRationale / Target
GEN-U-01IP allocator must reserve .1 (Gateway), .2 (L3SW1 SVI), and .3 (Core-Dist SW2 SVI). Device allocation starts at .4.Prevents SVI / Host IP conflicts
GEN-U-02Wireless LAN Controllers (WLC) must connect to switch trunk ports with MGMT VLAN IP; never assigned a /30 routed interface.CAPWAP tunnel connectivity
GEN-U-03Any ip phone device type must be auto-assigned to a VOICE VLAN; if none exists, auto-create VLAN 40 (VOICE).Voice traffic prioritization
GEN-U-04Every /30 point-to-point subnet must have exactly two device IPs assigned (.1 and .2) before output is finalized.Eliminates orphaned WAN links
GEN-U-05No VLAN may be generated without at least one assigned endpoint device or designated server.Prevents empty/ghost VLANs
GEN-U-06Routers must never appear in switch VLAN membership tables; they use 802.1Q subinterfaces for routing.Cisco L2/L3 role segregation
GEN-U-07If the user prompt contains explicit subnet specifications (e.g. 10.50.0.0/24), those must override all default pool calculations verbatim.User-defined lab spec accuracy
GEN-U-08Output must pass all 10 Validation Engine checks before being returned to the user interface.Zero silent output failure guarantee

Basic Mode Rules (GEN-B)

Rules governing strict, non-enhanced generation:

GEN-B-01 & GEN-B-02 (Device Purity)

Output contains only devices explicitly named in prompt. No APs, WLCs, or IP phones unless explicitly specified.

GEN-B-04 (Console Laptop Role)

Console laptops connect strictly via console rollover cables — no IP address and no VLAN membership.

GEN-B-06 (Serial WAN Assignment)

WAN prompts assign Serial0/0/0 (DCE with clock rate 64000) and Serial0/0/1 (DTE) when serial links are requested.

GEN-B-07 (L2 Switch Purity)

Cisco Catalyst 2960 switches must not be assigned routed interfaces (no switchport commands prohibited).

Optimal Mode Rules (GEN-O)

Rules governing professional best-practice enhancement:

GEN-O-01 & 02 (Topology Classifier)

Executes NLP classifier to detect topology archetype (SOHO, SMB, Campus, Branch-WAN, Data Center) prior to device generation.

GEN-O-04 & 05 (Campus Redundancy & Firewalls)

Injects redundant Core-Dist B L3 switch and Cisco ASA 5506-X firewall between edge router and core switches.

GEN-O-06 (Wireless Controller)

Provisions WLC 2504 + AP infrastructure for topologies requesting wireless mobility.

GEN-O-07 (OSPF Scope)

Applies dynamic OSPF to multi-router backbones; strictly never applied to access switches or end devices.

Validation Engine Rules (VAL-01 – VAL-10)

The core audit engine evaluates these 10 mathematical and architectural invariants:

RuleValidation InvariantSeverity
VAL-01Every /30 subnet must have exactly 2 assigned endpoint IPs.P1 Critical
VAL-02No two devices in the same subnet may share an IP address.P1 Critical
VAL-03No 2960 switch may have a routed interface entry.P1 Critical
VAL-04Every WLC must connect to a switch trunk port, not a /30 link.P1 Critical
VAL-05Every ip phone type must be assigned to a VOICE-type VLAN.P2 Caution
VAL-06Every VLAN generated must have at least one end device assigned.P2 Caution
VAL-07Console laptop must have no IP address and no VLAN entry.P3 Recommended
VAL-08If prompt specifies subnets, output must use those exact subnets.P1 Critical
VAL-09Routers must not appear in switch VLAN membership tables.P1 Critical
VAL-10OSPF must not be applied to end devices, access switches, or WLCs.P1 Critical

Bug Frequency & Reliability Matrix

Empirical frequency data across 8 baseline benchmark tests (4 prompts × 2 modes) and projected reliability growth:

Prototype Bug Recurrence
  • IP conflict at .2 in user subnet8/8 (100%)
  • WLC connected via /30 routed link8/8 (100%)
  • IP phone on data VLAN instead of voice8/8 (100%)
  • Orphaned /30 subnets6/8 (75%)
  • 2960 switch assigned routed interface4/8 (50%)
Reliability Projections by Phase
  • Phase 1 (Post-P1 Fixes)~70% Basic / ~55% Optimal
  • Phase 2 (Classifier + Analyze MVP)~88% Basic / ~85% Optimal
  • Phase 3 (Full 10 VAL Rules)≥90% Both Modes
  • Phase 4 (Platform Maturity)≥95% Production Target