Skip to content

values

values #

Where a typed value meets the store — the layer between the type system and the scratch.

  • [.objects][] — store_object / load_object: a value's object tree (a composite is its own tree, a scalar is wrapped under value).
  • [.content][] — value_hash: every value hashes by its structure — names, child hashes and leaf contents — in one walk.
  • [.plain][] — canonical: the tagged bytes a plain Python value hashes as.
  • [.arguments][] — argument_hash: a call's argument hashes as its value; UnhashableArgumentError names the parameter that cannot.
  • [.workspace][] — the ambient live directory a body runs in, exec_log for where a tool's output goes, and ScratchWorkspace: the Workspace the type system asks for T.new(), provided by importing the module.
  • [.tool_run][] — run_tool: subprocess.run for a recipe, the child's output streaming into the workspace's exec.log.

This __init__ is documentation-only; internal modules import from the leaf modules directly; the root imports the public leaves (cg.value_hash).