Skip to content

LexLattice/tf-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

204 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TF‑Lang (v0.6) — True Functions, Algebra & Deterministic Pipelines

Pages

Live site: https://LexLattice.github.io/tf-lang/

TF-Lang v0.6 — What’s new

  • Minimal L0 kernel (Transform, Publish, Subscribe, Keypair) with effect derivation and human-readable tf check --summary.
  • Macro growth across state/process/policy/time/auth, including deterministic YAML parsing for multi-line macros.
  • Runtime tooling: tf runtime exec --trace, adapter skeleton emission, and expanded law diagnostics.
  • Instance planning: registry v2, table rendering, and per-node explanations via tf plan --format table --explain.
  • Docs & onboarding: consolidated quickstarts, contributor guide, and annotated example scenarios.

Entry points: v0.6 review, Top issues roll-up, Track proposals, Examples index.


Quickstart

Requirements

  • Node.js 18+
  • pnpm 8+

Verify your toolchain and install workspace dependencies:

pnpm -v && node -v
pnpm -w install --frozen-lockfile

Explore the fast-track pipeline

# Discover available subcommands
pnpm tf --help

# Expand the L2 pipeline into its canonical L0 DAG
pnpm tf expand examples/v0.6/pipelines/auto.fnol.fasttrack.v1.l2.yaml --out out/0.6/tmp/fnol.l0.json

# Summarize effects, policy coverage, capabilities, and law status
pnpm tf check out/0.6/tmp/fnol.l0.json --summary

# Plan runtime instances and see which registry rule fired
pnpm tf plan out/0.6/tmp/fnol.l0.json --format table --explain

# Inspect the runtime trace with determinism markers
pnpm tf runtime exec out/0.6/tmp/fnol.l0.json --trace

Run focused checks

# Type inference with adapter suggestions
pnpm tf typecheck out/0.6/tmp/fnol.l0.json

# Emit adapter scaffolding for mismatched ports
pnpm tf typecheck out/0.6/tmp/fnol.l0.json --emit-adapters out/0.6/tmp/adapters

# Execute the example suite
bash tasks/run-examples.sh

Additional track-specific recipes live under docs/ and are linked from the v0.6 documentation index.


Documentation map


Continuous integration

CI: T4 Plan/Scaffold/CompareCI: T3 Trace & PerfCI: L0 Runtime VerifyCI: L0 Docs (Sync)CI: L0 Proofs (Emit)CI: L0 Audit

Version: v0.6

Historical quickstarts for earlier releases remain available in docs/0.5/.


Project layout

  • examples/v0.6/ — runnable L2 pipelines with golden L0 builds and contract tests.
  • packages/ — expander, runtime, typechecker, prover, and supporting libraries.
  • tools/tf-lang-cli/ — CLI entry point providing tf, tf plan, tf check, and friends.
  • policy/ and laws/ — effect lattice, capability policies, and prover goals.
  • out/ — generated artifacts (reports, SMT instances, review docs).

See CONTRIBUTING.md for coding standards, docs workflows, and verification steps before opening a pull request.


License

Apache License 2.0

About

True Functions Language

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages