feat: mandatory decomposition gate + pre-PR test shard runner (Closes #579 #580)#596
Merged
Merged
Conversation
Policy: - Add a blocking child-issue gate to evolution-implementation (step 1c). Issues flagged for decomposition cannot be selected until child issues exist. - Update evolution-analysis decomposition step (6b) to use the canonical label and to document the parent update ritual. - Add output-report section to evolution-implementation so runs are persisted in ~/.hermes/profiles/user1/evolution/implementation/. Tooling: - Introduce , a deterministic mapper from changed files to the smallest relevant pytest shard. It uses the mirrored test layout first, falls back to patterns, then to the affected directory. - Add covering mirrored, fallback, deduplication, test-only, and CLI-with-git-diff paths. Closes #579 Closes #580 Co-Authored-By: Hermes Evolution <evolution@hermes.ai>
Contributor
🔎 Lint report:
|
| Rule | Count |
|---|---|
unresolved-import |
2 |
First entries
tests/scripts/test_evolution_test_shard.py:8: [unresolved-import] unresolved-import: Cannot resolve imported module `pytest`
tests/scripts/test_evolution_test_shard.py:14: [unresolved-import] unresolved-import: Cannot resolve imported module `evolution_test_shard`
✅ Fixed issues: none
Unchanged: 6226 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
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.
Policy update and pre-PR local test runner for the evolution pipeline.
Changes:
skills/evolution/evolution-implementation/SKILL.md: adds a blockingneeds-splitchild-issue gate, PR deferral rules, and an output-report section.skills/evolution/evolution-analysis/SKILL.md: updates the decomposition step to use the canonicalneeds-splitlabel and documents the parent-update ritual.scripts/evolution_test_shard.py: deterministic changed-file to pytest shard mapper.tests/scripts/test_evolution_test_shard.py: full coverage for the shard mapper.Local validation:
python -m pytest tests/scripts/test_evolution_test_shard.py -q: 16 passedruff check scripts/evolution_test_shard.py tests/scripts/test_evolution_test_shard.py: passedruff format --check: passedCloses #579
Closes #580
Co-authored-by: Hermes Evolution evolution@hermes.ai