Repository navigation
Conversation
A failed persistence artifact export after a successful publish reported status error with a hint blaming repo_path: 'Pipeline failed. Check repo_path exists and contains source files.' On a read-only checkout with --persistence true, the graph database was published fine — only the team-sharing artifact could not be written — and the hint pointed the reader at the wrong cause. The pipeline now snapshots the artifact export error of the run it just executed (not the process-global one, which may describe a previous run). index_repository uses that snapshot to name the real failure — the artifact directory, the export detail and the remedies (writable checkout or --persistence false) — while every other failure keeps the existing hint byte-for-byte. The fail-hard semantics are unchanged. Fixes DeusData#1665 Signed-off-by: Ulises Millan Guerrero <ulises.millanguerrero@gmail.com>
|
Thanks for opening this — it has been seen, and it is queued. This note is automated, but it is not a brush-off: it exists so you know where your PR stands instead of having to guess from silence. Current review status: working through a backlog. What that means for this PR, concretely:
Things that will genuinely speed it up whenever review does happen:
If this fixes a bug, a reproduction we can run is worth more than a description of the symptom. Thanks for contributing, and sorry in advance for the wait. |
|
Thank you for tracing the misleading error to the post-publish artifact phase and for preserving the existing fail-hard contract. I checked current Before code review, please remove the 135 lines under the five new |
|
Approved on merit. One thing to remove first. Please drop the
|
Distilled from #1789 by Ulises Millan Guerrero, unchanged except for the five openspec/ scaffolding files that could not land. The indexing pipeline already logged its own phase error when artifact export failed after publication, but the MCP failure path returned the generic "Pipeline failed. Check repo_path" regardless. A caller whose export failed was told to check a repository path that was fine, while the one log line naming the real phase sat somewhere they were not looking. The fix carries the failing phase out of the pipeline and into the MCP error, so the message names artifact export when that is what failed. The existing fail-hard contract is preserved -- this changes what the caller is told, not whether the run fails. Why this is a distill rather than the original: five of the nine files in on main, no other contributor uses it, and adopting a spec framework is a project-level decision rather than something that rides in on a bug fix. That was explained on 2026-09-02 and the code half was approved on merit the same day; the scaffolding is the only reason it did not land then. Co-authored-by: Ulises Millan Guerrero <ulises.millanguerrero@gmail.com> Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
Distilled from #1789 by Ulises Millan Guerrero, unchanged except for the five openspec/ scaffolding files that could not land. The indexing pipeline already logged its own phase error when artifact export failed after publication, but the MCP failure path returned the generic "Pipeline failed. Check repo_path" regardless. A caller whose export failed was told to check a repository path that was fine, while the one log line naming the real phase sat somewhere they were not looking. The fix carries the failing phase out of the pipeline and into the MCP error, so the message names artifact export when that is what failed. The existing fail-hard contract is preserved -- this changes what the caller is told, not whether the run fails. Why this is a distill rather than the original: five of the nine files in on main, no other contributor uses it, and adopting a spec framework is a project-level decision rather than something that rides in on a bug fix. That was explained on 2026-09-02 and the code half was approved on merit the same day; the scaffolding is the only reason it did not land then. Co-authored-by: Ulises Millan Guerrero <ulises.millanguerrero@gmail.com> Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
|
Thank you, @umi008! Your fix is now on We carried it in a separate PR rather than merging this one only because five of the nine files were |
What does this PR do?
With
--persistence trueon a read-only repository,index_repositoryreportedstatus: "error"with the hint "Pipeline failed. Check repo_path exists and contains source files" — blaming the repository for a failure that is actually the post-publish team-sharing artifact export (.codebase-memory/cannot be written inside a read-only checkout). The graph database itself published fine.The pipeline now snapshots the artifact export error of the run it just executed (a per-pipeline buffer, not the process-global export error which can describe a previous run).
index_repositoryconsults that snapshot on failure and names the real cause: the artifact export, the error detail, and the remedies (writable checkout or--persistence false). Every other failure path keeps the existing hint byte-for-byte.The fail-hard semantics are unchanged: a failed persistence export still makes the run fail, which is the in-tree documented decision (
export_after_publish, "intentionally fails the run"). This change only makes an already-failing run report the truth — the issue-1466-era misleadingrepo_pathhint is what hid the cause.Verified with a reproduce-first pipeline test: an artifact directory blocked (
.codebase-memoryas a file), fixture indexed, assertsrc != 0,cbm_pipeline_export_error()non-empty and naming the artifact phase, the DB still published, and a clean re-run leaving the snapshot empty.Checklist
git commit -s) — required, CI rejects unsigned commits (DCO, see CONTRIBUTING.md)make -f Makefile.cbm test)make -f Makefile.cbm lint-ci)