Repository navigation
Sweep filing: seed code-scanning and Dependabot tasks' context_files from their alert locations - #9786
Merged
Conversation
Sweep filing: seed code-scanning and Dependabot tasks' context_files from their alert locations Implemented sweep context_files seeding. Orbit-Task: ORB-25214
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.
Task
ORB-25214 — Sweep filing: seed code-scanning and Dependabot tasks' context_files from their alert locations
Description
Daniel's direction (session f09993e5, 2026-11-16), on ORB-25213: "can't we extract the context_files?"
Observed
Code-scanning tasks are filed with
context_files: Vec::new()(crates/orbit-core/src/application/sweep_filing/dependabot/code_groups.rs, comment "Scanner locations are evidence about where the finding was observed, not a reliable claim about which files the repair will modify. Task-pilot resolves those selectors from its pinned checkout."). Dependabot dependency tasks (sweep_filing/dependabot/filing.rs) set none either, though each alert names its manifest.Until the task pilot runs, such a task has an unknown footprint and holds no file lock. ORB-25213 (alert #501,
crates/orbit-registry/src/machine_identity.rs:109) was filed at 03:54:49Z and shipped from the dashboard two minutes later with readiness waived, so it is running beside other work with no lock, although its alert names the file it will almost certainly touch. The CI-failure sweep already seedsfile:selectors from log locations (ci_failure/cluster.rscontext_files()), so this is the one sweep path that files empty.End state
A code-scanning task is filed with a
file:selector for every distinct alert path in its group, and a Dependabot dependency task with its alert's manifest (and lockfile, where the alert names one). Paths that do not exist at the filing base, or fall in.git/.orbit, are dropped rather than filed. The seeded list is a starting footprint: the task pilot and the run's own widening still add the real repair site, and nothing here stops them. The comment incode_groups.rsis updated to say why the seed exists.Behaviour change: newly filed sweep tasks carry context_files and a footprint; existing tasks are not rewritten.
Acceptance Criteria
Execution Summary
Click to expand
Implemented sweep context_files seeding.
Changes:
Acceptance criteria:
Validation (all passed):
Reconciliation vs step-3 baseline (was clean):
Risks/deviations:
Validation
Branch Freshness
refs/remotes/origin/agent-mainorbit/ORB-25214-aa7efcc5