Skip to content

decision points: typed questions with table, model and quorum deciders as workspace specification, asked on the work graph #2723

Open

Description

@lex00

Rescoped 2026-10-20: decision points, answer records, the decide activity and the open-questions read are on main and were proven by the studio smoke (arugula-salad/studio#101; see the comment below). The answer record carries inputs_hash and, when a model answered, source.model (packages/core/src/workspace/decide.ts:699-716). One acceptance line is left, and the original text is kept below for its detail.

What remains

The acceptance asks for the work item written from an answer to carry "the model and inputs hash in its source". In the smoke the work item's source is { finding, region, answer }: the model is in proposed_by, and the inputs hash is only in the answer record that source.answer names. chant does not write that work item itself; the writer is the caller (hud or the studio kit), going through chant workspace records new. So either:


Original issue

Part of the chud retirement, #2715. It builds on the research in #2491 (a lexicon for typed-decision models).

Problem

chud's decision points are the recurring questions a repo answers as data:

  • which builder tier builds a contract;
  • whether a release may skip the human gate.

Each point is a typed question (boolean, choice or score, with its candidates and inputs) with an ordered chain of deciders. A table answers first. Then a model (backend systemone, any Jev-compatible server). Then people, always last, as a quorum. An answer below a model's threshold escalates to the next decider, and every answer or escalation becomes a decision record with the inputs, their hash, the probabilities and the threshold.

This lives in chud: packages/runtime/src/decide.mjs, template/delivery/decisions/points.yaml, and records on a chud/decisions branch. It retires with chud unless it moves. The chant workspace is the specification, so the points and their records belong in chant, with the model call outside it.

The work graph is where these questions matter most:

  • Finding triage. For a finding from graph --intent (intent-commit-undecided, intent-pin-stale, work-done-gap-open), a Choice between making a work item, needing a decision, or leaving it. This is the "leave it" strawman used for concerns.
  • Needs a decision. A Noul over a change's window.
  • Harvest filter. A Noul, "is this a choice between options with a stated reason", run on transcript candidates before extraction (Research: harvesting decisions from model and harness transcripts after the fact #2710).
  • Dedupe and conflict. A Choice between "same as decision X", "contradicts X" and "unrelated", with the decisions constraining the region as candidates.
  • Readiness and sizing. Is this work item ready to start, and which builder tier.

Change

  • Decision points as specification. A declared file or record kind holds each point: a typed question with candidates, the inputs it reads (named read-contract outputs: a finding, a work item, a region's intent graph, a decision), and an ordered decider chain of table, model and quorum.
  • The answers. Each answer is a record that is proposed unless a table or a quorum gave it. It carries the decider, the inputs' hash, and, when a model answered, the probabilities, confidence and threshold. The source block from Records say which harness, model and session proposed them: a source block with a pinned transcript #2708 covers the model and client. A model answer never settles anything alone: at or above its threshold it is a proposal a person confirms, and below it the question escalates.
  • The model call stays outside chant's read path (ws-052; research: a lexicon for typed-decision models (TypeSafe Jev and its open-source alternatives) #2491's verbs-only lexicon in the operations layer). It is an Op activity (chant run of a decide Op), hud's Decider interface (alecraso/hud#440's spike), or the studio kit's thin layer. Jev is one backend and the interface admits others. Configuration follows hud's spike: plain fetch, opt-in by key, fail-open or fail-closed declared per point.
  • Reading. The read contract lists open questions (escalated, or unanswered) with the model's answer and confidence, so hud can prompt a person.
  • Migration. A generated repo's decisions/points.yaml and chud/decisions records move through chant workspace upgrade.

Acceptance

  • A proposed decision record for the shape, then implementation issues.
  • Done when a finding in the studio smoke produces a triage question. A stub decider answers it above threshold, and the answer shows up as a proposed work item a person keeps, with the model and inputs hash in its source.
  • Below threshold, the question appears as open for people.

Check

Core tests for the point schema and the answer record. A decide Op activity is tested against a stub backend and, gated, against a Jev-compatible server. A studio smoke check covers the triage round trip.

Related: #2491 (research), #2710 (harvest), #2708 (source block), #2715 (epic), alecraso/hud#440 (the Jev spike and its Decider interface), jhgaylor/chud#78.

Activity

  1. lex00 commented on Sep 26, 2026

    @lex00
    ContributorAuthor

    Checked against the studio smoke's "chud retired" section (arugula-salad/studio#101, merged as arugula-salad/studio@1d92ed6f68614301de7f3557d57c8dbbbe840d50; result: https://github.com/arugula-salad/studio/pull/101#issuecomment-5845921594). Leaving this open for one gap.

    Covered:

    • A finding in the studio smoke produces a triage question (section 19). A stub decider answers it above the threshold (0.86 vs 0.8), and the answer shows up as a proposed work item that a person keeps (checks 73 to 77). The answer record carries point_version, inputs_hash, and the model's answer, confidence and threshold (check 80).
    • Below the threshold: a second finding, asked of a stub that answers at 0.55, is escalated, not proposed. workspace points --open --json lists it open for people, with the model's answer, its confidence, the threshold and observed: false (check 81).

    Missing: the acceptance asks for the work item to carry "the model and inputs hash in its source". In the smoke, the work item's source is { finding, region, answer }. The model is in proposed_by, and the inputs hash is only in the answer record that source.answer names. Either the work item written from an answer puts model and inputs_hash in its source block (#2708's shape), or this acceptance line is amended to accept the answer reference.

  2. changed the title [-]chud retirement: decision points (typed questions with table, model and quorum deciders) as workspace specification, prompting decisions on the work graph[/-] [+]decision points: typed questions with table, model and quorum deciders as workspace specification, asked on the work graph[/+] on Oct 3, 2026
  3. lex00 commented on Oct 3, 2026

    @lex00
    ContributorAuthor

    Retitled for #3161 (ws-086): chud is no longer an owner on the workspace boundary, so the title says what chant does rather than naming the retirement.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions