@alis-build/design-system 0.23.0 → 0.24.0

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.
package/README.md CHANGED
@@ -16,10 +16,11 @@ product screens in any framework: Svelte, Vue, or plain HTML.
16
16
  | `rules/` | What to build and why: one file per decision, plus a quick start and the known gaps. |
17
17
  | `tokens.json` | The source of every value: each colour tagged palette, product or narrative, each product role with a value per theme. References such as `{cyan-600}` are left in; read `tokens.css` or `themes.json` rather than resolving them. For code written before themes, each product role also keeps a `value` (its light one), and each shadow its light literal as `value` beside `values` per theme. |
18
18
  | `marks.json` | The capability marks (`alis_*`): construction, stroke grade by size, geometry, in canonical order. |
19
+ | `words.json` | One name per thing: what each means, what it replaces, and the code word where it differs. Read it wherever words are written for people, an AI's instructions included (`rules/words.md`). |
19
20
  | `assets/Brand/` | The Alis mark, product lockups, app icon and favicon. |
20
21
  | `stylelint.mjs` | The style check that restates `rules/styling.md`, as a stylelint config your own extends. |
21
22
  | `classes.json` | Every class and custom property `alisx.css` defines in this version. |
22
- | `check.mjs` | `alisx-check`: runs the two checks below in your build. |
23
+ | `check.mjs` | `alisx-check`: runs the three checks below in your build. |
23
24
 
24
25
  ```bash
25
26
  pnpm add -E @alis-build/design-system
@@ -109,13 +110,15 @@ export default {
109
110
  - It reads what is written in CSS. A value held in a Sass variable or a mixin,
110
111
  or a literal behind a custom property of your own (`--pad: 13px`), is not seen.
111
112
 
112
- **3. Run both checks in your build.**
113
+ **3. Run the checks in your build.**
113
114
 
114
115
  ```json
115
116
  "scripts": {
116
117
  "lint:names": "alisx-check names src",
117
118
  "lint:styles": "alisx-check styles \"src/**/*.{css,svelte,vue}\"",
118
- "lint:styles:record": "alisx-check styles \"src/**/*.{css,svelte,vue}\" --update"
119
+ "lint:styles:record": "alisx-check styles \"src/**/*.{css,svelte,vue}\" --update",
120
+ "lint:words": "alisx-check words src",
121
+ "lint:words:record": "alisx-check words src --update"
119
122
  }
120
123
  ```
121
124
 
@@ -136,7 +139,13 @@ export default {
136
139
  recorded against: after an upgrade the check says so, because the rules may
137
140
  have changed. Re-record only after an intentional change, never to clear a
138
141
  failure, and say in the commit why the number moved.
139
- - Both stop with exit code 2, never pass, when they could not run as set up: a
142
+ - `alisx-check words` fails on a name `words.json` has retired ("idea" for a
143
+ project, "Access and ownership" for Sharing) in text a person reads: text
144
+ between tags, and quoted text that holds a space or starts with a capital.
145
+ Its baseline, `alisx-words-baseline.json`, works as the styles one does. A
146
+ use that must stay is marked on its line or the line above:
147
+ `alisx-words-ignore -- the reason`.
148
+ - Each stops with exit code 2, never passes, when it could not run as set up: a
140
149
  rule stylelint rejected, a file that didn't parse, no files matched.
141
150
 
142
151
  Pin an exact version (`pnpm add -E`, `npm install -E`), so the rules, the
package/check.mjs CHANGED
@@ -24,6 +24,14 @@
24
24
  // violations of a rule, so a backlog doesn't block new work. --update
25
25
  // records the baseline (default alisx-style-baseline.json, where you run
26
26
  // it); do that only after an intentional change, never to clear a failure.
27
+ //
28
+ // alisx-check words <path…> [--baseline <file>] [--update]
29
+ // Fails on a name words.json has retired, in text a person reads: text
30
+ // between tags, and quoted text that holds a space or starts with a
31
+ // capital (rules/words.md). Code words (ideas.length, 'ideate-project')
32
+ // are not read. The baseline works as it does for styles (default
33
+ // alisx-words-baseline.json). A line marked alisx-words-ignore with a
34
+ // reason, or the line under it, is skipped.
27
35
  import { existsSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs'
28
36
  import { spawnSync } from 'node:child_process'
29
37
  import { tmpdir } from 'node:os'
@@ -32,11 +40,12 @@ import { fileURLToPath } from 'node:url'
32
40
 
33
41
  const here = dirname(fileURLToPath(import.meta.url))
34
42
  const { version } = JSON.parse(readFileSync(join(here, 'package.json'), 'utf8'))
35
- const usage = 'usage: alisx-check names <path…> [--prefix app-] [--declared <path>] [--allow <property>]\n alisx-check styles <glob…> [--baseline <file>] [--update]'
43
+ const usage =
44
+ 'usage: alisx-check names <path…> [--prefix app-] [--declared <path>] [--allow <property>]\n alisx-check styles <glob…> [--baseline <file>] [--update]\n alisx-check words <path…> [--baseline <file>] [--update]'
36
45
  const [command, ...argv] = process.argv.slice(2)
37
46
 
38
47
  const paths = []
39
- const options = { prefix: [], allow: [], declared: [], baseline: 'alisx-style-baseline.json', update: false }
48
+ const options = { prefix: [], allow: [], declared: [], baseline: command === 'words' ? 'alisx-words-baseline.json' : 'alisx-style-baseline.json', update: false }
40
49
  for (let i = 0; i < argv.length; i++) {
41
50
  const arg = argv[i]
42
51
  if (arg === '--update') options.update = true
@@ -52,6 +61,7 @@ for (let i = 0; i < argv.length; i++) {
52
61
 
53
62
  if (command === 'names' && paths.length) names()
54
63
  else if (command === 'styles' && paths.length) styles()
64
+ else if (command === 'words' && paths.length) words()
55
65
  else stop(usage)
56
66
 
57
67
  function names() {
@@ -225,6 +235,195 @@ function styles() {
225
235
  process.exit(1)
226
236
  }
227
237
 
238
+ function words() {
239
+ const { terms } = JSON.parse(readFileSync(join(here, 'words.json'), 'utf8'))
240
+ // Longest first, and each match blanked before the next looks: "Idea brief"
241
+ // is one finding, not that and "idea" again.
242
+ const retired = terms
243
+ .flatMap((term) => term.retired.map((text) => ({ text, name: term.name })))
244
+ .sort((a, b) => b.text.length - a.text.length)
245
+ .map((each) => ({ ...each, pattern: new RegExp(`(?<![\\w./-])${escape(each.text).replace(/ /g, '\\s+')}(?![\\w-]|[./]\\w)`, 'gi') }))
246
+
247
+ const sources = ['.svelte', '.vue', '.html', '.jsx', '.tsx', '.js', '.ts', '.mjs']
248
+ const missing = paths.filter((path) => !existsSync(path))
249
+ if (missing.length) stop(`alisx-check words: no such path: ${missing.join(', ')}`)
250
+ const files = paths
251
+ .flatMap((path) => walk(resolve(path)))
252
+ .filter((file) => sources.includes(extname(file)) && !/\.(spec|test)\.[cm]?[jt]sx?$|\.d\.ts$/.test(file))
253
+ if (!files.length) stop(`alisx-check words: no source files under ${paths.join(', ')}.`)
254
+
255
+ const root = dirname(resolve(options.baseline))
256
+ const key = (file) => relative(root, file).split(sep).join('/')
257
+ const now = {}
258
+ const found = {}
259
+ for (const file of files) {
260
+ const text = readFileSync(file, 'utf8')
261
+ const lines = text.split('\n')
262
+ const lineOf = (index) => text.slice(0, index).split('\n').length
263
+ const ignored = new Set()
264
+ lines.forEach((line, i) => {
265
+ if (/alisx-words-ignore\s+--\s*\S/.test(line)) ignored.add(i + 1).add(i + 2)
266
+ })
267
+ for (const { start, value } of readable(text, extname(file))) {
268
+ let rest = value
269
+ for (const { text: word, name, pattern } of retired)
270
+ rest = rest.replace(pattern, (match, offset) => {
271
+ const line = lineOf(start + offset)
272
+ if (!ignored.has(line)) {
273
+ const path = key(file)
274
+ now[path] ??= {}
275
+ now[path][word] = (now[path][word] ?? 0) + 1
276
+ ;(found[path] ??= []).push({ word, name, line, text: lines[line - 1].trim() })
277
+ }
278
+ return ' '.repeat(match.length)
279
+ })
280
+ }
281
+ }
282
+ const total = (counts) => Object.values(counts).reduce((sum, each) => sum + Object.values(each).reduce((a, b) => a + b, 0), 0)
283
+
284
+ let baseline = null
285
+ if (existsSync(options.baseline)) {
286
+ try {
287
+ baseline = JSON.parse(readFileSync(options.baseline, 'utf8'))
288
+ if (!baseline.files) throw new Error('it has no "files"')
289
+ } catch (error) {
290
+ stop(`alisx-check words: ${options.baseline} can't be read (${error.message}). Restore it from version control, or re-record it with --update and say why in the commit.`)
291
+ }
292
+ }
293
+ const read = new Set(files.map(key))
294
+ const unseen = Object.fromEntries(Object.entries(baseline?.files ?? {}).filter(([path]) => !read.has(path) && existsSync(join(root, path))))
295
+
296
+ if (options.update) {
297
+ const counts = Object.fromEntries(Object.entries({ ...unseen, ...now }).sort(([a], [b]) => a.localeCompare(b)))
298
+ writeFileSync(options.baseline, `${JSON.stringify({ version, files: counts }, null, 2)}\n`)
299
+ console.log(`alisx-check words: recorded ${total(counts)} retired names across ${Object.keys(counts).length} files in ${options.baseline}, against @alis-build/design-system@${version}.`)
300
+ return
301
+ }
302
+
303
+ const was = baseline?.files ?? {}
304
+ const worse = []
305
+ for (const [path, counts] of Object.entries(now))
306
+ for (const [word, count] of Object.entries(counts)) if (count > (was[path]?.[word] ?? 0)) worse.push({ path, word, from: was[path]?.[word] ?? 0, to: count })
307
+ let saved = 0
308
+ for (const [path, counts] of Object.entries(was)) if (!(path in unseen)) for (const [word, count] of Object.entries(counts)) saved += Math.max(0, count - (now[path]?.[word] ?? 0))
309
+
310
+ if (baseline && baseline.version !== version)
311
+ console.log(
312
+ `alisx-check words: the baseline was recorded against @alis-build/design-system@${baseline.version}; ${version} is installed, and words.json may differ. If a change below comes from words.json and not from your code, re-record with --update and say so in the commit.`,
313
+ )
314
+ if (saved) console.log(`alisx-check words: ${saved} fewer retired names than the baseline. Run with --update to lock that in.`)
315
+ if (!worse.length) {
316
+ console.log(`alisx-check words: ok. ${total(now) ? `${total(now)} known retired names, none new` : 'No retired names'}.`)
317
+ return
318
+ }
319
+
320
+ console.error(`\nalisx-check words: ${baseline ? 'more retired names than the baseline' : 'retired names'}.\n`)
321
+ for (const { path, word, from, to } of worse) {
322
+ const uses = found[path].filter((each) => each.word === word)
323
+ console.error(` ${path} "${word}" is now "${uses[0].name}" ${from} → ${to}`)
324
+ for (const use of uses.slice(0, 20)) console.error(` ${use.line} ${use.text.length > 120 ? `${use.text.slice(0, 117)}…` : use.text}`)
325
+ if (uses.length > 20) console.error(` … and ${uses.length - 20} more`)
326
+ }
327
+ console.error('\nThe names are in words.json in @alis-build/design-system; rules/words.md says how to use them. A use that\nmust stay is marked on its line, with the reason:\n\n <!-- alisx-words-ignore -- why it stays -->\n')
328
+ process.exit(1)
329
+ }
330
+
331
+ // The text in a source file a person may read, each piece with where it
332
+ // starts. In markup: text between tags, and the values of attributes that
333
+ // aren't code. In script: quoted text that holds a space or starts with a
334
+ // capital, so 'ideate-project' and ideas.length are left alone.
335
+ function readable(text, ext) {
336
+ const pieces = []
337
+ const human = (value) => /[A-Za-z]/.test(value) && (/\S\s+\S/.test(value) || /^\s*[A-Z][a-z]/.test(value))
338
+ // What a log or a console prints is read by nobody on screen.
339
+ const script = (code, offset) => quoted(unlogged(code), (start, value) => human(value) && pieces.push({ start: offset + start, value }))
340
+ if (!['.vue', '.svelte', '.html'].includes(ext)) {
341
+ script(text, 0)
342
+ return pieces
343
+ }
344
+
345
+ // Script blocks are script; style blocks and comments are nobody's text.
346
+ const blank = (match) => match.replace(/[^\n]/g, ' ')
347
+ let markup = text.replace(/<!--[\s\S]*?-->/g, blank).replace(/<style\b[\s\S]*?<\/style>/gi, blank)
348
+ markup = markup.replace(/(<script\b[^>]*>)([\s\S]*?)(<\/script>)/gi, (match, open, code, close, index) => {
349
+ script(code, index + open.length)
350
+ return blank(match)
351
+ })
352
+ // An expression in markup ({{ … }} or { … }) is script.
353
+ markup = markup.replace(/\{\{([\s\S]*?)\}\}|\{([^{}]*)\}/g, (match, mustache, single, index) => {
354
+ script(mustache ?? single, index + (mustache === undefined ? 1 : 2))
355
+ return blank(match)
356
+ })
357
+ // An attribute: code when bound (:x, @x, #x, v-x, on:x, bind:x), nobody's
358
+ // text when it names a class, a route or a key; otherwise it may be read.
359
+ const code = /^(?:[:@#]|v-|on:|bind:)/
360
+ const named = /^(?:class|style|id|name|ref|key|to|href|src|type|icon|prepend-icon|append-icon|variant|color|density|size|slot|role|lang|for|target|rel|value|data-[\w-]+)$/
361
+ markup = markup.replace(/(\s)([^\s=<>"'/]+)\s*=\s*("([^"]*)"|'([^']*)')/g, (match, space, attribute, quotedValue, double, single, index) => {
362
+ const value = double ?? single
363
+ const start = index + match.length - value.length - 1
364
+ if (code.test(attribute)) script(value, start)
365
+ else if (!named.test(attribute) && human(value)) pieces.push({ start, value })
366
+ return blank(match)
367
+ })
368
+ for (const match of markup.matchAll(/>([^<>]+)</g)) if (/[A-Za-z]/.test(match[1])) pieces.push({ start: match.index + 1, value: match[1] })
369
+ return pieces
370
+ }
371
+
372
+ // Code with each console.…(…) call blanked, keeping every offset.
373
+ function unlogged(code) {
374
+ let out = code
375
+ for (const match of code.matchAll(/\bconsole\.\w+\s*\(/g)) {
376
+ let depth = 1
377
+ let j = match.index + match[0].length
378
+ for (; j < code.length && depth; j++) depth += code[j] === '(' ? 1 : code[j] === ')' ? -1 : 0
379
+ out = out.slice(0, match.index) + out.slice(match.index, j).replace(/[^\n]/g, ' ') + out.slice(j)
380
+ }
381
+ return out
382
+ }
383
+
384
+ // Calls back with each quoted string in code, and its offset, skipping
385
+ // comments. A quote that doesn't close on its line is an apostrophe, not a
386
+ // string.
387
+ function quoted(code, each) {
388
+ for (let i = 0; i < code.length; i++) {
389
+ const c = code[i]
390
+ if (c === '/' && code[i + 1] === '/') {
391
+ const end = code.indexOf('\n', i)
392
+ if (end < 0) return
393
+ i = end
394
+ } else if (c === '/' && code[i + 1] === '*') {
395
+ const end = code.indexOf('*/', i + 2)
396
+ if (end < 0) return
397
+ i = end + 1
398
+ } else if (c === '"' || c === "'" || c === '`') {
399
+ // A template literal's ${…} parts are blanked, so "Go back to ${name}
400
+ // idea" still reads as one sentence.
401
+ let j = i + 1
402
+ let value = ''
403
+ let closed = false
404
+ while (j < code.length) {
405
+ if (code[j] === '\\') {
406
+ value += code.slice(j, j + 2)
407
+ j += 2
408
+ } else if (code[j] === c) {
409
+ closed = true
410
+ break
411
+ } else if (c !== '`' && code[j] === '\n') break
412
+ else if (c === '`' && code[j] === '$' && code[j + 1] === '{') {
413
+ const from = j
414
+ let depth = 1
415
+ for (j += 2; j < code.length && depth; j++) depth += code[j] === '{' ? 1 : code[j] === '}' ? -1 : 0
416
+ value += code.slice(from, j).replace(/[^\n]/g, ' ')
417
+ } else value += code[j++]
418
+ }
419
+ if (closed) {
420
+ each(i + 1, value)
421
+ i = j
422
+ }
423
+ }
424
+ }
425
+ }
426
+
228
427
  // A --declared file, as text. In JSON a stylesheet is a string with its line
229
428
  // breaks escaped, so its strings are read as they would arrive too.
230
429
  function readDeclared(file) {
@@ -9,9 +9,9 @@ One component whoever asks. **The band is the same** (its parts, its buttons, it
9
9
  - **Anything that blocks Alis on you**: run a command, deploy, delete, send to people, connect an account, pick between ways forward.
10
10
  - **A person's request that you can decide**: a new product, access to an organisation, an organisation set up for them.
11
11
  - **Something only your machine can produce, when a person asks for it**: an agent session, a diagnostics snapshot.
12
- - **Not an open question.** When any words will do ("What should Priya hear first?"), there is no ask: her head reads *Waiting for you* and the composer's placeholder reads *Answer Alis*.
12
+ - **Not an open question.** When any words will do ("What should Priya hear first?"), there is no ask: the turn's head reads *Waiting for you* and the composer's placeholder reads *Answer Alis*.
13
13
  - **Not for what you start yourself.** A confirmation of your own act is an [AppDialog](AppDialog.md) ([page.md](../rules/page.md) § Confirm).
14
- - **Never in the thread, never a dialog.** The thread holds her reasoning and anything you have to judge (the draft, the plan, the diff); the composer holds the decision, where your hands are. It can't scroll away, and there is one place to type.
14
+ - **Never in the thread, never a dialog.** The thread holds Alis's reasoning and anything you have to judge (the draft, the plan, the diff); the composer holds the decision, where your hands are. It can't scroll away, and there is one place to type.
15
15
 
16
16
  ## Anatomy
17
17
 
@@ -40,39 +40,39 @@ A band at the top of the composer's surface, above the editor, divided from it b
40
40
  | **Produce it** (a person asks you for something only your machine has) | Run what the body says; the ask closes when it arrives in the thread. Not now says no | none: the action copies the command, and copying commits nothing |
41
41
 
42
42
  - **Once by default.** The filled action allows this act once. The product may offer **one** wider scope as a text button, named exactly ("Allow git for this session"): never preselected, never on an ask that destroys or reaches people. What you've allowed is listed where the conversation's settings live, with a way to take it back.
43
- - **When Alis asks, something else is the editor**, never an extra option: its placeholder reads *Or tell Alis something else*. Whatever you send is your answer, in your own words, and closes her ask. When a person asks, what you send is a reply and the ask stays (§ Who asks). Nothing you've typed is ever overwritten. Typing `/` or `@` docks the suggestions between the ask and the editor ([AppMenu](AppMenu.md)).
43
+ - **When Alis asks, something else is the editor**, never an extra option: its placeholder reads *Or tell Alis something else*. Whatever you send is your answer, in your own words, and closes the ask. When a person asks, what you send is a reply and the ask stays (§ Who asks). Nothing you've typed is ever overwritten. Typing `/` or `@` docks the suggestions between the ask and the editor ([AppMenu](AppMenu.md)).
44
44
  - **The ask holds the one filled action.** While it's open the composer's button goes plain (`.app-composer__go--plain`); type, and Send fills while the ask's action steps down to outlined ([buttons.md](../rules/buttons.md)).
45
45
 
46
46
  ## Who asks
47
47
 
48
48
  | | Alis | A person |
49
49
  |---|---|---|
50
- | **Their turn** | Her reasoning and what you judge; her head reads *Waiting for you* | The request, with its state line ([AppTurn](AppTurn.md) § A request) |
50
+ | **Their turn** | Alis's reasoning and what you judge; the turn's head reads *Waiting for you* | The request, with its state line ([AppTurn](AppTurn.md) § A request) |
51
51
  | **Who sees the ask** | You | Everyone who can decide, never the requester. When the product can't tell, everyone but the requester, and a refusal is the band's line |
52
- | **When it arrives** | At the end of her turn; focus moves to the band | At any moment, so it docks **without moving focus** and is announced politely |
52
+ | **When it arrives** | At the end of Alis's turn; focus moves to the band | At any moment, so it docks **without moving focus** and is announced politely |
53
53
  | **The title** | The act: "Deploy v1.43.0 to staging?" | The person and the act: "Give Martha Mukama builder access to inovar?" |
54
54
  | **What you send** | Your answer; it closes the ask. Placeholder *Or tell Alis something else* | A reply; the ask stays. Placeholder *Reply to Martha* |
55
55
  | **Saying no** | Not now | Decline, with a reason they read. Not now when they ask you to produce something: no reason |
56
56
  | **It closes on** | Any answer | A decision, by anyone who can make it, or what you produced arriving |
57
57
  | **It lapses** | When the product gives it a time | Never, unless the product gives it a time |
58
58
  | **The outcome** | Your turn: a bubble, or a record line | Their request's state line, naming who decided. No record turn |
59
- | **Skip** | On a run of her questions | Never |
59
+ | **Skip** | On a run of Alis's questions | Never |
60
60
 
61
61
  - **Decline asks for a reason**, because the requester reads it. Decline opens a field in the band, "Reason for Martha", and the actions become Back (text) and Decline (filled: nothing is destroyed, so not `error`). Focus moves to the field; Back returns it to Decline. An empty reason is an error at the field, which takes focus ([page.md](../rules/page.md) § Forms).
62
62
  - **One value at most** when the decision needs one (the organisation id when you set one up): an [AppTextField](AppTextField.md) above the actions, filled with what they suggested.
63
63
  - **Produce it**: the body says how, with the command in mono, and the action copies it (text). When it arrives in the thread as an [AppAttachment](AppAttachment.md) the ask closes and their request reads "Shared by Martha". Not now closes it, and the request reads "Not shared by Martha".
64
64
  - **Someone else decides first**: the band shows it on its line for a moment ("Granted by Jan Krynauw"), then closes. A reason you had started moves into the editor, so nothing you typed is lost.
65
65
  - **A decision that fails** stays in the band: its line in `error` says what happened, and the actions stay.
66
- - **Several open asks share one band**, oldest first, paged "1 of 2". With Alis's ask and a person's open together, what you send answers only hers.
66
+ - **Several open asks share one band**, oldest first, paged "1 of 2". With Alis's ask and a person's open together, what you send answers only Alis's.
67
67
  - **A resolved conversation** keeps its open requests waiting; their ask docks again only if the conversation reopens.
68
68
  - **The requester** sees their own request on the right, with the same live state line. They can't withdraw it.
69
69
  - **Needs you** counts the open asks you can decide, Alis's and people's alike, and the row's second line is the ask's title (below). The requester's row adds nothing.
70
70
 
71
- ## While she waits, and after
71
+ ## While Alis waits, and after
72
72
 
73
- - **Her turn's head** reads *Waiting for you*, the mark still: she isn't working. An ask that expires says when: *Waiting for you · until 15:30*.
73
+ - **The turn's head** reads *Waiting for you*, the mark still: Alis isn't working. An ask that expires says when: *Waiting for you · until 15:30*.
74
74
  - **Your answer is your turn**, on the right ([AppTurn](AppTurn.md)): a choice reads as your bubble ("25, high confidence"); an approval is a record line in meta, "Allowed: Deploy v1.43.0 to staging" with `check`, or "Not now: …" with `block`; words you typed are your bubble, with no record.
75
- - **An ask that lapses** is recorded in her turn, in ink, with `schedule`: "No answer by 15:30, so Alis didn't delete them." Nothing failed, so nothing is red.
75
+ - **An ask that lapses** is recorded in the turn, in ink, with `schedule`: "No answer by 15:30, so Alis didn't delete them." Nothing failed, so nothing is red.
76
76
  - **Seen from elsewhere**, the conversation *Needs you*: a status `warning` chip "Needs you" on its row, its second line the ask's title word for word; a row in Home's Needs you, whose Answer opens the conversation with the ask on the composer (it never answers from the list); `.app-count` on the rail destination, counting asks ([AppListRow](AppListRow.md)); and "(1) " before the tab's title.
77
77
 
78
78
  ## Markup
@@ -11,7 +11,7 @@ A file, recording or queued message waiting in the composer's tray, and the same
11
11
  - **States**: ready (type · size on the meta line); uploading (a 2px `primary` bar along the bottom edge); failed ("Didn't upload" in `error`, with retry); not accepted ("Can't be read here" in `error`, no retry, and the composer's line lists what works).
12
12
  - **A thing** opens what it names: the whole tile is the link, with no button in it. Its glyph names the kind, in ink, always a Material Symbol (a capability mark names a tool, not an object): `videocam` a meeting, `edit_note` its notes, `record_voice_over` an interview, `monitor_heart` diagnostics, `extension` a skill, `assignment` an issue, `terminal` an agent session. Its name is the label; the meta line is where it lives and its state: "Google Meet · recording", "Linear · BUI-29", "Diagnostics · 2 min ago". A provider's logo never replaces the glyph.
13
13
  - **Inside the product it opens in place; outside, in a new tab, and says so**: a 16px `open_in_new` at the tile's end (`.app-attachment__external`), and "opens in a new tab" in its accessible name.
14
- - **A file Alis made** stands in her reply where she put it, 320 wide (the full column on a phone), and opens [AppFilePane](AppFilePane.md) beside the conversation: the whole tile is a `<button>` with `aria-expanded`, nothing inside it, and no Download (that's in the pane). The label is her description of the file, or else its name; the meta line its kind and size ("HTML page · 6 KB"). Glyphs: `web` an HTML page, `article` Markdown, `code` code, `text_snippet` plain text, `shapes` an SVG; a PDF, a CSV and anything else as above. An image she made shows itself, as any image does, and opens in the pane. No thumbnail of a page: it would mean running the page in every tile.
14
+ - **A file Alis made** stands in the reply where Alis put it, 320 wide (the full column on a phone), and opens [AppFilePane](AppFilePane.md) beside the conversation: the whole tile is a `<button>` with `aria-expanded`, nothing inside it, and no Download (that's in the pane). The label is Alis's description of the file, or else its name; the meta line its kind and size ("HTML page · 6 KB"). Glyphs: `web` an HTML page, `article` Markdown, `code` code, `text_snippet` plain text, `shapes` an SVG; a PDF, a CSV and anything else as above. An image Alis made shows itself, as any image does, and opens in the pane. No thumbnail of a page: it would mean running the page in every tile.
15
15
  - **Open** (`is-selected`): its file is in the pane. `secondary-container`, the label at 700, the glyph filled, `aria-expanded="true"` on every tile for that file. Pressing it again closes the pane.
16
16
  - **Can't be shown** (an archive, a spreadsheet, a binary): a link that downloads, with a 16px `download` at its end (`.app-attachment__external`) and "downloads" in its accessible name.
17
17
  - **Gone** (`is-gone`, deleted since): a `div`, not pressable and with no state layer; the meta line says "Deleted", in ink, and the glyph sits on an outline. Not red: nothing failed.
@@ -57,7 +57,7 @@ A file, recording or queued message waiting in the composer's tray, and the same
57
57
  </a>
58
58
  <!-- Inside the product: no target, no open_in_new -->
59
59
 
60
- <!-- A file Alis made, in her prose; is-selected while it is open in the pane -->
60
+ <!-- A file Alis made, in Alis's prose; is-selected while it is open in the pane -->
61
61
  <button type="button" class="app-attachment app-state" aria-expanded="false" aria-controls="file-pane">
62
62
  <span class="app-attachment__glyph"><span class="app-icon" aria-hidden="true">web</span></span>
63
63
  <span class="app-attachment__text"><span class="text-label">Pricing page</span><span class="text-meta">HTML page · 6 KB</span></span>
@@ -40,7 +40,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
40
40
  | In a call | `call_end` "End voice" | the row is the call bar | Live, for anything you'd rather type |
41
41
  | In a call, with text | `arrow_upward` "Send" | `call_end` "End voice" | Live |
42
42
  | Alis or a person is waiting on an [AppAsk](AppAsk.md) | As empty, but plain (`.app-composer__go--plain`): the ask holds the filled action | none | Placeholder *Or tell Alis something else*, or *Reply to Martha* when a person asks |
43
- | Waiting on Alis's ask, with text | `arrow_upward` "Send", filled; the ask's action steps down to outlined | none | Live: what you send is your answer, and closes her ask |
43
+ | Waiting on Alis's ask, with text | `arrow_upward` "Send", filled; the ask's action steps down to outlined | none | Live: what you send is your answer, and closes the ask |
44
44
  | Waiting on a person's ask, with text | `arrow_upward` "Send", filled; the ask's action steps down to outlined | none | Live: what you send is a reply; the ask stays |
45
45
  | Locked | none | none | Dimmed; the line says why |
46
46
 
@@ -50,7 +50,7 @@ Where you write to Alis, an agent or a person. One floating surface with three b
50
50
 
51
51
  - **Two mic modes; a composer has one**, chosen by the product. **Dictate**: words land in the editor as you speak, the ones still settling in `on-surface-variant`; ✓ ends it and leaves the text to edit, never sends. **Record a voice note**: the editor hides; Send sends the note, with its transcript, as the message.
52
52
  - **The recording bar** replaces the row: `delete` "Discard recording", the red dot pulsing beside **Recording** (a live microphone's privacy signal, [colour.md](../rules/colour.md) § The two reds), the level in `ai-you`, the time (`m:ss`, tabular), the finish button. The finish button stays cyan: it commits an outcome (keep the text, send the note), and the bar already shows the capture ([buttons.md](../rules/buttons.md) § Colour).
53
- - **Live** is a state of the composer, and not a recording: the status word and the mute toggle say the microphone is open, so no red dot. The row becomes `add`, mute (`mic` / `mic_off`, a toggle), the status word, `open_in_full` "Focus view", and End. The voice light (`.app-composer__light`) sits behind: cool while you speak, Alis's brand red, as a tint, while she does ([colour.md](../rules/colour.md) § The AI identity). Status words, with no dot (the light says whose turn it is, and a red dot in the composer means only *Recording*): Connecting, Listening, Thinking, Speaking, Muted. Focus view opens the call in an [AppVoiceView](AppVoiceView.md).
53
+ - **Live** is a state of the composer, and not a recording: the status word and the mute toggle say the microphone is open, so no red dot. The row becomes `add`, mute (`mic` / `mic_off`, a toggle), the status word, `open_in_full` "Focus view", and End. The voice light (`.app-composer__light`) sits behind: cool while you speak, Alis's brand red, as a tint, while Alis does ([colour.md](../rules/colour.md) § The AI identity). Status words, with no dot (the light says whose turn it is, and a red dot in the composer means only *Recording*): Connecting, Listening, Thinking, Speaking, Muted. Focus view opens the call in an [AppVoiceView](AppVoiceView.md).
54
54
  - **Too short**: "Too short. Hold for a second or two, or type instead." on the line, once; nothing is staged. **Mic blocked**: the mic (or the waveform) shows `mic_off`; pressing it explains on the line how to allow it. Typing still works.
55
55
 
56
56
  ## Markup
@@ -8,8 +8,8 @@ See [page.md](../rules/page.md) § A file beside the conversation.
8
8
 
9
9
  - **It is the shell's detail pane, made wide** ([AppShell](AppShell.md)): `app-shell--file` on the shell, the pane in `.app-shell__detail` with `data-detail-pane`. It has a URL, back closes it, Esc closes it, and the shortcut sheet covers it as it covers any detail pane.
10
10
  - **From 1200px wide (`breakpoint-expanded`, where Material 3's large window starts) it sits beside the conversation**, which takes two parts to its three: at 1440 that is a 707px file, the width of a page of prose. **There it is a card**: the file is an object Alis made, not the second half of the page, so it is an instrument, `surface` with its `outline-variant` edge, `radius-lg`, **no shadow** (nothing at rest lifts, and a shadow barely shows in dark). It is inset `space-8` at the top and `space-12` at the right and foot; the gap to the chat is the conversation's own padding. The bar sits inside with its hairline under it, and the body scrolls inside, clipped to the radius. Expanded, the same card fills the content area, `space-12` all round. Below 1200 the conversation would wrap every few words, so the file takes the content's place and closing it brings the conversation back. The edge doesn't drag.
11
- - **Opened from a tile** ([AppAttachment](AppAttachment.md)) where Alis put the file in her reply. **It opens by itself only live**: when the turn that made it ends, you are on the conversation, no other detail pane is open and the window is 1200 or wider. Never when a conversation is reopened, never on a phone, and never where it would cover her reply.
12
- - **Never the word "artifact"**: the pane is named by the file, its description or else its file name.
11
+ - **Opened from a tile** ([AppAttachment](AppAttachment.md)) where Alis put the file in the reply. **It opens by itself only live**: when the turn that made it ends, you are on the conversation, no other detail pane is open and the window is 1200 or wider. Never when a conversation is reopened, never on a phone, and never where it would cover the reply.
12
+ - **Named by the file**: its description, or else its file name; never by its kind ("File", "Artifact").
13
13
  - **No versions.** The file is overwritten in place, so every tile for it opens what is there now, and the meta line says *Latest*.
14
14
 
15
15
  | Part | What it holds |
@@ -31,7 +31,7 @@ A list of acts or places that opens from a control or from what you type, and cl
31
31
 
32
32
  - **Add** (`add`, an action menu opening upward from the button) lists what you can bring in first (Upload files, Record screen, a connected source), then a divider and **Commands**, each with its /name as the hint and no second line. Pointer users find the commands; the hint teaches `/`.
33
33
  - **`/`** opens only at the very start of a message, so "and/or" and a path never trigger it. It lists only the commands, label and second line and /name, filtered on both as you type. **A command leads the message**; choosing another replaces it.
34
- - **`@`** opens at the start or after a space. **People first**, then the things the product offers in this conversation: files, ideas, skills, agents, each group under its heading. A person has their small [AppAvatar](AppAvatar.md); a thing has its icon. In a group thread a mention notifies the person; in a one-to-one with Alis it points her at them.
34
+ - **`@`** opens at the start or after a space. **People first**, then the things the product offers in this conversation: files, projects, skills, agents, each group under its heading. A person has their small [AppAvatar](AppAvatar.md); a thing has its icon. In a group thread a mention notifies the person; in a one-to-one with Alis it points Alis at them.
35
35
  - **While it's open**: the first match is active. Up and Down move, Enter or Tab chooses, Escape closes and keeps what you typed. **Enter never sends while a suggestion menu is open** ([AppComposer](AppComposer.md)).
36
36
  - **Searching** past 300 ms is one line with the loader: *Searching*. **Nothing found** is one line that echoes what you typed (*No commands match "/pricing"*, *No one or nothing called "thandi"*); a space or Escape then closes the band and your text stays text.
37
37
  - **With an ask open**, the band sits between the ask and the editor, closest to the caret; the ask stays where it is.
@@ -10,6 +10,7 @@ See [page.md](../rules/page.md) § A form in steps for when a form takes steps a
10
10
  - **It is the progress bar cut into steps:** a 4px `radius-pill` segment per step on the `surface-container-highest` track, filled `on-surface` for a step done or current. Never `primary`: nothing on it is the action ([selection.md](../rules/selection.md) § A step).
11
11
  - **The current step's name is 600** and carries `aria-current="step"`. A done step's name is `on-surface`; a next one's is `on-surface-variant`.
12
12
  - **A done step is a button back to it**, with `app-state`. A later step is not: the flow's Continue checks the step before it moves on. Editing something that already exists, every step has been reached, so every step is a button.
13
+ - **No step is a button while a save runs, or once going back can't undo what a step made** (an instance created before its configuration): those steps stay done, as `<span>`s.
13
14
  - **A step that no longer holds** (an edit elsewhere broke it, or the server refused it) is `is-invalid`: its segment and name in `error`, the `error` glyph before the name.
14
15
  - **It leads the flow's surface**: the top of the instrument card on a page, under the title in a dialog. Never a panel of its own, and never "Step 1 of 2" written beside it.
15
16
  - **Narrower than 480** (its own width, so a narrow dialog counts too) the names leave and one caption under the bars names the current step and counts ("Contact", "2 of 3"). The names stay for assistive technology.
@@ -68,7 +69,7 @@ See [page.md](../rules/page.md) § A form in steps for when a form takes steps a
68
69
 
69
70
  - **Move the states** as the person moves: `is-done` on every step behind them, `is-current` and `aria-current="step"` on theirs, nothing on the rest. Swap a step's `<span>` for a `<button>` once it is done.
70
71
  - **Continue checks the step**: on a failure it stays, turns each field `error` with its supporting line, and moves focus to the first; it is never disabled ([page.md](../rules/page.md) § Forms).
71
- - **Keep the step in the URL** (`?step=review`): each step pushes a history entry, so the browser's back steps back and a refresh stays.
72
+ - **Keep the step in the URL** (`?step=review`): each step pushes a history entry, so the browser's back steps back and a refresh stays. A dialog with no URL of its own keeps the step in the dialog; closing it discards the step.
72
73
  - **Update the caption** with the current step's name and count; it is `aria-hidden`, because the list already says it.
73
74
 
74
75
  ## Classes
@@ -6,21 +6,21 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
6
6
 
7
7
  - **Every conversation**: Ideate, an interview, an agent session, a specialist thread, a support ticket. The same turns wherever [AppComposer](AppComposer.md) is.
8
8
  - **Not a record you read.** Questions and their answers laid out as a document (an interview's answers in a synthesis) are an `AppTranscript` inside an [AppLattice](AppLattice.md).
9
- - **Alis's prose is body** through `.prose`, never mono, never in a box: her replies are documents, with tables, code and cards that a bubble would squeeze and nest. Mono is for what a machine returned verbatim ([type.md](../rules/type.md)).
9
+ - **Alis's prose is body** through `.prose`, never mono, never in a box: the replies are documents, with tables, code and cards that a bubble would squeeze and nest. Mono is for what a machine returned verbatim ([type.md](../rules/type.md)).
10
10
 
11
11
  ## Who is speaking
12
12
 
13
13
  | Turn | How it reads | Class |
14
14
  |---|---|---|
15
15
  | **You** | A bubble on the right: `surface-container-low`, `radius-lg` (16, the tiles' corner), at most 80% of the measure (85% on a phone). Your words as written, line breaks kept (markdown: below); a mention or a command stays the token it was in the composer, and opens what it names ([AppMenu](AppMenu.md)). No avatar, no name | `.app-turn--you` |
16
- | **Alis** | Prose at the full measure, on the ground. Her latest turn opens with the mark ([colour.md](../rules/colour.md) § `signal`) | `.app-turn--alis` |
16
+ | **Alis** | Prose at the full measure, on the ground. The latest turn opens with the mark ([colour.md](../rules/colour.md) § `signal`) | `.app-turn--alis` |
17
17
  | **Anyone else** | A bubble on the left, same fill and corner, under a who-line | `.app-turn--them` |
18
18
 
19
19
  - **Markdown in a bubble.** With Alis, your words stay as written and markdown isn't rendered. In a conversation with people, where messages also arrive from the CLI and from agents, every bubble renders its markdown: `.prose` on the bubble keeps body type, and headings step down to body size at 600, so lists, code and links read and nothing outgrows the bubble.
20
- - **The who-line** appears only when someone besides you and Alis is in the thread, and opens each run of turns by anyone but you: a 24px avatar (a photo, else initials: [AppAvatar](AppAvatar.md)), the name in label, then role and time in meta. **Alis's avatar is the mark**, so in a group thread it marks each of her runs. Two bubbles in one run sit 8 apart under one who-line.
21
- - **The mark is where Alis is now.** In a one-to-one it stands only at the top of her latest turn, 20px, in the turn's head: animated while she thinks, still once she writes, and it moves on to her next turn. Earlier turns carry none: a column of red marks stops meaning *Alis is on it*. In a group thread the who-line carries it instead.
20
+ - **The who-line** appears only when someone besides you and Alis is in the thread, and opens each run of turns by anyone but you: a 24px avatar (a photo, else initials: [AppAvatar](AppAvatar.md)), the name in label, then role and time in meta. **Alis's avatar is the mark**, so in a group thread it marks each of Alis's runs. Two bubbles in one run sit 8 apart under one who-line.
21
+ - **The mark is where Alis is now.** In a one-to-one it stands only at the top of the latest turn, 20px, in the turn's head: animated while Alis thinks, still once the words start, and it moves on to the next turn. Earlier turns carry none: a column of red marks stops meaning *Alis is on it*. In a group thread the who-line carries it instead.
22
22
 
23
- ## Her work
23
+ ## Alis's work
24
24
 
25
25
  **One thing moves at a time.**
26
26
 
@@ -28,16 +28,16 @@ One turn in a conversation, in an `.app-thread`. **You write in a bubble; Alis w
28
28
  |---|---|---|---|
29
29
  | **Thinking** | The mark, animated ([AppLoader](AppLoader.md) on a line), and the status: the current step in supporting type, written by the product ("Reading 14 interview transcripts"; never "Thinking…" when it can say what) | none | none |
30
30
  | **Writing** | The mark, still, and the steps folded into one quiet disclosure: "Worked for 42s · 6 steps" | Prose streams in behind the caret (`signal`) | none |
31
- | **At rest** | The mark, still, and the disclosure | Her reply | The actions |
31
+ | **At rest** | The mark, still, and the disclosure | The reply | The actions |
32
32
  | **No steps** | The mark alone | | |
33
- | **Waiting for you** | The mark, still, and *Waiting for you* in supporting (*· until 15:30* when the ask expires) | Her reply: what she needs, and anything you have to judge | none until you've answered |
33
+ | **Waiting for you** | The mark, still, and *Waiting for you* in supporting (*· until 15:30* when the ask expires) | The reply: what Alis needs, and anything you have to judge | none until you've answered |
34
34
 
35
35
  - **Opened, the steps** are meta lines with a 16px glyph on a hairline rail. What a machine returned verbatim (a query's rows, a command's output) is mono at 12/16 on `surface-container-low`, three lines at most. The product decides whether a turn has steps.
36
36
  - An earlier turn's head is its disclosure only.
37
37
 
38
38
  ## Actions
39
39
 
40
- - **Under Alis's turn**, plain 32px icon buttons in this order: copy, Try again, then thumbs up and down if the product collects feedback. **Always shown on her latest turn**; on hover or focus for earlier ones, in the gap below the turn so nothing moves. A thumb you've given fills, in ink; one at a time.
40
+ - **Under Alis's turn**, plain 32px icon buttons in this order: copy, Try again, then thumbs up and down if the product collects feedback. **Always shown on the latest turn**; on hover or focus for earlier ones, in the gap below the turn so nothing moves. A thumb you've given fills, in ink; one at a time.
41
41
  - **Beside your bubble**, on hover or focus: copy, and edit on your latest turn only (the text goes back into the composer and resends).
42
42
  - **On a phone** there is no hover: a long press on a turn opens the same actions as an [AppMenu](AppMenu.md).
43
43
  - **A person's turn has no actions.**
@@ -61,7 +61,7 @@ When people talk to each other in a thread (a support conversation, a group thre
61
61
  | **Typing** | One meta line at the end of the thread, where their turn will appear (`.app-thread__typing`): "Jan is typing", "Jan and Newton are typing". No avatar and no who-line, so it never doubles a run's |
62
62
  | **Here** | "Here now" in meta after the name, only where the conversation lists its people (its header, its participants). Never on a turn's who-line, where it goes stale. No dot: presence isn't the state of the work |
63
63
 
64
- Alis is never typing or seen: her phases already say what she is doing.
64
+ Alis is never typing or seen: the phases already say what Alis is doing.
65
65
 
66
66
  **One live region speaks for the thread** (`.app-thread__status`, `role="status"`, visually hidden, always present): it announces typing once when it starts, and each change to a request's state. The visible lines are not live regions: inserted and removed, they're announced unreliably.
67
67
 
@@ -81,21 +81,21 @@ Alis is never typing or seen: her phases already say what she is doing.
81
81
 
82
82
  This line is the request's state in the thread. **On a list row** the same state is a chip ([chips-alerts.md](../rules/chips-alerts.md) § States of a thing): waiting is a label with `schedule`, under way `info`, done `success`, declined a label with `cancel`, failed `error`.
83
83
 
84
- ## When she asks
84
+ ## When Alis asks
85
85
 
86
86
  The decision docks on the composer ([AppAsk](AppAsk.md)); the answer is your turn:
87
87
 
88
88
  - **A choice** reads as your bubble, in the option's words. **Words you typed instead** are your bubble.
89
89
  - **An approval** is a record line in meta, right-aligned (`.app-turn__record`): `check` "Allowed: Deploy v1.43.0 to staging", or `block` "Not now: Deploy v1.43.0 to staging".
90
- - **An ask that lapses** is a line in her turn, in ink, with `schedule`: "No answer by 15:30, so Alis didn't delete them."
90
+ - **An ask that lapses** is a line in the turn, in ink, with `schedule`: "No answer by 15:30, so Alis didn't delete them."
91
91
 
92
92
  ## When it goes wrong
93
93
 
94
94
  One line in meta where it happened (`.app-turn__line`, as the composer's):
95
95
 
96
96
  - **Didn't send**: under your bubble, in `error`, with Try again. The bubble stays.
97
- - **Her reply failed**: what she wrote stays; then, in `error`, "Alis couldn't finish this reply." with Try again. No foot; the mark stays at the top, as it's still her turn.
98
- - **You stopped her**: what she wrote stays; then "Stopped", in `on-surface-variant`, and the foot. Stopping is your choice, so it is never red.
97
+ - **The reply failed**: what Alis wrote stays; then, in `error`, "Alis couldn't finish this reply." with Try again. No foot; the mark stays at the top, as it's still Alis's turn.
98
+ - **You stopped Alis**: what Alis wrote stays; then "Stopped", in `on-surface-variant`, and the foot. Stopping is your choice, so it is never red.
99
99
 
100
100
  ## Markup
101
101
 
@@ -118,7 +118,7 @@ One line in meta where it happened (`.app-turn__line`, as the composer's):
118
118
  </div>
119
119
  </div>
120
120
 
121
- <!-- Alis, her latest turn at rest -->
121
+ <!-- Alis, the latest turn at rest -->
122
122
  <div class="app-turn app-turn--alis is-latest">
123
123
  <div class="app-turn__head">
124
124
  <span class="app-turn__mark"><svg viewBox="0 0 30 50" width="12" height="20" aria-hidden="true" style="fill:var(--signal);display:block"><!-- the eleven circles of AlisMark --></svg></span>
@@ -130,7 +130,7 @@ One line in meta where it happened (`.app-turn__line`, as the composer's):
130
130
  <pre class="app-turn__output">account seats renewed_at
131
131
  Northwind 120 —</pre></li>
132
132
  </ol>
133
- <div class="prose"><!-- her reply --></div>
133
+ <div class="prose"><!-- the reply --></div>
134
134
  <div class="app-turn__foot">
135
135
  <button type="button" class="app-icon-btn app-state" aria-label="Copy" title="Copy"><span class="app-icon" aria-hidden="true">content_copy</span></button>
136
136
  <button type="button" class="app-icon-btn app-state" aria-label="Try again" title="Try again"><span class="app-icon" aria-hidden="true">refresh</span></button>
@@ -155,7 +155,7 @@ Northwind 120 —</pre></li>
155
155
  <div class="app-turn__who"><span class="app-turn__avatar" aria-hidden="true">TM</span><span class="text-label">Thandi Mokoena</span><span class="text-meta">Build specialist · 09:20</span></div>
156
156
  <div class="app-turn__row"><div class="app-turn__bubble">I've got it. I'll split the index into its own step.</div></div>
157
157
  </div>
158
- <!-- Alis's who-line: the mark is her avatar -->
158
+ <!-- Alis's who-line: the mark is the avatar -->
159
159
  <div class="app-turn__who"><span class="app-turn__avatar app-turn__avatar--alis" aria-hidden="true"><svg …></svg></span><span class="text-label">Alis</span><span class="text-meta">09:44</span></div>
160
160
 
161
161
  <!-- A voice note -->
@@ -197,8 +197,8 @@ Northwind 120 —</pre></li>
197
197
 
198
198
  ## Behaviour you must supply
199
199
 
200
- - **`is-latest`** on Alis's newest turn only; move it, and the mark, when she starts the next one.
201
- - **The phases**: add `app-loader app-loader--line` to the mark and show the status while she thinks; when the first words arrive, drop them, hide the status and show the disclosure with its time and step count; append the caret after the last word while she writes and remove it when she's done, then show the foot. Under `prefers-reduced-motion` the loader and caret hold still (the CSS does it).
200
+ - **`is-latest`** on Alis's newest turn only; move it, and the mark, when Alis starts the next one.
201
+ - **The phases**: add `app-loader app-loader--line` to the mark and show the status while Alis thinks; when the first words arrive, drop them, hide the status and show the disclosure with its time and step count; append the caret after the last word while Alis writes and remove it when the reply is done, then show the foot. Under `prefers-reduced-motion` the loader and caret hold still (the CSS does it).
202
202
  - **The disclosure**: toggle `aria-expanded` and the steps' `hidden`.
203
203
  - **Your bubble**: put the text straight into the element with no whitespace around it; line breaks are kept.
204
204
  - **A voice note**: drive `is-played` on the bars as it plays, swap `play_arrow` and `pause` (and the label); Show all toggles `is-open` and reads Show less.
@@ -209,4 +209,4 @@ Northwind 120 —</pre></li>
209
209
 
210
210
  ## Classes
211
211
 
212
- `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__about`, `.app-turn__who`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on her reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while she thinks.
212
+ `.app-thread`, `.app-thread__event`, `.app-thread__typing`, `.app-thread__status`; `.app-turn`, `.app-turn--you`, `.app-turn--alis`, `.app-turn--them`, `.is-latest`; `.app-turn__about`, `.app-turn__who`, `.app-turn__avatar`, `.app-turn__avatar--alis`; `.app-turn__head`, `.app-turn__mark`, `.app-turn__status`, `.app-turn__worked`, `.app-turn__steps`, `.app-turn__step`, `.app-turn__output`, `.app-turn__caret`; `.app-turn__row`, `.app-turn__bubble`, `.app-turn__bubble--voice`, `.app-turn__tools`, `.app-turn__files`, `.app-turn__image`; `.app-turn__foot`; `.app-turn__line`, `.is-error`, `.app-turn__line-action`; `.app-turn__record`; `.app-turn__request`; `.app-voice-note`, `.is-open`, `.app-voice-note__player`, `.app-voice-note__wave`, `.is-played`, `.app-voice-note__time`, `.app-voice-note__transcript`, `.app-voice-note__more`; with `.prose` on the reply, `.app-icon-btn` and `.app-state` on the buttons, and `.app-loader.app-loader--line` on the mark while Alis thinks.
@@ -7,7 +7,7 @@ A live call given room: the content area on a desktop (the focus view), the whol
7
7
  - **Desktop**: a call starts in [AppComposer](AppComposer.md); its `open_in_full` "Focus view" opens this view in the content area, and the navigation stays. A product may open a call here by default when talking is the whole job (an interview participant on a laptop).
8
8
  - **Phone**: the call is full-screen. The chevron folds it back into the composer, and the call carries on.
9
9
  - **Top**: back (`close_fullscreen` "Back to the conversation" on a desktop, `keyboard_arrow_down` "Fold into the composer" on a phone), the conversation's name in label type, captions (`closed_caption`, a toggle).
10
- - **Body**: the orb (the voice light, large: cool while you speak, Alis's brand red as a tint while she does), the status word in section-title (Connecting, Listening, Thinking, Speaking, Muted), and the caption: the last three lines said, settled words in `on-surface`, the rest in `on-surface-variant`.
10
+ - **Body**: the orb (the voice light, large: cool while you speak, Alis's brand red as a tint while Alis does), the status word in section-title (Connecting, Listening, Thinking, Speaking, Muted), and the caption: the last three lines said, settled words in `on-surface`, the rest in `on-surface-variant`.
11
11
  - **Controls**: mute and Type instead as 56px round buttons, and End as the filled button, 56 high. End is cyan, never red.
12
12
  - On the ground (`background`), no card, no shadow.
13
13
 
@@ -39,7 +39,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
39
39
  | AppComposer | Where you write to Alis, an agent or a person; voice and live calls | [AppComposer.md](AppComposer.md) |
40
40
  | AppAttachment | A file, a thing shared into the conversation, or a queued message, in the composer's tray and in the sent message | [AppAttachment.md](AppAttachment.md) |
41
41
  | AppVoiceView | A live call given the content area, or the screen on a phone | [AppVoiceView.md](AppVoiceView.md) |
42
- | AppTurn | A turn in a conversation: your bubble, Alis's prose, anyone else under a who-line; her work, actions, voice notes; people's states and requests | [AppTurn.md](AppTurn.md) |
42
+ | AppTurn | A turn in a conversation: your bubble, Alis's prose, anyone else under a who-line; Alis's work, actions, voice notes; people's states and requests | [AppTurn.md](AppTurn.md) |
43
43
  | AppAsk | When Alis or a person needs a decision from you: an approval, a choice, a connection, docked on the composer | [AppAsk.md](AppAsk.md) |
44
44
  | AppMenu | Acts or places that open from a control (floating) or from `/` and `@` (docked on the composer), and the token you chose | [AppMenu.md](AppMenu.md) |
45
45
  | AppSelectTile | A card chosen among others | [AppSelectTile.md](AppSelectTile.md) |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alis-build/design-system",
3
- "version": "0.23.0",
4
- "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
3
+ "version": "0.24.0",
4
+ "description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
5
5
  "keywords": ["alisx", "design-system", "design-tokens", "css"],
6
6
  "homepage": "https://alisx.com",
7
7
  "license": "Apache-2.0",
@@ -17,6 +17,7 @@
17
17
  "./tokens.json": "./tokens.json",
18
18
  "./themes.json": "./themes.json",
19
19
  "./marks.json": "./marks.json",
20
+ "./words.json": "./words.json",
20
21
  "./classes.json": "./classes.json",
21
22
  "./stylelint": "./stylelint.mjs",
22
23
  "./rules/*": "./rules/*",
@@ -31,6 +32,7 @@
31
32
  "tokens.json",
32
33
  "themes.json",
33
34
  "marks.json",
35
+ "words.json",
34
36
  "classes.json",
35
37
  "stylelint.mjs",
36
38
  "check.mjs",
package/rules/README.md CHANGED
@@ -26,6 +26,7 @@ Read only what the job needs.
26
26
  | [loading.md](loading.md) | Skeleton, loader, progress |
27
27
  | [errors.md](errors.md) | What shows when something fails, can't load, isn't allowed or isn't there |
28
28
  | [page.md](page.md) | Page anatomy, forms, empty states |
29
+ | [words.md](words.md) | One name per thing (`words.json`), who speaks, labels, the verbs for getting rid of something |
29
30
  | [icons.md](icons.md) | Material Symbols and the capability marks |
30
31
  | [shortcuts.md](shortcuts.md) | How a key is written, where it shows, the sheet, the keys that mean the same everywhere |
31
32
  | [styling.md](styling.md) | What your own CSS may set |
package/rules/buttons.md CHANGED
@@ -139,7 +139,7 @@ singular, in sentence case.
139
139
 
140
140
  ```
141
141
  Did this thing exist before the action?
142
- ├─ No, it is made here → New New project · New interview · New output
142
+ ├─ No, it is made here → New New project · New interview · New artifact
143
143
  └─ Yes, it joins this place → Add Add member · Add seat · Add contribution
144
144
  ```
145
145
 
package/rules/colour.md CHANGED
@@ -124,7 +124,7 @@ The AI gradients and the voice light are drawings with their own `ai-*` tokens,
124
124
  do, and spends a data colour on decoration.
125
125
 
126
126
  - **The voice light** is cool while the person speaks (`ai-you` mixed into
127
- `ai-you-container`) and Alis's brand red while she speaks (`ai-alis`, which is
127
+ `ai-you-container`) and Alis's brand red while Alis speaks (`ai-alis`, which is
128
128
  `signal`, mixed into the pale `ai-alis-container`). It says whose turn it is, so
129
129
  the two stay a cool and a warm. This is the one place `signal` lights a shape,
130
130
  and **only ever as a tint**: a solid red light reads as an alarm, not as Alis. It sits behind the composer in a call and is the voice view's orb
@@ -16,6 +16,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
16
16
  - **Navigation inside a project.** Open objects can sit in the navigation pane as secondary rows under a heading ([AppShell](../components/AppShell.md)), and an object's own views are route tabs in its title bar. A project's own destinations beside the app's have no pattern yet.
17
17
  - **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
18
18
  - **Withdrawing a request, and approval chains.** A person can't withdraw a request they made, and a request that needs several approvers in turn has no pattern ([AppAsk](../components/AppAsk.md) § Who asks). An approval chain would be its own component: its parts and interaction differ.
19
+ - **Build's and Admin's words.** `words.json` names what Alis Ideate and every product share; Build's own things (an environment, a workstation, a build partner) are not in it yet. Name them as the screen already does, and add the entry with the first change ([words.md](words.md)).
19
20
  - **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
20
21
  - **Each product's destinations** (the rows under its heading in the rail) are product content, not part of this system. Use the capability marks for the tools they name.
21
22
 
package/rules/page.md CHANGED
@@ -96,9 +96,9 @@ becomes back (`arrow_back`) and the phone's back gesture closes it
96
96
  never edit it there. From 1200 the conversation takes two parts and the file three,
97
97
  the file as a card with an edge; narrower, it takes the conversation's place,
98
98
  flat, until it closes. It opens by
99
- itself only live, only where it fits beside her reply, never on a phone. While it is
99
+ itself only live, only where it fits beside the reply, never on a phone. While it is
100
100
  open the composer's context chip carries it, and your bubble's about line names it.
101
- The tile in her reply opens it; a file a browser can't show keeps its download tile.
101
+ The tile in the reply opens it; a file a browser can't show keeps its download tile.
102
102
  The pane is named by the file, never "artifact", and has no versions: it says
103
103
  *Latest*.
104
104
 
@@ -258,8 +258,11 @@ Should this form take steps?
258
258
  title asks the question ("Publish this interview?"), it lists what was chosen,
259
259
  and its button names the outcome. No dialog after it.
260
260
  - **A result is not a step.** When the flow ends, show the thing it made.
261
- - **The step is in the URL** (`?step=review`), so a refresh keeps it and the
262
- browser's back steps back.
261
+ - **On a page the step is in the URL** (`?step=review`), so a refresh keeps it
262
+ and the browser's back steps back. A dialog with no URL of its own keeps the
263
+ step in the dialog, and closing it discards the step.
264
+ - **A step that made something going back can't undo** stops being a way back,
265
+ and so does every step while a save runs.
263
266
 
264
267
  ### Which control
265
268
 
@@ -40,7 +40,7 @@ AppShell
40
40
  | Prose you read, a document | `AppLattice`s at the prose measure, `.prose` inside; a quote is a `blockquote` with a `cite` |
41
41
  | Questions and answers | `AppTranscript` |
42
42
  | Writing to Alis, an agent or a person | `AppComposer`, one per conversation; files in its tray as `AppAttachment`s; a call given room is `AppVoiceView` |
43
- | The conversation above it | `AppTurn`s in an `.app-thread`: you in a bubble, Alis as prose, the mark at the top of her latest turn |
43
+ | The conversation above it | `AppTurn`s in an `.app-thread`: you in a bubble, Alis as prose, the mark at the top of Alis's latest turn |
44
44
  | More actions behind `more_vert`, the composer's Add, `/` commands and `@` mentions | `AppMenu`: floating for actions, a band on the composer for suggestions; what you choose is an `.app-token` |
45
45
  | Alis or a person needs an answer, an approval or a connection | `AppAsk`, docked on the composer of whoever decides; the conversation's row shows a `warning` "Needs you" chip and the rail an `.app-count` |
46
46
  | Content Alis wrote | a label `AppChip icon="auto_awesome"` "AI-generated", once, at its top |
@@ -128,7 +128,7 @@ AppShell detail={…}
128
128
 
129
129
  ## 7. Copy
130
130
 
131
- Sentence case, British spelling, plain and calm, no dashes, no emoji. Buttons are a verb then the object: **New project**, **Add member**. A filled button names its outcome: "Send the invites", not "Continue". An empty state's headline says why you would act, never the screen's name. An error says what to do next, in a sentence with a full stop. Times are relative and short: "Just now", "5 min ago", "3h ago", "Yesterday", then a date ("3 Oct", three-letter months, with the year only when it isn't this one). A key is an `AppKeys` cap written for the platform (⌘ K on a Mac, Ctrl K elsewhere), never "Ctrl+K" or "Press Enter to send" in text.
131
+ Every thing is named as `words.json` names it, and Alis is always "Alis" ([words.md](words.md)). Sentence case, British spelling, plain and calm, no dashes, no emoji. Buttons are a verb then the object: **New project**, **Add member**. A filled button names its outcome: "Send the invites", not "Continue". An empty state's headline says why you would act, never the screen's name. An error says what to do next, in a sentence with a full stop. Times are relative and short: "Just now", "5 min ago", "3h ago", "Yesterday", then a date ("3 Oct", three-letter months, with the year only when it isn't this one). A key is an `AppKeys` cap written for the platform (⌘ K on a Mac, Ctrl K elsewhere), never "Ctrl+K" or "Press Enter to send" in text.
132
132
 
133
133
  ## 8. Before you hand it back
134
134
 
package/rules/register.md CHANGED
@@ -20,6 +20,8 @@ Material Design 3 is the substrate, and the brand is pulled through it. **Where
20
20
  there is no strong contradiction, M3 wins.** Product roles are named as M3 names
21
21
  them, so they map onto any M3 implementation.
22
22
 
23
+ What a screen calls things, and who speaks on it, is [words.md](words.md).
24
+
23
25
  ## The boundary
24
26
 
25
27
  The brand wins on **face, surface, shadow, mark and voice**.
package/rules/words.md ADDED
@@ -0,0 +1,100 @@
1
+ # Words
2
+
3
+ ## The one rule
4
+
5
+ **One thing, one name, on every surface**: the screen, its tooltips and empty
6
+ states, an email, what Alis says, the CLI. The names are in `words.json` in this
7
+ package, each with what it means and what it replaces. This file says how to
8
+ use them.
9
+
10
+ ## Who speaks
11
+
12
+ | Who | How |
13
+ | --- | --- |
14
+ | **The product** | To "you". Never "I" or "we" ([errors.md](errors.md) § The words) |
15
+ | **Alis** | Named every time: "Alis is reading it", never she, her or it. Never "the agent", "the assistant" or "the AI". In its own replies Alis writes "I" |
16
+ | **A product** | Its full name ([README.md](README.md) § Names). "Ideate" alone is its heading in the navigation, never the one doing something: Alis reads a contribution, Ideate doesn't |
17
+
18
+ ## Labels name, lines explain
19
+
20
+ A screen's name, a navigation row, a tab, a column, a chip and a button hold
21
+ the name from `words.json`, or a verb and the name: "New artifact", "Add
22
+ contribution", "Share". A friendlier sentence may sit under it, never in its
23
+ place.
24
+
25
+ | Not | But |
26
+ | --- | --- |
27
+ | "Nurture" | the verb for what it does |
28
+ | "Responses & insights" over a summary | **Summary** |
29
+ | "Access and ownership" | **Sharing** |
30
+
31
+ **An empty state's headline is the one sentence**: it says why you would act
32
+ ([AppEmptyState](../components/AppEmptyState.md)), in plain words that name the
33
+ thing or who uses it. Never a slogan.
34
+
35
+ | Not | But |
36
+ | --- | --- |
37
+ | "Start with what you already know" | "Alis works from what you add here" |
38
+ | "Hear from the people closest to the problem" | "Interview the people who know this best" |
39
+
40
+ - **No marketing words as labels**: a label says what the thing is or does,
41
+ not how it should feel.
42
+ - **Sentence case**; a name in `words.json` keeps its capitals ("Synthesis",
43
+ "Out of date"). No exclamation marks.
44
+
45
+ ## Name it as they know it
46
+
47
+ Never the code word. A project is not an idea, an artifact is not a spec or an
48
+ output, a chat is not a thread, and Sharing is not permissions. `words.json`
49
+ gives the code word beside the name where they differ, so you can tell which
50
+ you are holding.
51
+
52
+ ## The verbs
53
+
54
+ New, Add and Upload are in [buttons.md](buttons.md) § Naming the action. The
55
+ rest:
56
+
57
+ ```
58
+ What happens to it?
59
+ ├─ It stops existing, and nobody can bring it
60
+ │ back from the product → Delete
61
+ ├─ It leaves this place and still exists → Remove
62
+ │ (a person from Sharing, a project from a
63
+ │ collection, a file from a message)
64
+ └─ It is put away where they can find it and
65
+ bring it back → Archive
66
+ ```
67
+
68
+ Say what really happens: an action that archives where nobody can find the
69
+ archive is Delete. Confirming it follows [page.md](page.md) § Forms.
70
+
71
+ ## A new thing
72
+
73
+ **It gets its entry in `words.json` before its first screen**: the name, one
74
+ line on what it means, and what it replaces. Two things never share a name,
75
+ and one thing never has two. A thing the file doesn't name yet is a gap: name
76
+ it in the person's words and say so when you hand the work back
77
+ ([known-gaps.md](known-gaps.md)).
78
+
79
+ ## The check
80
+
81
+ `alisx-check words <path…>` reads `words.json` and fails on a `retired` name
82
+ in text a person reads: text between tags, and quoted text that holds a space
83
+ or starts with a capital. With `--baseline` it is a ratchet, as
84
+ `alisx-check styles` is: a file fails only when it gains a retired name, so a
85
+ backlog doesn't block new work. A use that must stay (a person's own quoted
86
+ words, a proper noun) is marked on its line or the line above, with the reason:
87
+
88
+ ```
89
+ <!-- alisx-words-ignore -- the customer's own name for the report -->
90
+ ```
91
+
92
+ `avoid` names are replaced too, but are too common as words, or mean something
93
+ else in another product, to check: review them by eye.
94
+
95
+ ## Before you hand it back
96
+
97
+ 1. Is every label a name from `words.json`, or a verb and the name?
98
+ 2. Does any screen say "I" or "we", or call Alis she, her, it or the agent?
99
+ 3. Is there a word on screen only an engineer would use?
100
+ 4. Does `alisx-check words` pass?
package/words.json ADDED
@@ -0,0 +1,221 @@
1
+ {
2
+ "about": "One name per thing, on every surface: the screen, its tooltips and empty states, an email, what Alis says, the CLI. rules/words.md says how to use these. `retired` is what a name replaces, and alisx-check words fails on it in text a person reads; `avoid` is replaced too, but is too common a word to check.",
3
+ "terms": [
4
+ {
5
+ "name": "Alis",
6
+ "product": "all",
7
+ "means": "The AI that works with you. Named every time, never by a pronoun: not she, her or it. In its own replies Alis writes \"I\"; a screen never does.",
8
+ "retired": ["Ideate agent", "regular assistant", "AI assistant"],
9
+ "avoid": ["the agent (in Build it is the coding agent, by that name)", "the assistant", "the AI"]
10
+ },
11
+ {
12
+ "name": "Alis Ideate",
13
+ "product": "all",
14
+ "means": "The product. \"Ideate\" alone is its heading in the navigation, never the one doing something: Alis reads a contribution, Ideate doesn't.",
15
+ "retired": [],
16
+ "avoid": ["Ideate (as the one doing something)"]
17
+ },
18
+ {
19
+ "name": "account",
20
+ "plural": "accounts",
21
+ "product": "all",
22
+ "means": "The organisation you work in: its projects, members and credits. You switch accounts from the account menu.",
23
+ "retired": [],
24
+ "avoid": ["workspace", "tenant", "org"],
25
+ "code": "accounts/*"
26
+ },
27
+ {
28
+ "name": "Profile",
29
+ "product": "all",
30
+ "means": "You: your name, your email, your settings.",
31
+ "retired": [],
32
+ "avoid": ["Account settings (for your own settings)"]
33
+ },
34
+ {
35
+ "name": "member",
36
+ "plural": "members",
37
+ "product": "all",
38
+ "means": "A person in an account.",
39
+ "retired": [],
40
+ "avoid": ["user", "seat holder"]
41
+ },
42
+ {
43
+ "name": "Sharing",
44
+ "product": "all",
45
+ "means": "Who can open a thing, and what they can do with it. The page and the dialog are Sharing; the action that opens them is Share. The roles are Owner, Editor and Viewer.",
46
+ "retired": ["Access and ownership", "Add owners"],
47
+ "avoid": ["permissions", "IAM"]
48
+ },
49
+ {
50
+ "name": "credits",
51
+ "product": "all",
52
+ "means": "What actions use. Usage, in the account menu, shows how many are left.",
53
+ "retired": [],
54
+ "avoid": []
55
+ },
56
+ {
57
+ "name": "chat",
58
+ "plural": "chats",
59
+ "product": "all",
60
+ "means": "A conversation with Alis. \"Chats\" in the navigation, \"New chat\" to start one.",
61
+ "retired": ["agent chat", "agent chats"],
62
+ "avoid": ["thread", "session"],
63
+ "code": "threads/*"
64
+ },
65
+ {
66
+ "name": "conversation",
67
+ "plural": "conversations",
68
+ "product": "all",
69
+ "means": "A conversation between people, as in Support.",
70
+ "retired": [],
71
+ "avoid": []
72
+ },
73
+ {
74
+ "name": "file",
75
+ "plural": "files",
76
+ "product": "all",
77
+ "means": "Something Alis made, or you attached, in a chat. It opens beside the conversation, named by itself.",
78
+ "retired": [],
79
+ "avoid": []
80
+ },
81
+ {
82
+ "name": "project",
83
+ "plural": "projects",
84
+ "product": "ideate",
85
+ "means": "Where one piece of work lives: its goal, its context, its synthesis and the artifacts made from them.",
86
+ "retired": ["idea", "ideas"],
87
+ "avoid": [],
88
+ "code": "ideas/*"
89
+ },
90
+ {
91
+ "name": "collection",
92
+ "plural": "collections",
93
+ "product": "ideate",
94
+ "means": "A group of projects.",
95
+ "retired": [],
96
+ "avoid": [],
97
+ "code": "collections/*"
98
+ },
99
+ {
100
+ "name": "goal",
101
+ "product": "ideate",
102
+ "means": "What a project is for. Alis drafts it; you check it.",
103
+ "retired": ["project intent"],
104
+ "avoid": ["intent", "brief (for the goal)"],
105
+ "code": "intent"
106
+ },
107
+ {
108
+ "name": "Context",
109
+ "product": "ideate",
110
+ "means": "Everything put into a project: its contributions, interviews and internet research. The heading over them in the navigation.",
111
+ "retired": [],
112
+ "avoid": ["inputs (as the heading)"]
113
+ },
114
+ {
115
+ "name": "contribution",
116
+ "plural": "contributions",
117
+ "product": "ideate",
118
+ "means": "Something a person adds to a project: a note, a file, a voice note, a recording.",
119
+ "retired": ["seed file", "seed files"],
120
+ "avoid": ["stream", "source (as its name)"],
121
+ "code": "ideas/*/streams/*"
122
+ },
123
+ {
124
+ "name": "interview",
125
+ "plural": "interviews",
126
+ "product": "ideate",
127
+ "means": "Alis talks with people one at a time and keeps their answers.",
128
+ "retired": ["stakeholder input", "contribution session"],
129
+ "avoid": ["discovery"],
130
+ "code": "interviews/*"
131
+ },
132
+ {
133
+ "name": "participant",
134
+ "plural": "participants",
135
+ "product": "ideate",
136
+ "means": "A person taking part in an interview. On the participant's own screens, \"you\".",
137
+ "retired": ["interviewee", "invitee", "respondent"],
138
+ "avoid": []
139
+ },
140
+ {
141
+ "name": "introduction",
142
+ "product": "ideate",
143
+ "means": "What participants read before an interview starts.",
144
+ "retired": ["participant brief"],
145
+ "avoid": ["brief"],
146
+ "code": "brief"
147
+ },
148
+ {
149
+ "name": "round",
150
+ "plural": "rounds",
151
+ "product": "ideate",
152
+ "means": "Asking the same people, or new ones, more in an interview: \"Add a follow-up round\".",
153
+ "retired": [],
154
+ "avoid": ["phase"],
155
+ "code": "phase"
156
+ },
157
+ {
158
+ "name": "answers",
159
+ "product": "ideate",
160
+ "means": "What one participant said. The word-for-word record is the transcript.",
161
+ "retired": [],
162
+ "avoid": ["responses"]
163
+ },
164
+ {
165
+ "name": "summary",
166
+ "product": "ideate",
167
+ "means": "What Alis drew from all of an interview's answers.",
168
+ "retired": ["Responses & insights", "Responses and insights"],
169
+ "avoid": ["responses (for the summary)", "insights"]
170
+ },
171
+ {
172
+ "name": "internet research",
173
+ "product": "ideate",
174
+ "means": "Alis searches the web on a plan you check, and writes a report.",
175
+ "retired": ["research task", "research tasks", "web search"],
176
+ "avoid": [],
177
+ "code": "researches/*"
178
+ },
179
+ {
180
+ "name": "part",
181
+ "plural": "parts",
182
+ "product": "ideate",
183
+ "means": "One piece of internet research, searched on its own: \"Add a part\", \"Another part is ready to read\".",
184
+ "retired": [],
185
+ "avoid": ["phase", "round", "run"],
186
+ "code": "runs/*"
187
+ },
188
+ {
189
+ "name": "Synthesis",
190
+ "product": "ideate",
191
+ "means": "What Alis drew from everything in a project's context.",
192
+ "retired": [],
193
+ "avoid": ["Overview"]
194
+ },
195
+ {
196
+ "name": "artifact",
197
+ "plural": "artifacts",
198
+ "product": "ideate",
199
+ "means": "What Alis makes from a project: a project brief, a product requirements document, a stakeholder map. The page is Artifacts; the action is New artifact. Each type has one name, written in full, with its abbreviation after it where the reader's world uses one: \"Product requirements document (PRD)\".",
200
+ "retired": ["output artifact", "output artifacts", "New output", "Idea brief"],
201
+ "avoid": ["output", "outputs", "spec", "specs", "deliverable", "draft (as its name)"],
202
+ "code": "specs/*"
203
+ },
204
+ {
205
+ "name": "Out of date",
206
+ "product": "ideate",
207
+ "means": "A synthesis or an artifact that context has arrived since. Said in words, with what changed (\"3 new contributions since this was written\"), and Update beside it.",
208
+ "retired": [],
209
+ "avoid": ["Stale (Build may still say a cache is stale)"]
210
+ }
211
+ ],
212
+ "verbs": [
213
+ { "name": "New", "means": "It is made here (buttons.md § Naming the action)." },
214
+ { "name": "Add", "means": "It already exists, and joins this place (buttons.md § Naming the action)." },
215
+ { "name": "Upload", "means": "Files from your device (buttons.md § Naming the action)." },
216
+ { "name": "Delete", "means": "It stops existing for everyone, and nobody can bring it back from the product." },
217
+ { "name": "Remove", "means": "It leaves this place and still exists: a person from Sharing, a project from a collection, a file from a message." },
218
+ { "name": "Archive", "means": "Only where there is a place to find archived things and bring them back. Otherwise it is Delete." },
219
+ { "name": "Share", "means": "Opens Sharing." }
220
+ ]
221
+ }