operbe 0.0.0-stage → 1.0.0-rc.2

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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +106 -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/behaviors/B-0001.md +36 -0
  15. package/conformance/describe/example/project/behaviors/B-0002.md +21 -0
  16. package/conformance/describe/example/project/behaviors/B-0003.md +19 -0
  17. package/conformance/describe/example/project/behaviors/B-0004.md +18 -0
  18. package/conformance/describe/example/project/behaviors/B-0005.md +18 -0
  19. package/conformance/describe/example/project/behaviors/coverage/desktop.md +8 -0
  20. package/conformance/describe/example/project/behaviors/coverage/phone.md +12 -0
  21. package/conformance/describe/example/project/client-actions/archive-conversation.md +22 -0
  22. package/conformance/describe/example/project/client-actions/show-conversations.md +21 -0
  23. package/conformance/describe/example/project/client-actions/start-retitle.md +22 -0
  24. package/conformance/describe/example/project/client-actions/unarchive-conversation.md +21 -0
  25. package/conformance/describe/example/project/operations/archive-conversation.md +16 -0
  26. package/conformance/describe/example/project/operations/list-conversations.md +16 -0
  27. package/conformance/describe/example/project/operations/set-conversation-title.md +16 -0
  28. package/conformance/describe/example/project/operations/unarchive-conversation.md +16 -0
  29. package/conformance/describe/example/project/operbe.md +15 -0
  30. package/conformance/diff/core/a/behaviors/B-0001.md +36 -0
  31. package/conformance/diff/core/a/behaviors/B-0002.md +21 -0
  32. package/conformance/diff/core/a/behaviors/B-0003.md +19 -0
  33. package/conformance/diff/core/a/behaviors/B-0004.md +18 -0
  34. package/conformance/diff/core/a/behaviors/B-0005.md +18 -0
  35. package/conformance/diff/core/a/behaviors/coverage/desktop.md +8 -0
  36. package/conformance/diff/core/a/behaviors/coverage/phone.md +12 -0
  37. package/conformance/diff/core/a/client-actions/archive-conversation.md +22 -0
  38. package/conformance/diff/core/a/client-actions/show-conversations.md +21 -0
  39. package/conformance/diff/core/a/client-actions/start-retitle.md +22 -0
  40. package/conformance/diff/core/a/client-actions/unarchive-conversation.md +21 -0
  41. package/conformance/diff/core/a/operations/archive-conversation.md +16 -0
  42. package/conformance/diff/core/a/operations/list-conversations.md +16 -0
  43. package/conformance/diff/core/a/operations/set-conversation-title.md +16 -0
  44. package/conformance/diff/core/a/operations/unarchive-conversation.md +16 -0
  45. package/conformance/diff/core/a/operbe.md +15 -0
  46. package/conformance/diff/core/b/behaviors/B-0001.md +36 -0
  47. package/conformance/diff/core/b/behaviors/B-0002.md +22 -0
  48. package/conformance/diff/core/b/behaviors/B-0003.md +19 -0
  49. package/conformance/diff/core/b/behaviors/B-0004.md +18 -0
  50. package/conformance/diff/core/b/behaviors/B-0005.md +18 -0
  51. package/conformance/diff/core/b/behaviors/coverage/desktop.md +8 -0
  52. package/conformance/diff/core/b/behaviors/coverage/phone.md +12 -0
  53. package/conformance/diff/core/b/client-actions/archive-conversation.md +22 -0
  54. package/conformance/diff/core/b/client-actions/show-conversations.md +21 -0
  55. package/conformance/diff/core/b/client-actions/unarchive-conversation.md +21 -0
  56. package/conformance/diff/core/b/operations/archive-conversation.md +16 -0
  57. package/conformance/diff/core/b/operations/list-conversations.md +16 -0
  58. package/conformance/diff/core/b/operations/set-conversation-name.md +16 -0
  59. package/conformance/diff/core/b/operations/unarchive-conversation.md +16 -0
  60. package/conformance/diff/core/b/operbe.md +16 -0
  61. package/conformance/diff/core/changes.json +192 -0
  62. package/conformance/diff/declared/a/acme/architecture.md +18 -0
  63. package/conformance/diff/declared/a/behaviors/B-7.md +15 -0
  64. package/conformance/diff/declared/a/behaviors/coverage/web.md +8 -0
  65. package/conformance/diff/declared/a/operations/broken-file.md +1 -0
  66. package/conformance/diff/declared/a/operations/read-note.md +4 -0
  67. package/conformance/diff/declared/a/operations/send-note.md +20 -0
  68. package/conformance/diff/declared/a/operbe.md +15 -0
  69. package/conformance/diff/declared/b/acme/architecture.md +18 -0
  70. package/conformance/diff/declared/b/behaviors/B-7.md +15 -0
  71. package/conformance/diff/declared/b/behaviors/coverage/web.md +8 -0
  72. package/conformance/diff/declared/b/operations/broken-file.md +1 -0
  73. package/conformance/diff/declared/b/operations/read-note.md +5 -0
  74. package/conformance/diff/declared/b/operations/send-note.md +19 -0
  75. package/conformance/diff/declared/b/operbe.md +15 -0
  76. package/conformance/diff/declared/changes.json +73 -0
  77. package/conformance/diff/reworded/a/behaviors/B-0001.md +36 -0
  78. package/conformance/diff/reworded/a/behaviors/B-0002.md +21 -0
  79. package/conformance/diff/reworded/a/behaviors/B-0003.md +19 -0
  80. package/conformance/diff/reworded/a/behaviors/B-0004.md +18 -0
  81. package/conformance/diff/reworded/a/behaviors/B-0005.md +18 -0
  82. package/conformance/diff/reworded/a/behaviors/coverage/desktop.md +8 -0
  83. package/conformance/diff/reworded/a/behaviors/coverage/phone.md +12 -0
  84. package/conformance/diff/reworded/a/client-actions/archive-conversation.md +22 -0
  85. package/conformance/diff/reworded/a/client-actions/show-conversations.md +21 -0
  86. package/conformance/diff/reworded/a/client-actions/start-retitle.md +22 -0
  87. package/conformance/diff/reworded/a/client-actions/unarchive-conversation.md +21 -0
  88. package/conformance/diff/reworded/a/operations/archive-conversation.md +16 -0
  89. package/conformance/diff/reworded/a/operations/list-conversations.md +16 -0
  90. package/conformance/diff/reworded/a/operations/set-conversation-title.md +16 -0
  91. package/conformance/diff/reworded/a/operations/unarchive-conversation.md +16 -0
  92. package/conformance/diff/reworded/a/operbe.md +18 -0
  93. package/conformance/diff/reworded/b/behaviors/B-0001.md +36 -0
  94. package/conformance/diff/reworded/b/behaviors/B-0002.md +21 -0
  95. package/conformance/diff/reworded/b/behaviors/B-0003.md +19 -0
  96. package/conformance/diff/reworded/b/behaviors/B-0004.md +18 -0
  97. package/conformance/diff/reworded/b/behaviors/B-0005.md +18 -0
  98. package/conformance/diff/reworded/b/behaviors/coverage/desktop.md +8 -0
  99. package/conformance/diff/reworded/b/behaviors/coverage/phone.md +12 -0
  100. package/conformance/diff/reworded/b/client-actions/archive-conversation.md +22 -0
  101. package/conformance/diff/reworded/b/client-actions/show-conversations.md +21 -0
  102. package/conformance/diff/reworded/b/client-actions/start-retitle.md +22 -0
  103. package/conformance/diff/reworded/b/client-actions/unarchive-conversation.md +21 -0
  104. package/conformance/diff/reworded/b/operations/archive-conversation.md +16 -0
  105. package/conformance/diff/reworded/b/operations/list-conversations.md +16 -0
  106. package/conformance/diff/reworded/b/operations/set-conversation-title.md +16 -0
  107. package/conformance/diff/reworded/b/operations/unarchive-conversation.md +16 -0
  108. package/conformance/diff/reworded/b/operbe.md +18 -0
  109. package/conformance/diff/reworded/changes.json +43 -0
  110. package/dist/check.d.ts +21 -0
  111. package/dist/check.js +422 -0
  112. package/dist/cli.d.ts +2 -0
  113. package/dist/cli.js +272 -0
  114. package/dist/describe.d.ts +22 -0
  115. package/dist/describe.js +201 -0
  116. package/dist/diff.d.ts +13 -0
  117. package/dist/diff.js +249 -0
  118. package/dist/findings.d.ts +11 -0
  119. package/dist/findings.js +6 -0
  120. package/dist/index.d.ts +19 -0
  121. package/dist/index.js +11 -0
  122. package/dist/indexes.d.ts +2 -0
  123. package/dist/indexes.js +27 -0
  124. package/dist/jcs.d.ts +1 -0
  125. package/dist/jcs.js +16 -0
  126. package/dist/jj.d.ts +12 -0
  127. package/dist/jj.js +82 -0
  128. package/dist/read.d.ts +83 -0
  129. package/dist/read.js +249 -0
  130. package/dist/reconcile.d.ts +9 -0
  131. package/dist/reconcile.js +46 -0
  132. package/dist/source.d.ts +5 -0
  133. package/dist/source.js +29 -0
  134. package/dist/version.d.ts +1 -0
  135. package/dist/version.js +2 -0
  136. package/package.json +40 -4
  137. package/schema/description.schema.json +481 -0
  138. package/skills/operbe/SKILL.md +69 -0
  139. package/skills/operbe/example/behaviors/B-0001.md +36 -0
  140. package/skills/operbe/example/behaviors/B-0002.md +21 -0
  141. package/skills/operbe/example/behaviors/B-0003.md +19 -0
  142. package/skills/operbe/example/behaviors/B-0004.md +18 -0
  143. package/skills/operbe/example/behaviors/B-0005.md +18 -0
  144. package/skills/operbe/example/behaviors/coverage/desktop.md +8 -0
  145. package/skills/operbe/example/behaviors/coverage/phone.md +12 -0
  146. package/skills/operbe/example/client-actions/archive-conversation.md +22 -0
  147. package/skills/operbe/example/client-actions/show-conversations.md +21 -0
  148. package/skills/operbe/example/client-actions/start-retitle.md +22 -0
  149. package/skills/operbe/example/client-actions/unarchive-conversation.md +21 -0
  150. package/skills/operbe/example/operations/archive-conversation.md +16 -0
  151. package/skills/operbe/example/operations/list-conversations.md +16 -0
  152. package/skills/operbe/example/operations/set-conversation-title.md +16 -0
  153. package/skills/operbe/example/operations/unarchive-conversation.md +16 -0
  154. package/skills/operbe/example/operbe.md +15 -0
  155. package/skills/operbe/references/adopting.md +48 -0
  156. package/skills/operbe/references/behaviors.md +168 -0
  157. package/skills/operbe/references/client-actions.md +211 -0
  158. package/skills/operbe/references/formats.md +408 -0
  159. package/skills/operbe/references/operations.md +146 -0
  160. package/skills/operbe/references/tandem.md +69 -0
  161. package/skills/operbe/templates/behavior.md +18 -0
  162. package/skills/operbe/templates/client-action.md +20 -0
  163. package/skills/operbe/templates/coverage.md +4 -0
  164. package/skills/operbe/templates/operation.md +14 -0
  165. package/skills/operbe/templates/operbe.md +10 -0
@@ -0,0 +1,192 @@
1
+ [
2
+ {
3
+ "kind": "operation.field-changed",
4
+ "record": "archive-conversation",
5
+ "field": "risk",
6
+ "before": "changes",
7
+ "after": "destroys",
8
+ "level": "breaking",
9
+ "message": "changes -> destroys"
10
+ },
11
+ {
12
+ "kind": "operation.field-changed",
13
+ "record": "archive-conversation",
14
+ "field": "safe-to-repeat",
15
+ "before": "yes",
16
+ "after": "no",
17
+ "level": "breaking",
18
+ "message": "yes -> no"
19
+ },
20
+ {
21
+ "kind": "operation.field-changed",
22
+ "record": "list-conversations",
23
+ "field": "risk",
24
+ "before": "reads",
25
+ "after": "changes",
26
+ "level": "breaking",
27
+ "message": "reads -> changes"
28
+ },
29
+ {
30
+ "kind": "operation.effect-changed",
31
+ "record": "list-conversations",
32
+ "field": "effect",
33
+ "before": "reads",
34
+ "after": "changes",
35
+ "level": "breaking",
36
+ "message": "class query -> change: its effect was reads and is now changes"
37
+ },
38
+ {
39
+ "kind": "operation.added",
40
+ "record": "set-conversation-name",
41
+ "level": "info",
42
+ "message": "operation 'set-conversation-name' was added"
43
+ },
44
+ {
45
+ "kind": "operation.removed",
46
+ "record": "set-conversation-title",
47
+ "level": "breaking",
48
+ "message": "operation 'set-conversation-title' was removed"
49
+ },
50
+ {
51
+ "kind": "behavior.form-up",
52
+ "record": "B-0002",
53
+ "field": "form",
54
+ "before": 1,
55
+ "after": 2,
56
+ "level": "warning",
57
+ "message": "1 -> 2"
58
+ },
59
+ {
60
+ "kind": "behavior.section-changed",
61
+ "record": "B-0002",
62
+ "field": "section:Changes",
63
+ "before": "- form 1: first version.",
64
+ "after": "- form 2: the meaning changed.\n- form 1: first version.",
65
+ "level": "info",
66
+ "message": "section 'Changes' changed"
67
+ },
68
+ {
69
+ "kind": "behavior.section-changed",
70
+ "record": "B-0003",
71
+ "field": "section:Statement",
72
+ "before": "Wherever an archived conversation is shown (the archive, search results, a link from elsewhere), its row is dimmed and carries the word \"Archived\".",
73
+ "after": "Reworded. Wherever an archived conversation is shown (the archive, search results, a link from elsewhere), its row is dimmed and carries the word \"Archived\".",
74
+ "level": "info",
75
+ "message": "section 'Statement' changed"
76
+ },
77
+ {
78
+ "kind": "behavior.field-changed",
79
+ "record": "B-0004",
80
+ "field": "operations",
81
+ "before": [
82
+ "set-conversation-title"
83
+ ],
84
+ "after": [
85
+ "set-conversation-name"
86
+ ],
87
+ "level": "info",
88
+ "message": "[set-conversation-title] -> [set-conversation-name]"
89
+ },
90
+ {
91
+ "kind": "client-action.removed",
92
+ "record": "start-retitle",
93
+ "level": "breaking",
94
+ "message": "client-action 'start-retitle' was removed"
95
+ },
96
+ {
97
+ "kind": "coverage.worse",
98
+ "record": "B-0001",
99
+ "field": "desktop",
100
+ "before": {
101
+ "value": "differs",
102
+ "form": 1,
103
+ "note": "Undo is offered for three seconds, not five. Being fixed."
104
+ },
105
+ "after": {
106
+ "value": "not-here",
107
+ "note": "Dropped on desktop for now."
108
+ },
109
+ "level": "warning",
110
+ "message": "differs -> not-here"
111
+ },
112
+ {
113
+ "kind": "coverage.worse",
114
+ "record": "start-retitle",
115
+ "field": "phone",
116
+ "before": {
117
+ "value": "honours",
118
+ "form": 1
119
+ },
120
+ "level": "info",
121
+ "message": "honours -> no row"
122
+ },
123
+ {
124
+ "kind": "profile.deviation-added",
125
+ "record": "profile",
126
+ "field": "Known deviations",
127
+ "after": "Undo isn't offered on the command line yet.",
128
+ "level": "breaking",
129
+ "message": "a known deviation was added; the list may only shrink: Undo isn't offered on the command line yet."
130
+ },
131
+ {
132
+ "kind": "finding.appeared",
133
+ "record": "B-0002",
134
+ "field": "operbe/coverage-stale",
135
+ "after": {
136
+ "rule": "operbe/coverage-stale",
137
+ "level": "gap",
138
+ "file": "behaviors/coverage/phone.md",
139
+ "line": 6,
140
+ "record": "B-0002",
141
+ "message": "B-0002 was built against form 1; the record is now form 2"
142
+ },
143
+ "level": "info",
144
+ "message": "gap operbe/coverage-stale: B-0002 was built against form 1; the record is now form 2"
145
+ },
146
+ {
147
+ "kind": "finding.appeared",
148
+ "record": "start-retitle",
149
+ "field": "operbe/unknown-reference",
150
+ "after": {
151
+ "rule": "operbe/unknown-reference",
152
+ "level": "error",
153
+ "file": "behaviors/coverage/phone.md",
154
+ "line": 10,
155
+ "record": "start-retitle",
156
+ "message": "start-retitle is not a behavior or a client action"
157
+ },
158
+ "level": "warning",
159
+ "message": "error operbe/unknown-reference: start-retitle is not a behavior or a client action"
160
+ },
161
+ {
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'"
173
+ },
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'"
176
+ },
177
+ {
178
+ "kind": "finding.resolved",
179
+ "record": "B-0001",
180
+ "field": "operbe/coverage-differs",
181
+ "before": {
182
+ "rule": "operbe/coverage-differs",
183
+ "level": "gap",
184
+ "file": "behaviors/coverage/desktop.md",
185
+ "line": 5,
186
+ "record": "B-0001",
187
+ "message": "B-0001 differs (Undo is offered for three seconds, not five. Being fixed.)"
188
+ },
189
+ "level": "info",
190
+ "message": "gap operbe/coverage-differs: B-0001 differs (Undo is offered for three seconds, not five. Being fixed.)"
191
+ }
192
+ ]
@@ -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 @@
1
+ no header here
@@ -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
+ uis: [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,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 and more
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 | not-here | | not on web |
6
+ | B-7 | honours | 1 | |
7
+ | B-99 | honours | 1 | |
8
+ Total: 1
@@ -0,0 +1 @@
1
+ no header here
@@ -0,0 +1,5 @@
1
+ ---
2
+ name: read-note
3
+ class: query
4
+ acme.route: read-note
5
+ ---
@@ -0,0 +1,19 @@
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, c]
11
+ mystery: dropped
12
+ ---
13
+
14
+ ## Sentence
15
+
16
+ Send {note}.
17
+
18
+ ## Holds only if
19
+ Always.
@@ -0,0 +1,15 @@
1
+ ---
2
+ operbe: 1 # the version
3
+ operations: operations
4
+ behaviors: behaviors
5
+ uis: [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,73 @@
1
+ [
2
+ {
3
+ "kind": "operation.field-unclassified",
4
+ "record": "read-note",
5
+ "field": "acme.route",
6
+ "after": "read-note",
7
+ "level": "info",
8
+ "message": "added: nothing -> read-note (no diff rule covers it)"
9
+ },
10
+ {
11
+ "kind": "operation.field-changed",
12
+ "record": "send-note",
13
+ "field": "acme.door.gate",
14
+ "before": [
15
+ "a",
16
+ "b"
17
+ ],
18
+ "after": [
19
+ "a",
20
+ "c"
21
+ ],
22
+ "level": "warning",
23
+ "message": "changed: [a, b] -> [a, c]"
24
+ },
25
+ {
26
+ "kind": "operation.field-removed",
27
+ "record": "send-note",
28
+ "field": "acme.route",
29
+ "before": "send-note",
30
+ "level": "breaking",
31
+ "message": "removed: send-note -> nothing"
32
+ },
33
+ {
34
+ "kind": "behavior.field-changed",
35
+ "record": "B-7",
36
+ "field": "name",
37
+ "before": "Notes",
38
+ "after": "Notes and more",
39
+ "level": "info",
40
+ "message": "Notes -> Notes and more"
41
+ },
42
+ {
43
+ "kind": "coverage.worse",
44
+ "record": "B-7",
45
+ "field": "web",
46
+ "before": {
47
+ "value": "limited",
48
+ "form": 1,
49
+ "note": "slow"
50
+ },
51
+ "after": {
52
+ "value": "not-here",
53
+ "note": "not on web"
54
+ },
55
+ "level": "info",
56
+ "message": "limited -> not-here"
57
+ },
58
+ {
59
+ "kind": "finding.appeared",
60
+ "record": "send-note",
61
+ "field": "acme/field-missing",
62
+ "after": {
63
+ "rule": "acme/field-missing",
64
+ "level": "error",
65
+ "file": "operations/send-note.md",
66
+ "record": "send-note",
67
+ "field": "acme.route",
68
+ "message": "missing 'acme.route', which acme/architecture.md requires when class is [change, signal]"
69
+ },
70
+ "level": "warning",
71
+ "message": "error acme/field-missing: missing 'acme.route', which acme/architecture.md requires when class is [change, signal]"
72
+ }
73
+ ]
@@ -0,0 +1,36 @@
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 list at once, and for a few seconds the product offers Undo.
13
+
14
+ ## Flow
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.
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 shown but can't be used, with "Already archived."
24
+
25
+ ## Undo
26
+ Returns the conversation to the active list, where it was.
27
+
28
+ ## 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.
30
+ - **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.
34
+
35
+ ## Changes
36
+ - 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
+ client-actions: none # a gesture; it runs the same action as B-0001
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: all
7
+ operations: []
8
+ replaced-by:
9
+ client-actions: none # a rule about appearance; nothing to call
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
+ 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.
13
+
14
+ ## Examples
15
+ - **Usual.** When I change "Trip" to "Trip to Leeds" and save, the list shows the new title.
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 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.
13
+
14
+ ## Examples
15
+ - **Usual.** When I choose the archive, the list shows archived conversations and is 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,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,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.