refund-plan

command
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command refund-plan demonstrates the orchestration ledger on a weft/thread session: a refund-support chat whose policy state lives in the session file as custom entries, so a process that dies mid-flow is replaced by one that resumes exactly where the file says — the last refund_plan entry. Never re-ask the customer facts the transcript already holds; never infer the step from the model's phrasing; never re-decide policy with newer rules than the customer was promised.

The conversation is the scripted model's job; the policy is this program's. Every transition appends the COMPLETE current plan state — pi's rule: the complete, total current state, never a delta — so any single surviving entry is enough to resume, and the plan and the transcript share one atomic-append file, so they can never disagree.

Run 1 — drive the chat and die after the manager hand-off:

go run ./thread/examples/refund-plan -crash

Run 2 — a brand-new process resumes from the ledger and finishes:

go run ./thread/examples/refund-plan

Run 3 — a plan version above what this build knows is refused loudly:

go run ./thread/examples/refund-plan -future

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL