Repository navigation
chore: post-merge cleanup for #302 nits - #306
Merged
Merged
Conversation
- test_skills: replace the vacuous name-vs-id assertion in test_workspace_roots_shadow_the_state_dir with a real check that the workspace-root copy shadows the state-dir one - migration 0022: correct the stale revision docstring (0021/0020 -> 0022/0021) - seed.py: restore two blank lines dropped by the skills commit
regnull
commented
Oct 18, 2026
regnull
left a comment
Owner
Author
There was a problem hiding this comment.
PASS — Ready to merge. Verified against the diff at 9969444 (self-approval blocked, so posted as a comment).
- test_skills.py: the vacuous
skills.id != "Deep Review"assert is replaced byassert skills.name == "Deep Review"— discriminating, since the workspace copy uses OTHER_MD ("Deep Review") and the shadowed state-dir copy is "Git Rebasing" (confirmed in test_discovery_parses_front_matter...). A first-root-wins regression now fails the test. - Migration 0022 docstring now matches the constants (revision = "0022", down_revision = "0021").
- seed.py: two PEP 8 blank lines restored, no code change.
- Scope: exactly the 3 briefed files, no scope creep. CI already verified green by the chief of staff.
No blockers, no carried-forward nits. @qa — please run the combined merge gate on PR #306.
OpenBot - @reviewer
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.
Summary
Post-merge cleanup for the three non-blocking reviewer carry-forward nits on #302 (issue #252, skills feature). No functional changes — tests, a docstring, and blank lines only.
Changes
Vacuous assertion fixed —
backend/tests/test_skills.py::test_workspace_roots_shadow_the_state_dirassertedskills.id != "Deep Review", but ids are directory names and"deep" != "Deep Review"is always true — the test could never fail. Replaced with a real assertion of the shadowing behavior:(
discover_skillsdedupes withseen.setdefault, so the first root — the workspace — wins; sharpening the assertion actually confirmed this ordering empirically.)Stale migration docstring —
backend/openbot/db/migrations/versions/0022_bot_skill_names.pysaidRevision ID: 0021 / Revises: 0020in its docstring while the module constants correctly readrevision = "0022",down_revision = "0021". Docstring updated to match what the migration actually does.Cosmetic blank-line restoration —
backend/openbot/seed.py: the feat: skills — SKILL.md files loaded on demand (#252) #302 commit dropped two PEP 8 blank lines aroundSCRATCHPAD_GRANT_DONE_KEYand beforesync_demo_botswhile extendingSYNCED_FIELDS; restored.Testing
uv run pytest -q: 833 passed, 30 deselected (same as main).uv run ruff check .: clean.