operbe 0.0.0-stage → 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 (167) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +110 -2
  3. package/conformance/describe/edge/body.json +1 -0
  4. package/conformance/describe/edge/digest +1 -0
  5. package/conformance/describe/edge/project/acme/architecture.md +18 -0
  6. package/conformance/describe/edge/project/behaviors/B-7.md +15 -0
  7. package/conformance/describe/edge/project/behaviors/coverage/web.md +8 -0
  8. package/conformance/describe/edge/project/operations/broken-file.md +1 -0
  9. package/conformance/describe/edge/project/operations/read-note.md +4 -0
  10. package/conformance/describe/edge/project/operations/send-note.md +20 -0
  11. package/conformance/describe/edge/project/operbe.md +15 -0
  12. package/conformance/describe/example/body.json +1 -0
  13. package/conformance/describe/example/digest +1 -0
  14. package/conformance/describe/example/project/actions/archive-conversation.md +22 -0
  15. package/conformance/describe/example/project/actions/show-conversations.md +21 -0
  16. package/conformance/describe/example/project/actions/start-retitle.md +22 -0
  17. package/conformance/describe/example/project/actions/unarchive-conversation.md +21 -0
  18. package/conformance/describe/example/project/behaviors/B-0001.md +40 -0
  19. package/conformance/describe/example/project/behaviors/B-0002.md +21 -0
  20. package/conformance/describe/example/project/behaviors/B-0003.md +19 -0
  21. package/conformance/describe/example/project/behaviors/B-0004.md +18 -0
  22. package/conformance/describe/example/project/behaviors/B-0005.md +18 -0
  23. package/conformance/describe/example/project/behaviors/coverage/desktop.md +8 -0
  24. package/conformance/describe/example/project/behaviors/coverage/mcp.md +9 -0
  25. package/conformance/describe/example/project/behaviors/coverage/phone.md +12 -0
  26. package/conformance/describe/example/project/operations/archive-conversation.md +16 -0
  27. package/conformance/describe/example/project/operations/list-conversations.md +16 -0
  28. package/conformance/describe/example/project/operations/set-conversation-title.md +16 -0
  29. package/conformance/describe/example/project/operations/unarchive-conversation.md +16 -0
  30. package/conformance/describe/example/project/operbe.md +19 -0
  31. package/conformance/diff/core/a/actions/archive-conversation.md +22 -0
  32. package/conformance/diff/core/a/actions/show-conversations.md +21 -0
  33. package/conformance/diff/core/a/actions/start-retitle.md +22 -0
  34. package/conformance/diff/core/a/actions/unarchive-conversation.md +21 -0
  35. package/conformance/diff/core/a/behaviors/B-0001.md +36 -0
  36. package/conformance/diff/core/a/behaviors/B-0002.md +21 -0
  37. package/conformance/diff/core/a/behaviors/B-0003.md +19 -0
  38. package/conformance/diff/core/a/behaviors/B-0004.md +18 -0
  39. package/conformance/diff/core/a/behaviors/B-0005.md +18 -0
  40. package/conformance/diff/core/a/behaviors/coverage/desktop.md +8 -0
  41. package/conformance/diff/core/a/behaviors/coverage/phone.md +12 -0
  42. package/conformance/diff/core/a/operations/archive-conversation.md +16 -0
  43. package/conformance/diff/core/a/operations/list-conversations.md +16 -0
  44. package/conformance/diff/core/a/operations/set-conversation-title.md +16 -0
  45. package/conformance/diff/core/a/operations/unarchive-conversation.md +16 -0
  46. package/conformance/diff/core/a/operbe.md +15 -0
  47. package/conformance/diff/core/b/actions/archive-conversation.md +22 -0
  48. package/conformance/diff/core/b/actions/show-conversations.md +21 -0
  49. package/conformance/diff/core/b/actions/unarchive-conversation.md +21 -0
  50. package/conformance/diff/core/b/behaviors/B-0001.md +36 -0
  51. package/conformance/diff/core/b/behaviors/B-0002.md +22 -0
  52. package/conformance/diff/core/b/behaviors/B-0003.md +19 -0
  53. package/conformance/diff/core/b/behaviors/B-0004.md +18 -0
  54. package/conformance/diff/core/b/behaviors/B-0005.md +18 -0
  55. package/conformance/diff/core/b/behaviors/coverage/desktop.md +8 -0
  56. package/conformance/diff/core/b/behaviors/coverage/phone.md +12 -0
  57. package/conformance/diff/core/b/operations/archive-conversation.md +16 -0
  58. package/conformance/diff/core/b/operations/list-conversations.md +16 -0
  59. package/conformance/diff/core/b/operations/set-conversation-name.md +16 -0
  60. package/conformance/diff/core/b/operations/unarchive-conversation.md +16 -0
  61. package/conformance/diff/core/b/operbe.md +16 -0
  62. package/conformance/diff/core/changes.json +220 -0
  63. package/conformance/diff/declared/a/acme/architecture.md +18 -0
  64. package/conformance/diff/declared/a/behaviors/B-7.md +15 -0
  65. package/conformance/diff/declared/a/behaviors/coverage/web.md +8 -0
  66. package/conformance/diff/declared/a/operations/broken-file.md +1 -0
  67. package/conformance/diff/declared/a/operations/read-note.md +4 -0
  68. package/conformance/diff/declared/a/operations/send-note.md +20 -0
  69. package/conformance/diff/declared/a/operbe.md +15 -0
  70. package/conformance/diff/declared/b/acme/architecture.md +18 -0
  71. package/conformance/diff/declared/b/behaviors/B-7.md +15 -0
  72. package/conformance/diff/declared/b/behaviors/coverage/web.md +8 -0
  73. package/conformance/diff/declared/b/operations/broken-file.md +1 -0
  74. package/conformance/diff/declared/b/operations/read-note.md +5 -0
  75. package/conformance/diff/declared/b/operations/send-note.md +19 -0
  76. package/conformance/diff/declared/b/operbe.md +15 -0
  77. package/conformance/diff/declared/changes.json +73 -0
  78. package/conformance/diff/reworded/a/actions/archive-conversation.md +22 -0
  79. package/conformance/diff/reworded/a/actions/show-conversations.md +21 -0
  80. package/conformance/diff/reworded/a/actions/start-retitle.md +22 -0
  81. package/conformance/diff/reworded/a/actions/unarchive-conversation.md +21 -0
  82. package/conformance/diff/reworded/a/behaviors/B-0001.md +36 -0
  83. package/conformance/diff/reworded/a/behaviors/B-0002.md +21 -0
  84. package/conformance/diff/reworded/a/behaviors/B-0003.md +19 -0
  85. package/conformance/diff/reworded/a/behaviors/B-0004.md +18 -0
  86. package/conformance/diff/reworded/a/behaviors/B-0005.md +18 -0
  87. package/conformance/diff/reworded/a/behaviors/coverage/desktop.md +8 -0
  88. package/conformance/diff/reworded/a/behaviors/coverage/phone.md +12 -0
  89. package/conformance/diff/reworded/a/operations/archive-conversation.md +16 -0
  90. package/conformance/diff/reworded/a/operations/list-conversations.md +16 -0
  91. package/conformance/diff/reworded/a/operations/set-conversation-title.md +16 -0
  92. package/conformance/diff/reworded/a/operations/unarchive-conversation.md +16 -0
  93. package/conformance/diff/reworded/a/operbe.md +18 -0
  94. package/conformance/diff/reworded/b/actions/archive-conversation.md +22 -0
  95. package/conformance/diff/reworded/b/actions/show-conversations.md +21 -0
  96. package/conformance/diff/reworded/b/actions/start-retitle.md +22 -0
  97. package/conformance/diff/reworded/b/actions/unarchive-conversation.md +21 -0
  98. package/conformance/diff/reworded/b/behaviors/B-0001.md +36 -0
  99. package/conformance/diff/reworded/b/behaviors/B-0002.md +21 -0
  100. package/conformance/diff/reworded/b/behaviors/B-0003.md +19 -0
  101. package/conformance/diff/reworded/b/behaviors/B-0004.md +18 -0
  102. package/conformance/diff/reworded/b/behaviors/B-0005.md +18 -0
  103. package/conformance/diff/reworded/b/behaviors/coverage/desktop.md +8 -0
  104. package/conformance/diff/reworded/b/behaviors/coverage/phone.md +12 -0
  105. package/conformance/diff/reworded/b/operations/archive-conversation.md +16 -0
  106. package/conformance/diff/reworded/b/operations/list-conversations.md +16 -0
  107. package/conformance/diff/reworded/b/operations/set-conversation-title.md +16 -0
  108. package/conformance/diff/reworded/b/operations/unarchive-conversation.md +16 -0
  109. package/conformance/diff/reworded/b/operbe.md +18 -0
  110. package/conformance/diff/reworded/changes.json +43 -0
  111. package/dist/check.d.ts +21 -0
  112. package/dist/check.js +479 -0
  113. package/dist/cli.d.ts +2 -0
  114. package/dist/cli.js +276 -0
  115. package/dist/describe.d.ts +22 -0
  116. package/dist/describe.js +204 -0
  117. package/dist/diff.d.ts +13 -0
  118. package/dist/diff.js +260 -0
  119. package/dist/findings.d.ts +11 -0
  120. package/dist/findings.js +6 -0
  121. package/dist/index.d.ts +19 -0
  122. package/dist/index.js +11 -0
  123. package/dist/indexes.d.ts +2 -0
  124. package/dist/indexes.js +35 -0
  125. package/dist/jcs.d.ts +1 -0
  126. package/dist/jcs.js +16 -0
  127. package/dist/jj.d.ts +12 -0
  128. package/dist/jj.js +82 -0
  129. package/dist/read.d.ts +85 -0
  130. package/dist/read.js +273 -0
  131. package/dist/reconcile.d.ts +9 -0
  132. package/dist/reconcile.js +45 -0
  133. package/dist/source.d.ts +5 -0
  134. package/dist/source.js +29 -0
  135. package/dist/version.d.ts +1 -0
  136. package/dist/version.js +2 -0
  137. package/package.json +40 -4
  138. package/schema/description.schema.json +498 -0
  139. package/skills/operbe/SKILL.md +95 -0
  140. package/skills/operbe/example/actions/archive-conversation.md +22 -0
  141. package/skills/operbe/example/actions/show-conversations.md +21 -0
  142. package/skills/operbe/example/actions/start-retitle.md +22 -0
  143. package/skills/operbe/example/actions/unarchive-conversation.md +21 -0
  144. package/skills/operbe/example/behaviors/B-0001.md +40 -0
  145. package/skills/operbe/example/behaviors/B-0002.md +21 -0
  146. package/skills/operbe/example/behaviors/B-0003.md +19 -0
  147. package/skills/operbe/example/behaviors/B-0004.md +18 -0
  148. package/skills/operbe/example/behaviors/B-0005.md +18 -0
  149. package/skills/operbe/example/behaviors/coverage/desktop.md +8 -0
  150. package/skills/operbe/example/behaviors/coverage/mcp.md +9 -0
  151. package/skills/operbe/example/behaviors/coverage/phone.md +12 -0
  152. package/skills/operbe/example/operations/archive-conversation.md +16 -0
  153. package/skills/operbe/example/operations/list-conversations.md +16 -0
  154. package/skills/operbe/example/operations/set-conversation-title.md +16 -0
  155. package/skills/operbe/example/operations/unarchive-conversation.md +16 -0
  156. package/skills/operbe/example/operbe.md +19 -0
  157. package/skills/operbe/references/actions.md +226 -0
  158. package/skills/operbe/references/adopting.md +48 -0
  159. package/skills/operbe/references/behaviors.md +184 -0
  160. package/skills/operbe/references/formats.md +426 -0
  161. package/skills/operbe/references/operations.md +145 -0
  162. package/skills/operbe/references/tandem.md +70 -0
  163. package/skills/operbe/templates/action.md +20 -0
  164. package/skills/operbe/templates/behavior.md +18 -0
  165. package/skills/operbe/templates/coverage.md +4 -0
  166. package/skills/operbe/templates/operation.md +14 -0
  167. package/skills/operbe/templates/operbe.md +10 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Trevor Schoeny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,111 @@
1
- # Temporary Holding Version
1
+ # operbe
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ operbe is the operations and behaviors method: a software development method for any project with a server and one or more front ends.
4
+
5
+ Version 1.0.0-rc.2. Everything in it is experimental until it has been proven on two projects.
6
+
7
+ ## What it is
8
+
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
+
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**.
16
+
17
+ ```
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
31
+ ```
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
+
35
+ ## The one rule
36
+
37
+ 1. Nothing crosses the membrane except an operation.
38
+ 2. Nothing the designer cares about on a front end is off the behavior list.
39
+
40
+ The rest of operbe follows from those two halves.
41
+
42
+ ## What it is not
43
+
44
+ operbe is not an architecture. It says nothing about languages, frameworks, storage, transport or how the server is built.
45
+
46
+ It is not a spec either. A project's two lists are its specs, and operbe is how they get made.
47
+
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.
49
+
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.
51
+
52
+ ## When to use it
53
+
54
+ Use operbe when a project has a server and at least one front end, and you want every front end, and every agent working on one, to agree on what the system does and what the experience is.
55
+
56
+ It isn't meant for a script, a library with no server, or a throwaway prototype.
57
+
58
+ ## Install
59
+
60
+ operbe is packaged as an agent skill.
61
+
62
+ In Claude Code, install it as a plugin:
63
+
64
+ ```
65
+ /plugin marketplace add trevorschoeny/claude-plugins
66
+ /plugin install operbe@trevorschoeny-claude-plugins
67
+ ```
68
+
69
+ In any other agent that reads skills, copy the `skills/operbe` folder into that agent's skills folder.
70
+
71
+ The `operbe` command is on npm (Node.js 22 or later). Agents and people use the same one:
72
+
73
+ ```
74
+ npx operbe check <your project> # the records, checked
75
+ npx operbe index <your project> # the behavior index and the coverage table
76
+ npx operbe new behavior "Pin a conversation" <your project>
77
+ ```
78
+
79
+ `npx operbe describe` gives tools everything as one JSON object, and `npx operbe diff` says what changed between two versions and how much it matters. In TypeScript, `import { read, check, describe, diff, reconcile, folderSource } from "operbe"`.
80
+
81
+ ## What's here
82
+
83
+ | Part | What it covers | File |
84
+ |---|---|---|
85
+ | Operations | What an operation is, how big, what it declares | `skills/operbe/references/operations.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` |
89
+ | Formats | The exact form of each file | `skills/operbe/references/formats.md` |
90
+ | Adopting | Starting a project, or bringing operbe into one | `skills/operbe/references/adopting.md` |
91
+ | The command | check, index, new, describe, diff, reconcile, schema | `npx operbe` (`src/`) |
92
+ | Description schema and conformance cases | For tools in other languages | `schema/`, `conformance/` |
93
+ | Example | A small project done this way | `skills/operbe/example/` |
94
+
95
+ `skills/operbe/SKILL.md` is the short file an AI agent loads. It points the agent to the reference a task needs.
96
+
97
+ ## Rule strength
98
+
99
+ Each rule in the references is a must, a should or a may. A must is part of operbe, and a project that breaks one records a deviation. A should is a strong default that a project can depart from with a stated reason. A may is a suggestion. Anything unmarked is a must.
100
+
101
+ ## Changes
102
+
103
+ See `CHANGELOG.md`.
104
+
105
+ ## What each project decides
106
+
107
+ A project decides everything operbe doesn't state: the language its operations are defined in, the architecture underneath, which front ends exist, how behaviors are grouped, and how strict the change process is. It records those choices in its `operbe.md` file.
108
+
109
+ ## License
110
+
111
+ MIT. See `LICENSE`.
@@ -0,0 +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"],"front-ends":["web"],"operbe":"1","sections":[{"text":"- Café, 日本: Unicode stays as written.","title":"Decisions"},{"text":"- one","title":"Known deviations"}]}}
@@ -0,0 +1 @@
1
+ sha256:cc431f41f0091a6664bfc2df445b1455722ddae812e7483f0ed55845f215bdca
@@ -0,0 +1,18 @@
1
+ ---
2
+ architecture: acme
3
+ format: 1
4
+ ---
5
+
6
+ ## Fields
7
+
8
+ | field | on | required | values |
9
+ |---|---|---|---|
10
+ | acme.route | operation | when class is [change, signal] | |
11
+ | acme.door.gate | operation | no | [a, b, c] |
12
+
13
+ ## Diff rules
14
+
15
+ | field | change | level |
16
+ |---|---|---|
17
+ | acme.route | removed | breaking |
18
+ | acme.door.gate | changed | warning |
@@ -0,0 +1,15 @@
1
+ ---
2
+ id: B-7
3
+ name: Notes
4
+ status: rough
5
+ form: two
6
+ applies-to: all
7
+ operations: [send-note, read-note]
8
+ replaced-by:
9
+ ---
10
+ ## Statement
11
+ S.
12
+ ## Examples
13
+ - a
14
+ ## Changes
15
+ - form 1
@@ -0,0 +1,8 @@
1
+ # Coverage: web
2
+
3
+ | id | value | form | note |
4
+ |---|---|---|---|
5
+ | B-7 | limited | 1 | slow |
6
+ | B-7 | honours | 1 | |
7
+ | B-99 | honours | 1 | |
8
+ Total: 1
@@ -0,0 +1,4 @@
1
+ ---
2
+ name: read-note
3
+ class: query
4
+ ---
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: send-note
3
+ class: change
4
+ named-because:
5
+ needs: may write # a comment
6
+ safe-to-repeat: no
7
+ taken-back-by: nothing
8
+ risk: destroys
9
+ many-at-once: none
10
+ acme.door.gate: [a, b]
11
+ acme.route: send-note
12
+ mystery: dropped
13
+ ---
14
+
15
+ ## Sentence
16
+
17
+ Send {note}.
18
+
19
+ ## Holds only if
20
+ Always.
@@ -0,0 +1,15 @@
1
+ ---
2
+ operbe: 1 # the version
3
+ operations: operations
4
+ behaviors: behaviors
5
+ front-ends: [web]
6
+ architectures: [acme]
7
+ ---
8
+
9
+ ## Decisions
10
+
11
+ - Café, 日本: Unicode stays as written.
12
+
13
+
14
+ ## Known deviations
15
+ - one
@@ -0,0 +1 @@
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"}]}}
@@ -0,0 +1 @@
1
+ sha256:c23a247ce79cbfe10b63e9fcbc2ccbf24aa3fb874fafbce8a306e6c0e0ca6762
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: archive-conversation
3
+ class: do
4
+ status: firm
5
+ form: 1
6
+ behaviors: [B-0001]
7
+ operations: [archive-conversation]
8
+ available-when: the conversation is not already archived and I may change it
9
+ applies-to: all
10
+ replaced-by:
11
+ ---
12
+
13
+ ## Sentence
14
+ Archive {conversation}.
15
+
16
+ ## Inputs
17
+ - conversation: a conversation, by its id. Needed.
18
+
19
+ ## Result
20
+ - done: the conversation has left the active list, and Undo is offered.
21
+ - started: offline; it is marked as waiting and completes when the connection returns.
22
+ - refused: says why, and nothing changed. If the server refuses after the list has changed, the conversation returns to it.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: show-conversations
3
+ class: show
4
+ status: firm
5
+ form: 1
6
+ behaviors: [B-0005]
7
+ operations: [list-conversations]
8
+ available-when: always
9
+ applies-to: all
10
+ replaced-by:
11
+ ---
12
+
13
+ ## Sentence
14
+ Show {which} conversations.
15
+
16
+ ## Inputs
17
+ - which: one of active or archived. Needed.
18
+
19
+ ## Result
20
+ - done: the screen is that list. Hands back each conversation shown: its id, its title, and whether it is archived.
21
+ - refused: says why (for example, offline with nothing kept).
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: start-retitle
3
+ class: prepare
4
+ status: firm
5
+ form: 1
6
+ behaviors: [B-0004]
7
+ operations: []
8
+ available-when: I may change the conversation
9
+ applies-to: [phone]
10
+ replaced-by:
11
+ ---
12
+
13
+ ## Sentence
14
+ Open the title of {conversation} for editing, filled with {text}.
15
+
16
+ ## Inputs
17
+ - conversation: a conversation, by its id. Needed.
18
+ - text: the title to suggest. If left out, the field holds the present title.
19
+
20
+ ## Result
21
+ - done: the title field is open with the text in it. The person saves or cancels; which they did is reported afterwards.
22
+ - refused: says why.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: unarchive-conversation
3
+ class: do
4
+ status: firm
5
+ form: 1
6
+ behaviors: [B-0001]
7
+ operations: [unarchive-conversation]
8
+ available-when: the conversation is archived and I may change it
9
+ applies-to: all
10
+ replaced-by:
11
+ ---
12
+
13
+ ## Sentence
14
+ Return {conversation} to the active list.
15
+
16
+ ## Inputs
17
+ - conversation: a conversation, by its id. Needed.
18
+
19
+ ## Result
20
+ - done: the conversation is back in the active list, where it was.
21
+ - refused: says why, and nothing changed.
@@ -0,0 +1,40 @@
1
+ ---
2
+ id: B-0001
3
+ name: Archive a conversation
4
+ status: firm
5
+ form: 1
6
+ applies-to: all
7
+ operations: [archive-conversation, unarchive-conversation, list-conversations]
8
+ replaced-by:
9
+ ---
10
+
11
+ ## Statement
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
+
14
+ ## Flow
15
+ 1. The person chooses to archive a conversation.
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
+
19
+ ## Appears when
20
+ The person may change the conversation.
21
+
22
+ ## Usable when
23
+ The conversation is not already archived. Otherwise it is refused with "Already archived."
24
+
25
+ ## Undo
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.
31
+
32
+ ## Examples
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.
34
+ - **Not allowed.** Given a conversation I may only read, then archiving isn't offered at all.
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.
38
+
39
+ ## Changes
40
+ - form 1: first version.
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: B-0002
3
+ name: Swipe to archive
4
+ status: firm
5
+ form: 1
6
+ applies-to: [phone]
7
+ operations: [archive-conversation]
8
+ replaced-by:
9
+ actions: none # a gesture; it runs archive-conversation, which B-0001 describes
10
+ ---
11
+
12
+ ## Statement
13
+ 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.
14
+
15
+ ## Examples
16
+ - **Full swipe.** When I swipe a row all the way left and let go, the conversation is archived and Undo is offered.
17
+ - **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.
18
+ - **Not allowed.** On a conversation I may only read, the row doesn't swipe.
19
+
20
+ ## Changes
21
+ - form 1: first version.
@@ -0,0 +1,19 @@
1
+ ---
2
+ id: B-0003
3
+ name: Archived looks dimmed
4
+ status: rough
5
+ form: 1
6
+ applies-to: screens
7
+ operations: []
8
+ replaced-by:
9
+ actions: none # a rule about appearance; nothing to ask for
10
+ ---
11
+
12
+ ## Statement
13
+ Wherever an archived conversation is shown (the archive, search results, a link from elsewhere), its row is dimmed and carries the word "Archived".
14
+
15
+ ## Examples
16
+ - **Search.** When a search finds an archived conversation, its row is dimmed and says "Archived".
17
+
18
+ ## Changes
19
+ - form 1: first version.
@@ -0,0 +1,18 @@
1
+ ---
2
+ id: B-0004
3
+ name: Rename a conversation
4
+ status: rough
5
+ form: 1
6
+ applies-to: all
7
+ operations: [set-conversation-title]
8
+ replaced-by:
9
+ ---
10
+
11
+ ## Statement
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
+
14
+ ## Examples
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
+
17
+ ## Changes
18
+ - form 1: first version.
@@ -0,0 +1,18 @@
1
+ ---
2
+ id: B-0005
3
+ name: The two lists
4
+ status: rough
5
+ form: 1
6
+ applies-to: all
7
+ operations: [list-conversations]
8
+ replaced-by:
9
+ ---
10
+
11
+ ## Statement
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
+
14
+ ## Examples
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
+
17
+ ## Changes
18
+ - form 1: first version.
@@ -0,0 +1,8 @@
1
+ # Coverage: desktop
2
+
3
+ | id | value | form | note |
4
+ |---|---|---|---|
5
+ | B-0001 | differs | 1 | Undo is offered for three seconds, not five. Being fixed. |
6
+ | B-0005 | honours | 1 | |
7
+ | show-conversations | honours | 1 | |
8
+ | archive-conversation | honours | 1 | |
@@ -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 | |
@@ -0,0 +1,12 @@
1
+ # Coverage: phone
2
+
3
+ | id | value | form | note |
4
+ |---|---|---|---|
5
+ | B-0001 | honours | 1 | |
6
+ | B-0002 | honours | 1 | |
7
+ | B-0004 | honours | 1 | |
8
+ | B-0005 | honours | 1 | |
9
+ | show-conversations | honours | 1 | |
10
+ | start-retitle | honours | 1 | |
11
+ | archive-conversation | honours | 1 | |
12
+ | unarchive-conversation | honours | 1 | |
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: archive-conversation
3
+ class: change
4
+ named-because: restricted-state
5
+ needs: may change the conversation
6
+ safe-to-repeat: yes
7
+ taken-back-by: unarchive-conversation
8
+ risk: changes
9
+ many-at-once: none
10
+ ---
11
+
12
+ ## Sentence
13
+ Archive {conversation}.
14
+
15
+ ## Holds only if
16
+ The conversation is not already archived.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: list-conversations
3
+ class: query
4
+ named-because:
5
+ needs: nothing
6
+ safe-to-repeat: yes
7
+ taken-back-by: nothing
8
+ risk: reads
9
+ many-at-once: none
10
+ ---
11
+
12
+ ## Sentence
13
+ List the conversations the caller has that are {active or archived}.
14
+
15
+ ## Holds only if
16
+ Always.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: set-conversation-title
3
+ class: change
4
+ named-because:
5
+ needs: may change the conversation
6
+ safe-to-repeat: yes
7
+ taken-back-by: itself
8
+ risk: changes
9
+ many-at-once: none
10
+ ---
11
+
12
+ ## Sentence
13
+ Set the title of {conversation} to {title}.
14
+
15
+ ## Holds only if
16
+ Always.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: unarchive-conversation
3
+ class: change
4
+ named-because: restricted-state
5
+ needs: may change the conversation
6
+ safe-to-repeat: yes
7
+ taken-back-by: archive-conversation
8
+ risk: changes
9
+ many-at-once: none
10
+ ---
11
+
12
+ ## Sentence
13
+ Return {conversation} from the archive.
14
+
15
+ ## Holds only if
16
+ The conversation is archived.
@@ -0,0 +1,19 @@
1
+ ---
2
+ operbe: 1
3
+ operations: operations
4
+ behaviors: behaviors
5
+ actions: actions
6
+ front-ends: [phone, desktop, mcp]
7
+ groups:
8
+ screens: [phone, desktop]
9
+ operations-offered-on: [api]
10
+ ---
11
+
12
+ ## Decisions
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.
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`.
18
+
19
+ ## Known deviations
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: archive-conversation
3
+ class: do
4
+ status: firm
5
+ form: 1
6
+ behaviors: [B-0001]
7
+ operations: [archive-conversation]
8
+ available-when: the conversation is not already archived and I may change it
9
+ applies-to: all
10
+ replaced-by:
11
+ ---
12
+
13
+ ## Sentence
14
+ Archive {conversation}.
15
+
16
+ ## Inputs
17
+ - conversation: a conversation, by its id. Needed.
18
+
19
+ ## Result
20
+ - done: the conversation has left the active list, and Undo is offered.
21
+ - started: offline; it is marked as waiting and completes when the connection returns.
22
+ - refused: says why, and nothing changed. If the server refuses after the list has changed, the conversation returns to it.