Title: feat(sdk): git-notes + orphan-branch state backends for .squad/ (Options A & B from blog Part 7b) · Issue #807 · github/squad · GitHub
Open Graph Title: feat(sdk): git-notes + orphan-branch state backends for .squad/ (Options A & B from blog Part 7b) · Issue #807 · github/squad
X Title: feat(sdk): git-notes + orphan-branch state backends for .squad/ (Options A & B from blog Part 7b) · Issue #807 · github/squad
Description: Git-based State Backends Problem PR #797 implemented Option C (external directory). This issue covers the two git-native approaches from Tamir's blog Part 7b: Option A: Git Notes (refs/notes/squad) Squad state stored in git notes ref, no...
Open Graph Description: Git-based State Backends Problem PR #797 implemented Option C (external directory). This issue covers the two git-native approaches from Tamir's blog Part 7b: Option A: Git Notes (refs/notes/squad)...
X Description: Git-based State Backends Problem PR #797 implemented Option C (external directory). This issue covers the two git-native approaches from Tamir's blog Part 7b: Option A: Git Notes (refs/notes/sq...
Opengraph URL: https://github.com/github/squad/issues/807
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(sdk): git-notes + orphan-branch state backends for .squad/ (Options A & B from blog Part 7b)","articleBody":"## Git-based State Backends\n\n### Problem\nPR #797 implemented Option C (external directory). This issue covers the two git-native approaches from Tamir's blog Part 7b:\n\n### Option A: Git Notes (`refs/notes/squad`)\n- Squad state stored in git notes ref, not working tree\n- Survives branch switches (ref-based, not file-based)\n- Invisible in `git status`, `git diff`, PRs\n- Accessed via `git notes --ref=squad`\n\n### Option B: Orphan Branch (`squad-state`)\n- Dedicated branch with no common ancestor\n- State files live there, never merged into main\n- Read via `git show squad-state:.squad/team.md`\n\n### Implementation\n- Add `StateBackend` interface to squad-sdk resolution.ts\n- Implement `GitNotesBackend` and `OrphanBranchBackend`\n- Add `--state-backend` flag to CLI (values: `worktree` | `external` | `git-notes` | `orphan`)\n- Config in `.squad/config.json`: `{ \\\"stateBackend\\\": \\\"git-notes\\\" }`\n- Fallback: if chosen backend fails, warn and fall back to worktree\n\n### Blog reference\nhttps://tamirdresher.github.io - Part 7b of the Scaling AI series","author":{"url":"https://github.com/tamirdresher","@type":"Person","name":"tamirdresher"},"datePublished":"2026-04-04T11:49:54Z","url":"https://github.com/github/squad/issues/807"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9ca731e-c829-73c0-9356-b3d7d7def6ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA04:A70A9:DF8BD:129D11:6B0182FA |
| html-safe-nonce | aeb9e5c5320ff6952b61c0709827dbd20718b0ff15bc1370c55c93742659f247 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTA0OkE3MEE5OkRGOEJEOjEyOUQxMTo2QjAxODJGQSIsInZpc2l0b3JfaWQiOiI1NTA1NDUyMjE3NTUwODY1MTQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d43e3c37b80594b77f2f1ae1f4be9cf75c44a0ef56c2bf49987b7a56d6e3534a |
| hovercard-subject-tag | issue:4204702667 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/807/issue_layout |
| twitter:image | https://opengraph.githubassets.com/89fc6b68d5733a6d6324ee43b88c27f2eaea7684c7ab1b976dba3691de5368ef/github/squad/issues/807 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/89fc6b68d5733a6d6324ee43b88c27f2eaea7684c7ab1b976dba3691de5368ef/github/squad/issues/807 |
| og:image:alt | Git-based State Backends Problem PR #797 implemented Option C (external directory). This issue covers the two git-native approaches from Tamir's blog Part 7b: Option A: Git Notes (refs/notes/squad)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tamirdresher |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width