feat(tools/fossil): implement Fossil SCM VCS backend and forge/tracker bridge (#604)#676
Closed
onlyarnav wants to merge 23 commits into
Closed
feat(tools/fossil): implement Fossil SCM VCS backend and forge/tracker bridge (#604)#676onlyarnav wants to merge 23 commits into
onlyarnav wants to merge 23 commits into
Conversation
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
…ation Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
Generated-by: Antigravity
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
tools/fossil/bridge for Fossil SCM — the distributed VCS with an integrated issue tracker, wiki, and forum in a single SQLite-backed file. Fossil collapses the forge + tracker + VCS split the rest of our bridges assume, so this single adapter covers whattools/github/+ a VCS shim cover separately.tools/vcs/withFossilBackendand a newcatsubcommand (file-at-version retrieval, implemented across Git, Mercurial, and Fossil).Type of change
tools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)Test plan
uv run pytest/ruff check/mypypassesuv run --directory tools/fossil pytest— 15 passeduv run --directory tools/fossil ruff check— All checks passeduv run --directory tools/fossil mypy— Success: no issues found in 7 source filesuv run --directory tools/vcs pytest— 21 passed, 4 skipped (Mercurial skipped due to missinghg)uv run --directory tools/vcs ruff check— All checks passeduv run --directory tools/vcs mypy— Success: no issues found in 2 source filesuv run --directory tools/sourcehut pytest— 14 passed (verified no regression from prior SourceHut work)prek run --all-filespasseslycheehook fails due to missing MSVC linker on Windows (pre-existing, not caused by this PR). All other hooks pass. Thespec-validatefailures are also pre-existing (missing.claude/skills/magpie-*symlink targets unrelated to this change).RFC-AI-0004 compliance
ticket create,ticket edit,ticket comment,commit) are CLI commands invoked by the calling skill; no autonomous mutationsfossilCLI invocations against the local repository databasetools/fossil/is a standalone adapter behind the existing capability contracts; no skill carries a Fossil assumption; thecheck-placeholdershook is unaffected (no placeholders in adapter code)Linked issues
Closes #604
Notes for reviewers (optional)
sqlite3queries against the Fossil repository database (fast, offline, no network), but delegates write operations and artifact decompression to thefossilCLI binary. This avoids reimplementing Fossil's artifact format and hash verification while keeping reads instant.catsubcommand addition: Thecatcommand was added to the abstractVCSBackendinterface and implemented for all three shipping backends (Git viagit show, Mercurial viahg cat, Fossil viafossil cat). This is a minor interface extension that benefits all backends.Ufor user,Dfor date,Wfor subject,Ifor in-reply-to,Zas payload separator). The parser inforum.pyreconstructs thread hierarchies from these cards.