Garry Tan
6757bafc29
feat: bin/gstack-memory-ingest — V1 unified memory ingest helper
Lane A. Walks coding-agent transcripts (Claude Code + Codex; Cursor V1.0.1
follow-up) AND ~/.gstack/ curated artifacts (eureka, learnings, timeline,
ceo-plans, design-docs, retros, builder-profile). Calls gbrain put_page
with type-tagged frontmatter. Uses gstack-memory-helpers (Lane 0):
- Modes: --probe / --incremental (default, mtime fast-path) / --bulk
- Default 90-day window; --all-history opts into full archive
- --sources subset filter; --include-unattributed opt-in for no-remote sessions
- --limit N for smoke testing; --benchmark for throughput reporting
- Tolerant JSONL parser handles truncated last lines (D10 partial-flag)
- State file at ~/.gstack/.transcript-ingest-state.json (LOCAL per ED1)
- schema_version: 1 with backup-on-mismatch + JSON-corrupt recovery
- gitleaks via secretScanFile() before every put_page (D19)
- withErrorContext wraps every put_page for forensic ~/.gstack/.gbrain-errors.jsonl
15 unit tests cover --help, --probe (empty, Claude Code, Codex, mixed
artifacts), --sources filter, state file lifecycle (create, schema mismatch
backup, JSON corrupt backup), truncated-last-line handling, --limit
validation. All passing.
V1.5 P0 follow-ups noted in the file header:
- Cursor SQLite extraction (V1.0.1)
- gbrain put_file routing for Supabase Storage tier (cross-repo)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 19:57:41 -07:00
..
2026-03-29 22:46:33 -06:00
2026-03-19 18:20:50 -07:00
2026-03-19 18:20:50 -07:00
2026-03-19 17:21:05 -07:00
2026-04-28 01:17:54 -07:00
2026-04-23 17:54:54 -07:00
2026-04-28 01:17:54 -07:00
2026-04-23 17:54:54 -07:00
2026-04-28 01:17:54 -07:00
2026-04-24 01:38:21 -07:00
2026-04-28 01:17:54 -07:00
2026-04-18 15:05:42 +08:00
2026-04-18 12:30:54 +08:00
2026-03-24 15:01:31 -07:00
2026-04-23 23:03:27 -07:00
2026-04-23 17:54:54 -07:00
2026-03-30 22:07:50 -06:00
2026-03-26 11:15:24 -06:00
2026-04-24 01:38:21 -07:00
2026-04-24 07:51:46 -07:00
2026-04-24 01:38:21 -07:00
2026-04-24 01:38:21 -07:00
2026-04-28 01:17:54 -07:00
2026-04-24 01:38:21 -07:00
2026-04-24 01:38:21 -07:00
2026-04-10 17:13:15 -10:00
2026-04-23 17:54:54 -07:00
2026-04-23 17:54:54 -07:00
2026-04-13 07:49:37 -10:00
2026-05-01 19:57:41 -07:00
2026-04-19 17:50:31 +08:00
2026-04-23 23:03:27 -07:00
2026-03-29 21:43:36 -06:00
2026-03-30 22:25:46 -06:00
2026-05-01 07:21:28 -07:00
2026-04-04 15:32:20 -07:00
2026-05-01 07:06:37 -07:00
2026-04-23 17:54:54 -07:00
2026-04-18 15:05:42 +08:00
2026-04-02 18:34:00 -07:00
2026-03-22 11:28:16 -07:00
2026-04-23 17:54:54 -07:00
2026-03-22 21:02:01 -07:00
2026-04-20 22:18:37 +08:00
2026-04-05 23:49:03 -07:00
2026-04-16 10:41:38 -07:00
2026-04-07 15:42:13 -10:00
2026-04-04 22:46:21 -07:00
2026-04-19 17:50:31 +08:00
2026-04-13 07:49:37 -10:00
2026-04-20 22:18:37 +08:00
2026-04-06 00:47:04 -07:00
2026-04-23 17:54:54 -07:00
2026-04-01 00:50:42 -06:00
2026-04-05 23:49:03 -07:00
2026-03-26 23:21:27 -06:00