Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/nornir

.nornir/funnel-prompt-planner-spec.md

Funnel as a prompt-driven plan builder — spec (Manual/Auto modes + prompt-as-mother)

Turns the funnel into a solo-dev surface: you prompt, the prompt is saved as the mother node of a task sub-graph, and a warehouse-grounded Plan-DAG grows behind it. Two modes: Manual (LLM suggests into a review lane; human curates) and Automatic (the Plan-DAG is populated directly). Builds on the EXISTING funnel: src/funnel/{event,state,history,planner,decompose,card}.rs, funnel_events Iceberg table, WorkspaceGraph (src/warehouse/dep_graph.rs). This is "JIRA + Maven as it should have been" (see .nornir/funnel-cards.md, .nornir/funnel-decompose.md, .nornir/funnel-intake.md) + the two things those docs left deferred: real-person assignment and a mode gate.

0. The thesis (unchanged, now crisp)

1. Prompt-as-mother (the solo-dev experience)

A prompt is persisted as an intake Idea item (kind idea) — the root/"mother" node — with the full prompt text saved as its origin (title = short form, body = the raw prompt). decompose/planner then build the child task sub-graph beneath it (this parent→children structure already exists in store_subtasks(store, idea_id, decomp)). Repeated prompts accumulate as independent root-mothers, each with its sub-DAG — the plan grows behind the prompting.

New CLI (the headline deliverable):

nornir funnel prompt "<free text idea>" [--auto | --manual] [--assign auto|<member>|none]

2. Two modes — one flag, one gate

enum FunnelMode { Manual, Auto } threaded through the prompt/decompose entry point.

Implementation:

3. Real-person assignment + team roster (the keystone)

Today Card has reporter but NO assignee, and there is no team model (grep-confirmed).

4. Migration-safe events (follow the item_kind template EXACTLY)

item_kind (field id 28) is the reference: a NEW optional, defaulted column on the funnel_events Iceberg table, auto-evolved on first write, every legacy row replays as the default. Add the same way (see .nornir/funnel-intake.md + warehouse-schema.md on-append auto-evolution):

5. Definition of done (tonight's keystone)

6. Non-goals (tonight)

8. The sandbox — the drafting agent runs BOXED; MCP is the only door

The security model for Auto mode (and any agent that fills the funnel). The agent cannot bypass nornir — by construction, not by policy.

7. Key seams