Skip to content

feat(cli): detect duplicate raki run and warn before re-evaluation#294

Merged
decko merged 5 commits into
mainfrom
soda/282
May 19, 2026
Merged

feat(cli): detect duplicate raki run and warn before re-evaluation#294
decko merged 5 commits into
mainfrom
soda/282

Conversation

@decko
Copy link
Copy Markdown
Owner

@decko decko commented May 19, 2026

Refs #282

  • Adds find_last_matching_entry() and format_time_ago() helpers to history module
  • Warns when manifest + session count matches a prior run (unless --force)
  • Adds --force flag to bypass the duplicate-run check
  • Path traversal guard for --history-path resolved once and reused

decko added 5 commits May 19, 2026 10:35
…mmand

- Add --force flag to raki run to bypass duplicate detection
- Wire find_last_matching_entry() + _format_time_ago() into the run command
  before engine.run() is called
- Warn and abort (exit 0) when manifest + session_count match a prior run
- --no-history skips duplicate detection entirely
- --force overrides detection and proceeds with the run
- 5 TDD tests: help output, first run, duplicate warn+abort, --force bypass,
  --no-history bypass
Add --no-history to tests that don't care about history behavior (the
duplicate check now blocks re-runs of the same manifest+session_count).
Add --force to test_history_file_contains_one_entry_per_run so it can
append all 3 expected entries. Avoids polluting the project-root history
file across test invocations.
@decko decko merged commit 644b2b9 into main May 19, 2026
4 checks passed
@decko decko deleted the soda/282 branch May 19, 2026 15:31
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.

1 participant