Repository navigation
fix: make the knowledge tree and its indexes agree, and close the schema - #84
Merged
Merged
Conversation
devlore-cli#719 taught the indexer to refuse rather than guess. Running it against this tree found five disagreements, each a decision it declined to make. This settles them and re-enables the step that was disabled after #80. WHAT MOVED dotfile-systems.yaml sat at the migration domain root while the index claimed it under signatures/. It is neither: the signature files describe one system each, and this describes them all -- layout discipline, which features a system provides natively, and which a consumer layers on top. Stow offers link management and its users bolt on git-crypt; tuckr ships encryption. That is a taxonomy, so it moves to concepts/ and is indexed with a description saying when to read it. systems-reference.yaml was generated at the domain root under a name describing one of its four constant families. It becomes references/writ-migrate-vocabulary.yaml: an asset type that says the content is derived, and a name that says whose vocabulary it is. WHAT WAS INVISIBLE package-authoring/bindings/ holds three files the extract pipeline writes and no index mentioned. Now indexed, and marked generated. migration/README.md is furniture, and admitted as such by devlore-cli. Its five links pointed at from-*.yaml files as though they sat beside it; they live in transforms/. All five now resolve. Nobody had noticed, which says something about whether it was being read. PROVENANCE Every entry declares generated: true or false -- three true, forty-one false. The three are the extract pipeline's outputs. Nothing else in this tree is produced by a machine, and now nothing has to be guessed at to know that. THE SCHEMA STOPS PERMITTING ANYTHING knowledge.index.json named six asset types and left additionalProperties unset, so JSON Schema admitted any section at all -- a typo'd name validated. It now carries concepts, providers, bindings and references, requires generated on every entry, and sets additionalProperties: false. Verified: an invented section is rejected where it previously passed. Entry metadata stays open, deliberately. Slots carry package, platforms and install_types; closing that would be a second decision wearing the first one's clothes. RE-ENABLED The knowledge index step runs again. A failure now means the tree and its indexes disagree and somebody must say which is right -- not that metadata is being deleted. Verified before pushing: no refusals, 44 assets across 6 domains, and a second run changes nothing. Phase A of devlore-cli's docs/plans/cag-epic.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
devlore-cli#719 taught the indexer to refuse rather than guess. Running it against this tree found
five disagreements, each a decision it declined to make. This settles them, and re-enables the
step disabled after #80.
What moved
dotfile-systems.yamlsat at the migration domain root while the index claimed it undersignatures/. It is neither: the signature files describe one system each, and this describes themall — layout discipline, which features a system provides natively, and which a consumer layers on
top. Stow offers link management and its users bolt on git-crypt; tuckr ships encryption. That is a
taxonomy →
concepts/dotfile-systems.yaml, indexed with a description saying when to read it.systems-reference.yamlwas generated at the domain root under a name describing one of its fourconstant families →
references/writ-migrate-vocabulary.yaml. An asset type that says the content isderived, and a name that says whose vocabulary it is.
What was invisible
package-authoring/bindings/— three files the extract pipeline writes, mentioned in no index.Now indexed, and marked generated.
migration/README.md— furniture, admitted as such by devlore-cli. Its five links pointed atfrom-*.yamlas though they sat beside it; they live intransforms/. All five now resolve. Nobodyhad noticed.
Provenance
Every entry declares
generated: 3 true, 41 false. The three are the extract pipeline's outputs.The schema stops permitting anything
knowledge.index.jsonnamed six asset types and leftadditionalPropertiesunset, so JSONSchema admitted any section at all — a typo'd name validated silently.
It now carries
concepts,providers,bindings,references, requiresgeneratedon everyentry, and sets
additionalProperties: false. Verified: an invented section is rejected where itpreviously passed.
Entry metadata stays open, deliberately — slots carry
package,platforms,install_types, andclosing that would be a second decision wearing the first one's clothes.
Re-enabled
The knowledge index step runs again. A failure now means the tree and its indexes disagree and
somebody must say which is right — not that metadata is being deleted.
Verified before pushing: no refusals, 44 assets across 6 domains, and a second run changes
nothing.
Ordering
This merges after devlore-cli's half, which the script enforces: the step builds
starfromdevlore-cli's default branch, so landing this first would run the old indexer against a tree it
refuses.
Phase A of devlore-cli's
docs/plans/cag-epic.md.