HomeDocs-Technical WhitePaper13-EFT.WP.Methods.SimStack v1.0

Chapter 3: Discrete Weaving & Thread Network (Threads Layer)


I. Scope & Objectives


II. Terms & Symbols

  1. Execution graph and weights
    • G=(V,E): a directed acyclic or feedback-containing execution graph. V are Thread/Actor nodes, E are dependencies or message channels.
    • w(v): nominal service time or work for node v. c(e): transmission/queueing cost on edge e.
    • crit(G): critical-path length. W(G)=Σ_v w(v): total work. D(G)=crit(G): span.
  2. Arrival and service rates
    • lambda(v): arrival rate. mu(v): service rate. rho(v)=lambda(v)/mu(v): utilization.
    • Coefficients of variation: c_a^2(v) (SCV of inter-arrival), c_s^2(v) (SCV of service time).
  3. Causality and time bases
    • hb(a,b): event a happens-before b.
    • Time bases: internal tau_mono, published ts, related by a linear mapping.
  4. Backpressure and watermarks
    B(v): queue length at node v. bp: backpressure control policy. Thresholds B_hi > B_lo.
  5. Metric family
    TS.latency.*, TS.throughput.*, TS.queue.*, TS.hb.violations, TS.sli.success_rate, etc.

III. Postulates & Minimal Equations (P61- / S62-)


IV. Data & Manifest Conventions


V. Algorithms & Implementation Bindings (I60-*)

  1. Interface prototypes (anchored in this volume)
    • I60-6 build_exec_graph(spec:any) -> GraphRef
    • I60-7 plan_schedule(graph:GraphRef, policy:dict, resources:dict) -> SchedPlanRef
    • I60-8 apply_backpressure(graph:GraphRef, strategy:dict) -> bp.Report
    • I60-9 compensate_retry(event:any, idempotency_key:str) -> bool
    • I60-10 eval_slo(trace:any, targets:dict) -> TS.Report
  2. Policy highlights
    • Scheduling: priority = criticality * aging / cost. Critical-path first can be combined with work stealing.
    • Backpressure: thresholds B_hi/B_lo with rate control r_out ← min( r_budget , r_target * f(B) ).
    • Retry: deduplicate via idempotency_key. If side effects are non-idempotent, require compensating transactions and record a compensation manifest.
    • Observability: I60-5 emit_metrics(...) periodically produces TS.*, combined with eval_slo for gating.

VI. Metrology Flows & Run Diagrams (Mx-6*)

  1. Mx-63 (coupling-run, Threads-side extension)
    Steps:
    • Assemble G and the resource pool.
    • Use plan_schedule to produce a plan.
    • Run advance_dt or an event-driven loop.
    • Periodically emit_metrics and apply_backpressure.
    • Route failures to compensate_retry.
  2. Mx-65 (queue-audit)
    Verify rho(v) < 1, B(v) bounded, and error of W_q(v) estimates. If off-target, trigger load shedding and scaling recommendations.
  3. Mx-66 (slo-check)
    Gate on TS.latency.p99, TS.sli.success_rate, and TS.hb.violations, and issue a regression report.

VII. Verification & Test Matrix

  1. Minimum required
    • Single-node G/G/1: given lambda/mu/c_a^2/c_s^2, verify deviations of W_q and L_v.
    • Two-stage pipeline: verify T_make and P99 aggregation, and identify the critical path.
    • Retry idempotency: craft duplicate deliveries and validate idempotency_key deduplication and compensation.
  2. Boundary and extreme cases
    • High-frequency jitter: stability of backpressure when c_a^2 ≫ 1.
    • Bottleneck drift: dynamic reordering and SLO maintenance under time-varying mu(v).
  3. Regression and thresholds
    Fix a baseline graph and load. Compare ΔTS.latency.p99, ΔTS.queue.backlog, ΔTS.hb.violations.

VIII. Cross-References & Dependencies


IX. Risks, Limitations & Open Questions

  1. Risks
    • Non-idempotent side effects can defeat compensation and violate the hb invariant.
    • Relying on rho < 1 while ignoring large c_a^2/c_s^2 underestimates W_q and P99.
  2. Limitations
    Methods and conventions are specified, but no constraint is placed on concrete middleware or threading libraries.
  3. Open questions
    • Optimal adaptive backpressure under strong feedback and bursts.
    • Cross-layer co-scheduling and formal stability proofs under strong coupling with the continuous kernel.

X. Deliverables & Versioning

  1. Deliverables
    • Reference implementations and contract tests for I60-6..I60-10.
    • Benchmark graph suite and load generators covering stable and overload regimes.
    • Regression report template with TS.* metrics and thresholds.
  2. Versioning
    Freeze symbols and manifest fields from v1.0. Add strategies via feature flags with backward-compatible switches, and provide migration guidance.

XI. New Terms & Symbols (to memorize)


Copyright & License (CC BY 4.0)

Copyright: Unless otherwise noted, the copyright of “Energy Filament Theory” (text, charts, illustrations, symbols, and formulas) belongs to the author “Guanglin Tu”.
License: This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0). You may copy, redistribute, excerpt, adapt, and share for commercial or non‑commercial purposes with proper attribution.
Suggested attribution: Author: “Guanglin Tu”; Work: “Energy Filament Theory”; Source: energyfilament.org; License: CC BY 4.0.

First published: 2025-11-11|Current version:v5.1
License link:https://creativecommons.org/licenses/by/4.0/