Skip to content

fix(ci): update-indexes opens a pull request instead of pushing - #79

Merged
David-Noble-at-work merged 1 commit into
developfrom
fix/update-indexes-opens-a-pr
Aug 27, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
fix/update-indexes-opens-a-pr

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

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.yaml still carries Generated: 2026-01-12.

It now branches, commits, opens a PR, and merges it — the pattern devlore-cli's knowledge-extract
already uses.

Two details that are load-bearing

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 instead of
the old one.

The merge carries no --admin. The NobleFactor Automation app is a bypass actor on the org
ruleset but not on this repository's 21604093:

Ruleset Automation app
Org 12426847 bypass, pull_request mode
Repo 21604093 not a bypass actor

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 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-schemas was red until #78, so any PR this workflow opened
would have been unmergeable. With the registry unfrozen, the indexes can actually land.

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
David-Noble-at-work merged commit 89d5a61 into develop Aug 27, 2026
2 checks passed
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]>
@David-Noble-at-work
David-Noble-at-work deleted the fix/update-indexes-opens-a-pr branch August 28, 2026 15:04
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.

update-indexes.yaml pushes directly to a protected branch; must open a pull request

1 participant