Skip to content

fix: restore the knowledge metadata #80 deleted, and stop the indexer deleting it again - #82

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

David-Noble-at-work merged 1 commit into
developfrom
fix/restore-knowledge-metadata

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

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.

File Lines Lost
knowledge/packages/index.yaml 28 → 5 concepts:; every slot's package, description, platforms, install_types; an entire ollama slot
knowledge/migration/index.yaml 31 → 23 concepts:
knowledge/shared/index.yaml 18 → 9 providers:

What this does

  • Restores all three from b435dd0^. The script that made the commit verifies each is
    byte-identical to the original before committing.
  • Disables the knowledge index step — commented out with the reason in place, not deleted.
  • Keeps the package indexer running. It is not lossy.

Nothing in CI could have caught this

validate-yaml-schemas checks that the YAML parses and matches its schema. The stripped files did
both — they were valid, just empty of meaning. The gate validates structure, not preservation.

Two sections have no home in the vocabulary

concepts: (migration, packages) and providers: (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 in
its KnowledgeIndex struct and would have destroyed them too. It preserves per-entry metadata
but 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 these
domains 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.yaml is listed in the index but does not exist on disk — one
stale entry of 26. A correct indexer should drop it, so the first run after the fix will produce
exactly that one legitimate diff.

… 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.
@David-Noble-at-work
David-Noble-at-work merged commit 5a4e91e into develop Aug 28, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/restore-knowledge-metadata branch August 28, 2026 15:02
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