Delete a job removed from the manifest if it never ran
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing sync behavior for jobs removed from .secondshift.yaml and how Run.job uses PROTECT. Then inspect the job relationships named in the issue—tasks, grants, triggers, capability requests—and their deletion behavior. Confirm that jobs without runs can be deleted without dangling records, jobs with runs retain removed_at, and resolve whether old approvals should expire when a job returns.
Written by the indexing model from the issue text.
Description
Follows #242.
When a job leaves .secondshift.yaml, sync marks it with removed_at instead of deleting it. That keeps history that matters: runs, reports, deliveries and the record of who approved its access. Run.job is PROTECT, so a job with runs can't be deleted anyway.
A job that never ran has no history to keep. Its row is only clutter, for example a job that was added and renamed before it ever ran.
Proposal
- In sync, delete a job that drops out of the manifest when it has no runs. Its triggers and capability requests go with it through the existing cascades.
- Jobs with runs keep the
removed_atmark as today. - Check what else points at a job (tasks, grants, triggers) and confirm that deleting it leaves nothing dangling.
Open question
A job added back keeps its old approvals. Sync already drops approvals for capabilities the job no longer asks for, so it never gains access it wasn't approved for. Decide whether approvals should also expire after the job has been gone a long time, so access gets reviewed again.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 9m
- Merged PRs (30d)
- 322
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from piotrekno1/second-shift
-
code-review secondshift
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
piotrekno1/second-shift#419 ·
Maintainers usually reply within 1 day
-
area: deployment
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
piotrekno1/second-shift#310 ·
Maintainers usually reply within 1 day
-
code-review secondshift
Difficulty 4/5 3-5 days Newbie friendliness 46/100
piotrekno1/second-shift#421 ·
Maintainers usually reply within 1 day
-
code-review secondshift
Difficulty 4/5 3-5 days Newbie friendliness 56/100
piotrekno1/second-shift#420 ·
Maintainers usually reply within 1 day
-
Fix failed-delivery retries on PostgreSQLPossibly taken @piotrekno1 claimed this today. Opencode-review fix-approved secondshift
Difficulty 3/5 1-2 days Newbie friendliness 35/100
piotrekno1/second-shift#418 ·
Maintainers usually reply within 1 day
All issues in piotrekno1/second-shift
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
area:cli area:security enhancement priority:medium size:small
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
RonaldHensbergen/composable-data-stack#1338 ·
Maintainers usually reply within 1 day
-
area:stdlib effort:S impact:med platform:linux type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
automated endpoint-dead needs-curation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
almanac-data/climate-almanac#139 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/inspect_ai#6695 · 1 comment ·
Maintainers usually reply within 1 day