Title: Proposal: git second leg for workspace/scratch (+ untrack hygiene-scratch) — core-file backup coverage · Issue #6100 · developing-today/code · GitHub
Open Graph Title: Proposal: git second leg for workspace/scratch (+ untrack hygiene-scratch) — core-file backup coverage · Issue #6100 · developing-today/code
X Title: Proposal: git second leg for workspace/scratch (+ untrack hygiene-scratch) — core-file backup coverage · Issue #6100 · developing-today/code
Description: Proposal — git as a second backup leg for the core knowledge files (from 2026-11-05 file-state investigation) Current coverage (verified 2026-11-05; full evidence in the investigation report) Class Disk hatch-personal git (→ GitHub) Rest...
Open Graph Description: Proposal — git as a second backup leg for the core knowledge files (from 2026-11-05 file-state investigation) Current coverage (verified 2026-11-05; full evidence in the investigation report) Class...
X Description: Proposal — git as a second backup leg for the core knowledge files (from 2026-11-05 file-state investigation) Current coverage (verified 2026-11-05; full evidence in the investigation report) Class...
Opengraph URL: https://github.com/developing-today/code/issues/6100
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proposal: git second leg for workspace/scratch (+ untrack hygiene-scratch) — core-file backup coverage","articleBody":"## Proposal — git as a second backup leg for the core knowledge files (from 2026-11-05 file-state investigation)\n\n### Current coverage (verified 2026-11-05; full evidence in the investigation report)\n| Class | Disk | hatch-personal git (→ GitHub) | Restic → R2 |\n|---|---|---|---|\n| research_notes (172 files / 24 MB) | ✅ | ✅ 172/172 tracked | ✅ |\n| memory topics (71 files) | ✅ | ✅ 71/71 tracked | ✅ |\n| goal files/ (348 files) | ✅ | ✅ 348/348 tracked | ✅ |\n| goal hidden_files records | ✅ | ✅ tracked except deliberately-ignored regenerables (probe-*/clone-*/monitor-*/wt-*, node_modules) | ✅ |\n| **workspace/scratch (803 files / 104 MB; 221 .md ≈ 0.9 MB)** | ✅ | ❌ **tracked nowhere in git** | ✅ (only backup leg) |\n\nDrew's concern (\"core files… supposed to be kept forever\") is well-aimed at exactly one class: **scratch** — tonight's briefs/designs (worlds, atlas, docs-migration, modal, mistral) live there and have no git leg. Research notes, topics, and goal records already have three legs (disk + private git + restic/R2).\n\n### Proposal\n1. **Bring scratch under hatch-personal git using the existing pattern**: relocate the real tree to `hatch-personal/workspace/scratch` with `/home/hatch/workspace/scratch` as a symlink — identical to how goals/ and research_notes/ were relocated on 2026-10-25. The per-minute autocommit then tracks it with zero new machinery.\n2. **Track records, ignore bulk**: add scratch entries to git for documents and small data (md/txt/json under ~1 MB each); gitignore large regenerable payloads inside scratch subdirs (model/data dumps). Starting point: 221 md files ≈ 0.9 MB — the entire current markdown corpus is trivially small. Nothing in scratch today exceeds sane git size except raw data payloads, which restic already covers.\n3. **Close the hygiene-scratch hole in the same change** (see the companion security issue): add `workspace/goals/*/hidden_files/hygiene-scratch/` to .gitignore + untrack — regenerable inventory dumps do not belong in git and demonstrably capture credential material.\n4. **Promotion convention (Drew's stated end state)**: scratch is a staging area, not a home. At task close, durable deliverables get promoted — research/design docs toward `developing-today/code` doc/ (per the docs-migration batches, tracker #5983) or into research_notes — and the scratch dir is discarded. Truly sensitive material stays in hatch-personal only.\n5. **Do not** bulk-add the 9.3 GB goals tree to git: the current split (records tracked, regenerable probe/clone/monitor trees ignored per .gitignore lines 59–75) is correct and should be kept as documented policy.\n\nNo files were moved or re-tracked by the investigation itself — this issue is the work order for steps 1–3 when Drew approves.\n\n## Acceptance criteria\n- A decision on this proposal is recorded on this issue (adopt / adopt-modified / decline) with the reasoning.\n- If adopted: workspace/scratch's knowledge files (the ~221 markdown files at minimum) are tracked by the git second leg, with ignore rules excluding bulk/binary scratch, and hygiene-scratch is untracked as proposed.\n- A restore drill from the git leg alone succeeds for a sample of the newly covered files.\n- The coverage table in the body is updated to the post-change state (git column no longer empty for the covered classes).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-05T06:32:43Z","url":"https://github.com/developing-today/code/issues/6100"}
| 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:2bde9654-b782-6219-81e6-c0fb1ecab7f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8864:32E0F9:317AEB:408F8D:6B0616B2 |
| html-safe-nonce | c96fd0a9038d3b6bd2bab2c3b5d542f54fefa664c8fc3ca54f022a834969f012 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODY0OjMyRTBGOTozMTdBRUI6NDA4RjhEOjZCMDYxNkIyIiwidmlzaXRvcl9pZCI6IjM1NjgwOTE3MjcwMTk3NzU2NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b6e04708ce595814c51fedbcf9708abcc6ade3ab205466e52ea1e2fdfc95b811 |
| hovercard-subject-tag | issue:6218109660 |
| 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/6100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/195a51111e7e0cac0d41ab00d3a3a0dfb661a7e33869e1567cfcefd1c510893b/developing-today/code/issues/6100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/195a51111e7e0cac0d41ab00d3a3a0dfb661a7e33869e1567cfcefd1c510893b/developing-today/code/issues/6100 |
| og:image:alt | Proposal — git as a second backup leg for the core knowledge files (from 2026-11-05 file-state investigation) Current coverage (verified 2026-11-05; full evidence in the investigation report) Class... |
| 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 | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| 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 | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| 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