CoolFace
Apppublic

J94/bit-vector-tensor-control-policy

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

Bit/Vector/Tensor Control Policy

Clean product one-liner: a standalone control-system repo with one local graph kernel stack, one conversational API, one orchestrator UX, and first-class control benchmarks driven by bits, vectors, and tensors.

Layman version: this should be one self-contained machine, not a folder of pointers to other machines.

Inference Surface

Clean product one-liner: graph-first reasoning can now be delegated to the local Codex CLI through one repo-root YAML config.

SurfaceWhat it doesWhy it matters
inference.yamlselects the inference backend and modelkeeps inference policy in repo, not hidden in shell history
scripts/run_codex_inference.pyruns schema-shaped codex exec turnsuses the signed-in ChatGPT subscription path
api/run_turn.shkeeps lane choice and response packet deterministicmodel output is bounded by runtime policy, not vice versa

Self-Improve Loop

Clean product one-liner: the repo can now propose one bounded self-improvement through Codex CLI, package it as a manifest, and optionally apply and benchmark it.

SurfaceWhat it doesWhy it matters
self_improve.yamldefines allowed roots and default benchmarkkeeps self-edit policy explicit
scripts/propose_self_improvement.pyuses Codex CLI to emit a bounded manifest proposalthe model proposes changes as structured state, not loose prose
scripts/run_self_improve.pywrites proposal artifacts, optionally applies them, and runs the benchmarkself-building stays receipt-backed and reviewable
bvtctl self-improveoperator front door for proposal-only runslets the system suggest its next bounded change
bvtctl self-improve-applyproposal + apply + benchmarkcloses the loop without opening broad ungated recursion

What This Is

Pareto read:

QuestionAccurate answer
are we an agent harness?yes
metacognitive?yes
metacybernetic?yes
already a federated learning runtime?not in the strict ML sense

Better wording:

This repo is a standalone agent harness that should operate:

  • metacognitively: inspect state, confidence, and reasoning posture
  • metacybernetically: regulate routes, gates, escalation, and proof loops
  • cross-surface adaptively: distill patterns across memory, runtime, API, UX, and benchmarks

It is not yet a classical federated-learning runtime with gradient or weight aggregation. It is closer to receipt-backed policy distillation over a graph-mediated runtime.

Product Boundary

conversation -> control policy -> graph state -> benchmarked runtime -> operator UX

Orchestrator Loop

mermaid
flowchart LR
  U["User Ask"] --> A["POST /turn"]
  A --> P["Policy: bits, vectors, tensors"]
  P --> R["Runtime route + lane choice"]
  R --> G["Graph state"]
  R --> E["Bounded execution lane"]
  E --> X["Receipt + graph update"]
  G --> A
  X --> A
  A --> V["Chat / Confirm / Inspect UX"]

Cause And Effect

InInternal causeOutWhy it matters for emergence
user askpolicy classifies task pressurelane + UI modethe harness chooses how to think before it acts
graph + receiptsruntime gets continuity and proofconstrained decision briefthe system works from memory, not just prompt text
execution gateauthority is evaluatedbounded action or refusalaction becomes governed, not automatic
bounded actionreceipt + graph update emitteddurable consequencethe next run starts from a changed world
benchmark signalpolicy can revise control weightsbetter future routingthe system learns from work

Layman version: emergence comes from consequences feeding back into the same loop, not from hidden magic in the model.

Core Visibility

Start here if you want to understand the machine, not just the file tree:

This repo is the shipped product surface.

It should contain:

  • one local graph kernel
  • one local product runtime
  • one local control-language pack
  • one local conversational API contract
  • one local orchestrator UX contract
  • one local control benchmark suite

The current cross-repo hotgraph is a bootstrap intake lane only. It helps import and compare source systems, but it is not the long-term shipped boundary.

Why This Is More Than A Chat Agent

Baseline patternThis repo adds
prompt in, answer outpolicy-governed orchestrator loop
tool call when neededlane-based authority and execution gates
memory as context stuffinggraph + receipt-backed operational memory
hidden heuristicsexplicit bits, vectors, tensors
evals as sidecarbenchmark-governed adaptation

Standalone Benchmark Results

Latest standalone run:

CaseLaneExecution gateUI modeLatency msCausal read
graph-firstmemoryfalsechat153.5no authority opened; graph-first reasoning stayed active
freshness overridememoryfalsechat224.6latest receipt-backed artifact answered from graph state, not raw execution
unsupported schedulememoryfalsechat153.7unsupported query abstained instead of inventing a schedule
UTIR executionexecutiontrueconfirm266.5imported kernel language opened bounded action with receipt
allowlisted execexecutiontrueconfirm271.1local policy allowed bounded shell action with receipt

Scorecard metrics

MetricResultWhy it matters in layman terms
freshness_override_accuracy1.0the system now respects the newest durable artifact instead of stale state
unsupported_query_abstention_rate1.0the harness knows when not to pretend it knows
cost_per_successful_task1.4routing is now measurable in simple operational units, not vibes
settling_time_turns1after an execution disturbance, the controller returns to steady memory mode in one turn
oscillation_count2the loop flips lanes only when the work really changes, not continuously
avg_latency_ms213.9the local loop stays fast while handling both memory and execution cases

Why this is on product

Benchmark featureProduct effect
freshness overrideproves graph memory can answer from the latest receipt-backed state
unsupported-query abstentionproves the chat surface can fail closed instead of hallucinating
cost per successful taskproves routing can be tuned economically, not just qualitatively
settling timeproves the controller can recover from execution back to a stable reasoning lane
oscillation countproves the runtime is not thrashing between lanes unnecessarily

Run it locally:

bash
rtk ./bin/bvtctl benchmark

Vector frontier

Modeplanexecutereviewpromote
graph-first0.70.10.60.2
execution0.70.80.60.2

Tensor frontier

Modestrongest sourcedominant stageweakest metricfrontier read
graph-firstthread_statediscoverpromotion_readinessgraph_first_reasoning
executionreceipt_stateexecutepromotion_readinessbounded_execution_with_receipt

Layman version: the standalone harness now proves that the same API surface can stay in reasoning mode when authority should stay closed, and switch into receipt-backed execution when authority should open.

Stability frontier

SequenceLane pathResultWhy it matters
graph_first -> utir_execution -> freshness_override -> unsupported_schedulememory -> execution -> memory -> memorysettling_time_turns=1, oscillation_count=2one real disturbance, one recovery step, no pointless thrashing

Quickstart

1. Start from one conversational front door

bash
./bin/bvtctl "summarise the current runtime"
./bin/bvtctl chat
./bin/bvtctl ask "run the demo manifest" runtime/examples/demo_manifest.json
./bin/bvtctl context
./bin/bvtctl bootstrap-context

Why in plain English: the product should meet the operator as one sentence-driven CLI first, and it should explain its own lineage and policy without repo spelunking.

2. Bootstrap from the current source field

bash
./scripts/build_hotgraph.sh

Outputs:

  • hotgraph/source_hotgraph.json
  • hotgraph/source_hotgraph.md

3. Generate one bootstrap control packet

bash
./scripts/run_v0.sh migration_brief

Outputs:

  • runs/<timestamp>/control_packet.json
  • runs/<timestamp>/brief.md

4. Read the product slices

Start with:

  • docs/core_workflows_v0.md
  • docs/api_surface_v0.md
  • docs/emergent_feature_taxonomy_v0.md
  • docs/standalone_layout.md
  • docs/runtime_and_cli.md
  • docs/kernel_import_plan.md
  • docs/usecases.md
  • docs/research_and_generation.md
  • hotgraph/source_hotgraph.md

5. Build the corpus reasoning packets

bash
./bin/bvtctl corpus-packets

Why in plain English: this should build one mathematical packet per promoted abstraction so Codex can reason over state packets first and reopen raw evidence only when the packet state says it must.

6. Generate from reduced state

The intended flow is:

  1. 1.use the bootstrap hotgraph to decide what to import or vendor
  2. 2.move the chosen slice into the local product layout
  3. 3.benchmark the local slice through the control language
  4. 4.expose it through the conversational API and orchestrator UX

Primary Use Cases

Use caseWhy it existsReal-world analog
runtime migration planningdecide what to import into the standalone producteditorial desk
control scorecard generationmeasure bits, vectors, tensors, memory, safety, and economicscockpit dashboard
conversational API shapingkeep one front door over graph statefront desk
orchestrator UX shapingexpose one operator surface over the APIcontrol console
product quickstart packsexpose the use cases before the machinerystorefront brochure

Repo Layout

PathPurpose
configs/product_slices.jsoncanonical standalone product slices
configs/source_registry.jsoncanonical source list
configs/usecase_registry.jsoncanonical use-case list
configs/kernel_stack.jsonlocal kernel/runtime/control stack target
schemas/control_packet_v0.jsonminimal packet contract
scripts/build_hotgraph.shthin hotgraph compiler
scripts/generate_control_packet.shthin packet compiler
scripts/run_v0.shone-pass runner
bin/bvtctlthin CLI entrypoint
vendor/vendored off-the-shelf substrate imports
runtime/local runtime contract and entrypoint
policy/bits/vector/tensor control language and rules
benchmarks/local control evals and scorecards
api/conversational API contracts
ux/orchestrator UX contracts
docs/usecases.mdproduct-first quickstart
docs/core_workflows_v0.mdorchestrator loop and core workflows
docs/api_surface_v0.mdvisible API spec
docs/emergent_feature_taxonomy_v0.mdemergent feature taxonomy
docs/standalone_layout.mdshipped product layout
docs/runtime_and_cli.mdsingle runtime and CLI contract
docs/research_and_generation.mdhow research and generation should work
hotgraph/generated graph and summaries
runs/future generated packets and scorecards

Product Slices

Pareto read:

SliceWhy it is first-classReal-world analog
graph kernelholds durable graph state and receiptsengine block
control languageexpresses bits, vectors, tensorsinstrument cluster
control benchmarksproves the control layers worktest track
conversational APIone user-facing front doorreception desk
orchestrator UXone operator surface over the APIcockpit

Layman version: the benchmark, API, and UX are not sidecars. They are part of the shipped machine.

Bootstrap Intake

The intake field is still:

  • NIX.codecli
  • tmp-meta3-engine-test
  • meta3-graph-core
  • dreaming-kernel
  • nix-star
  • causal-workbench
  • tiny_graph_engine

These are source systems to compare and import from. They are not the final runtime boundary of this repo.

Kernel Stack Target

LayerLocal targetUpstream referenceWhy
graph kernelvendor/meta3-graph-coremeta3-graph-coredeterministic graph reifier
product runtimeruntime/causal-workbenchthin routed manifest runtime
control planepolicy/nix-starledger-first confidence and policy
benchmark planebenchmarks/local eval doctrineprove quality, cost, and stability
API planeapi/conversational front door doctrineone interface
UX planeux/orchestrator surface doctrineone operator desk

Layman version: import the best engine, keep one dashboard, and mount the gauges inside the same car.

CLI

Use the current CLI like this:

bash
./bin/bvtctl "summarise the current runtime"
./bin/bvtctl ask "run the demo manifest" runtime/examples/demo_manifest.json
./bin/bvtctl chat
./bin/bvtctl context
./bin/bvtctl bootstrap-context
./bin/bvtctl bootstrap
./bin/bvtctl run migration_brief
./bin/bvtctl execute
./bin/bvtctl kernel-plan
./bin/bvtctl benchmark
./bin/bvtctl packet migration_brief
./bin/bvtctl policy
./bin/bvtctl scorecard
./bin/bvtctl runtime
./bin/bvtctl api
./bin/bvtctl ux

Why in plain English: the sentence form is now the default front door; the named commands are the operator shelf behind the desk.

First Local Imports

The first real local slices are now:

  • policy/control_language_v0.json
  • policy/runtime_profiles_v0.json
  • benchmarks/control_scorecard_v0.json
  • benchmarks/control_scorecard_v0.md
  • runtime/work_manifest_v0.json
  • runtime/work_manifest_packet_v0.json
  • runtime/examples/demo_manifest.json
  • runtime/examples/demo_exec_manifest.json
  • api/conversational_api_v0.json
  • ux/orchestrator_ux_v0.md
  • vendor/meta3-graph-core/schema/receipt_v1.json

Why: the control language and proof surface are the fastest way to make this repo operational before deeper kernel import.

Working Rule

Pareto frontier:

  • do not ship a repo of external path pointers
  • do not invent a new kernel if an off-the-shelf one is already stronger
  • do not let docs become the only state
  • do not treat benchmarks, API, or UX as optional afterthoughts

Instead:

  1. 1.compare source systems
  2. 2.choose the strongest slice
  3. 3.import it into the local layout
  4. 4.benchmark it through bits/vectors/tensors
  5. 5.expose it through one API and one UX

Current Read

Best direction today:

  • meta3-graph-core = graph kernel import target
  • causal-workbench = product-runtime pattern
  • nix-star = control-language and policy pattern
  • NIX.codecli = conversational API/orchestrator UX reference field
  • local benchmarks/ = mandatory proof surface

That is why this repo exists: to turn the best scattered ideas into one standalone control product.