Show where each change's issue, branch, and worktree live - #169
Merged
Merged
Conversation
Deploying specsync with
|
| Latest commit: |
dda247f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://12aae2c2.specsync.pages.dev |
| Branch Preview URL: | https://feat-168-agent-topology-comm.specsync.pages.dev |
… join (#168) Adds `specsync topology`, joining every OpenSpec change across coordinated stores with its tracker issue, git branch, and worktree path -- so an agent can check what's already in flight before starting work, without a fragile ad-hoc scan of git and gh state. Every source (openspec context, gh, git worktree listings) is optional: a missing one narrows a row and appends a status note instead of failing the command. Exits non-zero only when nothing could be resolved at all. Also resolves `linked` (from links.md) and `epic` (confirmed via the epic issue's `type:epic` label on an otherwise-unresolved related link, since `specsync epic` only writes a remote backlink today, not a local one). Adds the "check topology before starting" step to the embedded SKILL.md (propagated to all 4 copies) and a site/features.json entry.
androidand
force-pushed
the
feat/168-agent-topology-command
branch
from
September 17, 2026 14:29
50243e2 to
dda247f
Compare
androidand
added a commit
that referenced
this pull request
Sep 17, 2026
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
specsync topology: a read-only join of every OpenSpec change with its tracker issue, git branch, and worktree path across coordinated stores — so an agent can check what's already in flight before starting, instead of ad-hoc scanning git/gh state itself.openspecbinary, noghauth, an uncloned sibling store, or a store with zero worktrees each narrow the affected rows and append a reason tostatus[]rather than failing the command. Exits non-zero only when nothing could be resolved at all.linkedresolves fromlinks.mdagainst a local slug index built across every loaded change.epicresolves an otherwise-unmatched related link by confirming the referenced issue'stype:epiclabel via one boundedghcall —specsync epiconly writes a remote backlink today (never a local one), so this is the only reliable signal available.SKILL.md, propagated byte-identically to all 4 copies (verified byTestSkillDrift), plus asite/features.jsonentry and a README mention.TestPull_CannotResolveFromBranchrelied on whatever branch the suite happened to be run from instead of overridingcurrentBranchFnlike every other branch-resolution test — it failed whenever run from afeat/<n>-<slug>-named branch (i.e. this one).Closes #168
Test plan
go build ./...,go vet ./...,gofmt -lclean on every touched filego test ./...— 806 passed, 0 failedBuildTopology: fully resolved single store, no-worktree row still returned with exit 0, gh-unauthenticated degradation + status note, nothing-resolved is an empty result not an error, read-only (no cache/state written),-changescoping, archived exclusion +-all, multi-repo store join,linkedresolution,epicresolution via labellistWorktrees/matchWorktree: regular/detached/bare porcelain parsing; matched by branch, matched by basename fallback, unmatchedprintTopologyTableincmd/specsyncspecsync topologycorrectly listed ~29 changes including this very change, with its real branch (feat/168-agent-topology-command) and worktree path (the worktree it was written in);specsync topology -json -change agent-topology-commandwith a local ref cache resolved live issue state via a realghcall; re-run withghremoved fromPATHdegraded exactly as documented (state omitted, status note present, everything else still resolved)ghcalls — acceptable for an agent-startup checkspecsync changelog -resolve-refsrenders this commit under "Added" via the proposal's title