Repository navigation
Commit ddd4445
authored
feat(service): generic schema and search operations with an osl-tasks skill (#204)
* feat(service): add task and project operations with a Claude skill
- seven task operations shared by the CLI and the MCP server
- fixed status and priority vocabularies; references resolved by label
- OSW_PERSON_IRI plus three category overrides, all optional
- osl-tasks skill, installed by `osw skill install` or as a plugin
- reads the stored page uncached, and verifies a write really landed
* docs(service): correct the cause of the emptied reference lists
- oold's LinkedBaseModel.__init__ clears them, not _store
- no wiki call is involved; cls(**jsondata) alone is enough
- rename the test to match
* feat(service): derive SMW property names from the category @context
- read the field-to-property mapping from the category schema chain
- cache the merged context per WtSite, cleared by clear_cache
- keep the hardcoded names as a fallback when the schema is unreadable
- alias printouts to the property name; SMW keys them by display label
- raise instead of querying a property the @context does not declare
* feat(service): add generic schema, search and validation operations
- search ask: printouts parameter, result keys forced by an alias
- search label: find an entity or category by its display title
- schema get: resolve option merges the category inheritance chain
- schema props: expose the Semantic MediaWiki property map
- entity validate: check a payload against the resolved schema
* fix(service): reconcile validate_entity with the write path
- exempt uuid and type from required: the osw model supplies both
- report pages the schema walk could not use as `skipped`, with a reason
- treat a blank schema slot as absent, not as a parse failure
- drop a skipped entry when a shorter branch read that page successfully
- guard a malformed `required` so it still surfaces as SchemaError
* feat(service): add schema field-usage operation
- count per category field how many stored instances populate it
- answers which of several same-shaped fields real data uses
- guard the category against ask-query injection, as search does
- read instances uncached, like the schema walk in the same module
- report nothing when the sample is empty, and say why a page failed
* refactor(service): drop the task read and render operations
- list_tasks, list_projects and list_persons are covered by the generic
search ask and search label operations
- render_task_view wrote a local Markdown file, which the skill does itself
- _resolve_ref now names search_by_label instead of the removed list ops
- OSW_PERSON_IRI is no longer read by any operation
* fix(service): report created, updated and skipped pages separately
- default overwrite changes from 'keep existing' to 'true', so an update writes
- created/updated split comes from the pre-write WtPage.exists flag
- 'keep existing' now reports the page as skipped instead of updated
- the ledger records only pages that were actually written
* docs(skill): drive osl-tasks from the generic operations
- replaces the task-specific commands with entity, schema and search ops
- keeps the three category page names in prose; they are not discoverable
- status and priority vocabularies are read from the category schema
- records the update-by-uuid rule and the required-label validation
- documents the printout value shapes returned by an ask query
* refactor(service): remove the task service module
- create_task, update_task and create_person are covered by the osl-tasks
skill driving the generic entity, schema and search operations
- drops the 'task' CLI group and its three MCP tools
- keeps the four OSW_*_CATEGORY and OSW_PERSON_IRI variables; no operation
reads them any more, the skill reads the environment directly
- corrects the documented status and prio vocabularies: they store page
names read from the category schema, not the words the commands took
* fix(skill): validate before the first write, and cover the task settings
- the skill now runs 'entity validate' once per run, which catches a wrong
status page name against the schema enum before anything is stored
- adds the alias mapping the deleted module held, as prose
- states that the four env variables are unreachable through the MCP server
- a config test now covers the four settings no operation reads
* docs(service): name the two terms that could desync the skipped check
* build(release): stamp the osw version into the osl-tasks skill
- SKILL.md carries it as metadata.version, the Agent Skills spec field
- python-semantic-release rewrites it with pyproject.toml and CITATION.cff
- a test fails when the two versions differ or the entry is removed
* test(release): check the version bump touches only the skill frontmatter
* build(release): stamp the osw version into the plugin manifest too
- register .claude-plugin/plugin.json:version with python-semantic-release
- set the plugin and skill versions to the current 2.7.0 after the rebase
- parametrize the three version guard tests over skill and plugin
* test(release): cover CITATION.cff in the version stamping guards
- add the third stamped file to both parametrized guard tests
- compare against the release tool's own read, not a UTF-8 read
- name all four stamped files in the release workflow comment
* test(release): drop the version equality check
- a PR is tested against its merge with main, so a release there leaves a
branch that edits SKILL.md with an older version in that file only
- the check failed on this PR for that reason, not for a real defect
- registration and replacement tests still cover the rot that matters
- set the skill and plugin versions to main's current 2.7.11 parent 480819d commit ddd4445
23 files changed
Lines changed: 3373 additions & 35 deletions
File tree
- .claude-plugin
- .github/workflows
- docs/tools
- src/osw
- cli
- mcp
- service
- ops
- skills/osl-tasks
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
306 | | - | |
| 309 | + | |
| 310 | + | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| |||
315 | 319 | | |
316 | 320 | | |
317 | 321 | | |
318 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
319 | 330 | | |
320 | 331 | | |
321 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
151 | 190 | | |
152 | 191 | | |
153 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
108 | 128 | | |
109 | 129 | | |
110 | 130 | | |
| |||
166 | 186 | | |
167 | 187 | | |
168 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
169 | 200 | | |
170 | 201 | | |
171 | 202 | | |
| |||
755 | 786 | | |
756 | 787 | | |
757 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
758 | 793 | | |
759 | 794 | | |
760 | 795 | | |
| |||
0 commit comments