fito-tui 0.4.0 → 0.6.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.
Files changed (67) hide show
  1. package/agents/fito-case-source-planner.md +42 -13
  2. package/agents/fito-performance-reviewer.md +19 -8
  3. package/agents/fito-tutor.md +2 -1
  4. package/extensions/fito-fetch-tools.js +63 -7
  5. package/extensions/fito-fetch-tools.ts +70 -7
  6. package/extensions/fito-startup.js +32 -5
  7. package/extensions/fito-startup.ts +44 -8
  8. package/package.json +3 -3
  9. package/prompts/fito-auth-refresh.md +1 -1
  10. package/prompts/fito-case-design.md +71 -16
  11. package/prompts/fito-case-edit.md +2 -2
  12. package/prompts/fito-case-generate.md +30 -11
  13. package/prompts/fito-case-open.md +20 -12
  14. package/prompts/fito-case-plan-source.md +13 -6
  15. package/prompts/fito-create-or-update-competence.md +2 -2
  16. package/prompts/fito-create-or-update-technology.md +5 -5
  17. package/prompts/fito-delete-competence.md +2 -2
  18. package/prompts/fito-evaluate.md +30 -22
  19. package/prompts/fito-generate-domain-concepts.md +1 -1
  20. package/prompts/fito-generate-execution-facts.md +1 -1
  21. package/prompts/fito-generate-usage-scenarios.md +1 -1
  22. package/prompts/fito-login.md +3 -3
  23. package/prompts/fito-logout.md +1 -1
  24. package/prompts/fito-publish-case.md +3 -3
  25. package/prompts/fito-push-knowledge.md +1 -1
  26. package/prompts/fito-submit.md +55 -36
  27. package/shared/case-briefing/briefing.js +1 -0
  28. package/shared/case-briefing/briefing.ts +1 -0
  29. package/skills/fito-auth/SKILL.md +8 -7
  30. package/skills/fito-auth/browser.js +3 -2
  31. package/skills/fito-auth/browser.ts +3 -2
  32. package/skills/fito-auth/login.js +22 -6
  33. package/skills/fito-auth/login.ts +23 -6
  34. package/skills/fito-case-author/SKILL.md +12 -10
  35. package/skills/fito-case-author/checkout.js +22 -5
  36. package/skills/fito-case-author/checkout.ts +22 -5
  37. package/skills/fito-case-author/github-publish.js +29 -2
  38. package/skills/fito-case-author/github-publish.ts +30 -2
  39. package/skills/fito-case-author/publish.js +36 -3
  40. package/skills/fito-case-author/publish.ts +46 -2
  41. package/skills/fito-case-runner/SKILL.md +24 -7
  42. package/skills/fito-case-runner/github.js +20 -2
  43. package/skills/fito-case-runner/github.ts +21 -2
  44. package/skills/fito-case-runner/open.js +3 -3
  45. package/skills/fito-case-runner/open.ts +3 -3
  46. package/skills/fito-case-runner/runner.js +12 -1
  47. package/skills/fito-case-runner/runner.ts +15 -0
  48. package/skills/fito-case-runner/submit.js +1 -1
  49. package/skills/fito-case-runner/submit.ts +1 -1
  50. package/skills/fito-case-runner/temp-file.js +16 -0
  51. package/skills/fito-case-runner/temp-file.ts +17 -0
  52. package/skills/fito-competence-write/SKILL.md +3 -3
  53. package/skills/fito-competence-write/delete.js +1 -1
  54. package/skills/fito-competence-write/delete.ts +1 -1
  55. package/skills/fito-evaluator/SKILL.md +7 -6
  56. package/skills/fito-evaluator/criterion-exec.js +113 -17
  57. package/skills/fito-evaluator/criterion-exec.ts +110 -18
  58. package/skills/fito-evaluator/evaluate-automated.js +7 -3
  59. package/skills/fito-evaluator/evaluate-automated.ts +7 -3
  60. package/skills/fito-knowledge-push/SKILL.md +1 -1
  61. package/skills/fito-knowledge-push/push.js +8 -8
  62. package/skills/fito-knowledge-push/push.ts +8 -8
  63. package/skills/fito-source-ingestion/SKILL.md +4 -4
  64. package/skills/fito-technology-write/SKILL.md +2 -2
  65. package/skills/fito-technology-write/create.js +2 -2
  66. package/skills/fito-technology-write/create.ts +2 -2
  67. package/skills/fito-url-content-fetcher/SKILL.md +53 -16
@@ -123,15 +123,30 @@ place a defect can be introduced with a test that will catch it; an
123
123
  `implementation` case needs a coherent gap to fill. Say which area of the
124
124
  project the case would live in.
125
125
 
126
- Also settle the **toolchain** — the build tools and their major lines the case
127
- project is built against (e.g. Gradle 9, Kotlin 2, Javalin 7). On **reuse**,
128
- read it from the build/manifest files the step-2 skim covered and confirm it
129
- with the author; on **greenfield**, ask the author for their intended build
130
- tooling. Record **major lines only** — never a patch pin (`9`, not `9.5.1`);
131
- the scaffold resolves an actual release satisfying each declared major at build
132
- time. The toolchain (what the source builds against) is a separate axis from
133
- the `--technology` versions (what the case teaches): they overlap but are not
134
- the same declaration.
126
+ Also settle the **toolchain** — the tools and their major lines the case
127
+ project is built against (e.g. JDK 21, Gradle 9, Kotlin 2, Javalin 7). On
128
+ **reuse**, read it from the build/manifest files the step-2 skim covered and
129
+ confirm it with the author; on **greenfield**, ask the author for their intended
130
+ build tooling. Record **major lines only** — never a patch pin (`9`, not
131
+ `9.5.1`). The toolchain (what the source builds against) is a separate axis
132
+ from the `--technology` versions (what the case teaches): they overlap but are
133
+ not the same declaration.
134
+
135
+ Each entry also says **who provides** the tool, in `provided_by`:
136
+
137
+ - `learner` — the learner installs it before the first build, so its version is
138
+ a **minimum**: that line or newer. The build accepts any newer install, and
139
+ the learner reads the entry in the case's setup instructions.
140
+ - `project` — the build fetches it itself, through a wrapper or a lockfile, so
141
+ the learner never installs it, and the build can pin an actual release of
142
+ the declared line.
143
+
144
+ A JVM project: the learner installs the JDK, and the Gradle wrapper fetches
145
+ Gradle, the Kotlin plugin and the libraries. A Node project: the learner
146
+ installs Node.js, and npm fetches the packages its lockfile pins. When no entry
147
+ is `learner`, add a line to **Open questions** — a case project usually runs on
148
+ a runtime or a compiler the learner installs, so ask the author to confirm that
149
+ this one needs none — and present the proposal as usual.
135
150
 
136
151
  Once the toolchain is settled, **cross-check it against what the vocabulary
137
152
  knows**. For each declared `--technology <slug>@<version>`, read the declared
@@ -146,9 +161,10 @@ exist; this cross-check is about their **prose**, so it is **best-effort** and
146
161
  `description` yields nothing to check, and the cross-check **never blocks** the
147
162
  flow — it informs the author, nothing more.
148
163
 
149
- **Done when** scope, type, duration estimate, and toolchain are stated and
150
- consistent with what the source (if any) actually contains, and each declared
151
- technology's version prose has been cross-checked against the toolchain.
164
+ **Done when** scope, type, duration estimate, and toolchain — each entry naming
165
+ who provides it — are stated and consistent with what the source (if any)
166
+ actually contains, and each declared technology's version prose has been
167
+ cross-checked against the toolchain.
152
168
 
153
169
  ## 4. Ground the required components
154
170
 
@@ -262,13 +278,19 @@ tags: [<lowercase tags>]
262
278
  technologies: # one {slug, version} pair per declared technology (from --technology <slug>@<version>)
263
279
  - slug: javalin
264
280
  version: "7"
265
- toolchain: # build tools + their major lines the source builds against — major lines only, no patch pins
281
+ toolchain: # tools + their major lines the source builds against — major lines only, no patch pins
282
+ - tool: jdk
283
+ version: "21"
284
+ provided_by: learner # the learner installs it: the version is a minimum — that line or newer
266
285
  - tool: gradle
267
286
  version: "9"
287
+ provided_by: project # the build fetches it itself (a wrapper, a lockfile)
268
288
  - tool: kotlin
269
289
  version: "2"
290
+ provided_by: project
270
291
  - tool: javalin
271
292
  version: "7"
293
+ provided_by: project
272
294
  ```
273
295
 
274
296
  ## Learning objectives
@@ -356,15 +378,18 @@ Rules the proposal must satisfy:
356
378
  levels (scores 0–3).
357
379
  - `automated` evaluation commands are commands the project actually runs (the
358
380
  step-2 gate commands) — never guessed.
359
- - The `toolchain` block names the build tools and their **major lines only**
360
- (`9`, not `9.5.1`); the scaffold resolves an actual release satisfying each
361
- declared major at build time.
381
+ - The `toolchain` block names the tools and their **major lines only** (`9`,
382
+ not `9.5.1`), and every entry names who provides it: a `learner` entry's
383
+ version is a minimum — that line or newer — and a `project` entry is one the
384
+ build fetches itself.
362
385
  - Every quiz question references at least one live component.
363
386
  - Every rubric criterion and every quiz question is checked against the **Learning
364
387
  objectives** block — the comparison below says what to do with a miss.
365
388
  - Every rubric criterion's rungs are written at its declared `bloom_level` and
366
389
  checked against it — the two sections on rungs below say how, and what to do
367
390
  with a miss.
391
+ - Every rung of every `automated` criterion is one its command's exit code and
392
+ output can decide — the comparison below says what to do with a miss.
368
393
  - Every `description` names the **topic**, never the **move** — the rule below.
369
394
 
370
395
  ## Every criterion and question names a learning objective
@@ -467,6 +492,36 @@ anything. Its entry in **Open questions**:
467
492
  - `root-cause-diagnosis` declares `APPLICATION`, but `achieved` and `exemplary` ask the
468
493
  learner to explain the fault: they assess `COMPREHENSION`.
469
494
 
495
+ ## Every `automated` rung is decided by its command's output
496
+
497
+ An `automated` criterion is scored from its command's exit code and output alone: the
498
+ reviewer never reads the learner's code for one, and awards the highest rung the output
499
+ proves. So a rung the output cannot show is a rung no learner can earn — and at `achieved`,
500
+ correct work goes unawarded.
501
+
502
+ **Run this comparison before you present the proposal.** It covers every rung of every
503
+ `automated` criterion:
504
+
505
+ 1. For each rung, ask: can the command's exit code and output decide this rung?
506
+ 2. Every rung that cannot goes in **Open questions**: name the criterion, the rung, and what
507
+ the output cannot show, with the two repairs — rewrite the rung as an outcome the command
508
+ shows, or move that judgement to an `ai` criterion.
509
+
510
+ **Report every miss and present the proposal.** Keep the rung as drafted: either repair
511
+ changes what the case assesses, so it is the author's call.
512
+
513
+ An output shows an exit code and what the command prints — which tests failed, a linter's
514
+ findings. A passing run proves its passing condition, and nothing the command does not print:
515
+ a named call in the code, a change kept local, which test covers a behavior, an explanation
516
+ the learner wrote. Judge each command by what it prints: a runner that lists every test by
517
+ name does show which tests ran. A shape this catches, from a real rubric: `health-route` runs
518
+ `./gradlew test`, and its `exemplary` rung reads *"a focused passing test covers its behavior
519
+ and the existing users-route tests still pass"*. Its entry in **Open questions**:
520
+
521
+ - `health-route`, `exemplary`: when every test passes, `./gradlew test` prints no test names,
522
+ so its output cannot show that a focused test covers the route. Rewrite the rung as an
523
+ outcome the command shows, or move that judgement to an `ai` criterion.
524
+
470
525
  ## Descriptions name the topic, never the move
471
526
 
472
527
  Every description written here travels: `/fito-case-generate` copies the
@@ -25,7 +25,7 @@ Parse `$ARGUMENTS`:
25
25
  Run:
26
26
 
27
27
  ```bash
28
- node <fito-case-author skill dir>/checkout.js <case-id>
28
+ node "<fito-case-author skill dir>/checkout.js" <case-id>
29
29
  ```
30
30
 
31
31
  (append `--dir <target>` only when the author chose a location). This
@@ -50,7 +50,7 @@ unpublished draft.
50
50
  call, never yours.
51
51
  - **`⚠` structural warning** — the cloned `.case/` tree doesn't read
52
52
  cleanly. Relay it and route the fix through the validator
53
- (`node validate.js <dir>`) before any editing.
53
+ (`node "validate.js" "<dir>"`) before any editing.
54
54
 
55
55
  **Done when** it prints `Authoring checkout at:` with the path and
56
56
  branch 'main' — or a refusal was relayed verbatim and you stopped.
@@ -76,7 +76,14 @@ unless marked optional:
76
76
  `exemplary` met well. They never climb from one Bloom level to the next.
77
77
  `achieved` defines the award — a score of 2 or 3 records the criterion's
78
78
  `bloom_level`, and 0 or 1 records `NOT_ACHIEVED` — so expand it with the
79
- most care. Weights must sum to exactly 100; each `evaluation_method`
79
+ most care. Expand an `automated` criterion's rungs only into outcomes its
80
+ command's exit code and output show: the reviewer scores it from that output
81
+ alone, so detail the command does not print — a named call in the code, which
82
+ test covers a behavior, an explanation — makes a rung no learner can earn.
83
+ When a sketch already asks for such detail, raise it with the author, with
84
+ the two repairs: rewrite the rung as an outcome the command shows, or move
85
+ that judgement to an `ai` criterion.
86
+ Weights must sum to exactly 100; each `evaluation_method`
80
87
  completed — `automated` needs `command` + `passing_condition` (real gate
81
88
  commands from the proposal, never guessed), `ai` needs a `prompt_hint`. On
82
89
  greenfield, where no source tree exists yet, derive the `automated` command
@@ -101,6 +108,15 @@ unless marked optional:
101
108
  (`failing_tests`, `known_errors`, `build_status`, …); it carries no `branch`
102
109
  field — `.case/` describes the case on every ref, so a branch value can
103
110
  never be branch-correct (SPEC deviation #5).
111
+ - `starter_state/setup_instructions.md` (optional) — what the learner installs
112
+ before the first build, which they read when the case opens. Write it from
113
+ the proposal's `toolchain` entries with `provided_by: learner`: each tool,
114
+ its minimum line, and "or newer" (e.g. "JDK 21 or newer"). Write it exactly
115
+ when the toolchain has a `learner` entry: the build fetches every `project`
116
+ tool itself, so a toolchain of `project` entries alone leaves the learner
117
+ nothing to install. An entry that does not name who provides it — from a
118
+ proposal written before the field existed — is settled with the author
119
+ first.
104
120
  - `solution/notes.md` — the evaluator-only rationale: the intended approach
105
121
  and what each rubric criterion should see; refined again after the source
106
122
  work. `solution/notes-template.md` — the blank authoring scaffold of the
@@ -150,11 +166,12 @@ Four rules bind the content:
150
166
  Then present the contract for the author's review — a **digest**, not a file
151
167
  dump: type and duration, the learning objectives and prerequisites (ids + Bloom
152
168
  levels), each rubric criterion with its weight and evaluation method, the
153
- situation documents, whether a quiz rides along, and the **optional fields the
154
- contract leaves empty**. Run step 5's validator command now and read that last
155
- item from its `optionalFieldsNotUsed`, rather than judging emptiness by eye —
156
- an optional field is the one thing the validator can never reject, so it stays
157
- invisible unless the run reports it. **A failing run reports no inventory at
169
+ situation documents, whether a quiz rides along, the tools
170
+ `setup_instructions.md` names (or that the case has none), and the **optional
171
+ fields the contract leaves empty**. Run step 5's validator command now and read
172
+ that last item from its `optionalFieldsNotUsed`, rather than judging emptiness
173
+ by eye — an optional field is the one thing the validator can never reject, so
174
+ it stays invisible unless the run reports it. **A failing run reports no inventory at
158
175
  all**: apply step 5's failure loop here until the tree passes, so the digest
159
176
  describes a valid contract and step 4 never commits a broken tree. Each unused
160
177
  field is legal and often right; naming them here is what lets the author fill
@@ -162,10 +179,12 @@ one, or leave it, while the tree is still uncommitted. Walk through any file
162
179
  the author asks to see, and iterate on their feedback **before anything is
163
180
  committed** — the author owns every value in the contract.
164
181
 
165
- **Done when** every file above exists in `.case/` (plus `quiz.yaml` exactly
166
- when the proposal has quiz items), the four rules hold, the validator exits 0
167
- on the tree, and the author has reviewed the digest — unused optional fields
168
- included — and confirmed the contract.
182
+ **Done when** every required file above exists in `.case/` (plus `quiz.yaml`
183
+ exactly when the proposal has quiz items, and
184
+ `starter_state/setup_instructions.md` exactly when its toolchain has a
185
+ `learner` entry), the four rules hold, the validator exits 0 on the tree, and
186
+ the author has reviewed the digest — unused optional fields included — and
187
+ confirmed the contract.
169
188
 
170
189
  ## 4. Put the working directory on git
171
190
 
@@ -182,7 +201,7 @@ commit — note it and continue).
182
201
  Use the `fito-case-author` skill (read its `SKILL.md`), then run:
183
202
 
184
203
  ```bash
185
- node <fito-case-author skill dir>/validate.js <working-dir>
204
+ node "<fito-case-author skill dir>/validate.js" "<working-dir>"
186
205
  ```
187
206
 
188
207
  - **Failure (exit 1)** — relay the errors **verbatim**, grouped by file —
@@ -13,7 +13,7 @@ the `<id>` from its `/cases/<id>` URL — and don't run anything until you have
13
13
  Use the `fito-case-runner` skill (read its `SKILL.md`), then run:
14
14
 
15
15
  ```bash
16
- node <fito-case-runner skill dir>/open.js $1
16
+ node "<fito-case-runner skill dir>/open.js" $1
17
17
  ```
18
18
 
19
19
  This forks the case repo to the learner's GitHub account, clones it into
@@ -25,9 +25,12 @@ re-validates** the `.case/` checkout, and creates the working branch.
25
25
  - If it prints a "case source malformed" report (structural errors and **no**
26
26
  branch created), **stop here — do not orient.** Show the errors and the report
27
27
  affordance; suggest re-running `/fito-case-open $1` later or reporting the case.
28
- - It refuses to overwrite a non-empty existing checkout. If the learner has
29
- already opened this case, that is fine — point them at the existing
30
- `~/.fito/cases/$1/` and `/fito-submit $1`, and skip to step 2.
28
+ - It refuses to overwrite a non-empty existing checkout. This refusal is the
29
+ one non-zero exit that leads on to the briefing: ask the learner whether
30
+ that folder is their earlier opening of this case. If yes, point them at the
31
+ existing checkout, whose path the refusal prints, and `/fito-submit $1`, and
32
+ go on to step 2 with it. If no, relay the refusal and stop — the folder is
33
+ theirs to move or remove.
31
34
  - If it refuses because the case is **deprecated**, relay its message verbatim
32
35
  and stop — do not orient, and never work around the refusal with raw git
33
36
  commands.
@@ -45,12 +48,14 @@ re-validates** the `.case/` checkout, and creates the working branch.
45
48
  `gh auth login` with the Fito-linked GitHub account, then retry.
46
49
 
47
50
  **Done when** it prints `Case opened at:` with the checkout path and `on branch
48
- '<name>'` (or you confirmed an already-open checkout). On any non-zero exit, stop
49
- here — do not orient.
51
+ '<name>'` (or the learner confirmed that the folder the refusal names is their
52
+ earlier opening of this case). On any other non-zero exit, stop here — do not
53
+ orient. Below, `<checkout>` is that path — the one after `Case opened at:`, or
54
+ the one the already-open refusal names — used exactly as printed.
50
55
 
51
56
  ## 2. Brief the learner on the case
52
57
 
53
- Read the case from `~/.fito/cases/$1/.case/` and orient the learner. **Never read
58
+ Read the case from `<checkout>/.case/` and orient the learner. **Never read
54
59
  or reveal anything under `.case/solution/`** — those are evaluator-only rationale
55
60
  notes; surfacing them would defeat the case. Read only the files named below.
56
61
 
@@ -64,11 +69,14 @@ Present, in this order:
64
69
  learner reads it in context — a `ticket`, an `email`, a `log_output`, a
65
70
  `chat_thread`, a `pull_request_description`, or plain `prose`. Do not reorder
66
71
  or skip any.
67
- 3. **Task** — `.case/task/objective.md` (the single goal). Then, **if the file is
72
+ 3. **Setup** — if the file is present, `.case/starter_state/setup_instructions.md`:
73
+ the tools the learner installs before the first build, each at its minimum
74
+ line. It comes before the task, so the learner can install them first.
75
+ 4. **Task** — `.case/task/objective.md` (the single goal). Then, **if the file is
68
76
  present**, `.case/task/constraints.md` (rules the learner must follow) and, for
69
77
  `tutorial` cases, `.case/task/steps.md`. Then summarize
70
78
  `.case/task/deliverables.yaml` — the expected outputs.
71
- 4. **Artifacts** — point the learner at `.case/artifacts.yaml`, the annotated map
79
+ 5. **Artifacts** — point the learner at `.case/artifacts.yaml`, the annotated map
72
80
  of relevant repo files (evidence / target / reference / scaffold). Call out the
73
81
  `target` files they will most likely change.
74
82
 
@@ -76,8 +84,8 @@ Keep the briefing calm and precise — a knowledgeable peer handing off a case,
76
84
  a pitch.
77
85
 
78
86
  **Done when** every situation document has been rendered in order and the header,
79
- task (objective + any constraints/steps + deliverables), and key artifacts are
80
- all surfaced.
87
+ the setup instructions (when the case has them), task (objective + any
88
+ constraints/steps + deliverables), and key artifacts are all surfaced.
81
89
 
82
90
  ## 3. Ground the case in the knowledge vocabulary
83
91
 
@@ -96,7 +104,7 @@ two-group summary is presented.
96
104
 
97
105
  ## 4. Hand off
98
106
 
99
- Tell the learner where their working tree is (`~/.fito/cases/$1/`) and which
107
+ Tell the learner where their working tree is (`<checkout>`) and which
100
108
  branch they are on, that they make and commit their changes there, and that when
101
109
  they are ready they submit with:
102
110
 
@@ -40,7 +40,10 @@ case directory, else `./case-proposal.md` — where `/fito-case-design` writes
40
40
  it by default. Name the file you found when you confirm the scenario. If
41
41
  `--proposal` names a missing file, or neither default exists, ask the author
42
42
  for the proposal's path; an author without one gives each technology's
43
- declared major-line version and the toolchain instead.
43
+ declared major-line version and the toolchain instead. Every toolchain entry
44
+ names who provides it — `learner` or `project` — and the author settles any
45
+ entry that does not, such as one from a proposal written before the field
46
+ existed.
44
47
 
45
48
  If the documents already exist under `.authoring/`, this is a revision run:
46
49
  say so and ask what should change — the feedback rides along in step 2; never
@@ -58,9 +61,11 @@ scenario, the declared `{slug, version}` technology pairs and the
58
61
  in its place), and (on a revision run) the author's feedback. The pairs
59
62
  **version-scope** the planner's knowledge fetches (each component reads
60
63
  for the case's declared major line, not another); the toolchain grounds a
61
- greenfield scaffold. The planner reads the `.case/` contract — the rubric
62
- gates, `starter_state/known_state.yaml`, task, situation, `solution.yaml` —
63
- skims the source on reuse, and writes the two documents into `.authoring/`.
64
+ greenfield scaffold, and its `learner` entries — the tools the learner
65
+ installs — are the ones the build must accept at their line or newer. The
66
+ planner reads the `.case/` contract — the rubric gates,
67
+ `starter_state/known_state.yaml`, task, situation, `solution.yaml` — skims
68
+ the source on reuse, and writes the two documents into `.authoring/`.
64
69
 
65
70
  This delegation blocks — you read the child's summary from the tool result.
66
71
 
@@ -75,8 +80,10 @@ hand.
75
80
  ## 3. Review with the author
76
81
 
77
82
  Relay the worker's **digest** — scenario, both terminal states, plan-step
78
- count, gates covered, any contract conflict it surfaced, and its **toolchain
79
- cross-check** section — not a file dump. Any mismatch there is **advisory** (a
83
+ count, gates covered, the `learner` tools with their minimum lines, any plan
84
+ step that lifts a limit on one and any it flagged as a gap, any contract
85
+ conflict it surfaced, and its **toolchain cross-check** section — not a file
86
+ dump. Any mismatch there is **advisory** (a
80
87
  declared toolchain contradicting a technology version's stated requirements,
81
88
  e.g. Javalin 7 wanting Java 17+ against a Java 11 toolchain): surface it for
82
89
  the author to reconcile the declaration — it is **not** a contract conflict, so
@@ -187,7 +187,7 @@ Drive the `fito-competence-write` skill (read its `SKILL.md`).
187
187
  **On a create run:**
188
188
 
189
189
  ```bash
190
- node <fito-competence-write skill dir>/create.js <payload-file>
190
+ node "<fito-competence-write skill dir>/create.js" "<payload-file>"
191
191
  ```
192
192
 
193
193
  It prints the competence's name and its **id**. Show the author that id — an edit or a delete
@@ -202,7 +202,7 @@ one is absent.
202
202
  **On an edit run**, take only the axes the author confirmed changing:
203
203
 
204
204
  ```bash
205
- node <fito-competence-write skill dir>/update.js <competence-id> <payload-file> [--name] [--description]
205
+ node "<fito-competence-write skill dir>/update.js" <competence-id> "<payload-file>" [--name] [--description]
206
206
  ```
207
207
 
208
208
  `--name` writes the name, `--description` the description. Pass both when both changed; both go
@@ -131,7 +131,7 @@ the axes the author confirmed changing — an axis they left alone is another au
131
131
  **On an update run** (step 3 found both), write straight to the update path:
132
132
 
133
133
  ```bash
134
- node <fito-technology-write skill dir>/update.js <payload-file> [--overview] [--version-prose]
134
+ node "<fito-technology-write skill dir>/update.js" "<payload-file>" [--overview] [--version-prose]
135
135
  ```
136
136
 
137
137
  `--overview` writes the version-agnostic overview, `--version-prose` the declared major line's. Pass
@@ -141,17 +141,17 @@ vocabulary already carries what they confirmed and write nothing.
141
141
  **On a create run**, create first:
142
142
 
143
143
  ```bash
144
- node <fito-technology-write skill dir>/create.js <payload-file>
144
+ node "<fito-technology-write skill dir>/create.js" "<payload-file>"
145
145
  ```
146
146
 
147
147
  Read the outcome it reports, because it decides whether a description still needs writing:
148
148
 
149
149
  - **`created`** — the technology was new; both descriptions are stored. Done.
150
150
  - **`version-added`** — the major line was added with its prose, but the technology already existed,
151
- so the submitted overview was **not** stored. Run the `node update.js … --overview` the success
151
+ so the submitted overview was **not** stored. Run the `node "update.js" … --overview` the success
152
152
  line names, when the author confirmed an overview that improves on the one step 3 read back.
153
153
  - **`reused`** — the technology and the major line both already existed, so the create was a
154
- **no-op** and neither description was stored. Run the `node update.js …` the success line names,
154
+ **no-op** and neither description was stored. Run the `node "update.js" …` the success line names,
155
155
  for the axes the author confirmed.
156
156
 
157
157
  If the outcome **contradicts** what step 3 found — a `reused` after a 404, or a `version-added`
@@ -175,7 +175,7 @@ auto-resolved** on the author's behalf, and **the choice is the author's — nev
175
175
  - **reuse** — the match *is* this technology: re-run this command declaring the matched slug, which
176
176
  makes the run an update of that technology's descriptions. Preferred.
177
177
  - **re-declare** — the match only resembles it: re-run with a distinct `--technology` slug.
178
- - **override** — `node create.js <payload-file> --override`. Before running it, restate the
178
+ - **override** — `node "create.js" "<payload-file>" --override`. Before running it, restate the
179
179
  consequence: an independent technology is created and will **coexist** with every match in the
180
180
  vocabulary, and every component pushed against either slug lands on a different row. Run it only
181
181
  after the author explicitly accepts that.
@@ -61,7 +61,7 @@ when it arrives, then re-run this command.
61
61
  Run the script with **no flag**. This run is the read:
62
62
 
63
63
  ```bash
64
- node <fito-competence-write skill dir>/delete.js <competence-id>
64
+ node "<fito-competence-write skill dir>/delete.js" <competence-id>
65
65
  ```
66
66
 
67
67
  It prints one block: the competence by name and id, **every sub-competence** beneath it by name and
@@ -111,7 +111,7 @@ Drive the `fito-competence-write` skill (read its `SKILL.md`). Run this **only a
111
111
  yes** in step 3:
112
112
 
113
113
  ```bash
114
- node <fito-competence-write skill dir>/delete.js <competence-id> --confirm
114
+ node "<fito-competence-write skill dir>/delete.js" <competence-id> --confirm
115
115
  ```
116
116
 
117
117
  It prints the same block once more, then deletes the subtree and prints its success line — both on
@@ -18,20 +18,22 @@ Submitting for real (which also records the evaluation) is `/fito-submit`.
18
18
  Use the `fito-evaluator` skill (read its `SKILL.md`), then run:
19
19
 
20
20
  ```bash
21
- node <fito-evaluator skill dir>/evaluate-automated.js $1
21
+ node "<fito-evaluator skill dir>/evaluate-automated.js" $1
22
22
  ```
23
23
 
24
- Stream the output. In `~/.fito/cases/$1/` it runs the automated criteria's commands
25
- and the hybrid criteria's gate commands, and prints one **evaluation report**: the
26
- automated evidence, the `ai` criteria + their prompt hints, the `hybrid` gate
27
- evidence, and any `human` criteria under **Needs human review**.
24
+ Stream the output. In the case's checkout it runs the automated criteria's commands
25
+ and the hybrid criteria's gate commands, and prints one **evaluation report**. Its
26
+ first line, `Case checkout: <path>`, is the checkout's absolute path: every later
27
+ step uses that path, exactly as printed. Then come the automated evidence, the `ai`
28
+ criteria + their prompt hints, the `hybrid` gate evidence, and any `human` criteria
29
+ under **Needs human review**.
28
30
 
29
31
  - If it reports **no open case** at `~/.fito/cases/$1/`, the case was never opened
30
32
  (or the checkout was moved) — point the learner at `/fito-case-open $1` and stop.
31
33
  - If the report has **no scorable criteria** (nothing automated, ai, or hybrid),
32
34
  there is no rubric to preview — skip the rubric steps (2–3) and go straight to
33
- the quiz (step 4). If there is also no `~/.fito/cases/$1/.case/quiz.yaml`, tell
34
- the learner there is nothing to preview and stop.
35
+ the quiz (step 4). If the checkout also has no `.case/quiz.yaml`, tell the
36
+ learner there is nothing to preview and stop.
35
37
 
36
38
  **Done when** you have the printed evaluation report (or you stopped for one of the
37
39
  cases above).
@@ -43,8 +45,8 @@ tool. Hand it **both**:
43
45
 
44
46
  - the **full evaluation report** from step 1 (automated evidence, the `ai` criteria
45
47
  + prompt hints, and the `hybrid` gate evidence), and
46
- - the **case checkout path** `~/.fito/cases/$1/`, which it needs to score the `ai`
47
- and `hybrid` criteria from the learner's actual changes.
48
+ - the **case checkout path** from the report's first line, which it needs to score
49
+ the `ai` and `hybrid` criteria from the learner's actual changes.
48
50
 
49
51
  It returns a 0–3 score (or a needs-human-review marker for `human` criteria), the
50
52
  matching level, and a justification per criterion. Do not score anything yourself —
@@ -61,7 +63,7 @@ First, resolve each scored component's canonical **name**. Collect the distinct
61
63
  `fito-case-runner` skill (read its `SKILL.md`) — run:
62
64
 
63
65
  ```bash
64
- node <fito-case-runner skill dir>/case-component-names.js $1 <component-id...>
66
+ node "<fito-case-runner skill dir>/case-component-names.js" $1 <component-id...>
65
67
  ```
66
68
 
67
69
  passing those ids. It prints one `<id>\t<label>` line per id, where `<label>` is
@@ -77,7 +79,7 @@ backend may be unavailable).
77
79
  Get Fito's address, for the links in the summary:
78
80
 
79
81
  ```bash
80
- node <fito-case-runner skill dir>/fito-url.js
82
+ node "<fito-case-runner skill dir>/fito-url.js"
81
83
  ```
82
84
 
83
85
  Then relay the subagent's **learner-facing summary** — one block per criterion: the
@@ -99,7 +101,7 @@ the quiz, in step 4).
99
101
 
100
102
  ## 4. Practice the quiz (if the case has one)
101
103
 
102
- If `~/.fito/cases/$1/.case/quiz.yaml` exists, the case has a knowledge-check quiz.
104
+ If the checkout has a `.case/quiz.yaml`, the case has a knowledge-check quiz.
103
105
  Administer it as a **practice run** — nothing here is recorded. If the file is
104
106
  absent, skip this step.
105
107
 
@@ -110,22 +112,27 @@ absent, skip this step.
110
112
  for scoring only. Collect the learner's `multiple_choice` answers as a
111
113
  `{ "<questionId>": "<choiceId>" }` map, and hold their `short_answer` /
112
114
  `code_snippet` answers for the reviewer.
113
- 2. **Score the `multiple_choice` questions in code.** Write the MC answers map to a
114
- temp file (e.g. `$(mktemp)`) and, using the `fito-case-runner` skill (read its
115
- `SKILL.md`), run:
115
+ 2. **Score the `multiple_choice` questions in code.** Using the `fito-case-runner`
116
+ skill (read its `SKILL.md`), get a new temp file's path with:
116
117
 
117
118
  ```bash
118
- node <fito-case-runner skill dir>/score-quiz-mc.js $1 <answers-file>
119
+ node "<fito-case-runner skill dir>/temp-file.js"
120
+ ```
121
+
122
+ Write the MC answers map to the path it prints, exactly as printed, then run:
123
+
124
+ ```bash
125
+ node "<fito-case-runner skill dir>/score-quiz-mc.js" $1 "<answers-file>"
119
126
  ```
120
127
 
121
128
  Capture its JSON array of scored `multiple_choice` questions. (If the quiz has no
122
129
  `multiple_choice` questions it prints `[]`.)
123
130
  3. **Score the `short_answer` / `code_snippet` questions via the reviewer.** If the
124
131
  quiz has any, delegate to the `fito-performance-reviewer` **subagent** via
125
- the `fito_delegate` tool, handing it the **case checkout path**
126
- `~/.fito/cases/$1/` (it reads `.case/quiz.yaml` — including the `evaluation`
127
- block — itself) and the **learner's answers** to those questions, keyed by
128
- question id. It returns a 0–3 score (or a needs-human-review marker) and a
132
+ the `fito_delegate` tool, handing it the **case checkout path** from the report's
133
+ first line (it reads `.case/quiz.yaml` — including the `evaluation` block —
134
+ itself) and the **learner's answers** to those questions, keyed by question
135
+ id. It returns a 0–3 score (or a needs-human-review marker) and a
129
136
  justification per question. Do not score anything yourself. This delegation
130
137
  blocks — you read the child's summary from the tool result.
131
138
  4. **Show the combined result.** Merge the code-scored (step 2) and reviewer-scored
@@ -144,8 +151,9 @@ absent, skip this step.
144
151
  a submission would record COMPREHENSION."*
145
152
 
146
153
  Then remind them: this was a **local preview — nothing was submitted**. They can
147
- keep improving their work in `~/.fito/cases/$1/`, re-run `/fito-evaluate $1` to
148
- re-check, and submit for real with `/fito-submit $1` when satisfied.
154
+ keep improving their work in their checkout (name its path, as the report's first
155
+ line prints it), re-run `/fito-evaluate $1` to re-check, and submit for real with
156
+ `/fito-submit $1` when satisfied.
149
157
 
150
158
  **Done when** every quiz question shows its result **and the proficiency a
151
159
  submission would record for it** (or the case has no `quiz.yaml`), and the
@@ -63,7 +63,7 @@ Parse `$ARGUMENTS` to extract:
63
63
 
64
64
  > "Content template not found. The Fito package installation may be incomplete."
65
65
 
66
- 7. Pull the registered `Template` **field-schema** for the `concept` type from the backend Knowledge Repository — the authoritative field structure (keys, labels, types, requirements) the generated `content` must conform to. A component type carries **several** registered templates — one variant per technology kind, plus a shared `any` variant — and the subject technology's own `kind` selects which applies: an exact `tool` or `practice` match, otherwise the `any` variant. That is the `kind` resolved in step 2 — no second fetch. The variant follows from the subject, so nothing names one directly; the push resolves it the same way, making this the schema the component is stored under. If the backend's Template read endpoint is not yet available, use the field keys documented in the content template resolved in step 6.
66
+ 7. Pull the registered `Template` **field-schema** for the `concept` type from the backend Knowledge Repository — the authoritative field structure (keys, labels, types, requirements) the generated `content` must conform to. Call the `fito_template_fetch` tool once, with the type `concept` and the technology slug (the read is public — no login). A component type carries **several** registered templates — one variant per technology kind, plus a shared `any` variant — and the subject technology's own `kind` selects which applies: an exact `tool` or `practice` match, otherwise the `any` variant. That is the `kind` resolved in step 2, and the tool reads it from the technology itself. The variant follows from the subject, so nothing names one directly; the push resolves it the same way, making this the schema the component is stored under. If the call fails, report the error **verbatim** and stop — the push checks every file against this same schema, so a guess here only moves the failure to the push.
67
67
 
68
68
  8. Create the output directory if it does not exist.
69
69
 
@@ -63,7 +63,7 @@ Parse `$ARGUMENTS` to extract:
63
63
 
64
64
  > "Content template not found. The Fito package installation may be incomplete."
65
65
 
66
- 7. Pull the registered `Template` **field-schema** for the `execution-fact` type from the backend Knowledge Repository — the authoritative field structure (keys, labels, types, requirements, the `optional_sections_included` trigger mechanism) the generated `content` must conform to. A component type carries **several** registered templates — one variant per technology kind, plus a shared `any` variant — and the subject technology's own `kind` selects which applies: an exact `tool` or `practice` match, otherwise the `any` variant. That is the `kind` resolved in step 2 — no second fetch. The variant follows from the subject, so nothing names one directly; the push resolves it the same way, making this the schema the component is stored under. If the backend's Template read endpoint is not yet available, use the field keys documented in the content template resolved in step 6.
66
+ 7. Pull the registered `Template` **field-schema** for the `execution-fact` type from the backend Knowledge Repository — the authoritative field structure (keys, labels, types, requirements, the `optional_sections_included` trigger mechanism) the generated `content` must conform to. Call the `fito_template_fetch` tool once, with the type `execution-fact` and the technology slug (the read is public — no login). A component type carries **several** registered templates — one variant per technology kind, plus a shared `any` variant — and the subject technology's own `kind` selects which applies: an exact `tool` or `practice` match, otherwise the `any` variant. That is the `kind` resolved in step 2, and the tool reads it from the technology itself. The variant follows from the subject, so nothing names one directly; the push resolves it the same way, making this the schema the component is stored under. If the call fails, report the error **verbatim** and stop — the push checks every file against this same schema, so a guess here only moves the failure to the push.
67
67
 
68
68
  8. Create the output directory if it does not exist.
69
69
 
@@ -63,7 +63,7 @@ Parse `$ARGUMENTS` to extract:
63
63
 
64
64
  > "Content template not found. The Fito package installation may be incomplete."
65
65
 
66
- 7. Pull the registered `Template` **field-schema** for the `usage-scenario` type from the backend Knowledge Repository — the authoritative field structure (keys, labels, types, requirements) the generated `content` must conform to. A component type carries **several** registered templates — one variant per technology kind, plus a shared `any` variant — and the subject technology's own `kind` selects which applies: an exact `tool` or `practice` match, otherwise the `any` variant. That is the `kind` resolved in step 2 — no second fetch. For this type the `any` row is the only one registered, so both kinds land on it; the variant follows from the subject, so nothing names one directly, and the push resolves it the same way, making this the schema the component is stored under. If the backend's Template read endpoint is not yet available, use the field keys documented in the content template resolved in step 6.
66
+ 7. Pull the registered `Template` **field-schema** for the `usage-scenario` type from the backend Knowledge Repository — the authoritative field structure (keys, labels, types, requirements) the generated `content` must conform to. Call the `fito_template_fetch` tool once, with the type `usage-scenario` and the technology slug (the read is public — no login). A component type carries **several** registered templates — one variant per technology kind, plus a shared `any` variant — and the subject technology's own `kind` selects which applies: an exact `tool` or `practice` match, otherwise the `any` variant. That is the `kind` resolved in step 2, and the tool reads it from the technology itself. For this type the `any` row is the only one registered, so both kinds land on it; the variant follows from the subject, so nothing names one directly, and the push resolves it the same way, making this the schema the component is stored under. If the call fails, report the error **verbatim** and stop — the push checks every file against this same schema, so a guess here only moves the failure to the push.
67
67
 
68
68
  8. Create the output directory if it does not exist.
69
69
 
@@ -6,14 +6,14 @@ Log the learner in to Fito.
6
6
  Use the `fito-auth` skill (read its `SKILL.md`), then run:
7
7
 
8
8
  ```bash
9
- node <fito-auth skill dir>/login.js
9
+ node "<fito-auth skill dir>/login.js"
10
10
  ```
11
11
 
12
12
  This starts a local loopback server, opens the system browser to the Fito web
13
13
  login page (`/auth/login?return_to=tui&port=<port>`), and waits for the browser
14
14
  to hand back the freshly minted token pair, which it writes to this Fito's own
15
- file, `~/.fito/credentials-<host>` (mode `0600`). The learner can use either
16
- email/password or "Continue with GitHub" in the browser.
15
+ file, `~/.fito/credentials-<host>`. The learner can use either email/password or
16
+ "Continue with GitHub" in the browser.
17
17
 
18
18
  Stream the command output so the learner sees the login URL (in case the browser
19
19
  does not open automatically). When it prints the success line, confirm they are
@@ -6,7 +6,7 @@ Log the learner out of Fito.
6
6
  Use the `fito-auth` skill (read its `SKILL.md`), then run:
7
7
 
8
8
  ```bash
9
- node <fito-auth skill dir>/logout.js
9
+ node "<fito-auth skill dir>/logout.js"
10
10
  ```
11
11
 
12
12
  This best-effort revokes the refresh token on the backend and deletes this