Skip to content

feat(tools): add source-control (VCS) capability and wire it into git-using skills - #609

Merged
potiuk merged 1 commit into
mainfrom
feat/source-control-capability
Jun 29, 2026
Merged

potiuk merged 1 commit into
mainfrom
feat/source-control-capability

Conversation

@potiuk

@potiuk potiuk commented Jun 29, 2026

Copy link
Copy Markdown
Member

Summary

Makes source control (VCS) a first-class, separable capability of
the tool layer — distinct from the issue-tracker / forge surface — so a
project can pair its tracker with a non-Git VCS. Until now the dev-loop
skills hard-coded git inline with no documented seam.

This is the groundwork the non-Git VCS bridge issues build on:
#601 (Mercurial), #602 (Subversion), #603 (Jujutsu), #604 (Fossil),
#605 (Perforce), and the ASF-SVN tool adapter #608.

Capability definition

File Change
tools/github/source-control.md New. Maps the abstract VCS operations the skills need (status, branch, stage, commit, diff, log, fetch, push, worktree, stash) to their Git bindings; documents the distributed-vs-centralized caveat; lists the tracked non-Git bridges.
tools/github/tool.md Source control listed as the 6th capability; "When to replace this tool" now states tracker and VCS are separable.
projects/_template/project.md Dedicated Source control row in the Tools enabled manifest.

Skills wired (the six that use git as the project's source control)

Each now states its git … calls are the Git binding of the
capability, and that a project enabling a non-Git VCS under
Tools enabled → Source control substitutes that tool's binding for
the same abstract operation — skill logic unchanged.

  • issue-fix-workflow — branch/stage/commit/diff/push
  • security-issue-fix — status/fetch/branch/diff/commit/push (incl. fork)
  • pr-management-code-review (selectors) — git log / git diff history read
  • issue-reproducer (SKILL + runtime-recipes) — working-tree reset
  • issue-reassess (per-issue-flow) — git status reset verify
  • issue-triage — git log --grep recent-fix scan

Deliberately out of scope

Framework-plumbing git usage — all setup-steward/*,
setup-shared-config-sync, setup-override-upstream,
setup-isolated-setup-* — is not wired in. That git operates on
the steward framework's own repos, worktrees, and dotfiles, which stay
Git regardless of a project's VCS choice; abstracting it behind a
project VCS would be incorrect.

Validation

  • prek run --files <all-touched> — markdownlint / doctoc / typos /
    check-placeholders / skill-validate all pass.

Generated-by: Claude Code (Opus 4.8), reviewed by the submitter before opening.

…-using skills

Make source control a first-class, separable capability of the tool
layer, distinct from the issue-tracker / forge surface, so a project
can pair its tracker with a non-Git VCS.

- tools/github/source-control.md: new capability reference mapping the
  abstract VCS operations the dev-loop skills need (status, branch,
  stage, commit, diff, log, fetch, push, worktree, stash) to their Git
  bindings, with the distributed-vs-centralized caveat and the list of
  tracked non-Git bridges.
- tools/github/tool.md: list source control as the sixth capability and
  document tracker/VCS separability in "When to replace this tool".
- projects/_template/project.md: dedicated Source control row in the
  Tools enabled manifest.
- Wire the capability into the six skills that use git as the project's
  source control (issue-fix-workflow, security-issue-fix,
  pr-management-code-review, issue-reproducer, issue-reassess,
  issue-triage): each now states its git calls are the Git binding of
  the capability and that a non-Git VCS substitutes its own binding for
  the same abstract operation. Framework-plumbing git usage (setup-*,
  shared-config-sync, override-upstream) is intentionally left as-is —
  it operates on the steward framework's own repos, not the project's
  source.

Groundwork for the non-Git VCS bridges (#601-#605, #608).

Generated-by: Claude Code (Opus 4.8)
@potiuk
potiuk force-pushed the feat/source-control-capability branch from 541bf66 to 9c7b7ac Compare June 29, 2026 00:34
@potiuk
potiuk merged commit a8950f3 into main Jun 29, 2026
29 checks passed
@potiuk
potiuk deleted the feat/source-control-capability branch June 29, 2026 00:37
potiuk added a commit that referenced this pull request Jun 29, 2026
Extract the source-control capability contract (added in #609,
tools/github/source-control.md) into a runnable, backend-dispatching
tool so a non-Git VCS plugs in at one place instead of in every skill.

- tools/vcs/: stdlib-only `magpie-vcs` CLI. Abstract VCSBackend
  interface mirroring the capability's operation set (status, branch,
  stage, commit, diff, log, fetch, push, reset-worktree), a complete
  GitBackend, backend detection (innermost-wins) and override via
  --backend / MAGPIE_VCS.
- Mercurial and Subversion are detected extension points: detection is
  real (so `magpie-vcs detect` reports the working copy's VCS), but the
  operations raise an actionable error naming the bridge issue (#601,
  #602). A bridge lands by replacing the stub base with a concrete
  backend; dispatch, the CLI, and every skill calling magpie-vcs pick
  it up unchanged.
- 18 tests (git ops against a temp repo, detection/override, stub
  errors, CLI exit codes); ruff + mypy clean.
- Register the tool: uv workspace member + lockfile, capability-to-tool
  map row, and a back-reference from source-control.md to the
  implementation.

Generated-by: Claude Code (Opus 4.8)

Co-authored-by: Tester <[email protected]>
@potiuk potiuk added contract:change-request Tool capability: proposed-change review + merge gate (PR / MR / Gerrit change) contract:source-control Tool capability: branch / commit / diff / push (VCS) contract:tracker Tool capability: issue / board / label backend labels Sep 25, 2026
@potiuk potiuk added capability:fix Implement code change to resolve an issue capability:reassess Re-run historical issues against current code capability:resolve Close-out: invalidate, dedupe, CVE allocate, announcement capability:review Deep per-item code review or contributor mentoring capability:triage Sweep + classify + propose disposition contract:people family:issue issue-* skills family:pr-management pr-management-* skills family:security security-* skills family:setup setup-* skills family:tools tools/* labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:fix Implement code change to resolve an issue capability:reassess Re-run historical issues against current code capability:resolve Close-out: invalidate, dedupe, CVE allocate, announcement capability:review Deep per-item code review or contributor mentoring capability:triage Sweep + classify + propose disposition contract:change-request Tool capability: proposed-change review + merge gate (PR / MR / Gerrit change) contract:people contract:source-control Tool capability: branch / commit / diff / push (VCS) contract:tracker Tool capability: issue / board / label backend family:issue issue-* skills family:pr-management pr-management-* skills family:security security-* skills family:setup setup-* skills family:tools tools/*

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant