Skip to content

fix: make the knowledge tree and its indexes agree, and close the schema - #84

Merged
David-Noble-at-work merged 1 commit into
developfrom
fix/knowledge-tree-consistency
Aug 28, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
fix/knowledge-tree-consistency

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

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.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 → concepts/dotfile-systems.yaml, 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 → 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/ — 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 at
from-*.yaml as though they sat beside it; they live in transforms/. All five now resolve. Nobody
had 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.json named six asset types and left additionalProperties unset, so JSON
Schema admitted any section at all — a typo'd name validated silently.

It now carries concepts, providers, bindings, 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, install_types, and
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.

Ordering

This merges after devlore-cli's half, which the script enforces: the step builds star from
devlore-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.

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.
@David-Noble-at-work
David-Noble-at-work merged commit 694b2e7 into develop Aug 28, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/knowledge-tree-consistency branch August 28, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant