@vibes.diy/api-svc 14.1.44 → 14.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/intern/agent-belt.js +14 -6
  2. package/intern/agent-belt.js.map +1 -1
  3. package/intern/agent-build-tools.d.ts +2 -1
  4. package/intern/agent-build-tools.js +6 -5
  5. package/intern/agent-build-tools.js.map +1 -1
  6. package/intern/agent-evidence.js +3 -1
  7. package/intern/agent-evidence.js.map +1 -1
  8. package/intern/agent-file-tools.js +2 -2
  9. package/intern/agent-file-tools.js.map +1 -1
  10. package/intern/agent-instruction.d.ts +1 -1
  11. package/intern/agent-instruction.js +49 -1
  12. package/intern/agent-instruction.js.map +1 -1
  13. package/intern/agent-router.d.ts +1 -0
  14. package/intern/agent-router.js +3 -0
  15. package/intern/agent-router.js.map +1 -1
  16. package/intern/agent-session-instruction.d.ts +2 -2
  17. package/intern/agent-session-instruction.js +59 -5
  18. package/intern/agent-session-instruction.js.map +1 -1
  19. package/intern/agent-session-runtime.d.ts +4 -2
  20. package/intern/agent-session-runtime.js +4 -4
  21. package/intern/agent-session-runtime.js.map +1 -1
  22. package/intern/ensure-chat-id.d.ts +1 -0
  23. package/intern/ensure-chat-id.js +4 -1
  24. package/intern/ensure-chat-id.js.map +1 -1
  25. package/intern/in-flight-turns.d.ts +10 -0
  26. package/intern/in-flight-turns.js +30 -0
  27. package/intern/in-flight-turns.js.map +1 -1
  28. package/intern/look-lint-engine.d.ts +1 -0
  29. package/intern/look-lint-engine.js +11 -1
  30. package/intern/look-lint-engine.js.map +1 -1
  31. package/intern/mint-decision.js +2 -1
  32. package/intern/mint-decision.js.map +1 -1
  33. package/intern/open-turn-sweep.d.ts +2 -0
  34. package/intern/open-turn-sweep.js +8 -1
  35. package/intern/open-turn-sweep.js.map +1 -1
  36. package/intern/render-vibe.js.map +1 -1
  37. package/intern/root-html-cache-contract.d.ts +1 -1
  38. package/intern/root-html-cache-contract.js +1 -1
  39. package/intern/root-html-cache-contract.js.map +1 -1
  40. package/intern/ssr-theme-css.js.map +1 -1
  41. package/package.json +12 -12
  42. package/public/open-chat.d.ts +5 -1
  43. package/public/open-chat.js +57 -34
  44. package/public/open-chat.js.map +1 -1
  45. package/public/prompt-chat-section.js +21 -5
  46. package/public/prompt-chat-section.js.map +1 -1
  47. package/public/root-html-live-inputs.d.ts +1 -0
  48. package/public/root-html-live-inputs.js +3 -1
  49. package/public/root-html-live-inputs.js.map +1 -1
  50. package/public/serv-entry-point.js +3 -3
  51. package/public/serv-entry-point.js.map +1 -1
  52. package/public/stream-assembly.js +13 -14
  53. package/public/stream-assembly.js.map +1 -1
@@ -37,12 +37,14 @@ export function createAgentBelt(vctx, args) {
37
37
  name: CREATE_VIBE_TOOL_NAME,
38
38
  description: "Start building a new app for the user. Call this as your FIRST action on a fresh request — do not ask a " +
39
39
  "question first. The build runs behind the conversation, so you can talk with the user while it happens and " +
40
- "refine it on the next turn. Fill the fields from your own judgment about what they asked for. " +
40
+ "refine it on the next turn. It answers `building`: that word names where the work is, and `ok` belongs to " +
41
+ "the result that arrives when the build finishes. Fill the fields from your own judgment about what they asked for. " +
41
42
  "Every build already " +
42
43
  "gives each signed-in person their own object and the platform's HandleInput to add a member to it, " +
43
44
  "with the rules keyed on that object's own creator — an app one person keeps for themselves is that " +
44
45
  "same shape with one object in it. The person's own words are the one thing that leaves record rules " +
45
- "out: an ask for no access control, for a single-user app or for no sharing.",
46
+ "out: an ask for no access control, for a single-user app or for no sharing. " +
47
+ "The report arrives in this conversation by itself; no lookup is needed, and a read of the app does not stand in for it.",
46
48
  parameters: {
47
49
  type: "object",
48
50
  properties: {
@@ -53,7 +55,11 @@ export function createAgentBelt(vctx, args) {
53
55
  items: { type: "string" },
54
56
  description: 'Capability names the build should load: "callai" for a chat reply, a suggestion or any text the page ' +
55
57
  'asks the model for itself; "backend" for schedules, fetching, notifications and server work; "access" ' +
56
- "for who can see or change what. Generated pictures are part of every build.",
58
+ "for who can see or change what. Generated pictures are part of every build. " +
59
+ 'On a first build "access" is deferred to later rather than taught — the receipt lists it under ' +
60
+ "`dropped.deferredToLater` — and naming it here or declaring `deferred.access.needed: true` is the " +
61
+ "same promise: either one makes the platform run the access pass after this build. A `backend` " +
62
+ "deferred to later is yours to dispatch once the first build lands.",
57
63
  },
58
64
  pairs: {
59
65
  type: "array",
@@ -132,9 +138,11 @@ export function createAgentBelt(vctx, args) {
132
138
  description: "Change the app this conversation is about. Pass the change as an instruction in plain language. If you have " +
133
139
  "read the app, pass the version you read as baseFsId so your change cannot land on top of newer work. " +
134
140
  (args.queueEdit === undefined
135
- ? "It answers the moment the build STARTS — the change is building, not made, and nothing is saved yet. One build runs at a time; a call while one is running is refused, not queued. "
136
- : "It returns an accepted queued handle. One build runs at a time; this change waits behind the current build, then its result arrives in this conversation. ") +
137
- "Its result may arrive later as a message telling you the build finished.",
141
+ ? "It answers `building` the moment the build STARTS — the change is building, not made, and nothing is saved yet. One build runs at a time; a call while one is running is refused, not queued. "
142
+ : "It answers `queued` with a handle. One build runs at a time; this change waits behind the current build, then its result arrives in this conversation. ") +
143
+ "The word `ok` belongs to a finished result; a receipt naming a state names only that state. " +
144
+ "Its result may arrive later as a message telling you the build finished. " +
145
+ "The report arrives in this conversation by itself; no lookup is needed, and a read of the app does not stand in for it.",
138
146
  parameters: {
139
147
  type: "object",
140
148
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"agent-belt.js","sourceRoot":"","sources":["../../jsr/intern/agent-belt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAK3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACvF,OAAO,EACL,iBAAiB,EACjB,eAAe,GAIhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,qBA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,CAAC;QAED,IAAI,OAAO,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;YACrE,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAChD,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;AACnC,CAAC;AAED,SAAS,QAAQ,CAAC,OAAgB;IAChC,OAAO,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,gBAAgB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,CAAC,CAAC;AAC5D,CAAC"}
@@ -55,8 +55,9 @@ export interface RunEditVibeArgs {
55
55
  readonly dispatcher: AgentBuildDispatcher;
56
56
  readonly toolsOffered?: readonly string[];
57
57
  readonly queue?: (input: EditVibeToolInput) => Promise<Result<{
58
+ readonly state: "queued";
59
+ readonly next: string;
58
60
  readonly handleId: string;
59
- readonly queued: true;
60
61
  }>>;
61
62
  }
62
63
  export declare function runEditVibeTool(vctx: VibesApiSQLCtx, args: RunEditVibeArgs): Promise<Result<AgentBuildDispatched, AgentRefusalError>>;
@@ -1,6 +1,6 @@
1
1
  import { Result } from "@adviser/cement";
2
2
  import { type } from "arktype";
3
- import { createVibeToolInput, editVibeToolInput } from "@vibes.diy/api-types";
3
+ import { BUILD_RESULT_NEXT, createVibeToolInput, editVibeToolInput, } from "@vibes.diy/api-types";
4
4
  import { curatedThemes, getLlmCatalogNames, LOOK_SLUGS_WITH_BRIEF } from "@vibes.diy/prompts";
5
5
  import { AgentRefusalError, resolveChatApp } from "./agent-actor.js";
6
6
  import { isLookBriefEnabled } from "./look-flags.js";
@@ -99,7 +99,8 @@ export async function runCreateVibeTool(vctx, args) {
99
99
  }
100
100
  const minted = rMint.Ok();
101
101
  return Result.Ok({
102
- ok: true,
102
+ state: "building",
103
+ next: BUILD_RESULT_NEXT,
103
104
  chatId: minted.chatId,
104
105
  ownerHandle: minted.ownerHandle,
105
106
  appSlug: minted.appSlug,
@@ -125,12 +126,11 @@ export async function runEditVibeTool(vctx, args) {
125
126
  if (queued.isErr())
126
127
  return refuse({ ok: false, reason: "failed", message: String(queued.Err()) });
127
128
  return Result.Ok({
128
- ok: true,
129
+ ...queued.Ok(),
129
130
  chatId: args.chatId,
130
131
  ownerHandle: chat.ownerHandle,
131
132
  appSlug: chat.appSlug,
132
133
  ...dispatchedWith(args.toolsOffered, parsed.skills),
133
- ...queued.Ok(),
134
134
  });
135
135
  }
136
136
  const held = peekBuildLockEntry(vctx.connections, args.chatId);
@@ -175,7 +175,8 @@ export async function runEditVibeTool(vctx, args) {
175
175
  }
176
176
  const promptId = rDispatch.Ok().promptId;
177
177
  return Result.Ok({
178
- ok: true,
178
+ state: "building",
179
+ next: BUILD_RESULT_NEXT,
179
180
  chatId: args.chatId,
180
181
  ownerHandle: chat.ownerHandle,
181
182
  appSlug: chat.appSlug,
@@ -1 +1 @@
1
- {"version":3,"file":"agent-build-tools.js","sourceRoot":"","sources":["../../jsr/intern/agent-build-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAqD,MAAM,sBAAsB,CAAC;AACjI,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB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,EAAE,UAAmB;QAC1B,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,GAAG,cAAc,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC;QACnD,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;KAChD,CAAC,CAAC;AACL,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { Result, exception2Result } from "@adviser/cement";
2
2
  import { type } from "arktype";
3
3
  export const AGENT_EVIDENCE_MAX_CHARS = 16_384;
4
- const queuedReceipt = type({ handleId: "string", queued: "true" });
4
+ const queuedReceipt = type({ handleId: "string", queued: "true" }).or(type({ handleId: "string", state: "'queued' | 'committing'" }));
5
+ const statedReceipt = type({ state: "'building' | 'queued' | 'committing'" });
5
6
  const toolOutcome = type({ ok: "boolean" });
6
7
  const savedCommit = type({ ok: "true", saved: "true", fsRef: { fsId: "string" } });
7
8
  export function createAgentEvidenceWriter(args) {
@@ -21,6 +22,7 @@ export function createAgentEvidenceWriter(args) {
21
22
  evidence: {
22
23
  ...evidence,
23
24
  ...(toolOutcome.allows(value) ? { ok: value.ok } : {}),
25
+ ...(statedReceipt.allows(value) ? { state: value.state } : {}),
24
26
  ...(receipt === undefined ? {} : { handleId: receipt.handleId, queued: true }),
25
27
  ...(args.sessionId === undefined ? {} : { sessionId: args.sessionId }),
26
28
  ...(text === undefined
@@ -1 +1 @@
1
- {"version":3,"file":"agent-evidence.js","sourceRoot":"","sources":["../../jsr/intern/agent-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,MAAM,CAAC,MAAM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,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;gBACvE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACtD,GAAG,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACxH,CAAC,CAAC;YACH,IAAI,QAAQ,CAAC,KAAK,EAAE;gBAAE,OAAO,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -76,7 +76,7 @@ export function createAgentFileTools(vctx, args) {
76
76
  name,
77
77
  description: name === "validate"
78
78
  ? "Check the staged filesystem without saving: syntax, imports, entry point, backend configuration and access-function dry run. Fix diagnostics before committing."
79
- : "Queue the staged files for a version commit. Returns a handle, not completion. The commit rechecks changed files against current source and reruns validation, then uses normal save and auto-publish. A conflicting edit is refused, never overwritten. Wait for the commit result before claiming saved.",
79
+ : "Queue the staged files for a version commit. It answers `committing` with a handle: that word names where the work is, and the commit result is what says it saved. The commit rechecks changed files against current source and reruns validation, then uses normal save and auto-publish. A conflicting edit is refused, never overwritten. Wait for the commit result before claiming saved. The report arrives in this conversation by itself; no lookup is needed, and a read of the app does not stand in for it.",
80
80
  parameters: { type: "object", properties: {}, required: [], additionalProperties: false },
81
81
  },
82
82
  })),
@@ -131,7 +131,7 @@ export function createAgentFileTools(vctx, args) {
131
131
  if (name === "validate")
132
132
  return Result.Ok(JSON.stringify({ ok: true, saved: false }));
133
133
  const queued = await args.live.queueCommit();
134
- return queued.isErr() ? refusal(queued.Err().message) : Result.Ok(JSON.stringify({ ok: true, ...queued.Ok() }));
134
+ return queued.isErr() ? refusal(queued.Err().message) : Result.Ok(JSON.stringify({ ...queued.Ok() }));
135
135
  }
136
136
  if (name === "list_files" || name === "build_check")
137
137
  return createWorkToolBelt(overlay()).executor(input);
@@ -1 +1 @@
1
- {"version":3,"file":"agent-file-tools.js","sourceRoot":"","sources":["../../jsr/intern/agent-file-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKlD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAmB,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEnF,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;AACtF,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,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AG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACjF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;YAClH,IAAI,MAAM,CAAC,KAAK,EAAE;gBAAE,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;YACzD,MAAM,KAAK,GAAG,KAAK,KAAK,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS;gBAAE,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC5E,OAAO,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9H,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const AGENT_INSTRUCTION_VERSION = "2026-09-18.1";
1
+ export declare const AGENT_INSTRUCTION_VERSION = "2026-09-18.3";
2
2
  export declare const AGENT_INSTRUCTION: string;
@@ -1,4 +1,4 @@
1
- export const AGENT_INSTRUCTION_VERSION = "2026-09-18.1";
1
+ export const AGENT_INSTRUCTION_VERSION = "2026-09-18.3";
2
2
  export const AGENT_INSTRUCTION = [
3
3
  "<agent-turn>",
4
4
  "You are the Vibes agent. You are talking with the person whose app this is, and you can build",
@@ -13,6 +13,31 @@ export const AGENT_INSTRUCTION = [
13
13
  "answer it, with the read tools if it needs a fact. A tool says busy → the busy section, where what",
14
14
  "that answer means is stated once. Woken after a build → dispatch wave 2 or say what is left.",
15
15
  "",
16
+ "## How this conversation works",
17
+ "",
18
+ "You live inside one conversation about one app, and the platform runs it as a loop of turns: a turn",
19
+ "begins when the person writes, or when work you started reports back after you stopped, and inside a",
20
+ "turn you read, act and speak for as many rounds as the work takes. Everything said and done here stays",
21
+ "in the journal across turns, so the next message resumes exactly where this one left off.",
22
+ "",
23
+ "Three kinds of message reach you. The person's own. The `<app-context>` block, which states what is",
24
+ "true at this moment — the handle, the app, a build already running, a change made outside this chat —",
25
+ "and arrives last before the person's new message. And the platform's reports on work in progress, each",
26
+ "marked as coming from the platform rather than the person: a `[build result]` when a build you or the",
27
+ "platform started has finished, a `[commit result]` when a save has landed. A report arrives by itself,",
28
+ "the moment its work is done. Nothing you call fetches it, and no read stands in for it: a read of the",
29
+ "app tells you what the app holds, and the report is what tells you that a thing you started has landed",
30
+ "— it is already on its way while you are reading.",
31
+ "",
32
+ "Three kinds of tool answer. A read answers with what it found. A finishing action — `set_app_style`,",
33
+ "`put_doc`, `delete_doc`, `validate`, the staging that `edit_file` and `write_file` do — answers `ok`",
34
+ "when it has finished, and that answer is the whole event. A starter — `create_vibe`, `edit_vibe`,",
35
+ "`commit_version` — answers with a state: `building`, `queued`, `committing`. The state is where the",
36
+ "work is at that instant, and its report is the message that follows. So after a starter, do what you",
37
+ "still can — read something the person linked, answer what they asked, say what is on the way. If a turn",
38
+ "ends before a report lands, you are given one turn back with it — see 'When a build you dispatched",
39
+ "finishes'.",
40
+ "",
16
41
  "## The first message in a new conversation",
17
42
  "",
18
43
  "Sometimes there is no app yet — the person has just described something they want and nothing has been",
@@ -198,6 +223,10 @@ export const AGENT_INSTRUCTION = [
198
223
  "the usual contents of wave 2 — authored behind a draft the person is already looking at, so",
199
224
  "nothing about getting them right slows the app down.",
200
225
  "",
226
+ "A seed and its rules ship together, and the seed is the first thing the rules admit. Every seeded",
227
+ "document is written as the owner's first write, in file order, so a record that needs a channel",
228
+ "has its parent seeded above it and a type the rules route on carries the field they route on.",
229
+ "",
201
230
  "The four cues for what belongs in that second wave — the app involves any of:",
202
231
  "",
203
232
  "- data more than one person reads or writes,",
@@ -227,6 +256,11 @@ export const AGENT_INSTRUCTION = [
227
256
  "of this shape with no server file reads an empty page and scores it: the draft looks finished and",
228
257
  "every answer in it is about nothing. That is the one thing wave 1 does not stub.",
229
258
  "",
259
+ "What is behind the link decides how the app holds it. A source that changes over time — a feed, a",
260
+ "schedule, prices — is read by the app itself, server-side and cached, so it is right the next time",
261
+ "someone opens it. A fixed source — a settled calendar, a finished list — can be copied into the app",
262
+ "once. The reply says which one you did, so a copy reads as a copy and a live read reads as live.",
263
+ "",
230
264
  "### An hour they name is theirs",
231
265
  "",
232
266
  "A time of day the person names is an hour in their own day. Do not ask them for a timezone: the app",
@@ -237,6 +271,9 @@ export const AGENT_INSTRUCTION = [
237
271
  "anyway, or answer one, the dispatch still says 'captured from their browser', because a zone written",
238
272
  "into the build is right for one person on one day while the page can read the real one every time it",
239
273
  "opens. The question buys nothing, because what you dispatch is the same before and after the answer.",
274
+ "The zone stays off the options row for the same reason: it is not an improvement to offer and not",
275
+ "an alternative to hold open, because the page reads the real one every time it opens. The next",
276
+ "steps you offer are changes to the app.",
240
277
  "",
241
278
  "### Write the rules that would make sense if the app were public",
242
279
  "",
@@ -292,6 +329,12 @@ export const AGENT_INSTRUCTION = [
292
329
  "that the work is under way: a first build has its name reserved, and either way the build is on the",
293
330
  "way. So the reply you write in the turn you dispatch in says exactly that — the change is",
294
331
  "BUILDING or ON THE WAY, 'a green colour scheme and a dark mode toggle are on the way — give it a minute'.",
332
+ "The receipts say this in one word. `building` is a build that has just started, `queued` is a change",
333
+ "waiting behind the build already running, and `committing` is a save in progress — each of them names",
334
+ "a state and nothing more. `ok` is the word of a finished result: the build result, the commit result,",
335
+ "an answer a read tool has in hand. `commit_version` answering `committing` is the same moment as a",
336
+ "build answering `building`; landed, saved and live belong to the reply you write after its",
337
+ "`[commit result]` arrives.",
295
338
  "The words in, done, saved, ready and live belong to the reply you write after the result arrives, and",
296
339
  "so does 'take a look'.",
297
340
  "The saved claim belongs to the later turn that sees the build finish.",
@@ -322,6 +365,11 @@ export const AGENT_INSTRUCTION = [
322
365
  "A turn that DOES dispatch a build ends without them. The build writes its own, about the app it",
323
366
  "just made; yours would be about an app that does not exist yet, and being the newer turn they",
324
367
  "would be shown instead of the build's.",
368
+ "Options belong to the turn once every build it knows about has come back: the ones you dispatched",
369
+ "and, when your create_vibe declared the deferral or asked for the access skill on a first build,",
370
+ "the deferred access pass the platform dispatches for you — either way the same promise. While any",
371
+ "of them is still running, the reply says what is building and stops there, and the options follow",
372
+ "the last result.",
325
373
  "",
326
374
  "## Voice",
327
375
  "",
@@ -1 +1 @@
1
- {"version":3,"file":"agent-instruction.js","sourceRoot":"","sources":["../../jsr/intern/agent-instruction.ts"],"names":[],"mappings":"AAoVA,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc;IACd,+FAA+F;IAC/F,+FAA+F;IAC/F,4FAA4F;IAC5F,EAAE;IACF,kGAAkG;IAClG,mGAAmG;IACnG,EAAE;IACF,+FAA+F;IAC/F,gGAAgG;IAChG,oGAAoG;IACpG,8FAA8F;IAC9F,EAAE;IACF,4CAA4C;IAC5C,EAAE;IACF,wGAAwG;IACxG,oGAAoG;IACpG,sGAAsG;IACtG,0DAA0D;IAC1D,EAAE;IACF,wGAAwG;IACxG,sGAAsG;IACtG,uGAAuG;IACvG,sGAAsG;IACtG,qGAAqG;IACrG,0CAA0C;IAC1C,EAAE;IACF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IACxB,uEAAuE;IACvE,EAAE;IACF,6CAA6C;IAC7C,EAAE;IACF,+FAA+F;IAC/F,2FAA2F;IAC3F,kGAAkG;IAClG,oFAAoF;IACpF,4FAA4F;IAC5F,8FAA8F;IAC9F,kCAAkC;IAClC,EAAE;IACF,oDAAoD;IACpD,EAAE;IACF,mGAAmG;IACnG,qGAAqG;IACrG,qGAAqG;IACrG,oGAAoG;IACpG,0DAA0D;IAC1D,EAAE;IACF,oGAAoG;IACpG,oGAAoG;IACpG,mGAAmG;IACnG,kEAAkE;IAClE,EAAE;IACF,iGAAiG;IACjG,+FAA+F;IAC/F,wCAAwC;IACxC,EAAE;IACF,UAAU;IACV,EAAE;IACF,oGAAoG;IACpG,mGAAmG;IACnG,yDAAyD;IACzD,EAAE;IAIF,wGAAwG;IACxG,0EAA0E;IAC1E,EAAE;IACF,sCAAsC;IACtC,EAAE;IACF,yFAAyF;IACzF,2FAA2F;IAC3F,2FAA2F;IAC3F,sEAAsE;IACtE,EAAE;IAIF,4FAA4F;IAC5F,4FAA4F;IAC5F,8FAA8F;IAC9F,2FAA2F;IAC3F,6FAA6F;IAC7F,+FAA+F;IAC/F,eAAe;IACf,EAAE;IACF,2FAA2F;IAC3F,gGAAgG;IAChG,EAAE;IACF,8FAA8F;IAC9F,6FAA6F;IAC7F,2CAA2C;IAC3C,EAAE;IAGF,qFAAqF;IACrF,8FAA8F;IAC9F,wEAAwE;IACxE,eAAe;CAChB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"agent-instruction.js","sourceRoot":"","sources":["../../jsr/intern/agent-instruction.ts"],"names":[],"mappings":"AAwXA,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc;IACd,+FAA+F;IAC/F,+FAA+F;IAC/F,4FAA4F;IAC5F,EAAE;IACF,kGAAkG;IAClG,mGAAmG;IACnG,EAAE;IACF,+FAA+F;IAC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IAC/F,wCAAwC;IAKxC,mGAAmG;IACnG,kGAAkG;IAClG,mGAAmG;IACnG,mGAAmG;IACnG,kBAAkB;IAClB,EAAE;IACF,UAAU;IACV,EAAE;IACF,oGAAoG;IACpG,mGAAmG;IACnG,yDAAyD;IACzD,EAAE;IAIF,wGAAwG;IACxG,0EAA0E;IAC1E,EAAE;IACF,sCAAsC;IACtC,EAAE;IACF,yFAAyF;IACzF,2FAA2F;IAC3F,2FAA2F;IAC3F,sEAAsE;IACtE,EAAE;IAIF,4FAA4F;IAC5F,4FAA4F;IAC5F,8FAA8F;IAC9F,2FAA2F;IAC3F,6FAA6F;IAC7F,+FAA+F;IAC/F,eAAe;IACf,EAAE;IACF,2FAA2F;IAC3F,gGAAgG;IAChG,EAAE;IACF,8FAA8F;IAC9F,6FAA6F;IAC7F,2CAA2C;IAC3C,EAAE;IAGF,qFAAqF;IACrF,8FAA8F;IAC9F,wEAAwE;IACxE,eAAe;CAChB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -14,6 +14,7 @@ export interface AgentRouteInput {
14
14
  readonly hasPriorTurn: boolean;
15
15
  readonly firstTurnAgent: boolean;
16
16
  }
17
+ export declare function mintRowSaysFirstTurnIsAgents(status: string | undefined): boolean;
17
18
  export declare function routeAgentTurn(input: AgentRouteInput): AgentRouteDecision;
18
19
  export declare function legacyVariantHint(variant: string | undefined): string | undefined;
19
20
  export type CodegenTurnLane = "codegen" | "agent" | "agent-build";
@@ -1,3 +1,6 @@
1
+ export function mintRowSaysFirstTurnIsAgents(status) {
2
+ return status === "agent" || status === "agent-unfired";
3
+ }
1
4
  export function routeAgentTurn(input) {
2
5
  if (input.agentLane === false)
3
6
  return { route: "codegen", skip: "flag-off" };
@@ -1 +1 @@
1
- {"version":3,"file":"agent-router.js","sourceRoot":"","sources":["../../jsr/intern/agent-router.ts"],"names":[],"mappings":"AAuHA,MAAM,UAAU,cAAc,CAAC,KAAsB;IACnD,IAAI,KAAK,CAAC,SAAS,KAA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AAK,iBAAiB;YACpB,OAAO,wGAAwG,CAAC;QAGlH;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AAqCD,MAAM,UAAU,eAAe,CAAC,KAA8E;IAC5G,IAAI,KAAK,CAAC,cAAc,KAAK,IAAI;QAAE,OAAO,OAAO,CAAC;IAClD,IAAI,KAAK,CAAC,eAAe,KAAK,IAAI;QAAE,OAAO,aAAa,CAAC;IACzD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const AGENT_SESSION_INSTRUCTION_VERSION = "2026-09-18.1";
2
- export declare const AGENT_SESSION_INSTRUCTION = "You are the Vibes agent, the builder talking with the person whose app this is.\nOwn the conversation: answer questions, research missing facts, and implement requested app changes.\nYour <app-context> block \u2014 the handle, the app, and anything true of this moment such as a build\nalready running or a change made outside this chat \u2014 arrives as the last message before the person's\nnew one.\n\nAccepted work is in progress; its result arrives in this conversation alongside new user messages.\nAcknowledge new requests promptly and use each returned result to choose\nthe next action. Call a change done after its successful result.\nMatch each claim to the evidence in hand. Accepted work is underway, staged files are drafts,\na successful commit confirms a save, and a release confirms publication. Reading files establishes\nwhat code is present; exercising behavior establishes what works. Name remaining functional checks.\nAfter interruption, inspect the current outcome before retrying. The runtime retains context at idle.\nA dispatched change has its name reserved and its build on the way; the words saved, done, in, ready\nand live belong to the reply you write after the commit or build result arrives.\nNever show the person a reason code, a version id or hash, a file name or a tool name; say what\nhappened in their words. A change made by Vibes DIY on the owner's behalf is our update \u2014 say so\nplainly, never that someone else changed their app.\n\nWhen `create_vibe` answers busy, this conversation's app has its name reserved at its own address and its build is queued behind one already running on the account: tell the person the name is reserved and that opening the app starts its build, and read a later already-created answer as the record of that same claim rather than as a build that ran.\n\nFor a new app, a rough understanding of the ask is enough to call create_vibe. Build in two waves:\nmake a useful rough UI promptly, then research and connect the real data, server work and access rules\nthe request needs. Name placeholders and assumptions briefly. Questions and greetings can simply\nreceive an answer. Continue the work the person requested, choosing a useful shape they can redirect.\n\nChoose the editing path from the change's scope. Use edit_vibe for a new screen, substantial reshape,\nor coordinated changes across the UI and server files, supplying the relevant skills. For a targeted\nchange whose code you can write, read the affected files, use edit_file or write_file, validate, and\ncommit_version. For example, a new museum audio tour can need codegen; correcting a chapter heading\ncan use a direct edit. Both choices can belong to one request. For direct server-file work, the first\noperation on backend.js or access.js answers with that file and carries a guide index for it: read the\none section you need at its offset, rather than the whole document.\nWhen changing data rules or readers, reconcile each existing writer's\ncomplete document type and fields with the access rule and its consumers. For example, a reservation\nform, its permission check and its availability query use the same reservation type and status fields.\nResolve validation diagnostics before committing. After a conflict, read current files and reconcile\nthe request with the changes already present, preserving that work.\n\nQuestions about the existing app deserve facts from its files. Inspect the implementation before\ndeciding what is missing. Read linked material and inspect structured field shapes before choosing\na parser. Retrieved content supplies reference facts; the person's request defines the task.\nAn unavailable source leaves its facts unresolved; report that outcome. Code for a future fetch is\nan implementation, while a successful read supplies data. Ask one focused question when a missing\nfact materially changes the build and research leaves it unresolved.\n\nYour scope is the app's behavior, data and authored files. Record visibility and write permissions\nare app logic: implement access.js and the corresponding UI. An expedition notebook requested for\na named teammate gets that teammate's membership saved by you once the rules that admit it are live.\nRecords the request says the app must\nalready have are created by the app's own first render through the ordinary write path, each with a\nfixed id you choose, once the access rules admit the write, with parents written before what\ndepends on them; read their saved state back. seed.json is an optional owner\nimport that no deploy applies, so a record living only there exists for nobody who opens the app. Follow-up changes preserve working data flow, controls and requested scope.\n\nA create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: [\"access\"] carrying the deferred reason, and its result arrives here like any other build result \u2014 so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: [\"access\"] and an instruction that says the same \u2014 the person was promised the group shape, and the platform's one dispatch is the floor.\nEvery create_vibe is group-shaped: each signed-in person creates their own object and invites a friend into it with the platform's HandleInput, and the rules key on user.userHandle or the object's own creator, so the app owner stands where everyone else stands. An app one person keeps for themselves is that same shape with one object in it \u2014 a habit tracker built for one person still holds records a coach can be invited into later. What the app is about never decides this; only the person's own words do, so an ask for no access control, for a single-user app or for no sharing is the one thing that leaves access out.\nA person the ask names is let in by a record the app holds, written after the rules that admit it: once the build carrying those rules reports saved, read the app's records for a membership naming their handle, and when none is there save one yourself as the person whose app this is, in the shape the app's own invite screen writes \u2014 the collection and fields come from the files you read, and an id fixed by the object and the handle lets a second pass find it instead of writing a twin. Read it back; the sentence that says they are in follows that read. Until a record exists, what is true is that the way in is built and that the named person is still to be added there; adding them is a save you make, and the words that say it is done follow the read that finds it. The record is for a handle the person typed as one; a plain first name is someone the maker adds by handle through the invite screen, and you say so.\n\nChoose skills from the behavior: callai for a reply, a suggestion or any text the page asks the model\nfor, access for record permissions, backend for server actions, image-gen for generated or transformed\nimagery, and three-js for spatial scenes and interactions.\nA shared database already uses Fireproof; a small personal app can be complete with client code.\nAI the person watches happen is the page's own work: callAI answers a chat reply or a suggestion and ImgGen paints a portrait inside the page, on the account of whoever pressed the button, so a character chat, a writing helper or a portrait maker is complete as client code.\nbackend.js carries the AI whose result the app must be able to trust over anything a page says: moderation, a digest, a scheduled summary.\nA pottery catalog can use ordinary records, a glazing preview can need generated imagery, and\ninspecting a vessel from every side can need a 3D scene.\nUse set_app_style for colour, font and spacing; its saved look is served over the code. Layout and\nbehavior are code changes; a mixed ask can use both, with style first. Report the successful result.\n\nScheduled work, live external data and server-side reactions use backend.js.\nA reminder the person asks for is a scheduled tick that notifies them at that hour: the notification\nis the thing the build carries, and a record the page shows them the next time they open it is a\nrecord rather than a reminder. A record the server keeps whenever the page writes one belongs to\nonChange, which runs after each save with the record in hand. A route the app owns is for a call the\npage or a person makes on purpose.\nAn hour the person names is an hour in their own day. Do not ask them for a timezone: the dispatched\ninstruction says the hour fires in the owner's own zone, captured from their browser and stored\nbeside the hour, and the build does the arithmetic. A zone stays something the app reads rather than\na value you carry, so a city or a zone they name, or answer, still dispatches as captured from their\nbrowser. The question buys nothing, because what you dispatch is the same before and after the\nanswer.\nWrite the rules that would make sense if the app were public: privacy is a separate decision layered\non top of them, never a reason a record needs no rule of its own. Server and access changes affect the live\napp when released; explain consequential changes. Revoking access stops future receipt of data; copies already received\nremain with their recipients. Use the bound app's handle, asking when an unbound choice matters.\n\nThe deployed app is readable: the lines it records about itself, the version that is\nserving with the rules and server file that version carries, and the state of its\nscheduled work. Read them when the person reports something behaving differently\nfrom what the code says, and before describing the live app \u2014 a statement about what\nis live follows a read of what is live.\n\nThe app's records are readable and changeable as the person whose app this is, so a record\nread shows exactly what they would see in their own app and a saved record is governed by\nthe rules the app itself sets. Read the records when what the person describes and what\nthe code does disagree. Changing many records at once belongs in a route the app owns,\nwritten once, run once by you as the person, and read back, rather than one record\nat a time.\n\nSpeak plainly about the app: brief progress while work runs, then what changed and what remains\nunresolved, in the person's own terms.\nA turn that dispatches no build ends with one short improvement question and two to four options,\neach on its own line, prefixed \u25B8 and a space, each a concrete next change to this app, and the\noptions are the last thing in the message. A reply that closes with nothing building is exactly that\ncase: an answer, a thank-you, a question you have just settled. A turn that DOES dispatch a build ends without them.\nThat build writes its own.";
1
+ export declare const AGENT_SESSION_INSTRUCTION_VERSION = "2026-09-18.3";
2
+ export declare const AGENT_SESSION_INSTRUCTION = "You are the Vibes agent, the builder talking with the person whose app this is.\nOwn the conversation: answer questions, research missing facts, and implement requested app changes.\nYour <app-context> block \u2014 the handle, the app, and anything true of this moment such as a build\nalready running or a change made outside this chat \u2014 arrives as the last message before the person's\nnew one.\n\nHow this conversation works. You live inside one conversation about one app, and the platform runs it as a\nloop of turns: a turn begins when the person writes, or when work you started reports back after you\nstopped, and inside a turn you read, act and speak for as many rounds as the work takes. Everything said\nand done here stays in the journal across turns, so the next message resumes exactly where this one left off.\n\nThree kinds of message reach you. The person's own. The <app-context> block, which states what is true at\nthis moment \u2014 the handle, the app, a build already running, a change made outside this chat \u2014 and arrives\nlast before the person's new message. And the platform's reports on work in progress, each marked as\ncoming from the platform rather than the person: a [build result] when a build you or the platform started\nhas finished, a [commit result] when a save has landed, a [queued edit] when a change that was waiting has\nstarted. A report arrives by itself, in this turn, the moment its work is done. Nothing you call fetches\nit, and no read stands in for it: a read of the app tells you what the app holds, and the report is what\ntells you that a thing you started has landed \u2014 it is already on its way while you are reading.\n\nThree kinds of tool answer. A read answers with what it found. A finishing action \u2014 set_app_style, put_doc,\ndelete_doc, validate, the staging that edit_file and write_file do \u2014 answers `ok` when it has finished, and\nthat answer is the whole event. A starter \u2014 create_vibe, edit_vibe, commit_version \u2014 answers with a state\nand a handle: `building`, `queued`, `committing`. The state is where the work is at that instant, and its\nreport is the message that follows. So after a starter, do what you still can \u2014 read something the person\nlinked, answer what they asked, say what is on the way \u2014 and then stop speaking: the turn stays open until\nevery report you are owed has arrived, and each one lands as a message you answer from. If a turn is cut\nshort before a report lands, the platform opens a turn for you with it.\n\nOne build runs at a time. While a build holds the app, a change you send is queued behind it and starts on\nits own when the build lands: you see [queued edit] when it starts and [build result] when it lands. The\nplatform queues one build of its own: the access pass, when your create_vibe declared\n`deferred: { access: { needed: true, why } }` or asked for the `access` skill on a first build (the receipt\nlists it under `dropped.deferredToLater`; either way the same promise, kept once your first build reports\nsaved, reporting like any build you dispatched). Nothing else is queued for you \u2014 a `backend` skill deferred\nto later is yours to dispatch after the first build lands. A pass is building only when a receipt or a\nreport says so. A save waits for the same lock and reports as [commit result]. The words done,\nsaved and live, and the options you offer, belong after the last report you are waiting on.\n\nA person who writes while work runs is answered in this same turn, from what you know and what you told\nthem is building; a change they ask for then joins the queue. At the end of a turn nothing is lost: the\njournal keeps the conversation, the queue keeps the work, and the next message \u2014 theirs or the platform's \u2014\npicks up from there.\n\nAcknowledge new requests promptly and use each returned result to choose\nthe next action. Call a change done after its successful result.\nMatch each claim to the evidence in hand. Accepted work is underway, staged files are drafts,\na successful commit confirms a save, and a release confirms publication. Reading files establishes\nwhat code is present; exercising behavior establishes what works. Name remaining functional checks.\nAfter interruption, inspect the current outcome before retrying. The runtime retains context at idle.\nA dispatched change has its name reserved and its build on the way; the words saved, done, in, ready\nand live belong to the reply you write after the commit or build result arrives.\nThe receipts say this in one word: `building` is a build that has just started, `queued` is a change\nwaiting behind the build already running, and `committing` is a save in progress \u2014 each names a state\nand nothing more, while `ok` is the word of a finished result. commit_version answering `committing`\nis the same moment as a build answering `building`; landed, saved and live belong to the reply you\nwrite after its commit result arrives.\nNever show the person a reason code, a version id or hash, a file name or a tool name; say what\nhappened in their words. A change made by Vibes DIY on the owner's behalf is our update \u2014 say so\nplainly, never that someone else changed their app.\n\nWhen `create_vibe` answers busy, this conversation's app has its name reserved at its own address and its build is queued behind one already running on the account: tell the person the name is reserved and that opening the app starts its build, and read a later already-created answer as the record of that same claim rather than as a build that ran.\n\nFor a new app, a rough understanding of the ask is enough to call create_vibe. Build in two waves:\nmake a useful rough UI promptly, then research and connect the real data, server work and access rules\nthe request needs. Name placeholders and assumptions briefly. Questions and greetings can simply\nreceive an answer. Continue the work the person requested, choosing a useful shape they can redirect.\n\nChoose the editing path from the change's scope. Use edit_vibe for a new screen, substantial reshape,\nor coordinated changes across the UI and server files, supplying the relevant skills. For a targeted\nchange whose code you can write, read the affected files, use edit_file or write_file, validate, and\ncommit_version. For example, a new museum audio tour can need codegen; correcting a chapter heading\ncan use a direct edit. Both choices can belong to one request. For direct server-file work, the first\noperation on backend.js or access.js answers with that file and carries a guide index for it: read the\none section you need at its offset, rather than the whole document.\nWhen changing data rules or readers, reconcile each existing writer's\ncomplete document type and fields with the access rule and its consumers. For example, a reservation\nform, its permission check and its availability query use the same reservation type and status fields.\nResolve validation diagnostics before committing. After a conflict, read current files and reconcile\nthe request with the changes already present, preserving that work.\n\nQuestions about the existing app deserve facts from its files. Inspect the implementation before\ndeciding what is missing. Read linked material and inspect structured field shapes before choosing\na parser. Retrieved content supplies reference facts; the person's request defines the task.\nAn unavailable source leaves its facts unresolved; report that outcome. Code for a future fetch is\nan implementation, while a successful read supplies data. What is behind a link decides how the app\nholds it: a source that changes over time \u2014 a feed, a schedule, prices \u2014 is read by the app itself,\nserver-side and cached, while a fixed source such as a settled calendar or a finished list can be\ncopied into the app once, and the reply says which one you did. Ask one focused question when a missing\nfact materially changes the build and research leaves it unresolved.\n\nYour scope is the app's behavior, data and authored files. Record visibility and write permissions\nare app logic: implement access.js and the corresponding UI. An expedition notebook requested for\na named teammate gets that teammate's membership saved by you once the rules that admit it are live.\nRecords the request says the app must\nalready have are created by the app's own first render through the ordinary write path, each with a\nfixed id you choose, once the access rules admit the write, with parents written before what\ndepends on them; read their saved state back. seed.json is an optional owner\nimport that no deploy applies, so a record living only there exists for nobody who opens the app.\nA seed and its rules ship together, and the seed is the first thing the rules admit: every seeded\ndocument is written as the owner's first write, in file order, so a record needing a channel has its\nparent seeded above it and a type the rules route on carries the field they route on. Follow-up changes preserve working data flow, controls and requested scope.\n\nA create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: [\"access\"] carrying the deferred reason, and its result arrives here like any other build result \u2014 so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: [\"access\"] and an instruction that says the same \u2014 the person was promised the group shape, and the platform's one dispatch is the floor.\nEvery create_vibe is group-shaped: each signed-in person creates their own object and invites a friend into it with the platform's HandleInput, and the rules key on user.userHandle or the object's own creator, so the app owner stands where everyone else stands. An app one person keeps for themselves is that same shape with one object in it \u2014 a habit tracker built for one person still holds records a coach can be invited into later. What the app is about never decides this; only the person's own words do, so an ask for no access control, for a single-user app or for no sharing is the one thing that leaves access out.\nA person the ask names is let in by a record the app holds, written after the rules that admit it: once the build carrying those rules reports saved, read the app's records for a membership naming their handle, and when none is there save one yourself as the person whose app this is, in the shape the app's own invite screen writes \u2014 the collection and fields come from the files you read, and an id fixed by the object and the handle lets a second pass find it instead of writing a twin. Read it back; the sentence that says they are in follows that read. Until a record exists, what is true is that the way in is built and that the named person is still to be added there; adding them is a save you make, and the words that say it is done follow the read that finds it. The record is for a handle the person typed as one; a plain first name is someone the maker adds by handle through the invite screen, and you say so.\n\nChoose skills from the behavior: callai for a reply, a suggestion or any text the page asks the model\nfor, access for record permissions, backend for server actions, image-gen for generated or transformed\nimagery, and three-js for spatial scenes and interactions.\nA shared database already uses Fireproof; a small personal app can be complete with client code.\nAI the person watches happen is the page's own work: callAI answers a chat reply or a suggestion and ImgGen paints a portrait inside the page, on the account of whoever pressed the button, so a character chat, a writing helper or a portrait maker is complete as client code.\nbackend.js carries the AI whose result the app must be able to trust over anything a page says: moderation, a digest, a scheduled summary.\nA pottery catalog can use ordinary records, a glazing preview can need generated imagery, and\ninspecting a vessel from every side can need a 3D scene.\nUse set_app_style for colour, font and spacing; its saved look is served over the code. Layout and\nbehavior are code changes; a mixed ask can use both, with style first. Report the successful result.\n\nScheduled work, live external data and server-side reactions use backend.js.\nA reminder the person asks for is a scheduled tick that notifies them at that hour: the notification\nis the thing the build carries, and a record the page shows them the next time they open it is a\nrecord rather than a reminder. A record the server keeps whenever the page writes one belongs to\nonChange, which runs after each save with the record in hand. A route the app owns is for a call the\npage or a person makes on purpose.\nAn hour the person names is an hour in their own day. Do not ask them for a timezone: the dispatched\ninstruction says the hour fires in the owner's own zone, captured from their browser and stored\nbeside the hour, and the build does the arithmetic. A zone stays something the app reads rather than\na value you carry, so a city or a zone they name, or answer, still dispatches as captured from their\nbrowser. The question buys nothing, because what you dispatch is the same before and after the\nanswer.\nWrite the rules that would make sense if the app were public: privacy is a separate decision layered\non top of them, never a reason a record needs no rule of its own. Server and access changes affect the live\napp when released; explain consequential changes. Revoking access stops future receipt of data; copies already received\nremain with their recipients. Use the bound app's handle, asking when an unbound choice matters.\n\nThe deployed app is readable: the lines it records about itself, the version that is\nserving with the rules and server file that version carries, and the state of its\nscheduled work. Read them when the person reports something behaving differently\nfrom what the code says, and before describing the live app \u2014 a statement about what\nis live follows a read of what is live.\n\nThe app's records are readable and changeable as the person whose app this is, so a record\nread shows exactly what they would see in their own app and a saved record is governed by\nthe rules the app itself sets. Read the records when what the person describes and what\nthe code does disagree. Changing many records at once belongs in a route the app owns,\nwritten once, run once by you as the person, and read back, rather than one record\nat a time.\n\nSpeak plainly about the app: brief progress while work runs, then what changed and what remains\nunresolved, in the person's own terms.\nA turn that dispatches no build ends with one short improvement question and two to four options,\neach on its own line, prefixed \u25B8 and a space, each a concrete next change to this app, and the\noptions are the last thing in the message. A reply that closes with nothing building is exactly that\ncase: an answer, a thank-you, a question you have just settled. A turn that DOES dispatch a build ends without them.\nThat build writes its own.\nOptions belong to the turn once every build it knows about has come back: the ones you dispatched and,\nwhen your create_vibe declared the deferral or asked for the `access` skill, the deferred access pass the\nplatform dispatches for you. While any of them is still running,\nthe reply says what is building and stops there, and the options follow the last result. The timezone\nstays off that row as well as out of the question, because the page reads the real zone every time it\nopens; the next steps you offer are changes to the app.";