8000 feat: FSM-style state names in LOGIC steps · Issue #3 · Mnehmos/mnehmos.nls.lang · GitHub
[go: up one dir, main page]

Skip to content

feat: FSM-style state names in LOGIC steps #3

Closed

Description

@Mnehmos

Summary

Add optional state names to LOGIC steps for FSM-style execution tracking.

Motivation

From arXiv 2512.18940 (FASTRIC):

  • FSM-encoded specifications enable verifiable LLM execution
  • Explicit state machines improve conformance verification
  • "Goldilocks zone" - optimal formality depends on model capacity

Proposed Syntax

[process-order]
PURPOSE: Process a customer order
INPUTS:
  • order: Order

LOGIC:
  1. [validate] Check order items are in stock → valid_order
  2. [charge] Process payment for valid_order → payment_result
  3. [fulfill] IF payment_result.success THEN ship order
  4. [notify] Send confirmation to customer

RETURNS: ProcessResult with status, tracking_number

Features

  • [state_name] - named state for FSM
  • → variable - explicit output binding
  • IF condition THEN - conditional transitions
  • Creates verifiable execution graph

Implementation Tasks

  • Parse [state_name] prefix in LOGIC lines
  • Parse → variable output binding
  • Parse IF condition THEN conditionals
  • Build FSM graph from LOGIC steps
  • Add --fsm flag to emit state machine diagram

References

  • arXiv 2512.18940 (FASTRIC) - FSM specification language
  • Procedural conformance metrics

Activity

  1. added
    enhancement
    on Jan 16, 2026
  2. added a commit that references this issue on Jan 17, 2026
    3358036
  3. added 3 commits that reference this issue on Jan 17, 2026
    63bc449
    24d460e
    fac9a26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0