Title: laptop-repo-keeper: snapshot commits on the primary's main diverge it from origin and break deploys · Issue #2496 · developing-today/code · GitHub
Open Graph Title: laptop-repo-keeper: snapshot commits on the primary's main diverge it from origin and break deploys · Issue #2496 · developing-today/code
X Title: laptop-repo-keeper: snapshot commits on the primary's main diverge it from origin and break deploys · Issue #2496 · developing-today/code
Description: On 2026-10-29 the deployment chain (ordered for PRs #2220/#2250) stopped twice at the laptop primary ~/git/code: First at the clean-tree check (untracked runtime residue — since cleared and covered by PR #2486's .gitignore additions). Th...
Open Graph Description: On 2026-10-29 the deployment chain (ordered for PRs #2220/#2250) stopped twice at the laptop primary ~/git/code: First at the clean-tree check (untracked runtime residue — since cleared and covered...
X Description: On 2026-10-29 the deployment chain (ordered for PRs #2220/#2250) stopped twice at the laptop primary ~/git/code: First at the clean-tree check (untracked runtime residue — since cleared and covered...
Opengraph URL: https://github.com/developing-today/code/issues/2496
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"laptop-repo-keeper: snapshot commits on the primary's main diverge it from origin and break deploys","articleBody":"On 2026-10-29 the deployment chain (ordered for PRs #2220/#2250) stopped twice at the laptop primary ~/git/code:\n\n1. First at the clean-tree check (untracked runtime residue — since cleared and covered by PR #2486's .gitignore additions).\n2. Then at `git pull --ff-only`: the tree was clean but main had **diverged — ahead 9 / behind 254**. The 9 local commits were all `repo-keeper: snapshot code ...` commits taken through the day (04:23–18:24 CDT). The keeper snapshots whatever live edits agents have made in the primary working tree (that day: .opencode/opencode.jsonc live-applied config and bin/sessions.json runtime state) and commits them directly onto main. Those same changes later land properly through PRs, so the snapshots are pure divergence: origin's opencode.jsonc was strictly newer than the local snapshot state.\n\nResolution applied with Drew's approval (2026-10-29 ~20:32 CDT): backup branch `backup/primary-local-2026-10-29` pushed at c3b779ca (all 9 snapshots preserved), primary reset --hard to origin/main (7d1b081c), chain re-armed.\n\nDurable fixes wanted:\n- **Untrack bin/sessions.json** (git rm --cached + .gitignore): it is live runtime state; tracking it guarantees the primary dirties and diverges whenever sessions run. Same treatment check for any other runtime-state files the keeper keeps sweeping up.\n- **Keeper should not commit on a primary clone's main at all** — or should snapshot to a dedicated snapshot branch instead of main. A primary is a deploy source (Drew's standing rule: primaries stay on main + clean, deploys run from the primary at origin/main); any automation that commits to its main breaks every ff-only deploy.\n- Until fixed, any deploy/switch flow that pulls the primary must expect this failure mode; the chain's state files from 2026-10-29 (deploy-chain-2220-state.failed*.json in the repo-health goal workspace) hold the evidence.\n\nRelated: #2268 (keeper secret guard), #1807 (autocommit merge-in-progress guard), #2230 (autocommit changes under the fleet-expansion umbrella).\n\n## Acceptance criteria\n\n- [ ] `bin/sessions.json` is untracked (git rm --cached + .gitignore) and any other runtime-state files the keeper sweeps up get the same treatment, verified by a keeper run leaving the primary clean\n- [ ] The laptop-repo-keeper no longer commits onto a primary clone's main — snapshots go to a dedicated snapshot branch (or are not taken on primaries), so a primary's main can only move by fast-forward\n- [ ] A deploy chain run after a keeper snapshot completes its ff-only pull without manual rescue\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-30T01:32:45Z","url":"https://github.com/developing-today/code/issues/2496"}
| 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:d43e1669-71d9-8196-477a-3ef6929420ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B382:1B5128:6C2D1D:91DB22:6B062FB4 |
| html-safe-nonce | f8b6252dad6395419686eea3591d90a3481ff1235a29497c9f39c52d52f10ecb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzgyOjFCNTEyODo2QzJEMUQ6OTFEQjIyOjZCMDYyRkI0IiwidmlzaXRvcl9pZCI6IjIyOTU1MjczNDEzNzc4NTk1MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7ea4e1d8b538e2b048d216b323d58979fb10262aad63910f6f7dc935001b59c7 |
| hovercard-subject-tag | issue:6111544191 |
| 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/developing-today/code/2496/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0590701a490ede25d874cf02497c87c6e5afc0526fab6edee00bdc242859426/developing-today/code/issues/2496 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0590701a490ede25d874cf02497c87c6e5afc0526fab6edee00bdc242859426/developing-today/code/issues/2496 |
| og:image:alt | On 2026-10-29 the deployment chain (ordered for PRs #2220/#2250) stopped twice at the laptop primary ~/git/code: First at the clean-tree check (untracked runtime residue — since cleared and covered... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| 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 | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width