Repository navigation
fix(ci): update-indexes opens a pull request instead of pushing - #79
Merged
Merged
Conversation
The workflow pushed regenerated indexes straight into the protected branch that triggered it. Organization ruleset 12426847 refuses a direct push for everyone -- there are no bypass actors for one -- so the step failed every run. That is #75, and it is why INDEX.yaml still carried "Generated: 2026-01-12". It now branches, commits, opens a pull request, and merges it, following the pattern devlore-cli's knowledge-extract already uses. Two details are load-bearing rather than cosmetic. The branch is chore/update-indexes-<sha>. Ruleset 12515090 became actively enforced on 2026-08-27 with ^(chore|doc|feature|fix|hotfix|refactor|release)/.+$; a bare update-indexes-<sha> would be refused at push and the workflow would fail in a new way. The merge carries no --admin. The NobleFactor Automation app is a bypass actor on the org ruleset but NOT on this repository's 21604093, so a red quality-gate or validate-yaml-schemas refuses the merge server-side. Regenerated indexes should not land over a failing gate, and if the merge cannot happen the pull request is left open with the indexes on it rather than discarded. The retry loop is bounded and consults PR state before retrying, because a failed attempt may still have merged server-side.
David-Noble-at-work
added a commit
that referenced
this pull request
Aug 28, 2026
… deleting it again (#82) 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. Co-authored-by: David Noble <[email protected]>
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.
Closes #75.
The workflow pushed regenerated indexes straight into the protected branch that triggered it.
Organization ruleset 12426847 refuses a direct push for everyone — there are no bypass actors for
one — so the step failed every run. That is why
INDEX.yamlstill carriesGenerated: 2026-01-12.It now branches, commits, opens a PR, and merges it — the pattern devlore-cli's
knowledge-extractalready uses.
Two details that are load-bearing
The branch is
chore/update-indexes-<sha>. Ruleset 12515090 became actively enforced on2026-08-27 with
^(chore|doc|feature|fix|hotfix|refactor|release)/.+$. A bareupdate-indexes-<sha>would be refused at push, and the workflow would fail in a new way instead ofthe old one.
The merge carries no
--admin. The NobleFactor Automation app is a bypass actor on the orgruleset but not on this repository's 21604093:
pull_requestmodeSo a red
quality-gateorvalidate-yaml-schemasrefuses the merge server-side. Regeneratedindexes should not land over a failing gate — and if the merge cannot happen, the PR is left open
with the indexes on it rather than discarded, so nothing is lost.
The retry loop is bounded and consults PR state before retrying, since a failed attempt may still
have merged server-side.
Why this can work now
It could not have before.
validate-yaml-schemaswas red until #78, so any PR this workflow openedwould have been unmergeable. With the registry unfrozen, the indexes can actually land.