Repository navigation
fix: restore the knowledge metadata #80 deleted, and stop the indexer deleting it again - #82
Merged
Conversation
… deleting it again
star devlore knowledge index rebuilds each domain's index.yaml from a directory
listing and writes {"name": filename} per entry. Everything else in the file is
discarded. That was invisible while update-indexes was failing; #79 unfroze it,
and #80 -- its first successful run -- deleted curated metadata from three
domains:
knowledge/packages/index.yaml 28 -> 5 lines: the concepts section, every
slot's package/description/platforms/
install_types, and an entire ollama slot
knowledge/migration/index.yaml 31 -> 23: the concepts section
knowledge/shared/index.yaml 18 -> 9: the providers section
All three are restored from b435dd0^ and verified byte-identical by the script
that made this commit.
The knowledge index step is commented out rather than deleted, with the reason in
place. The package indexer is not lossy and keeps running.
Nothing in CI could have caught this. validate-yaml-schemas checks that the YAML
parses and matches its schema; the stripped files did both. The gate validates
structure, not preservation.
Two sections have no home in the indexer's vocabulary: concepts, in migration and
packages, and providers, in shared -- both backed by real files on disk. Six asset
types are recognized; these are the seventh and eighth. cmd/devlore-index, the
uninvoked Go tool that looked like the fix, has the same six in its struct and
would have destroyed them too.
Re-enabling waits on the indexer preserving what it did not write, planned in
devlore-cli. That plan takes its authority from docs/devlore-ai-design-brief.md,
which serves these domains through an MCP facade and requires a determinism gate
at publish -- a bar an indexer that silently reshapes its output cannot meet.
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.
star devlore knowledge indexrebuilds each domain'sindex.yamlfrom a directory listing andwrites
{"name": filename}per entry. Everything else in the file is discarded.That was invisible while
update-indexeswas failing. #79 unfroze it, and #80 — its firstsuccessful run — deleted curated metadata from three domains.
knowledge/packages/index.yamlconcepts:; every slot'spackage,description,platforms,install_types; an entireollamaslotknowledge/migration/index.yamlconcepts:knowledge/shared/index.yamlproviders:What this does
b435dd0^. The script that made the commit verifies each isbyte-identical to the original before committing.
Nothing in CI could have caught this
validate-yaml-schemaschecks that the YAML parses and matches its schema. The stripped files didboth — they were valid, just empty of meaning. The gate validates structure, not preservation.
Two sections have no home in the vocabulary
concepts:(migration, packages) andproviders:(shared), both backed by real files on disk.Six asset types are recognized; these are the seventh and eighth.
cmd/devlore-index— the uninvoked Go tool that looked like the obvious fix — has the same six inits
KnowledgeIndexstruct and would have destroyed them too. It preserves per-entry metadatabut not unknown sections.
What re-enabling waits on
The indexer preserving what it did not write, planned in devlore-cli. Sections become a strict
contract: a section without a directory, a directory without a section, or an unrecognized name all
refuse rather than silently reshape the file.
That plan takes its authority from
devlore-cli/docs/devlore-ai-design-brief.md, which serves thesedomains through an MCP facade and requires a determinism gate at publish — "serialize twice,
compare hashes, reject on mismatch". An indexer that silently changes the shape of its output
cannot meet that bar.
Known, and not fixed here
migration/signatures/dotfile-systems.yamlis listed in the index but does not exist on disk — onestale entry of 26. A correct indexer should drop it, so the first run after the fix will produce
exactly that one legitimate diff.