/** * The 6Ws Interview — SINGLE SOURCE. * * The canonical question registry for filling a .faf by asking a human (or an * agent asking a human). faf-cli OWNS it; consumers (claude-faf-mcp's faf_go, * siblings, UIs) IMPORT it — never reimplement, never copy. Decided * 2026-06-10: the CLI exports, CFM consumes, zero drift. (CFM's previous * hand-maintained registry had already drifted — e.g. its `how` asked "How * should AI assist?" while the canonical slot semantic is "How does it work?" * (the faf schema). This file is the arbiter; slots.ts is its spine.) * * Shape carries what interactive consumers need: question text, a short * header chip, input type, required flag, select options where a closed-ish * vocabulary exists. Question SEMANTICS align to core/slots.ts descriptions — * the slot is the meaning, the question is just its interview voice. * * faf-facts: succinct, factual definitions for AI agents — every word earns * its place. They are the human slots (the goal and six W's), not repo or * stack slots: AI may only suggest them; a human reads, confirms and approves * each one. Count facts, not words: one line, at most one sentence, no * waffle. Short when the fact is short (where: "npm, Homebrew, GitHub"); a * full line when it needs one (how: the mechanism and the choice that shapes * the code). */ import type { SeededContextDetailed } from '../detect/relentless.js'; /** Bump when questions/options change — consumers can pin or report it. */ export declare const INTERVIEW_VERSION = "faf-interview/1"; export interface InterviewOption { label: string; value: string; description: string; } export interface InterviewQuestion
{
/** Canonical slot path (core/slots.ts is the spine). */
path: P;
question: string;
/** Short chip/header label (max ~12 chars) for option-UI consumers. */
header: string;
type: 'text' | 'select';
required: boolean;
options?: InterviewOption[];
/** What a good answer looks like — shown in gray when there's no
* suggestion. The shape of an answer, never a sample answer (sample words
* get copied). Never written to the .faf. */
help?: string;
}
/**
* The human/sourced boundary, as TYPES — the load-bearing line in FAF.
*
* HumanSlotPath = the 8 things only a human knows (name + goal + the 6Ws).
* SourcedSlotPath = the slots detection fills (language + the stack).
*
* They are DISJOINT by construction. Typing the two interviews against these
* makes it a COMPILE error to put a sourced slot in the human interview (or
* vice-versa) — the "Interview-16" drift becomes unrepresentable at the Truth,
* not merely caught by a downstream test. "I'll remember" is not a fix; a type
* is. (claude-faf-mcp's wjttc-faf-go-boundary test is the belt; this is the
* braces — the source itself can no longer drift.)
*/
export type HumanSlotPath = 'project.name' | 'project.goal' | 'human_context.who' | 'human_context.what' | 'human_context.why' | 'human_context.where' | 'human_context.when' | 'human_context.how';
export type SourcedSlotPath = 'project.main_language' | 'stack.frontend' | 'stack.backend' | 'stack.database' | 'stack.runtime' | 'stack.hosting' | 'stack.build' | 'stack.cicd';
/**
* THE 8-Q 6Ws INTERVIEW — the core. Project identity (name + goal) plus the
* six Ws. Language is deliberately NOT here: detection finds it; humans are
* only asked what machines cannot derive. The 6Ws are the underivable half.
*/
export declare const SIX_WS_INTERVIEW: InterviewQuestion