On Skif the interview said "It does not say who it is for or what finished
looks like... Five questions" above ONE question about why it exists, on a
project that had answered both. interviewIntro(planned) now words it from
the fields the interview will actually ask, with the count.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Found by trying, as the owner, to tell Skif's story in Loki (2026-09-25).
1. The place for it was "Context", tab 4 of 6. It is now "Story", second,
right after Now. The id stays `context`, so #context links still work.
2. The interview never asked for a mission, though its own comment said a
project with "mission, problem and solution" is not interrupted. Skif had
customers, problem and solution but no WHY, so every dispatch briefed its
agent on a booking app. The interview now asks "Why does this exist?" as
the fourth essential question. The cap stays at 5 questions.
3. Pasting the 8.5k-character doctrine into "Sync from doc" failed twice
over. The textarea's maxLength (8,000) truncated the paste silently, and
given the full text, the server said "at least a sentence". Brief,
roadmap and reconcile now share pastedText() (DOC_PASTE_MAX 24,000;
too short and too long say which). Boxes keep the text and show
<CharCount>, and submit refuses while over. No maxLength remains.
Tests: project-story-tab-leads, pasted-docs-are-never-cut (both
mutation-checked), and project-interview updated for the mission question.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Found by dogfooding: Skif's project interview on 2026-09-24. All five real
answers ran 522-631 characters. The textarea's maxLength silently stopped
typing at 500, and the API (which accepts up to 2000) clamped each stored
answer to exactly 500 characters mid-sentence, e.g. "...Protectors are
chosen for judgment, calm and communication," and nothing more. Those
clipped fields are what brief the build agent, so an owner who wrote a
careful answer briefed the agent with half-sentences and was never told.
Clamping rather than rejecting stays: that was deliberate in #799 ("no
dead ends"), and its test still holds. What changes is that the cut is
never silent:
- The textarea shows a counter once an answer passes 60% of the limit,
and says plainly at the cap that this is the limit and the agent reads
the field whole. Short answers still look like a quiet form.
- The API response names the fields it cut (`clamped: [...]`), so a
direct caller can shorten and re-save. Empty in the normal case, since
maxLength means only an API caller can send more.
Tests: clampedAnswerFields names exactly the cut field, and does not
false-alarm on an answer that is at the limit only once trimmed. Proven
by mutation (reporting nothing; counting untrimmed length).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(projects): interview the owner before building from one sentence
"Build it with Loki" created a project and immediately ran the kickoff —
profile extraction, milestones, repository, agent — on whatever the
OrangeCat page happened to say. For a service listing that is a title, a
price and one line of public description. Everything the kickoff produces
is a function of that text, so a thin brief produced a thin everything:
`isThinBrief` already named the failure and had nothing to do about it,
and the extractor wrote "Unknown" into the fields it could not infer.
The one person who knows the answers is right there, so ask them. A new
project from a handoff now lands on five short questions — who it is for,
what they do today, what this does for them, what the build must use,
what makes the first version worth shipping — and reaches the kickoff a
few sentences later with a profile worth building from.
- lib/project-interview.ts is the SSOT for which gaps are worth asking
about. Pure: the same plan drives the route, the card and the tests, so
a question can never be asked about a field already answered. Only the
three essential gaps decide whether to interrupt; a missing stack
preference rides along but never starts an interview.
- Answers are stored verbatim — as the attribute each one answers, and
appended to the description, which is what the profile extractor, the
roadmap step, the dispatch prompt and RAG actually read. No model sits
between the owner's words and what gets stored; extraction happens
after, from a brief that now says something.
- lib/project-interview-ai.ts only REWORDS the questions for this
project. It cannot change which are asked, and every failure path
returns the bank unchanged: generic wording beats no interview.
- `hasAnswer` guards both ends. "Unknown" is a gap worth asking about,
and a typed "n/a" is a skip — a stored one is truthy, satisfies every
"is this filled?" check downstream, and briefs an agent with nothing.
- Skipping is always available and never punished. Skip everything and
you land exactly where this flow landed before.
A project that was merely LINKED to an existing Loki project still gets
neither flag — linking is not consent to start work on it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RU7EqR1TPicrJGv46cLDaH
* fix(interview): an error is never a wall, and a slow model costs wording, not waiting
Two places the interview could leave someone standing still:
- If the questions failed to load, the card showed the error and nothing
else. The questions are an improvement to the build, not a condition of
it, so the build is now one tap away from the error: "Skip to the build"
lands exactly where the old one-click path landed.
- Tailoring the questions to the project could take 20s, all of it spent
on "Reading your page…". The plain questions are already good. 8s now:
a slow model degrades the wording, never the wait.
And the rule both follow, written into CLAUDE.md where the next agent reads
it: a gate records; it never blocks. Anything that pauses a person shows the
way forward on the same screen.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RU7EqR1TPicrJGv46cLDaH
---------
Co-authored-by: Claude <noreply@anthropic.com>