operbe 1.0.0-rc.2 → 1.0.0-rc.3

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 (84) hide show
  1. package/README.md +26 -22
  2. package/conformance/describe/edge/body.json +1 -1
  3. package/conformance/describe/edge/digest +1 -1
  4. package/conformance/describe/edge/project/operbe.md +1 -1
  5. package/conformance/describe/example/body.json +1 -1
  6. package/conformance/describe/example/digest +1 -1
  7. package/conformance/describe/example/project/behaviors/B-0001.md +13 -9
  8. package/conformance/describe/example/project/behaviors/B-0002.md +1 -1
  9. package/conformance/describe/example/project/behaviors/B-0003.md +2 -2
  10. package/conformance/describe/example/project/behaviors/B-0004.md +2 -2
  11. package/conformance/describe/example/project/behaviors/B-0005.md +2 -2
  12. package/conformance/describe/example/project/behaviors/coverage/mcp.md +9 -0
  13. package/conformance/describe/example/project/operbe.md +9 -5
  14. package/conformance/diff/core/a/behaviors/B-0002.md +1 -1
  15. package/conformance/diff/core/a/behaviors/B-0003.md +1 -1
  16. package/conformance/diff/core/a/operbe.md +5 -5
  17. package/conformance/diff/core/b/behaviors/B-0002.md +1 -1
  18. package/conformance/diff/core/b/behaviors/B-0003.md +1 -1
  19. package/conformance/diff/core/b/operbe.md +5 -5
  20. package/conformance/diff/core/changes.json +45 -17
  21. package/conformance/diff/declared/a/operbe.md +1 -1
  22. package/conformance/diff/declared/b/operbe.md +1 -1
  23. package/conformance/diff/reworded/a/behaviors/B-0002.md +1 -1
  24. package/conformance/diff/reworded/a/behaviors/B-0003.md +1 -1
  25. package/conformance/diff/reworded/a/operbe.md +5 -5
  26. package/conformance/diff/reworded/b/behaviors/B-0002.md +1 -1
  27. package/conformance/diff/reworded/b/behaviors/B-0003.md +1 -1
  28. package/conformance/diff/reworded/b/operbe.md +5 -5
  29. package/dist/check.d.ts +1 -1
  30. package/dist/check.js +124 -67
  31. package/dist/cli.js +19 -15
  32. package/dist/describe.js +23 -20
  33. package/dist/diff.js +35 -24
  34. package/dist/indexes.js +20 -12
  35. package/dist/read.d.ts +8 -6
  36. package/dist/read.js +39 -15
  37. package/dist/reconcile.d.ts +2 -2
  38. package/dist/reconcile.js +12 -13
  39. package/dist/version.d.ts +1 -1
  40. package/dist/version.js +1 -1
  41. package/package.json +3 -3
  42. package/schema/description.schema.json +26 -9
  43. package/skills/operbe/SKILL.md +42 -16
  44. package/skills/operbe/example/behaviors/B-0001.md +13 -9
  45. package/skills/operbe/example/behaviors/B-0002.md +1 -1
  46. package/skills/operbe/example/behaviors/B-0003.md +2 -2
  47. package/skills/operbe/example/behaviors/B-0004.md +2 -2
  48. package/skills/operbe/example/behaviors/B-0005.md +2 -2
  49. package/skills/operbe/example/behaviors/coverage/mcp.md +9 -0
  50. package/skills/operbe/example/operbe.md +9 -5
  51. package/skills/operbe/references/actions.md +226 -0
  52. package/skills/operbe/references/adopting.md +6 -6
  53. package/skills/operbe/references/behaviors.md +75 -59
  54. package/skills/operbe/references/formats.md +69 -51
  55. package/skills/operbe/references/operations.md +13 -14
  56. package/skills/operbe/references/tandem.md +31 -30
  57. package/skills/operbe/templates/{client-action.md → action.md} +3 -3
  58. package/skills/operbe/templates/behavior.md +1 -1
  59. package/skills/operbe/templates/coverage.md +1 -1
  60. package/skills/operbe/templates/operbe.md +1 -1
  61. package/skills/operbe/references/client-actions.md +0 -211
  62. /package/conformance/describe/example/project/{client-actions → actions}/archive-conversation.md +0 -0
  63. /package/conformance/describe/example/project/{client-actions → actions}/show-conversations.md +0 -0
  64. /package/conformance/describe/example/project/{client-actions → actions}/start-retitle.md +0 -0
  65. /package/conformance/describe/example/project/{client-actions → actions}/unarchive-conversation.md +0 -0
  66. /package/conformance/diff/core/a/{client-actions → actions}/archive-conversation.md +0 -0
  67. /package/conformance/diff/core/a/{client-actions → actions}/show-conversations.md +0 -0
  68. /package/conformance/diff/core/a/{client-actions → actions}/start-retitle.md +0 -0
  69. /package/conformance/diff/core/a/{client-actions → actions}/unarchive-conversation.md +0 -0
  70. /package/conformance/diff/core/b/{client-actions → actions}/archive-conversation.md +0 -0
  71. /package/conformance/diff/core/b/{client-actions → actions}/show-conversations.md +0 -0
  72. /package/conformance/diff/core/b/{client-actions → actions}/unarchive-conversation.md +0 -0
  73. /package/conformance/diff/reworded/a/{client-actions → actions}/archive-conversation.md +0 -0
  74. /package/conformance/diff/reworded/a/{client-actions → actions}/show-conversations.md +0 -0
  75. /package/conformance/diff/reworded/a/{client-actions → actions}/start-retitle.md +0 -0
  76. /package/conformance/diff/reworded/a/{client-actions → actions}/unarchive-conversation.md +0 -0
  77. /package/conformance/diff/reworded/b/{client-actions → actions}/archive-conversation.md +0 -0
  78. /package/conformance/diff/reworded/b/{client-actions → actions}/show-conversations.md +0 -0
  79. /package/conformance/diff/reworded/b/{client-actions → actions}/start-retitle.md +0 -0
  80. /package/conformance/diff/reworded/b/{client-actions → actions}/unarchive-conversation.md +0 -0
  81. /package/skills/operbe/example/{client-actions → actions}/archive-conversation.md +0 -0
  82. /package/skills/operbe/example/{client-actions → actions}/show-conversations.md +0 -0
  83. /package/skills/operbe/example/{client-actions → actions}/start-retitle.md +0 -0
  84. /package/skills/operbe/example/{client-actions → actions}/unarchive-conversation.md +0 -0
package/README.md CHANGED
@@ -6,32 +6,36 @@ Version 1.0.0-rc.2. Everything in it is experimental until it has been proven on
6
6
 
7
7
  ## What it is
8
8
 
9
- operbe has every project keep two lists, in the same shape, and offers a third.
9
+ operbe has every project keep three lists, for the front ends it names. A **front end** is anything that acts for a person: a native app, the web app, a command line a person types into, an assistant working over MCP, an API's Actions.
10
10
 
11
- - **Operations** are everything that passes through the server membrane. There is one set, defined once and used by every front end. Operations are code.
12
- - **Behaviors** are everything the designer wants to hold true in the user interface. They are documentation that every UI is built from and checked against.
13
- - **Client actions** (optional) are everything a UI can be asked to do on its own screen: by a command palette, a shortcut, or an assistant working the app for a person. They are code in the UI. Each is classed show, prepare or do, and each names the behavior it carries out.
11
+ - **Operations** are everything that passes through the server membrane. There is one set, defined once. Operations are code at the server.
12
+ - **Behaviors** are everything the designer wants to hold true on the front ends. They are the parity contract: every front end, however it is built, is built from them and checked against them. Behaviors are documentation.
13
+ - **Actions** (optional as a list) are what a front end does for a person: show a list, archive a conversation, send a reply. Each is classed show, prepare or do. They are code in the front end, and the only way it reaches the server.
14
+
15
+ There are two relationships, and they don't form a line: **behaviors describe front ends** (their actions and their screens), and **actions call operations**.
14
16
 
15
17
  ```
16
- people agents scripts
17
- │ │ │
18
- ┌──┴───┐ ┌────┴─────┐ ┌─────┴──────┐
19
- │ UI │ │ MCP, API │ │ command │ front ends
20
- └──┬───┘ └────┬─────┘ │ line │
21
- │ ▲ │ └─────┬──────┘
22
- │ └ built from │ │
23
- │ the BEHAVIOR │ │
24
- │ LIST │ │
25
- ════╪═════════════════╪══════════════════╪═════════ the membrane
26
- └────────── the OPERATION LIST ──────┘
27
- │
28
- the server
18
+ people agents outside builders
19
+ │ │ │
20
+ ┌──┴────────┐ ┌─────┴──────┐ │
21
+ │ apps, web,│ │ MCP, an │ │
22
+ │ command │ │ API's │ front ends │
23
+ │ line │ │ Actions │ ◀── described by │
24
+ └──┬────────┘ └─────┬──────┘ the BEHAVIOR │
25
+ │ actions │ actions LIST │ an API's Operations
26
+ │ call │ call │
27
+ ════╪══════════════════╪══════════════════════════╪════ the membrane
28
+ └────────────── the OPERATION LIST ───────────┘
29
+ │
30
+ the server
29
31
  ```
30
32
 
33
+ An API or an MCP server offers two sets under the same names as the records: **Actions** ("Use Actions to act for a person"), which make it a front end, and **Operations** ("Use Operations to build your own front end"), granular, each still checking who may call it. An MCP server offers Actions by default.
34
+
31
35
  ## The one rule
32
36
 
33
37
  1. Nothing crosses the membrane except an operation.
34
- 2. Nothing the designer cares about in a UI is off the behavior list.
38
+ 2. Nothing the designer cares about on a front end is off the behavior list.
35
39
 
36
40
  The rest of operbe follows from those two halves.
37
41
 
@@ -43,7 +47,7 @@ It is not a spec either. A project's two lists are its specs, and operbe is how
43
47
 
44
48
  It is not a design system. It doesn't say what a designer should decide, only how a decision is written down and checked.
45
49
 
46
- And it generates nothing. No UI is produced from the behavior list, and nothing reads that list at runtime. Client actions are the exception. They are the UI's own code, and their records say what that code is agreed to do.
50
+ And it generates nothing. No front end is produced from the behavior list, and nothing reads that list at runtime. Actions are code in each front end, and their records say what that code is agreed to do.
47
51
 
48
52
  ## When to use it
49
53
 
@@ -79,9 +83,9 @@ npx operbe new behavior "Pin a conversation" <your project>
79
83
  | Part | What it covers | File |
80
84
  |---|---|---|
81
85
  | Operations | What an operation is, how big, what it declares | `skills/operbe/references/operations.md` |
82
- | Behaviors | What a behavior is, how it's written, coverage | `skills/operbe/references/behaviors.md` |
83
- | Client actions | What a UI can be asked to do, the three classes, reaching a screen from outside | `skills/operbe/references/client-actions.md` |
84
- | In tandem | How the two lists are worked out together, with an example | `skills/operbe/references/tandem.md` |
86
+ | Behaviors | What a behavior is, writing for every front end, coverage | `skills/operbe/references/behaviors.md` |
87
+ | Actions | What a front end does for a person, the three classes, the two sets an API or MCP server offers | `skills/operbe/references/actions.md` |
88
+ | In tandem | How the lists are worked out together, with an example | `skills/operbe/references/tandem.md` |
85
89
  | Formats | The exact form of each file | `skills/operbe/references/formats.md` |
86
90
  | Adopting | Starting a project, or bringing operbe into one | `skills/operbe/references/adopting.md` |
87
91
  | The command | check, index, new, describe, diff, reconcile, schema | `npx operbe` (`src/`) |
@@ -1 +1 @@
1
- {"architectures":{"acme":{"diff-rules":[{"change":"changed","field":"acme.door.gate","level":"warning"},{"change":"removed","field":"acme.route","level":"breaking"}],"fields":[{"field":"acme.door.gate","on":"operation","required":"no","values":["a","b","c"]},{"field":"acme.route","on":"operation","required":{"is":["change","signal"],"when":"class"}}]}},"behaviors":{"B-7":{"applies-to":"all","form":"two","name":"Notes","operations":["send-note","read-note"],"sections":[{"text":"S.","title":"Statement"},{"text":"- a","title":"Examples"},{"text":"- form 1","title":"Changes"}],"status":"rough"}},"coverage":{"web":{"B-7":{"form":1,"note":"slow","value":"limited"}}},"operations":{"read-note":{"class":"query","effect":"reads","sections":[]},"send-note":{"class":"change","effect":"changes","ext":{"acme":{"door.gate":["a","b"],"route":"send-note"}},"many-at-once":"none","needs":"may write","risk":"destroys","safe-to-repeat":"no","sections":[{"text":"Send {note}.","title":"Sentence"},{"text":"Always.","title":"Holds only if"}],"taken-back-by":"nothing"}},"profile":{"architectures":["acme"],"operbe":"1","sections":[{"text":"- Café, 日本: Unicode stays as written.","title":"Decisions"},{"text":"- one","title":"Known deviations"}],"uis":["web"]}}
1
+ {"architectures":{"acme":{"diff-rules":[{"change":"changed","field":"acme.door.gate","level":"warning"},{"change":"removed","field":"acme.route","level":"breaking"}],"fields":[{"field":"acme.door.gate","on":"operation","required":"no","values":["a","b","c"]},{"field":"acme.route","on":"operation","required":{"is":["change","signal"],"when":"class"}}]}},"behaviors":{"B-7":{"applies-to":"all","form":"two","name":"Notes","operations":["send-note","read-note"],"sections":[{"text":"S.","title":"Statement"},{"text":"- a","title":"Examples"},{"text":"- form 1","title":"Changes"}],"status":"rough"}},"coverage":{"web":{"B-7":{"form":1,"note":"slow","value":"limited"}}},"operations":{"read-note":{"class":"query","effect":"reads","sections":[]},"send-note":{"class":"change","effect":"changes","ext":{"acme":{"door.gate":["a","b"],"route":"send-note"}},"many-at-once":"none","needs":"may write","risk":"destroys","safe-to-repeat":"no","sections":[{"text":"Send {note}.","title":"Sentence"},{"text":"Always.","title":"Holds only if"}],"taken-back-by":"nothing"}},"profile":{"architectures":["acme"],"front-ends":["web"],"operbe":"1","sections":[{"text":"- Café, 日本: Unicode stays as written.","title":"Decisions"},{"text":"- one","title":"Known deviations"}]}}
@@ -1 +1 @@
1
- sha256:2e4aeaf3a43af9f1a544f64ae776cc3c8729f1237e408392e46bb159b205205c
1
+ sha256:cc431f41f0091a6664bfc2df445b1455722ddae812e7483f0ed55845f215bdca
@@ -2,7 +2,7 @@
2
2
  operbe: 1 # the version
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- uis: [web]
5
+ front-ends: [web]
6
6
  architectures: [acme]
7
7
  ---
8
8
 
@@ -1 +1 @@
1
- {"architectures":{},"behaviors":{"B-0001":{"applies-to":"all","form":1,"name":"Archive a conversation","operations":["archive-conversation","unarchive-conversation","list-conversations"],"sections":[{"text":"A person can put a conversation out of the way without deleting it. It leaves the active list at once, and for a few seconds the product offers Undo.","title":"Statement"},{"text":"1. The person chooses to archive a conversation.\n2. The product removes it from the active list and says it was archived.\n3. The product offers Undo for at least five seconds.","title":"Flow"},{"text":"The person may change the conversation.","title":"Appears when"},{"text":"The conversation is not already archived. Otherwise it is shown but can't be used, with \"Already archived.\"","title":"Usable when"},{"text":"Returns the conversation to the active list, where it was.","title":"Undo"},{"text":"- **Usual.** Given an active conversation I may change, when I archive it, then it leaves the active list, appears in the archive, and Undo is offered.\n- **Not allowed.** Given a conversation I may only read, then archiving isn't offered at all.\n- **Wrong moment.** Given an archived conversation, then archiving is shown but can't be used, with \"Already archived.\"\n- **Offline.** Given I have no connection, when I archive it, then it leaves the active list and is marked as waiting; when I'm back it completes.\n- **Refused.** Given the server refuses, then the conversation returns to the active list and I'm told why.","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"firm"},"B-0002":{"applies-to":["phone"],"client-actions":"none","form":1,"name":"Swipe to archive","operations":["archive-conversation"],"sections":[{"text":"In any list of conversations, swiping a row fully to the left archives that conversation, exactly as Archive a conversation (B-0001) does. A partial swipe reveals an Archive button and does nothing more.","title":"Statement"},{"text":"- **Full swipe.** When I swipe a row all the way left and let go, the conversation is archived and Undo is offered.\n- **Partial swipe.** When I swipe a row part of the way, an Archive button shows on the right; letting go leaves the row open with the button.\n- **Not allowed.** On a conversation I may only read, the row doesn't swipe.","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"firm"},"B-0003":{"applies-to":"all","client-actions":"none","form":1,"name":"Archived looks dimmed","operations":[],"sections":[{"text":"Wherever an archived conversation is shown (the archive, search results, a link from elsewhere), its row is dimmed and carries the word \"Archived\".","title":"Statement"},{"text":"- **Search.** When a search finds an archived conversation, its row is dimmed and says \"Archived\".","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"rough"},"B-0004":{"applies-to":"all","form":1,"name":"Rename a conversation","operations":["set-conversation-title"],"sections":[{"text":"Tapping a conversation's title opens it for editing in place. It may open already holding a suggested title. Saving changes the title for everyone who has the conversation; cancelling leaves it as it was.","title":"Statement"},{"text":"- **Usual.** When I change \"Trip\" to \"Trip to Leeds\" and save, the list shows the new title.","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"rough"},"B-0005":{"applies-to":"all","form":1,"name":"The two lists","operations":["list-conversations"],"sections":[{"text":"Conversations are shown in two lists, active and archived, and a person can go from either to the other in one step. Each says which list it is.","title":"Statement"},{"text":"- **Usual.** When I choose the archive, the list shows archived conversations and is headed \"Archive\".","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"rough"}},"client-actions":{"archive-conversation":{"applies-to":"all","available-when":"the conversation is not already archived and I may change it","behaviors":["B-0001"],"class":"do","form":1,"operations":["archive-conversation"],"sections":[{"text":"Archive {conversation}.","title":"Sentence"},{"text":"- conversation: a conversation, by its id. Needed.","title":"Inputs"},{"text":"- done: the conversation has left the active list, and Undo is offered.\n- started: offline; it is marked as waiting and completes when the connection returns.\n- refused: says why, and nothing changed. If the server refuses after the list has changed, the conversation returns to it.","title":"Result"}],"status":"firm"},"show-conversations":{"applies-to":"all","available-when":"always","behaviors":["B-0005"],"class":"show","form":1,"operations":["list-conversations"],"sections":[{"text":"Show {which} conversations.","title":"Sentence"},{"text":"- which: one of active or archived. Needed.","title":"Inputs"},{"text":"- done: the screen is that list. Hands back each conversation shown: its id, its title, and whether it is archived.\n- refused: says why (for example, offline with nothing kept).","title":"Result"}],"status":"firm"},"start-retitle":{"applies-to":["phone"],"available-when":"I may change the conversation","behaviors":["B-0004"],"class":"prepare","form":1,"operations":[],"sections":[{"text":"Open the title of {conversation} for editing, filled with {text}.","title":"Sentence"},{"text":"- conversation: a conversation, by its id. Needed.\n- text: the title to suggest. If left out, the field holds the present title.","title":"Inputs"},{"text":"- done: the title field is open with the text in it. The person saves or cancels; which they did is reported afterwards.\n- refused: says why.","title":"Result"}],"status":"firm"},"unarchive-conversation":{"applies-to":"all","available-when":"the conversation is archived and I may change it","behaviors":["B-0001"],"class":"do","form":1,"operations":["unarchive-conversation"],"sections":[{"text":"Return {conversation} to the active list.","title":"Sentence"},{"text":"- conversation: a conversation, by its id. Needed.","title":"Inputs"},{"text":"- done: the conversation is back in the active list, where it was.\n- refused: says why, and nothing changed.","title":"Result"}],"status":"firm"}},"coverage":{"desktop":{"B-0001":{"form":1,"note":"Undo is offered for three seconds, not five. Being fixed.","value":"differs"},"B-0005":{"form":1,"value":"honours"},"archive-conversation":{"form":1,"value":"honours"},"show-conversations":{"form":1,"value":"honours"}},"phone":{"B-0001":{"form":1,"value":"honours"},"B-0002":{"form":1,"value":"honours"},"B-0004":{"form":1,"value":"honours"},"B-0005":{"form":1,"value":"honours"},"archive-conversation":{"form":1,"value":"honours"},"show-conversations":{"form":1,"value":"honours"},"start-retitle":{"form":1,"value":"honours"},"unarchive-conversation":{"form":1,"value":"honours"}}},"operations":{"archive-conversation":{"class":"change","effect":"changes","many-at-once":"none","named-because":"restricted-state","needs":"may change the conversation","risk":"changes","safe-to-repeat":"yes","sections":[{"text":"Archive {conversation}.","title":"Sentence"},{"text":"The conversation is not already archived.","title":"Holds only if"}],"taken-back-by":"unarchive-conversation"},"list-conversations":{"class":"query","effect":"reads","many-at-once":"none","needs":"nothing","risk":"reads","safe-to-repeat":"yes","sections":[{"text":"List the conversations the caller has that are {active or archived}.","title":"Sentence"},{"text":"Always.","title":"Holds only if"}],"taken-back-by":"nothing"},"set-conversation-title":{"class":"change","effect":"changes","many-at-once":"none","needs":"may change the conversation","risk":"changes","safe-to-repeat":"yes","sections":[{"text":"Set the title of {conversation} to {title}.","title":"Sentence"},{"text":"Always.","title":"Holds only if"}],"taken-back-by":"itself"},"unarchive-conversation":{"class":"change","effect":"changes","many-at-once":"none","named-because":"restricted-state","needs":"may change the conversation","risk":"changes","safe-to-repeat":"yes","sections":[{"text":"Return {conversation} from the archive.","title":"Sentence"},{"text":"The conversation is archived.","title":"Holds only if"}],"taken-back-by":"archive-conversation"}},"profile":{"operbe":"1","sections":[{"text":"- Front ends: a phone UI, a desktop UI and a command line.\n- The phone UI is built first.\n- Client actions are kept, for the desktop's command palette and for an assistant built into both UIs.\n- Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.","title":"Decisions"},{"text":"","title":"Known deviations"}],"uis":["phone","desktop"]}}
1
+ {"actions":{"archive-conversation":{"applies-to":"all","available-when":"the conversation is not already archived and I may change it","behaviors":["B-0001"],"class":"do","form":1,"operations":["archive-conversation"],"sections":[{"text":"Archive {conversation}.","title":"Sentence"},{"text":"- conversation: a conversation, by its id. Needed.","title":"Inputs"},{"text":"- done: the conversation has left the active list, and Undo is offered.\n- started: offline; it is marked as waiting and completes when the connection returns.\n- refused: says why, and nothing changed. If the server refuses after the list has changed, the conversation returns to it.","title":"Result"}],"status":"firm"},"show-conversations":{"applies-to":"all","available-when":"always","behaviors":["B-0005"],"class":"show","form":1,"operations":["list-conversations"],"sections":[{"text":"Show {which} conversations.","title":"Sentence"},{"text":"- which: one of active or archived. Needed.","title":"Inputs"},{"text":"- done: the screen is that list. Hands back each conversation shown: its id, its title, and whether it is archived.\n- refused: says why (for example, offline with nothing kept).","title":"Result"}],"status":"firm"},"start-retitle":{"applies-to":["phone"],"available-when":"I may change the conversation","behaviors":["B-0004"],"class":"prepare","form":1,"operations":[],"sections":[{"text":"Open the title of {conversation} for editing, filled with {text}.","title":"Sentence"},{"text":"- conversation: a conversation, by its id. Needed.\n- text: the title to suggest. If left out, the field holds the present title.","title":"Inputs"},{"text":"- done: the title field is open with the text in it. The person saves or cancels; which they did is reported afterwards.\n- refused: says why.","title":"Result"}],"status":"firm"},"unarchive-conversation":{"applies-to":"all","available-when":"the conversation is archived and I may change it","behaviors":["B-0001"],"class":"do","form":1,"operations":["unarchive-conversation"],"sections":[{"text":"Return {conversation} to the active list.","title":"Sentence"},{"text":"- conversation: a conversation, by its id. Needed.","title":"Inputs"},{"text":"- done: the conversation is back in the active list, where it was.\n- refused: says why, and nothing changed.","title":"Result"}],"status":"firm"}},"architectures":{},"behaviors":{"B-0001":{"applies-to":"all","form":1,"name":"Archive a conversation","operations":["archive-conversation","unarchive-conversation","list-conversations"],"sections":[{"text":"A person can put a conversation out of the way without deleting it. It leaves the active conversations at once and is among the archived ones, and the person is offered a way to take it back straight away.","title":"Statement"},{"text":"1. The person chooses to archive a conversation.\n2. It leaves the active conversations, and the person is told it was archived.\n3. The person is offered Undo straight away.","title":"Flow"},{"text":"The person may change the conversation.","title":"Appears when"},{"text":"The conversation is not already archived. Otherwise it is refused with \"Already archived.\"","title":"Usable when"},{"text":"Returns the conversation to the active conversations, where it was.","title":"Undo"},{"text":"- phone, desktop: Undo is a button, shown for at least five seconds.\n- mcp: there is no button; the result names `unarchive-conversation`, which takes it back.","title":"Differs on"},{"text":"- **Usual.** Given an active conversation I may change, when I archive it, then it leaves the active conversations, is among the archived ones, and Undo is offered.\n- **Not allowed.** Given a conversation I may only read, then archiving isn't offered at all.\n- **Wrong moment.** Given an archived conversation, then archiving is refused with \"Already archived.\"\n- **Offline.** Given I have no connection, when I archive it, then it leaves the active conversations and is marked as waiting; when I'm back it completes.\n- **Refused.** Given the server refuses, then the conversation is back among the active ones and I'm told why.","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"firm"},"B-0002":{"actions":"none","applies-to":["phone"],"form":1,"name":"Swipe to archive","operations":["archive-conversation"],"sections":[{"text":"In any list of conversations, swiping a row fully to the left archives that conversation, exactly as Archive a conversation (B-0001) does. A partial swipe reveals an Archive button and does nothing more.","title":"Statement"},{"text":"- **Full swipe.** When I swipe a row all the way left and let go, the conversation is archived and Undo is offered.\n- **Partial swipe.** When I swipe a row part of the way, an Archive button shows on the right; letting go leaves the row open with the button.\n- **Not allowed.** On a conversation I may only read, the row doesn't swipe.","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"firm"},"B-0003":{"actions":"none","applies-to":"screens","form":1,"name":"Archived looks dimmed","operations":[],"sections":[{"text":"Wherever an archived conversation is shown (the archive, search results, a link from elsewhere), its row is dimmed and carries the word \"Archived\".","title":"Statement"},{"text":"- **Search.** When a search finds an archived conversation, its row is dimmed and says \"Archived\".","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"rough"},"B-0004":{"applies-to":"all","form":1,"name":"Rename a conversation","operations":["set-conversation-title"],"sections":[{"text":"A person can give a conversation a new title, which everyone who has the conversation then sees. A title may be suggested to them first; the person still decides whether to save it, and if they don't, the title stays as it was.","title":"Statement"},{"text":"- **Usual.** When I change \"Trip\" to \"Trip to Leeds\" and save, the conversation is called \"Trip to Leeds\" for everyone who has it.","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"rough"},"B-0005":{"applies-to":"all","form":1,"name":"The two lists","operations":["list-conversations"],"sections":[{"text":"Conversations are kept in two lists, active and archived. A person can ask for either one in one step, and is always told which one they have.","title":"Statement"},{"text":"- **Usual.** When I ask for the archive, I get the archived conversations, and they are marked as the archive (on a screen, headed \"Archive\").","title":"Examples"},{"text":"- form 1: first version.","title":"Changes"}],"status":"rough"}},"coverage":{"desktop":{"B-0001":{"form":1,"note":"Undo is offered for three seconds, not five. Being fixed.","value":"differs"},"B-0005":{"form":1,"value":"honours"},"archive-conversation":{"form":1,"value":"honours"},"show-conversations":{"form":1,"value":"honours"}},"mcp":{"B-0001":{"form":1,"value":"honours"},"B-0005":{"form":1,"value":"honours"},"archive-conversation":{"form":1,"value":"honours"},"show-conversations":{"form":1,"value":"honours"},"unarchive-conversation":{"form":1,"value":"honours"}},"phone":{"B-0001":{"form":1,"value":"honours"},"B-0002":{"form":1,"value":"honours"},"B-0004":{"form":1,"value":"honours"},"B-0005":{"form":1,"value":"honours"},"archive-conversation":{"form":1,"value":"honours"},"show-conversations":{"form":1,"value":"honours"},"start-retitle":{"form":1,"value":"honours"},"unarchive-conversation":{"form":1,"value":"honours"}}},"operations":{"archive-conversation":{"class":"change","effect":"changes","many-at-once":"none","named-because":"restricted-state","needs":"may change the conversation","risk":"changes","safe-to-repeat":"yes","sections":[{"text":"Archive {conversation}.","title":"Sentence"},{"text":"The conversation is not already archived.","title":"Holds only if"}],"taken-back-by":"unarchive-conversation"},"list-conversations":{"class":"query","effect":"reads","many-at-once":"none","needs":"nothing","risk":"reads","safe-to-repeat":"yes","sections":[{"text":"List the conversations the caller has that are {active or archived}.","title":"Sentence"},{"text":"Always.","title":"Holds only if"}],"taken-back-by":"nothing"},"set-conversation-title":{"class":"change","effect":"changes","many-at-once":"none","needs":"may change the conversation","risk":"changes","safe-to-repeat":"yes","sections":[{"text":"Set the title of {conversation} to {title}.","title":"Sentence"},{"text":"Always.","title":"Holds only if"}],"taken-back-by":"itself"},"unarchive-conversation":{"class":"change","effect":"changes","many-at-once":"none","named-because":"restricted-state","needs":"may change the conversation","risk":"changes","safe-to-repeat":"yes","sections":[{"text":"Return {conversation} from the archive.","title":"Sentence"},{"text":"The conversation is archived.","title":"Holds only if"}],"taken-back-by":"archive-conversation"}},"profile":{"front-ends":["phone","desktop","mcp"],"groups":{"screens":["phone","desktop"]},"operations-offered-on":["api"],"operbe":"1","sections":[{"text":"- Front ends: a phone app, a desktop app, and an MCP server through which a person's assistant works for them. The phone app is built first.\n- `screens` groups the front ends with a screen.\n- The MCP server offers Actions. The server's API offers Operations to outside builders and no Actions, so it is not a front end.\n- Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.\n- B-0004 is described only by `start-retitle`, on the phone, so the check reports it as a gap on the desktop and over MCP. That is on purpose: the example shows the gap. Don't fix it by widening `start-retitle`.","title":"Decisions"},{"text":"","title":"Known deviations"}]}}
@@ -1 +1 @@
1
- sha256:fb8f314a71b217ddb756af489cf418c6be0484b3a55eae7246746464dfb4fb11
1
+ sha256:c23a247ce79cbfe10b63e9fcbc2ccbf24aa3fb874fafbce8a306e6c0e0ca6762
@@ -9,28 +9,32 @@ replaced-by:
9
9
  ---
10
10
 
11
11
  ## Statement
12
- A person can put a conversation out of the way without deleting it. It leaves the active list at once, and for a few seconds the product offers Undo.
12
+ A person can put a conversation out of the way without deleting it. It leaves the active conversations at once and is among the archived ones, and the person is offered a way to take it back straight away.
13
13
 
14
14
  ## Flow
15
15
  1. The person chooses to archive a conversation.
16
- 2. The product removes it from the active list and says it was archived.
17
- 3. The product offers Undo for at least five seconds.
16
+ 2. It leaves the active conversations, and the person is told it was archived.
17
+ 3. The person is offered Undo straight away.
18
18
 
19
19
  ## Appears when
20
20
  The person may change the conversation.
21
21
 
22
22
  ## Usable when
23
- The conversation is not already archived. Otherwise it is shown but can't be used, with "Already archived."
23
+ The conversation is not already archived. Otherwise it is refused with "Already archived."
24
24
 
25
25
  ## Undo
26
- Returns the conversation to the active list, where it was.
26
+ Returns the conversation to the active conversations, where it was.
27
+
28
+ ## Differs on
29
+ - phone, desktop: Undo is a button, shown for at least five seconds.
30
+ - mcp: there is no button; the result names `unarchive-conversation`, which takes it back.
27
31
 
28
32
  ## Examples
29
- - **Usual.** Given an active conversation I may change, when I archive it, then it leaves the active list, appears in the archive, and Undo is offered.
33
+ - **Usual.** Given an active conversation I may change, when I archive it, then it leaves the active conversations, is among the archived ones, and Undo is offered.
30
34
  - **Not allowed.** Given a conversation I may only read, then archiving isn't offered at all.
31
- - **Wrong moment.** Given an archived conversation, then archiving is shown but can't be used, with "Already archived."
32
- - **Offline.** Given I have no connection, when I archive it, then it leaves the active list and is marked as waiting; when I'm back it completes.
33
- - **Refused.** Given the server refuses, then the conversation returns to the active list and I'm told why.
35
+ - **Wrong moment.** Given an archived conversation, then archiving is refused with "Already archived."
36
+ - **Offline.** Given I have no connection, when I archive it, then it leaves the active conversations and is marked as waiting; when I'm back it completes.
37
+ - **Refused.** Given the server refuses, then the conversation is back among the active ones and I'm told why.
34
38
 
35
39
  ## Changes
36
40
  - form 1: first version.
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: [phone]
7
7
  operations: [archive-conversation]
8
8
  replaced-by:
9
- client-actions: none # a gesture; it runs the same action as B-0001
9
+ actions: none # a gesture; it runs archive-conversation, which B-0001 describes
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -3,10 +3,10 @@ id: B-0003
3
3
  name: Archived looks dimmed
4
4
  status: rough
5
5
  form: 1
6
- applies-to: all
6
+ applies-to: screens
7
7
  operations: []
8
8
  replaced-by:
9
- client-actions: none # a rule about appearance; nothing to call
9
+ actions: none # a rule about appearance; nothing to ask for
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -9,10 +9,10 @@ replaced-by:
9
9
  ---
10
10
 
11
11
  ## Statement
12
- Tapping a conversation's title opens it for editing in place. It may open already holding a suggested title. Saving changes the title for everyone who has the conversation; cancelling leaves it as it was.
12
+ A person can give a conversation a new title, which everyone who has the conversation then sees. A title may be suggested to them first; the person still decides whether to save it, and if they don't, the title stays as it was.
13
13
 
14
14
  ## Examples
15
- - **Usual.** When I change "Trip" to "Trip to Leeds" and save, the list shows the new title.
15
+ - **Usual.** When I change "Trip" to "Trip to Leeds" and save, the conversation is called "Trip to Leeds" for everyone who has it.
16
16
 
17
17
  ## Changes
18
18
  - form 1: first version.
@@ -9,10 +9,10 @@ replaced-by:
9
9
  ---
10
10
 
11
11
  ## Statement
12
- Conversations are shown in two lists, active and archived, and a person can go from either to the other in one step. Each says which list it is.
12
+ Conversations are kept in two lists, active and archived. A person can ask for either one in one step, and is always told which one they have.
13
13
 
14
14
  ## Examples
15
- - **Usual.** When I choose the archive, the list shows archived conversations and is headed "Archive".
15
+ - **Usual.** When I ask for the archive, I get the archived conversations, and they are marked as the archive (on a screen, headed "Archive").
16
16
 
17
17
  ## Changes
18
18
  - form 1: first version.
@@ -0,0 +1,9 @@
1
+ # Coverage: mcp
2
+
3
+ | id | value | form | note |
4
+ |---|---|---|---|
5
+ | B-0001 | honours | 1 | |
6
+ | B-0005 | honours | 1 | |
7
+ | show-conversations | honours | 1 | |
8
+ | archive-conversation | honours | 1 | |
9
+ | unarchive-conversation | honours | 1 | |
@@ -2,14 +2,18 @@
2
2
  operbe: 1
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- client-actions: client-actions
6
- uis: [phone, desktop]
5
+ actions: actions
6
+ front-ends: [phone, desktop, mcp]
7
+ groups:
8
+ screens: [phone, desktop]
9
+ operations-offered-on: [api]
7
10
  ---
8
11
 
9
12
  ## Decisions
10
- - Front ends: a phone UI, a desktop UI and a command line.
11
- - The phone UI is built first.
12
- - Client actions are kept, for the desktop's command palette and for an assistant built into both UIs.
13
+ - Front ends: a phone app, a desktop app, and an MCP server through which a person's assistant works for them. The phone app is built first.
14
+ - `screens` groups the front ends with a screen.
15
+ - The MCP server offers Actions. The server's API offers Operations to outside builders and no Actions, so it is not a front end.
13
16
  - Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.
17
+ - B-0004 is described only by `start-retitle`, on the phone, so the check reports it as a gap on the desktop and over MCP. That is on purpose: the example shows the gap. Don't fix it by widening `start-retitle`.
14
18
 
15
19
  ## Known deviations
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: [phone]
7
7
  operations: [archive-conversation]
8
8
  replaced-by:
9
- client-actions: none # a gesture; it runs the same action as B-0001
9
+ actions: none # a gesture; it runs the same action as B-0001
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: all
7
7
  operations: []
8
8
  replaced-by:
9
- client-actions: none # a rule about appearance; nothing to call
9
+ actions: none # a rule about appearance; nothing to call
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -2,14 +2,14 @@
2
2
  operbe: 1
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- client-actions: client-actions
6
- uis: [phone, desktop]
5
+ actions: actions
6
+ front-ends: [phone, desktop]
7
7
  ---
8
8
 
9
9
  ## Decisions
10
- - Front ends: a phone UI, a desktop UI and a command line.
11
- - The phone UI is built first.
12
- - Client actions are kept, for the desktop's command palette and for an assistant built into both UIs.
10
+ - Front ends: a phone app and a desktop app.
11
+ - The phone app is built first.
12
+ - Actions are kept, for the desktop's command palette and for an assistant built into both apps.
13
13
  - Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.
14
14
 
15
15
  ## Known deviations
@@ -6,7 +6,7 @@ form: 2
6
6
  applies-to: [phone]
7
7
  operations: [archive-conversation]
8
8
  replaced-by:
9
- client-actions: none # a gesture; it runs the same action as B-0001
9
+ actions: none # a gesture; it runs the same action as B-0001
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: all
7
7
  operations: []
8
8
  replaced-by:
9
- client-actions: none # a rule about appearance; nothing to call
9
+ actions: none # a rule about appearance; nothing to call
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -2,14 +2,14 @@
2
2
  operbe: 1
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- client-actions: client-actions
6
- uis: [phone, desktop]
5
+ actions: actions
6
+ front-ends: [phone, desktop]
7
7
  ---
8
8
 
9
9
  ## Decisions
10
- - Front ends: a phone UI, a desktop UI and a command line.
11
- - The phone UI is built first.
12
- - Client actions are kept, for the desktop's command palette and for an assistant built into both UIs.
10
+ - Front ends: a phone app and a desktop app.
11
+ - The phone app is built first.
12
+ - Actions are kept, for the desktop's command palette and for an assistant built into both apps.
13
13
  - Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.
14
14
 
15
15
  ## Known deviations
@@ -88,10 +88,10 @@
88
88
  "message": "[set-conversation-title] -> [set-conversation-name]"
89
89
  },
90
90
  {
91
- "kind": "client-action.removed",
91
+ "kind": "action.removed",
92
92
  "record": "start-retitle",
93
93
  "level": "breaking",
94
- "message": "client-action 'start-retitle' was removed"
94
+ "message": "action 'start-retitle' was removed"
95
95
  },
96
96
  {
97
97
  "kind": "coverage.worse",
@@ -128,6 +128,36 @@
128
128
  "level": "breaking",
129
129
  "message": "a known deviation was added; the list may only shrink: Undo isn't offered on the command line yet."
130
130
  },
131
+ {
132
+ "kind": "finding.appeared",
133
+ "record": "show-conversations",
134
+ "field": "operbe/show-sends",
135
+ "after": {
136
+ "rule": "operbe/show-sends",
137
+ "level": "error",
138
+ "file": "actions/show-conversations.md",
139
+ "line": 7,
140
+ "record": "show-conversations",
141
+ "field": "operations",
142
+ "message": "a show may call only queries, but lists ['list-conversations']; if the project decided this change is already agreed to, say why in 'show-because'"
143
+ },
144
+ "level": "warning",
145
+ "message": "error operbe/show-sends: a show may call only queries, but lists ['list-conversations']; if the project decided this change is already agreed to, say why in 'show-because'"
146
+ },
147
+ {
148
+ "kind": "finding.appeared",
149
+ "record": "B-0004",
150
+ "field": "operbe/action-missing",
151
+ "after": {
152
+ "rule": "operbe/action-missing",
153
+ "level": "gap",
154
+ "file": "behaviors/B-0004.md",
155
+ "record": "B-0004",
156
+ "message": "B-0004 'Rename a conversation' describes no action; name it in an action's behaviors, or mark it 'actions: none'"
157
+ },
158
+ "level": "info",
159
+ "message": "gap operbe/action-missing: B-0004 'Rename a conversation' describes no action; name it in an action's behaviors, or mark it 'actions: none'"
160
+ },
131
161
  {
132
162
  "kind": "finding.appeared",
133
163
  "record": "B-0002",
@@ -153,26 +183,24 @@
153
183
  "file": "behaviors/coverage/phone.md",
154
184
  "line": 10,
155
185
  "record": "start-retitle",
156
- "message": "start-retitle is not a behavior or a client action"
186
+ "message": "start-retitle is not a behavior or an action"
157
187
  },
158
188
  "level": "warning",
159
- "message": "error operbe/unknown-reference: start-retitle is not a behavior or a client action"
189
+ "message": "error operbe/unknown-reference: start-retitle is not a behavior or an action"
160
190
  },
161
191
  {
162
- "kind": "finding.appeared",
163
- "record": "show-conversations",
164
- "field": "operbe/show-sends",
165
- "after": {
166
- "rule": "operbe/show-sends",
167
- "level": "error",
168
- "file": "client-actions/show-conversations.md",
169
- "line": 7,
170
- "record": "show-conversations",
171
- "field": "operations",
172
- "message": "a show may send only queries, but lists ['list-conversations']; if the project decided this change is already agreed to, say why in 'show-because'"
192
+ "kind": "finding.resolved",
193
+ "record": "B-0004",
194
+ "field": "operbe/action-missing",
195
+ "before": {
196
+ "rule": "operbe/action-missing",
197
+ "level": "gap",
198
+ "file": "behaviors/B-0004.md",
199
+ "record": "B-0004",
200
+ "message": "B-0004 'Rename a conversation' describes no action on desktop"
173
201
  },
174
- "level": "warning",
175
- "message": "error operbe/show-sends: a show may send only queries, but lists ['list-conversations']; if the project decided this change is already agreed to, say why in 'show-because'"
202
+ "level": "info",
203
+ "message": "gap operbe/action-missing: B-0004 'Rename a conversation' describes no action on desktop"
176
204
  },
177
205
  {
178
206
  "kind": "finding.resolved",
@@ -2,7 +2,7 @@
2
2
  operbe: 1 # the version
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- uis: [web]
5
+ front-ends: [web]
6
6
  architectures: [acme]
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  operbe: 1 # the version
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- uis: [web]
5
+ front-ends: [web]
6
6
  architectures: [acme]
7
7
  ---
8
8
 
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: [phone]
7
7
  operations: [archive-conversation]
8
8
  replaced-by:
9
- client-actions: none # a gesture; it runs the same action as B-0001
9
+ actions: none # a gesture; it runs the same action as B-0001
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: all
7
7
  operations: []
8
8
  replaced-by:
9
- client-actions: none # a rule about appearance; nothing to call
9
+ actions: none # a rule about appearance; nothing to call
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -2,14 +2,14 @@
2
2
  operbe: 1
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- client-actions: client-actions
6
- uis: [phone, desktop]
5
+ actions: actions
6
+ front-ends: [phone, desktop]
7
7
  ---
8
8
 
9
9
  ## Decisions
10
- - Front ends: a phone UI, a desktop UI and a command line.
11
- - The phone UI is built first.
12
- - Client actions are kept, for the desktop's command palette and for an assistant built into both UIs.
10
+ - Front ends: a phone app and a desktop app.
11
+ - The phone app is built first.
12
+ - Actions are kept, for the desktop's command palette and for an assistant built into both apps.
13
13
  - Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.
14
14
 
15
15
  ## Known deviations
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: [phone]
7
7
  operations: [archive-conversation]
8
8
  replaced-by:
9
- client-actions: none # a gesture; it runs the same action as B-0001
9
+ actions: none # a gesture; it runs the same action as B-0001
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -6,7 +6,7 @@ form: 1
6
6
  applies-to: all
7
7
  operations: []
8
8
  replaced-by:
9
- client-actions: none # a rule about appearance; nothing to call
9
+ actions: none # a rule about appearance; nothing to call
10
10
  ---
11
11
 
12
12
  ## Statement
@@ -2,14 +2,14 @@
2
2
  operbe: 1
3
3
  operations: operations
4
4
  behaviors: behaviors
5
- client-actions: client-actions
6
- uis: [phone, desktop]
5
+ actions: actions
6
+ front-ends: [phone, desktop]
7
7
  ---
8
8
 
9
9
  ## Decisions
10
- - Front ends: a phone UI, a desktop UI and a command line.
11
- - The phone UI is built first.
12
- - Client actions are kept, for the desktop's command palette and for an assistant built into both UIs.
10
+ - Front ends: a phone app and a desktop app.
11
+ - The phone app is built first.
12
+ - Actions are kept, for the desktop's command palette and for an assistant built into both apps.
13
13
  - Renaming in place is on the phone only for now, so `start-retitle` applies to the phone.
14
14
 
15
15
  ## Known deviations
package/dist/check.d.ts CHANGED
@@ -11,7 +11,7 @@ export interface Counts {
11
11
  rough: number;
12
12
  retired: number;
13
13
  } | null;
14
- clientActions: {
14
+ actions: {
15
15
  firm: number;
16
16
  rough: number;
17
17
  retired: number;