fito-tui 0.2.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.
- package/README.md +88 -0
- package/agents/fito-case-source-planner.md +265 -0
- package/agents/fito-performance-reviewer.md +231 -0
- package/agents/fito-practice-concept-content-generator.md +318 -0
- package/agents/fito-practice-concept-identifier.md +482 -0
- package/agents/fito-practice-execution-fact-content-generator.md +299 -0
- package/agents/fito-practice-execution-fact-identifier.md +367 -0
- package/agents/fito-practice-usage-scenario-content-generator.md +331 -0
- package/agents/fito-practice-usage-scenario-identifier.md +397 -0
- package/agents/fito-subagent-selftest.md +27 -0
- package/agents/fito-technology-generator.md +207 -0
- package/agents/fito-tool-concept-content-generator.md +282 -0
- package/agents/fito-tool-concept-identifier.md +384 -0
- package/agents/fito-tool-execution-fact-content-generator.md +382 -0
- package/agents/fito-tool-execution-fact-identifier.md +360 -0
- package/agents/fito-tool-usage-scenario-content-generator.md +381 -0
- package/agents/fito-tool-usage-scenario-identifier.md +432 -0
- package/agents/fito-tutor.md +185 -0
- package/extensions/fito-delegate.js +539 -0
- package/extensions/fito-delegate.ts +691 -0
- package/extensions/fito-fetch-tools.js +380 -0
- package/extensions/fito-fetch-tools.ts +419 -0
- package/extensions/fito-startup.js +166 -0
- package/extensions/fito-startup.ts +188 -0
- package/package.json +56 -0
- package/prompts/fito-auth-refresh.md +15 -0
- package/prompts/fito-case-design.md +506 -0
- package/prompts/fito-case-edit.md +91 -0
- package/prompts/fito-case-generate.md +222 -0
- package/prompts/fito-case-open.md +124 -0
- package/prompts/fito-case-plan-source.md +114 -0
- package/prompts/fito-create-or-update-competence.md +261 -0
- package/prompts/fito-create-or-update-technology.md +199 -0
- package/prompts/fito-delete-competence.md +147 -0
- package/prompts/fito-evaluate.md +148 -0
- package/prompts/fito-fetch-urls-content.md +35 -0
- package/prompts/fito-generate-domain-concepts.md +85 -0
- package/prompts/fito-generate-execution-facts.md +85 -0
- package/prompts/fito-generate-usage-scenarios.md +85 -0
- package/prompts/fito-identify-domain-concepts.md +49 -0
- package/prompts/fito-identify-execution-facts.md +49 -0
- package/prompts/fito-identify-usage-scenarios.md +49 -0
- package/prompts/fito-login.md +21 -0
- package/prompts/fito-logout.md +14 -0
- package/prompts/fito-publish-case.md +266 -0
- package/prompts/fito-push-knowledge.md +84 -0
- package/prompts/fito-submit.md +208 -0
- package/prompts/fito-tutor.md +120 -0
- package/shared/case-briefing/briefing.js +221 -0
- package/shared/case-briefing/briefing.ts +261 -0
- package/shared/case-quiz/scoring.js +16 -0
- package/shared/case-quiz/scoring.ts +61 -0
- package/shared/case-validation/case-loader.js +88 -0
- package/shared/case-validation/case-loader.ts +106 -0
- package/shared/case-validation/case-schema.js +716 -0
- package/shared/case-validation/case-schema.ts +895 -0
- package/shared/competences/competence-list.js +29 -0
- package/shared/competences/competence-list.ts +32 -0
- package/shared/fito-api/README.md +192 -0
- package/shared/fito-api/client.js +731 -0
- package/shared/fito-api/client.ts +1426 -0
- package/shared/fito-session/credentials.js +79 -0
- package/shared/fito-session/credentials.ts +88 -0
- package/shared/fito-session/session.js +16 -0
- package/shared/fito-session/session.ts +35 -0
- package/shared/github-url/parse.js +26 -0
- package/shared/github-url/parse.ts +35 -0
- package/shared/knowledge-components/component-names.js +35 -0
- package/shared/knowledge-components/component-names.ts +39 -0
- package/shared/knowledge-components/knowledge-fetch.js +46 -0
- package/shared/knowledge-components/knowledge-fetch.ts +57 -0
- package/shared/knowledge-components/knowledge-search.js +101 -0
- package/shared/knowledge-components/knowledge-search.ts +144 -0
- package/shared/knowledge-components/push-payload.js +104 -0
- package/shared/knowledge-components/push-payload.ts +129 -0
- package/shared/knowledge-components/reference.js +24 -0
- package/shared/knowledge-components/reference.ts +43 -0
- package/shared/knowledge-components/technology-fetch.js +30 -0
- package/shared/knowledge-components/technology-fetch.ts +38 -0
- package/shared/shell-exec/exec.js +22 -0
- package/shared/shell-exec/exec.ts +46 -0
- package/skills/fito-auth/SKILL.md +68 -0
- package/skills/fito-auth/auth-refresh.js +23 -0
- package/skills/fito-auth/auth-refresh.ts +25 -0
- package/skills/fito-auth/browser.js +35 -0
- package/skills/fito-auth/browser.ts +57 -0
- package/skills/fito-auth/callback-server.js +152 -0
- package/skills/fito-auth/callback-server.ts +189 -0
- package/skills/fito-auth/login.js +37 -0
- package/skills/fito-auth/login.ts +42 -0
- package/skills/fito-auth/logout.js +24 -0
- package/skills/fito-auth/logout.ts +25 -0
- package/skills/fito-case-author/SKILL.md +179 -0
- package/skills/fito-case-author/checkout.js +222 -0
- package/skills/fito-case-author/checkout.ts +281 -0
- package/skills/fito-case-author/github-publish.js +218 -0
- package/skills/fito-case-author/github-publish.ts +251 -0
- package/skills/fito-case-author/publish-payload.js +108 -0
- package/skills/fito-case-author/publish-payload.ts +186 -0
- package/skills/fito-case-author/publish-state.js +72 -0
- package/skills/fito-case-author/publish-state.ts +87 -0
- package/skills/fito-case-author/publish-version.js +364 -0
- package/skills/fito-case-author/publish-version.ts +495 -0
- package/skills/fito-case-author/publish.js +284 -0
- package/skills/fito-case-author/publish.ts +394 -0
- package/skills/fito-case-author/semver.js +55 -0
- package/skills/fito-case-author/semver.ts +63 -0
- package/skills/fito-case-author/status-gate.js +34 -0
- package/skills/fito-case-author/status-gate.ts +54 -0
- package/skills/fito-case-author/validate.js +62 -0
- package/skills/fito-case-author/validate.ts +64 -0
- package/skills/fito-case-runner/SKILL.md +119 -0
- package/skills/fito-case-runner/case-component-names.js +45 -0
- package/skills/fito-case-runner/case-component-names.ts +65 -0
- package/skills/fito-case-runner/case-detail.js +20 -0
- package/skills/fito-case-runner/case-detail.ts +20 -0
- package/skills/fito-case-runner/github.js +234 -0
- package/skills/fito-case-runner/github.ts +287 -0
- package/skills/fito-case-runner/manifest.js +56 -0
- package/skills/fito-case-runner/manifest.ts +73 -0
- package/skills/fito-case-runner/open.js +175 -0
- package/skills/fito-case-runner/open.ts +241 -0
- package/skills/fito-case-runner/report.js +22 -0
- package/skills/fito-case-runner/report.ts +24 -0
- package/skills/fito-case-runner/runner.js +158 -0
- package/skills/fito-case-runner/runner.ts +304 -0
- package/skills/fito-case-runner/score-quiz-mc.js +85 -0
- package/skills/fito-case-runner/score-quiz-mc.ts +99 -0
- package/skills/fito-case-runner/submit-evaluation.js +73 -0
- package/skills/fito-case-runner/submit-evaluation.ts +98 -0
- package/skills/fito-case-runner/submit-quiz-result.js +75 -0
- package/skills/fito-case-runner/submit-quiz-result.ts +100 -0
- package/skills/fito-case-runner/submit.js +85 -0
- package/skills/fito-case-runner/submit.ts +111 -0
- package/skills/fito-case-runner/workdir.js +10 -0
- package/skills/fito-case-runner/workdir.ts +11 -0
- package/skills/fito-competence-write/SKILL.md +155 -0
- package/skills/fito-competence-write/create.js +64 -0
- package/skills/fito-competence-write/create.ts +80 -0
- package/skills/fito-competence-write/delete.js +136 -0
- package/skills/fito-competence-write/delete.ts +166 -0
- package/skills/fito-competence-write/display.js +20 -0
- package/skills/fito-competence-write/display.ts +21 -0
- package/skills/fito-competence-write/payload.js +96 -0
- package/skills/fito-competence-write/payload.ts +115 -0
- package/skills/fito-competence-write/update.js +155 -0
- package/skills/fito-competence-write/update.ts +206 -0
- package/skills/fito-evaluator/SKILL.md +73 -0
- package/skills/fito-evaluator/criterion-exec.js +64 -0
- package/skills/fito-evaluator/criterion-exec.ts +73 -0
- package/skills/fito-evaluator/evaluate-automated.js +57 -0
- package/skills/fito-evaluator/evaluate-automated.ts +84 -0
- package/skills/fito-evaluator/evaluate.js +28 -0
- package/skills/fito-evaluator/evaluate.ts +86 -0
- package/skills/fito-evaluator/report.js +112 -0
- package/skills/fito-evaluator/report.ts +128 -0
- package/skills/fito-evaluator/rubric.js +90 -0
- package/skills/fito-evaluator/rubric.ts +170 -0
- package/skills/fito-knowledge-push/SKILL.md +114 -0
- package/skills/fito-knowledge-push/push.js +282 -0
- package/skills/fito-knowledge-push/push.ts +360 -0
- package/skills/fito-source-ingestion/SKILL.md +77 -0
- package/skills/fito-source-ingestion/authoring-check.js +128 -0
- package/skills/fito-source-ingestion/authoring-check.ts +155 -0
- package/skills/fito-source-ingestion/bundle.js +198 -0
- package/skills/fito-source-ingestion/bundle.ts +246 -0
- package/skills/fito-technology-write/SKILL.md +108 -0
- package/skills/fito-technology-write/create.js +134 -0
- package/skills/fito-technology-write/create.ts +161 -0
- package/skills/fito-technology-write/payload.js +64 -0
- package/skills/fito-technology-write/payload.ts +70 -0
- package/skills/fito-technology-write/update.js +122 -0
- package/skills/fito-technology-write/update.ts +171 -0
- package/skills/fito-url-content-fetcher/SKILL.md +213 -0
- package/templates/concept-practice-content-template.md +281 -0
- package/templates/concept-tool-content-template.md +207 -0
- package/templates/execution-fact-practice-content-template.md +372 -0
- package/templates/execution-fact-tool-content-template.md +307 -0
- package/templates/usage-scenario-content-template.md +248 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Record a competence a technology demands — declare the technology, read what it already demands, ground every element in a live knowledge component, confirm the record with the author, and create it or edit its prose"
|
|
3
|
+
argument-hint: "--technology <slug>@<version> [--competence <id>] [--output <path>]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The author wants to record a **competence** a technology demands — a named, standing capability
|
|
7
|
+
a learner builds, formed from knowledge components that already exist. It stands on its own: it
|
|
8
|
+
would still be there if every case in Fito were deleted.
|
|
9
|
+
|
|
10
|
+
A competence is **read by every author and every learner** the technology touches, and a
|
|
11
|
+
learner's proficiency under it is computed from the components it names. So every element is
|
|
12
|
+
grounded in a component the backend really holds, and the author confirms the record before
|
|
13
|
+
anything is written.
|
|
14
|
+
|
|
15
|
+
## 1. Resolve the declaration
|
|
16
|
+
|
|
17
|
+
Parse `$ARGUMENTS`:
|
|
18
|
+
|
|
19
|
+
- **`--technology <slug>@<version>`** (**required**) — the technology's slug and the major line,
|
|
20
|
+
e.g. `javalin@7`. **The author declares the technology**; this flow **never infers** which
|
|
21
|
+
technology a competence belongs to. The slug is what the competence is stored against.
|
|
22
|
+
|
|
23
|
+
The write carries the slug alone, so the major line scopes every knowledge read below instead:
|
|
24
|
+
the elements are chosen from what is live on the declared line, and a component that resolves
|
|
25
|
+
only for a **non-declared major line** never reaches the record.
|
|
26
|
+
- **`--competence <id>`** (optional) — an existing competence to edit, when the author already
|
|
27
|
+
holds its id. Without it, step 2's listing is where an edit target is chosen.
|
|
28
|
+
- **`--output`** (optional) — where the drafted payload goes. A create run defaults to
|
|
29
|
+
`./output/4-competence/competence.yaml`, an edit run to `./output/4-competence/edit.yaml`. The
|
|
30
|
+
two carry different shapes — four keys against two — so they are two files, and an edit never
|
|
31
|
+
overwrites the record an earlier create left on disk.
|
|
32
|
+
|
|
33
|
+
Without `--technology`, or when its value carries no `@`, stop and ask:
|
|
34
|
+
|
|
35
|
+
> "Declare the technology and its major line: `/fito-create-or-update-competence --technology
|
|
36
|
+
> <slug>@<version>` (e.g. `--technology javalin@7`). The slug and the major line are yours to
|
|
37
|
+
> declare — this flow never infers them."
|
|
38
|
+
|
|
39
|
+
Then call `fito_technology_fetch` once with the declared slug (the read is public — no login), and
|
|
40
|
+
check **both halves** of the declaration against it: the technology exists, and the declared major
|
|
41
|
+
line is among its `technologyVersions`. A 404, an absent major line, or a failed read stops the
|
|
42
|
+
run — relay the outcome and let the author re-declare.
|
|
43
|
+
|
|
44
|
+
The major line is the half worth the extra call. A wrong slug would surface anyway — step 2's
|
|
45
|
+
listing errors on a technology that does not exist. A real slug carrying a version that does not
|
|
46
|
+
exist surfaces nowhere: step 3's search filters by version and returns an **empty** listing, which
|
|
47
|
+
reads exactly like a technology whose components have not been pushed yet, and sends the author to
|
|
48
|
+
the knowledge pipeline over a typo.
|
|
49
|
+
|
|
50
|
+
Every write here is authenticated. If a write reports no session, relay it: run `/fito-login`,
|
|
51
|
+
then re-run this command.
|
|
52
|
+
|
|
53
|
+
**Done when** the technology and the declared major line are both live, exactly as the author
|
|
54
|
+
spelled them.
|
|
55
|
+
|
|
56
|
+
## 2. Read what the technology already demands
|
|
57
|
+
|
|
58
|
+
Call the `fito_competence_list` tool once with the declared slug (the read is public — no login).
|
|
59
|
+
Show the author what it returns before anything is drafted: each competence's **name**, **id**,
|
|
60
|
+
**description** and **elements**, with its sub-competences nested under it. A sub-competence is
|
|
61
|
+
never a row of its own, so an author looking for one reads it inside its parent.
|
|
62
|
+
|
|
63
|
+
That listing sets the run's shape, and the author chooses:
|
|
64
|
+
|
|
65
|
+
- **Nothing there is the competence they have in mind** — this is a **create run**. Go on to
|
|
66
|
+
step 3 and draft it.
|
|
67
|
+
- **One of them is it** — this is an **edit run**. Its elements are already written and cannot
|
|
68
|
+
change (step 5), so **skip steps 3 and 4 entirely** — they exist to ground elements, and this
|
|
69
|
+
run writes none. An edit revises the name and the description and nothing else. Carry its id
|
|
70
|
+
forward.
|
|
71
|
+
|
|
72
|
+
An empty listing is a normal create run — the technology simply demands no competence yet.
|
|
73
|
+
|
|
74
|
+
A **sub-competence is an edit target** like any other: it is addressed by the id nested under its
|
|
75
|
+
parent, and an edit reaches it exactly as it reaches a top-level row.
|
|
76
|
+
|
|
77
|
+
On an edit run the id must be one **this listing reported** — top-level or nested. When
|
|
78
|
+
`--competence` names an id the listing did not report, stop and ask the author to pick one it did.
|
|
79
|
+
**Never guess a competence id, and never carry an unlisted one forward:** it survives the whole
|
|
80
|
+
confirmation below and comes back as a 404 from the write, after the author has approved prose
|
|
81
|
+
that was never going to land.
|
|
82
|
+
|
|
83
|
+
**Done when** the author has seen what the technology already demands, and has said which of the
|
|
84
|
+
two runs this is — with the edit target's id read back off the listing.
|
|
85
|
+
|
|
86
|
+
## 3. Ground every element in a live knowledge component
|
|
87
|
+
|
|
88
|
+
Create runs only. An element is a knowledge-component reference
|
|
89
|
+
(`<type>:<tech-slug>.<component-slug>`), and every one must resolve live.
|
|
90
|
+
|
|
91
|
+
1. Call `fito_knowledge_search` with the declared slug, passing the declared major line as its
|
|
92
|
+
`version`, to list what the technology covers on that line.
|
|
93
|
+
2. **Choose by reading the listing**, never by deriving an id from a component's likely name:
|
|
94
|
+
each result carries a `name` and its `tl_dr`, and that pair is what the choice rests on. A
|
|
95
|
+
`tl_dr` is truncated, and is marked with ` [...]` when it was cut.
|
|
96
|
+
3. Call `fito_knowledge_fetch` on **every chosen id**, again passing the declared major line as
|
|
97
|
+
its `version`. A search hit is not proof: fetch each one and read it back before it becomes an
|
|
98
|
+
element.
|
|
99
|
+
|
|
100
|
+
**A failed search is not an empty listing.** The two arrive looking alike and mean opposite
|
|
101
|
+
things: one says the read did not happen, the other says the technology covers nothing on this
|
|
102
|
+
line. Relay a failed read and stop — treated as an empty listing it walks into step 4 and sends
|
|
103
|
+
the author to the knowledge pipeline to re-author components that already exist.
|
|
104
|
+
|
|
105
|
+
Elements are an **ordered list**, and no component may appear twice — the order is the author's
|
|
106
|
+
to set, and the backend refuses a duplicate.
|
|
107
|
+
|
|
108
|
+
**Done when** every element the competence needs has been fetched back live at the declared major
|
|
109
|
+
line, in the order the author wants them.
|
|
110
|
+
|
|
111
|
+
## 4. Refuse when a component is missing — never shrink the competence to fit
|
|
112
|
+
|
|
113
|
+
If **any** component the competence needs is missing, **refuse to draft the competence**: write no
|
|
114
|
+
payload, and do not drop the element to make the record fit. Dropping a component the competence
|
|
115
|
+
genuinely needs degrades the competence; the vocabulary is what must grow. A component that
|
|
116
|
+
resolves only for a **non-declared major line** counts as missing here — the competence is being
|
|
117
|
+
drawn for the declared line, not another. Report the live and the missing ids, and recommend the
|
|
118
|
+
knowledge pipeline first:
|
|
119
|
+
|
|
120
|
+
> "These components don't exist in the Knowledge Repository yet: `<missing ids>`. Run the
|
|
121
|
+
> knowledge pipeline over the source first — `/fito-identify-domain-concepts`,
|
|
122
|
+
> `/fito-identify-execution-facts`, and `/fito-identify-usage-scenarios`, then the matching
|
|
123
|
+
> `/fito-generate-*` prompts, then `/fito-push-knowledge` — and re-run
|
|
124
|
+
> `/fito-create-or-update-competence` once they're live."
|
|
125
|
+
|
|
126
|
+
One check before sending the author to the pipeline: when **every** candidate came back missing,
|
|
127
|
+
suspect the declared major line itself rather than the vocabulary. The components the competence
|
|
128
|
+
needs may be live under a **different** line, which a listing scoped to the declared one cannot
|
|
129
|
+
show. Confirm it with the author and re-list unscoped, rather than recommending the pipeline over
|
|
130
|
+
a major line that simply has no components yet.
|
|
131
|
+
|
|
132
|
+
**Done when** either the refusal above was delivered (and nothing written), or every element is
|
|
133
|
+
live at the declared major line.
|
|
134
|
+
|
|
135
|
+
## 5. Confirm the record with the author
|
|
136
|
+
|
|
137
|
+
Present the drafted record and get the author's explicit go-ahead **before any write**. Cover:
|
|
138
|
+
|
|
139
|
+
- **`name`** — the capability, named as a capability.
|
|
140
|
+
- **`description`** — optional, and `null` when there is none. A `null` is *unknown*, not
|
|
141
|
+
"nothing to say". Actively offer to **supplement** it: the description is what another author
|
|
142
|
+
reads when deciding whether this competence is the one they meant.
|
|
143
|
+
- **the elements, in order**, each named by its component's real name — the one step 3 fetched,
|
|
144
|
+
not the id alone. The author is confirming capabilities, and an id is not readable as one.
|
|
145
|
+
|
|
146
|
+
Two things the author cannot undo afterwards, said here rather than after a write:
|
|
147
|
+
|
|
148
|
+
- **The elements are frozen once the competence is created.** There is no way to add an element
|
|
149
|
+
later, to remove one, or to reorder them — no command does it, and nothing will refuse and
|
|
150
|
+
tell them. If the element list turns out to be wrong, the way forward is **a new competence**
|
|
151
|
+
with the right elements. Retiring the wrong one is a separate act and this command does not do
|
|
152
|
+
it: `/fito-delete-competence` does, behind its own preview and the author's explicit yes, after
|
|
153
|
+
printing every sub-competence the delete would take. Say so when the author asks, rather than
|
|
154
|
+
leaving a competence they have disowned standing in the listing.
|
|
155
|
+
- **A created competence is always top-level.** Nothing here nests one competence under another,
|
|
156
|
+
so a record drafted as a sub-competence would be stored as a peer of its intended parent
|
|
157
|
+
instead.
|
|
158
|
+
|
|
159
|
+
Write the confirmed record to the run's output path. On a **create run** — `competence.yaml` — the
|
|
160
|
+
file carries all four keys:
|
|
161
|
+
|
|
162
|
+
```yaml
|
|
163
|
+
technologySlug: javalin
|
|
164
|
+
name: Routing basics
|
|
165
|
+
description: >-
|
|
166
|
+
Map a request to a handler and read what the request carries.
|
|
167
|
+
elements:
|
|
168
|
+
- concept:javalin.handler
|
|
169
|
+
- concept:javalin.context
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
On an **edit run** — `edit.yaml` — it carries the two axes an edit can write, and nothing else. A
|
|
173
|
+
file holding `elements` or `technologySlug` is refused before any request:
|
|
174
|
+
|
|
175
|
+
```yaml
|
|
176
|
+
name: Routing fundamentals
|
|
177
|
+
description: >-
|
|
178
|
+
Map a request to a handler and read what the request carries.
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Done when** the author has confirmed the record, and the payload on disk is what they confirmed.
|
|
182
|
+
|
|
183
|
+
## 6. Write
|
|
184
|
+
|
|
185
|
+
Drive the `fito-competence-write` skill (read its `SKILL.md`).
|
|
186
|
+
|
|
187
|
+
**On a create run:**
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
node <fito-competence-write skill dir>/create.js <payload-file>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
It prints the competence's name and its **id**. Show the author that id — an edit or a delete
|
|
194
|
+
addresses the competence by it, and nothing else reports it back except a fresh
|
|
195
|
+
`fito_competence_list`.
|
|
196
|
+
|
|
197
|
+
A create is **not idempotent**: nothing makes competence names unique, so a second run under the
|
|
198
|
+
same name stores a second competence. After a failure the table in step 7 does not cover — a lost
|
|
199
|
+
connection, a timeout, a 5xx — list the technology's competences again and re-run only when this
|
|
200
|
+
one is absent.
|
|
201
|
+
|
|
202
|
+
**On an edit run**, take only the axes the author confirmed changing:
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
node <fito-competence-write skill dir>/update.js <competence-id> <payload-file> [--name] [--description]
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
`--name` writes the name, `--description` the description. Pass both when both changed; both go
|
|
209
|
+
in one request, so no run half-lands.
|
|
210
|
+
|
|
211
|
+
An edit is written **in place**, and it mints nothing: the competence keeps its id, its elements
|
|
212
|
+
and its learners' recorded proficiency. A rename costs none of that. Run it with **neither** flag
|
|
213
|
+
and nothing is written — the script reads the competence back and either reports a verified no-op
|
|
214
|
+
or names the axes that differ.
|
|
215
|
+
|
|
216
|
+
Relay any backend rejection **verbatim** — never paraphrase it.
|
|
217
|
+
|
|
218
|
+
**Done when** every axis the author confirmed is written, and the outcome is recorded for the
|
|
219
|
+
report.
|
|
220
|
+
|
|
221
|
+
## 7. A refusal — relay it, then give its next step
|
|
222
|
+
|
|
223
|
+
A refusal writes nothing and exits non-zero. Show the author the line exactly as the script
|
|
224
|
+
printed it; the message is the backend's own. Then give the next step for its status:
|
|
225
|
+
|
|
226
|
+
- **422 on a create** — one or more elements name no knowledge component, and the message lists
|
|
227
|
+
every one. The vocabulary changed under the confirmed draft, or a reference was mistyped. Keep
|
|
228
|
+
every element the author confirmed and run the knowledge pipeline for the missing ones — the
|
|
229
|
+
same route step 4 gives — then create again with the same elements. Never trim the list to make
|
|
230
|
+
the write pass.
|
|
231
|
+
- **403** — on a create, the author is neither a curator nor an admin. On an edit, they are
|
|
232
|
+
neither the competence's owner nor an admin; a competence that came from seeding has no owner
|
|
233
|
+
at all, so an admin is the only way in. The message names which, so relay it and let the author
|
|
234
|
+
read it.
|
|
235
|
+
- **404** — on a create, no technology has that slug: check it, or provision it with
|
|
236
|
+
`/fito-create-or-update-technology`. On an edit, no competence has that id: read it back with
|
|
237
|
+
`fito_competence_list`.
|
|
238
|
+
- **400** — a payload or an id breaking a rule: no elements, a duplicate element, a blank name,
|
|
239
|
+
text over the limit, or an id that is not a UUID. Fix it with the author, confirm it again, and
|
|
240
|
+
re-run.
|
|
241
|
+
|
|
242
|
+
**Done when** the author has the refusal's own words and knows the one thing to do next.
|
|
243
|
+
|
|
244
|
+
## 8. Report
|
|
245
|
+
|
|
246
|
+
Summarize for the author:
|
|
247
|
+
|
|
248
|
+
- the competence as it now stands — its **id**, its name, its description, and the technology
|
|
249
|
+
that demands it;
|
|
250
|
+
- on a create, every element in order, each with the component's name;
|
|
251
|
+
- on an edit, which axes were written and which were left alone;
|
|
252
|
+
- anything the author left for later, such as a description they chose not to supply.
|
|
253
|
+
|
|
254
|
+
Close with what the record now does, since nothing else tells the author:
|
|
255
|
+
|
|
256
|
+
- the technology's competence listing carries it, for any author drafting against the same
|
|
257
|
+
technology and for the learners browsing it;
|
|
258
|
+
- a learner's proficiency under it is computed from the elements as their cases are assessed —
|
|
259
|
+
it is never recorded directly, so there is nothing further to write;
|
|
260
|
+
- the name and the description stay editable in place with this same command; the elements do
|
|
261
|
+
not.
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Admit a technology and one of its major lines into the Fito knowledge vocabulary — declare it, draft its descriptions from ingested sources, confirm them with the author, and create or update"
|
|
3
|
+
argument-hint: "--technology <slug>@<version> [--source <path>] [--fetch] [--urls <file>] [--docs <path>] [--output <path>]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The author wants to provision a technology in the backend knowledge vocabulary — the row every
|
|
7
|
+
knowledge component and every case scoped to that technology hangs off. This is a **separate
|
|
8
|
+
pipeline** from `/fito-push-knowledge`: it provisions the technology root, not components.
|
|
9
|
+
|
|
10
|
+
The two descriptions it writes are **shared vocabulary** — one record every author and learner
|
|
11
|
+
reads afterwards — so every claim in them is grounded in the ingested sources, and the author
|
|
12
|
+
confirms them before anything is written.
|
|
13
|
+
|
|
14
|
+
## 1. Resolve the declaration
|
|
15
|
+
|
|
16
|
+
Parse `$ARGUMENTS`:
|
|
17
|
+
|
|
18
|
+
- **`--technology <slug>@<version>`** (**required**) — the technology's slug and the major line, e.g.
|
|
19
|
+
`javalin@7`. **The author declares the technology**; this flow, and the worker it delegates to,
|
|
20
|
+
**never infer** which technology the sources are about.
|
|
21
|
+
|
|
22
|
+
A subject with **no release line** — a practice such as hexagonal architecture or trunk-based
|
|
23
|
+
development — is provisioned at **`1`**: `--technology hexagonal-architecture@1`. That `1` is
|
|
24
|
+
Fito's own numbering and matches nothing upstream; it fills the version slot without asserting
|
|
25
|
+
a release. It is a **convention, not a rule** — nothing validates the label, so an author with a
|
|
26
|
+
better name for the first formulation (`cockburn-2005`) may use it and breaks nothing, giving up
|
|
27
|
+
only the uniformity. A genuinely **distinct later formulation** — a restatement, a rival school
|
|
28
|
+
— is then a **new version of the same technology** (a `version-added` run of this command), and
|
|
29
|
+
**not a new slug**: the subject has not changed.
|
|
30
|
+
- **`--source`** (optional) — a local source tree to ingest, the preferred grounding source.
|
|
31
|
+
- **`--fetch`** (optional flag) — run `/fito-fetch-urls-content` for the documentation path.
|
|
32
|
+
- **`--urls`** (optional) — the URL list file for `--fetch`. Defaults to `urls.txt`.
|
|
33
|
+
- **`--docs`** (optional) — an already-ingested directory. Defaults to
|
|
34
|
+
`./output/1-ingest/extracted_links_content/`.
|
|
35
|
+
- **`--output`** (optional) — where the drafted payload goes. Defaults to
|
|
36
|
+
`./output/2-technology/technology.yaml`.
|
|
37
|
+
|
|
38
|
+
Without `--technology`, or when its value carries no `@`, stop and ask:
|
|
39
|
+
|
|
40
|
+
> "Declare the technology and its major line: `/fito-create-or-update-technology --technology
|
|
41
|
+
> <slug>@<version>` (e.g. `--technology javalin@7`, or `--technology hexagonal-architecture@1`
|
|
42
|
+
> for a practice with no release line). The slug and the major line are yours to declare — the
|
|
43
|
+
> pipeline never infers them from the source."
|
|
44
|
+
|
|
45
|
+
Both writes are authenticated. If a write later reports no session, relay it: run `/fito-login`,
|
|
46
|
+
then re-run this command.
|
|
47
|
+
|
|
48
|
+
**Done when** the slug and the major-line version are both in hand, exactly as the author spelled
|
|
49
|
+
them.
|
|
50
|
+
|
|
51
|
+
## 2. Ingest the grounding sources
|
|
52
|
+
|
|
53
|
+
Ingestion is **additive**: this command shares the `output/1-ingest/` stage with the knowledge
|
|
54
|
+
pipeline by convention, and the `/fito-identify-*` prompts are untouched by it. When a bundle from
|
|
55
|
+
an earlier step is already there, **reuse it** rather than re-ingesting.
|
|
56
|
+
|
|
57
|
+
1. With `--source`, run the `fito-source-ingestion` skill on that path; its bundle directory is the
|
|
58
|
+
grounding source for the rest of the run.
|
|
59
|
+
2. With `--fetch` and no `--source` bundle, run `/fito-fetch-urls-content` with the `--urls` path.
|
|
60
|
+
3. Otherwise use `--docs` (or its default).
|
|
61
|
+
|
|
62
|
+
If nothing is ingested and the docs directory is empty, stop and tell the author:
|
|
63
|
+
|
|
64
|
+
> "No sources found at `<docs-path>`. A technology's descriptions are drafted from evidence, never
|
|
65
|
+
> from recall — ingest the technology's source tree with `--source <path>` or fetch its
|
|
66
|
+
> documentation with `--fetch`, then re-run."
|
|
67
|
+
|
|
68
|
+
**Done when** at least one ingested directory exists and holds at least one file.
|
|
69
|
+
|
|
70
|
+
## 3. Read what the vocabulary already holds
|
|
71
|
+
|
|
72
|
+
Call the `fito_technology_fetch` tool once with the declared slug (the read is public — no login).
|
|
73
|
+
Three outcomes, and each sets the run's shape:
|
|
74
|
+
|
|
75
|
+
- **404** — the technology is absent. This is a **create run**, and there is nothing yet to enrich.
|
|
76
|
+
- **Found, and the declared major line is among its `technologyVersions`** — this is an **update
|
|
77
|
+
run**: both descriptions already exist (either may be `null`) and are the enrichment target.
|
|
78
|
+
- **Found, but the declared major line is absent** — this is a **create run** for the major line,
|
|
79
|
+
which the write adds. The technology's **overview already exists**, and it is an enrichment
|
|
80
|
+
target all the same: what differs from an update run is the write path, not the overview's
|
|
81
|
+
standing.
|
|
82
|
+
|
|
83
|
+
Tell the author which of the three it is before drafting, with the existing descriptions when there
|
|
84
|
+
are any — that is what they are about to change.
|
|
85
|
+
|
|
86
|
+
**Done when** the run is classified and the author has seen what already exists.
|
|
87
|
+
|
|
88
|
+
## 4. Delegate the draft
|
|
89
|
+
|
|
90
|
+
Delegate to the `fito-technology-generator` **subagent** via the `fito_delegate` tool, handing it:
|
|
91
|
+
the declared slug and major-line version, the ingested directories, the output path, and — **whenever
|
|
92
|
+
the technology already exists** — the **existing descriptions** step 3 read back, so it enriches
|
|
93
|
+
them rather than replacing them. That means every description the vocabulary already holds: the
|
|
94
|
+
overview on any existing technology, plus the major line's prose on an update run. A generator that
|
|
95
|
+
never saw the existing overview drafts a replacement for it, and no write path can tell the
|
|
96
|
+
difference afterwards.
|
|
97
|
+
|
|
98
|
+
This delegation blocks — you read the child's summary from the tool result.
|
|
99
|
+
|
|
100
|
+
Then read the payload at the output path (default `./output/2-technology/technology.yaml`) **from
|
|
101
|
+
disk**: a worker's **self-report is not ground truth**. If the file is missing or is not the
|
|
102
|
+
seven-key `{technology, version}` shape, **re-delegate** once with what was wrong, and stop for the
|
|
103
|
+
author if the second attempt also fails.
|
|
104
|
+
|
|
105
|
+
**Done when** the payload exists on disk and its two slugs and version label match the declaration.
|
|
106
|
+
|
|
107
|
+
## 5. Confirm the draft with the author
|
|
108
|
+
|
|
109
|
+
Present the drafted record and get the author's explicit go-ahead **before any write**. Cover:
|
|
110
|
+
|
|
111
|
+
- **`name`** and **`kind`**, with the evidence the worker grounded each in. `kind` is **write-once** —
|
|
112
|
+
the update paths revise descriptions only, so a wrong tool/practice call is permanent. Ask for it
|
|
113
|
+
by name.
|
|
114
|
+
- **both descriptions**, as two distinct axes: the **overview** (what the technology *is*, across
|
|
115
|
+
every major line) and the **major line's prose** (what is true of this declared line). A `null`
|
|
116
|
+
means the sources grounded nothing — *unknown*, not "nothing to say". Actively offer to
|
|
117
|
+
**supplement** it: an author's own sentence is worth more than a permanent gap.
|
|
118
|
+
|
|
119
|
+
When the author supplements or corrects anything, **re-delegate to the generator as a revision run**
|
|
120
|
+
with their words, and re-present the rewritten payload. **Never edit the payload yourself** — the
|
|
121
|
+
generator is its single writer, so the file the author confirms is the file that gets written.
|
|
122
|
+
|
|
123
|
+
**Done when** the author has confirmed the record, and every axis they asked to change is in the
|
|
124
|
+
payload on disk.
|
|
125
|
+
|
|
126
|
+
## 6. Write to the vocabulary
|
|
127
|
+
|
|
128
|
+
Drive the `fito-technology-write` skill (read its `SKILL.md`). Take only
|
|
129
|
+
the axes the author confirmed changing — an axis they left alone is another author's prose.
|
|
130
|
+
|
|
131
|
+
**On an update run** (step 3 found both), write straight to the update path:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
node <fito-technology-write skill dir>/update.js <payload-file> [--overview] [--version-prose]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`--overview` writes the version-agnostic overview, `--version-prose` the declared major line's. Pass
|
|
138
|
+
both when both changed; pass neither flag never — if the author changed nothing, tell them the
|
|
139
|
+
vocabulary already carries what they confirmed and write nothing.
|
|
140
|
+
|
|
141
|
+
**On a create run**, create first:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
node <fito-technology-write skill dir>/create.js <payload-file>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Read the outcome it reports, because it decides whether a description still needs writing:
|
|
148
|
+
|
|
149
|
+
- **`created`** — the technology was new; both descriptions are stored. Done.
|
|
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
|
|
152
|
+
line names, when the author confirmed an overview that improves on the one step 3 read back.
|
|
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,
|
|
155
|
+
for the axes the author confirmed.
|
|
156
|
+
|
|
157
|
+
If the outcome **contradicts** what step 3 found — a `reused` after a 404, or a `version-added`
|
|
158
|
+
where the major line was already there — the vocabulary **changed since** that read, and the draft
|
|
159
|
+
the author confirmed was shaped against prose that no longer describes the row. Stop before any
|
|
160
|
+
update: re-read with `fito_technology_fetch`, show the author what the vocabulary now holds, and let
|
|
161
|
+
them decide. **Never write over prose the author has not seen.**
|
|
162
|
+
|
|
163
|
+
Relay any backend rejection **verbatim** — never paraphrase it.
|
|
164
|
+
|
|
165
|
+
**Done when** every axis the author confirmed is written, and the outcome of each command is
|
|
166
|
+
recorded for the report.
|
|
167
|
+
|
|
168
|
+
## 7. Near-duplicate 409 — the resolution is the author's
|
|
169
|
+
|
|
170
|
+
When `create.js` exits with a near-duplicate 409, **nothing has been created**. It prints every
|
|
171
|
+
flagged technology with the layer that found it — `dedup-key` (a deterministic normalized-slug
|
|
172
|
+
collision) or `trigram` (a fuzzy candidate). Relay that block and wait: the vocabulary is **never
|
|
173
|
+
auto-resolved** on the author's behalf, and **the choice is the author's — never yours**.
|
|
174
|
+
|
|
175
|
+
- **reuse** — the match *is* this technology: re-run this command declaring the matched slug, which
|
|
176
|
+
makes the run an update of that technology's descriptions. Preferred.
|
|
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
|
|
179
|
+
consequence: an independent technology is created and will **coexist** with every match in the
|
|
180
|
+
vocabulary, and every component pushed against either slug lands on a different row. Run it only
|
|
181
|
+
after the author explicitly accepts that.
|
|
182
|
+
|
|
183
|
+
**Done when** the author's chosen path has run to a recorded outcome.
|
|
184
|
+
|
|
185
|
+
## 8. Report
|
|
186
|
+
|
|
187
|
+
Summarize for the author:
|
|
188
|
+
|
|
189
|
+
- the technology and major line as they now stand — `<slug>@<version>`, `name`, `kind`;
|
|
190
|
+
- which of the two descriptions were written, and which were left as they were;
|
|
191
|
+
- anything the sources left ungrounded, so the author knows what a later run could still enrich;
|
|
192
|
+
- any near-duplicate the run surfaced and how the author resolved it.
|
|
193
|
+
|
|
194
|
+
Close with the road ahead the technology now opens — nothing else tells the author these are
|
|
195
|
+
unblocked:
|
|
196
|
+
|
|
197
|
+
- knowledge components can be authored against it and pushed without the unknown-technology 422:
|
|
198
|
+
`/fito-identify-*` → `/fito-generate-*` → `/fito-push-knowledge`;
|
|
199
|
+
- a case can be scoped on it: `/fito-case-design --technology <slug>@<version>`.
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Delete a competence a technology demands — resolve its id, preview the whole subtree the delete takes, get the author's explicit yes, then confirm it and report what went"
|
|
3
|
+
argument-hint: "[<competence-id>] [--technology <slug>]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The author wants to **delete** a competence — the record of a standing capability a technology
|
|
7
|
+
demands, and every sub-competence beneath it.
|
|
8
|
+
|
|
9
|
+
Nothing in the backend guards this. There is no in-use check, no window in which to change their
|
|
10
|
+
mind, and no rule about *which* competence may go: the write simply succeeds. **The preview below
|
|
11
|
+
and the author's yes are the only safety there is**, which is why this flow spends two steps on
|
|
12
|
+
them.
|
|
13
|
+
|
|
14
|
+
## 1. Resolve the competence
|
|
15
|
+
|
|
16
|
+
Parse `$ARGUMENTS`:
|
|
17
|
+
|
|
18
|
+
- **`<competence-id>`** — the competence to delete, by the id a create printed or a listing
|
|
19
|
+
reported. This is what the delete acts on.
|
|
20
|
+
- **`--technology <slug>`** (optional) — a lookup for an author who no longer holds the id. Call
|
|
21
|
+
`fito_competence_list` with the slug (the read is public — no login) and show the author what it
|
|
22
|
+
returns: each competence's **name**, **id** and **description**, with its sub-competences nested
|
|
23
|
+
under it. The author picks, and on this branch **the chosen id is one the listing reported** —
|
|
24
|
+
top-level or nested.
|
|
25
|
+
|
|
26
|
+
The slug is a **bare slug** and carries **no `@<version>`**, unlike the sibling authoring command's
|
|
27
|
+
`--technology`. Say so if the author supplies one, rather than refusing a value that looks right to
|
|
28
|
+
them: nothing in a delete reads a **major line** — no component is fetched, competences are stored
|
|
29
|
+
against the slug alone, and `fito_competence_list` takes a slug alone. A version here would be
|
|
30
|
+
theatre.
|
|
31
|
+
|
|
32
|
+
Given neither an id nor a slug, stop and ask:
|
|
33
|
+
|
|
34
|
+
> "Name the competence to delete — `/fito-delete-competence <competence-id>` — or name its
|
|
35
|
+
> technology and pick from the listing: `/fito-delete-competence --technology <slug>` (e.g.
|
|
36
|
+
> `--technology javalin`)."
|
|
37
|
+
|
|
38
|
+
**Given both, the id wins.** The slug is then a confirmation rather than a replacement: list the
|
|
39
|
+
technology and say whether it carries the supplied id. Carry that id forward either way — step 2's
|
|
40
|
+
preview is what proves it — and never swap in a different competence off the listing, which is the
|
|
41
|
+
one outcome this rule exists to prevent.
|
|
42
|
+
|
|
43
|
+
**Never guess a competence id.** An id nobody supplied and no listing reported either comes back as
|
|
44
|
+
a 404, or — the reason this rule is here rather than left to the backend — names a real competence
|
|
45
|
+
the author never meant, and the preview is all that stands between that and a subtree that is gone.
|
|
46
|
+
|
|
47
|
+
An id the author supplied **needs no listing**. It came from a create, or from a listing they
|
|
48
|
+
already read, and **step 2's preview is its check**: the block names the competence, so an id
|
|
49
|
+
pointing somewhere the author did not intend is caught before any write.
|
|
50
|
+
|
|
51
|
+
**Done when** the run holds one competence id the author chose off a listing, or read back to them
|
|
52
|
+
from their own argument.
|
|
53
|
+
|
|
54
|
+
## 2. Preview what the delete takes
|
|
55
|
+
|
|
56
|
+
A delete is authenticated, and the script resolves the session **before the read**. The preview
|
|
57
|
+
itself is public, but an author with no session cannot delete anything — so a logged-out author is
|
|
58
|
+
sent to `/fito-login` rather than shown a preview of a write they cannot make. Relay that guidance
|
|
59
|
+
when it arrives, then re-run this command.
|
|
60
|
+
|
|
61
|
+
Run the script with **no flag**. This run is the read:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
node <fito-competence-write skill dir>/delete.js <competence-id>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
It prints one block: the competence by name and id, **every sub-competence** beneath it by name and
|
|
68
|
+
id, and the **count** that go with it. Relay that block **word for word** — it is what the author is
|
|
69
|
+
about to approve, and a summary of it is not.
|
|
70
|
+
|
|
71
|
+
Two facts about this run, so it is not read as a failure:
|
|
72
|
+
|
|
73
|
+
- It **exits non-zero** having **deleted nothing**, **by design**. The non-zero code is how the
|
|
74
|
+
script says "no `--confirm`, so nothing was written".
|
|
75
|
+
- Its block arrives on **stderr**. The confirmed run in step 4 prints its own block and its success
|
|
76
|
+
line on **stdout** instead, so the same script writes to different streams on its two runs.
|
|
77
|
+
|
|
78
|
+
Read either as a crash and the flow stops at the one step whose whole job is to show the author what
|
|
79
|
+
is at risk.
|
|
80
|
+
|
|
81
|
+
**Done when** the author has the block in front of them, exactly as the script printed it.
|
|
82
|
+
|
|
83
|
+
## 3. Get the author's explicit yes
|
|
84
|
+
|
|
85
|
+
Ask for the yes **after** the block, and require it **naming the competence** that is going. Consent
|
|
86
|
+
is **never inferred from silence**, and never from the author having asked for this command — they
|
|
87
|
+
asked to see what a delete would take, and the block is the first time they see it.
|
|
88
|
+
|
|
89
|
+
Three facts belong here, before the yes rather than after the write, because nothing downstream ever
|
|
90
|
+
tells the author any of them:
|
|
91
|
+
|
|
92
|
+
- **The backend takes the whole subtree in one write.** Every sub-competence in the block goes with
|
|
93
|
+
the competence named at the top of it. There is no partial delete.
|
|
94
|
+
- **A delete stands.** Re-creating the competence **mints a new id**, and every sub-competence under
|
|
95
|
+
it has to be created again — under new ids of their own. Anything holding the old id holds
|
|
96
|
+
nothing.
|
|
97
|
+
- **No learner's recorded proficiency is touched.** Proficiency is keyed by knowledge component, so
|
|
98
|
+
a delete removes a bar from the chart and destroys no score. Say this too: an author who fears
|
|
99
|
+
losing a learner's record will leave a competence they have disowned standing in the listing.
|
|
100
|
+
|
|
101
|
+
The block is a **point-in-time read**, and the delete is a second request. Another owner or an admin
|
|
102
|
+
can add a sub-competence between the two, and it would go with the rest without ever appearing in
|
|
103
|
+
what the author approved. When the review took a while, or anyone else may be writing, **re-run the
|
|
104
|
+
preview** from step 2 immediately before confirming, and read the fresh block back.
|
|
105
|
+
|
|
106
|
+
**Done when** the author has said yes, in their own words, naming the competence.
|
|
107
|
+
|
|
108
|
+
## 4. Delete
|
|
109
|
+
|
|
110
|
+
Drive the `fito-competence-write` skill (read its `SKILL.md`). Run this **only after the author's
|
|
111
|
+
yes** in step 3:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
node <fito-competence-write skill dir>/delete.js <competence-id> --confirm
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
It prints the same block once more, then deletes the subtree and prints its success line — both on
|
|
118
|
+
stdout this time. Relay both **word for word**: the block is the final record of what went, and the
|
|
119
|
+
success line is the backend's own confirmation that it did.
|
|
120
|
+
|
|
121
|
+
**Done when** the success line is in hand, or the run refused and step 5 has it.
|
|
122
|
+
|
|
123
|
+
## 5. A refusal — relay it, then give its next step
|
|
124
|
+
|
|
125
|
+
A refusal writes nothing and exits non-zero. Show the author the line **exactly as** the script
|
|
126
|
+
printed it; the message is the backend's own. Then give the next step for its status:
|
|
127
|
+
|
|
128
|
+
- **403** — the author is neither the competence's owner nor an **admin**. The message names both
|
|
129
|
+
ways in, so the author can tell which one they lack. A competence that came from seeding has no
|
|
130
|
+
owner at all, so an admin is the only way in.
|
|
131
|
+
- **404** — no competence has that id. Read it back with `fito_competence_list` against the
|
|
132
|
+
technology and pick from what it reports.
|
|
133
|
+
|
|
134
|
+
**Done when** the author has the refusal's own words and knows the one thing to do next.
|
|
135
|
+
|
|
136
|
+
## 6. Report
|
|
137
|
+
|
|
138
|
+
Summarize for the author:
|
|
139
|
+
|
|
140
|
+
- the competence that went — its name and its id;
|
|
141
|
+
- every sub-competence that **went with it**, by name, and how many;
|
|
142
|
+
- that the technology's competence listing no longer carries any of them, for any author drafting
|
|
143
|
+
against the same technology and for the learners browsing it;
|
|
144
|
+
- that no learner's recorded proficiency changed.
|
|
145
|
+
|
|
146
|
+
If the competence was deleted because its element list was wrong, the replacement is a fresh
|
|
147
|
+
`/fito-create-or-update-competence` run with the right elements — a new competence, under a new id.
|