Skip to content

fix(missions): project global list summaries from authoritative records - #2618

Merged
nicobailon merged 2 commits into
nicobailon:mainfrom
quifox:fix/mission-global-projection
Oct 1, 2026
Merged

nicobailon merged 2 commits into
nicobailon:mainfrom
quifox:fix/mission-global-projection

Conversation

@quifox

@quifox quifox commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

When a mission record update succeeds but updating its global index fails, the global list still shows the old title, status, updatedAt and lastRunId. Project records are the source of truth, so build those summary fields from the validated record that listGlobalMissions already reads. A record with no runs also clears an obsolete index lastRunId.

Keep pointer identity checks and existing corrupt/missing-record handling. This changes only the returned projection; it adds no reads, scans or index writes.

Validation: all four mission unit test files passed (36 tests), including a real record/index rename EIO regression, healthy controls, sorting and stale lastRunId handling. Typecheck and diff checks passed. A broader combined full-suite run had five failures also reproduced on the unchanged base (a permission-sensitive fixture and orphan-process teardown); it was not a clean full-suite pass. Windows was not tested locally.

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Changes how the global mission list reads and displays mission data.

No outstanding code finding was identified, but merge readiness cannot be confirmed without required CI results for the exact PR head.

Summary

The global mission list now projects title, status, update time, and latest run ID from validated project records while retaining index pointers for lookup. Focused regression tests cover a failed index update, sorting, obsolete run IDs, and invalid records. The changelog now credits @quifox and PR #2618.

Reviews (2) · Last reviewed commit: "docs: credit contributor for #2618"

Comment thread CHANGELOG.md Resolved
@nicobailon
nicobailon merged commit d6726ae into nicobailon:main Oct 1, 2026
14 checks passed
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.

2 participants