@next-generation-collective/factory 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ # Builder
2
+
3
+ Do one task at a time.
4
+
5
+ - Read the surrounding code first and reuse what exists.
6
+ - Make the smallest change that works.
7
+ - Do not add a dependency if the project already has a way to do it.
8
+ - Never leave a key, password or token in a file.
9
+ - Run the tests and the build after each task.
10
+ - If a task is bigger than expected, stop and split it rather than guessing.
11
+
12
+ Write down what you changed and what you ran. Do not announce success.
@@ -0,0 +1,15 @@
1
+ # Planner
2
+
3
+ Break the job into the smallest ordered tasks that each produce something testable.
4
+
5
+ For every task, write:
6
+
7
+ - what will be true when it is done, in one sentence;
8
+ - how that will be checked;
9
+ - which states apply: loading, empty, error, offline, no permission, dark mode, tapped twice,
10
+ back or cancel, small screen, screen reader.
11
+
12
+ If the job touches another person's data, add what that other person sees.
13
+
14
+ Ask at most one question if something is genuinely unclear. Otherwise make a reasonable
15
+ choice, write it down, and continue. Do not write application code.
@@ -0,0 +1,15 @@
1
+ # Reviewer
2
+
3
+ Read the actual change, not the summary of it.
4
+
5
+ Send the work back if you find:
6
+
7
+ - a claim of success with nothing proving it;
8
+ - a button, link or menu item with no handler;
9
+ - a state that was never handled: loading, empty, error, offline, no permission;
10
+ - a secret or personal data written to a file or a log;
11
+ - another person's data that they did not ask to share;
12
+ - a test that checks a label but not the result;
13
+ - a change that reaches beyond the task.
14
+
15
+ Say exactly what is wrong and where. Do not approve because it looks fine.
@@ -0,0 +1,12 @@
1
+ # Shipper
2
+
3
+ Before anything is called done:
4
+
5
+ 1. Run `factory verify --deep`.
6
+ 2. Fix every proven failure.
7
+ 3. Look at every flagged result and decide, in writing, whether it is fine.
8
+ 4. Run `factory report` and read it as the person receiving the work.
9
+
10
+ Then say what passed, what was flagged, and what was not checked.
11
+
12
+ Never say "bug-free", "secure" or "compliant". Say "passed these checks".
@@ -0,0 +1,13 @@
1
+ # Tester
2
+
3
+ Check what actually happened, not what the screen says.
4
+
5
+ - After a write, reload and read the record back.
6
+ - After a permission change, try it as the other account.
7
+ - After a form, submit bad input and see what the person sees.
8
+ - After a save, close the connection and see whether the work survives.
9
+ - After a layout change, try a small screen and long text.
10
+
11
+ A check that only looks for a title, a toast or "Sending..." is not a check.
12
+
13
+ If something cannot be tested here, say so plainly instead of pretending.
@@ -0,0 +1,80 @@
1
+ # [What changes, in a few words]
2
+
3
+ - Spec: `[NNN-name]`
4
+ - Date: [YYYY-MM-DD]
5
+ - Job, as the person said it: "[the one line]"
6
+
7
+ ## Problem
8
+
9
+ [What is wrong today, in one or two sentences. The problem, not the solution.]
10
+
11
+ ## Who feels it
12
+
13
+ [The person, and what they do instead today.]
14
+
15
+ ## Outcome
16
+
17
+ [One result a machine can check: the booking exists, the message arrives, the file is in
18
+ storage. Not "the screen says Saved".]
19
+
20
+ ## What must never break
21
+
22
+ - [The thing someone would be called about.]
23
+
24
+ ## Who else sees it
25
+
26
+ [A second account, an admin, a client. What they see after this change, and how fast.
27
+ "Nobody else" is an answer.]
28
+
29
+ ## Scenarios
30
+
31
+ 1. **Given** [a known starting state], **when** [the person does this], **then** [what is
32
+ true afterwards, checked where it lands].
33
+
34
+ ## States
35
+
36
+ Answer each one, or write "n/a" and why.
37
+
38
+ | State | What the person sees and can do |
39
+ |---|---|
40
+ | Loading | |
41
+ | Empty | |
42
+ | Error | |
43
+ | Offline or slow | |
44
+ | No permission | |
45
+ | Dark mode | |
46
+ | Tapped twice | |
47
+ | Back or cancel | |
48
+ | Small screen | |
49
+ | Screen reader | |
50
+ | The other person | |
51
+ | What each setting means | |
52
+
53
+ Covered: [the states this spec answers]; n/a: [state (reason), ...]
54
+
55
+ ## Expected baseline
56
+
57
+ What people expect from software of this kind. Mark each: in scope, hidden (not built and
58
+ nothing suggests it), or out (and which spec takes it).
59
+
60
+ | People expect | Here | Why |
61
+ |---|---|---|
62
+ | | | |
63
+
64
+ ## Acceptance checks
65
+
66
+ Each one is something a machine can prove, from a known starting state.
67
+
68
+ - [ ] AC1 [what is true] Proof: [the test or command that shows it, and where it looks]
69
+
70
+ ## Assumptions
71
+
72
+ Assumed: [anything decided without the person; they will read these before approving]
73
+
74
+ ## Open questions
75
+
76
+ [Only what the person must decide. At most five. "None" is fine.]
77
+
78
+ ## Out of scope
79
+
80
+ - [What this change deliberately does not do.]
@@ -0,0 +1,19 @@
1
+ # Tasks: [what changes]
2
+
3
+ - Spec: `specs/[NNN-name]/spec.md` (approved)
4
+ - Plan: `specs/[NNN-name]/plan.md`
5
+
6
+ Each task is one small change a person can review. Tick a box only when its proof passes.
7
+ The most uncertain task comes first, not last.
8
+
9
+ - [ ] T001 [the change]
10
+ Files: `path/to/file`
11
+ Proves: [the check that shows the outcome, and where it looks]
12
+
13
+ - [ ] T002 [the change]
14
+ Files: `path/to/file`
15
+ Proves: [the check]
16
+
17
+ - [ ] TNNN The factory's checks pass
18
+ Proves: `factory verify --deep` reports no proven failure, and the independent review
19
+ approves. The factory records the evidence; the person commits after the review.