Remote-first Forgejo ingest: prove remote-state path, then add remote commit ingest (Slice 1 -> 2) #109
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/repo-recall#109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Long-run contract - repo-recall remote-first on Forgejo (Slice 1 -> Slice 2, one run)
Launch:
--dangerously-skip-permissionsinside a container, per kai-long-run.Work repo: coilyco-flight-deck/repo-recall. This contract lives in the tracking issue.
Goal
Make repo-recall run remote-first against Forgejo with no local clones. First prove
the existing remote-state path actually hydrates (Slice 1), then add Forgejo commits-API
ingest so commit history survives containerization (Slice 2). Caching is Slice 3, deferred.
Why (context)
Forgejo is self-hosted = no rate limits = safe to hammer. Containerization removes local
clones, so repo-recall must pull from the API and bank it. Commits today come ONLY from
local
git/log.rs::scan- no client fetches them - so without remote commit ingest,commit history vanishes in a container. Forgejo support (#88/#91) exists but has never
been run end-to-end.
Done-condition (verifiable, per slice)
Slice 1 - prove + harden (checkpoint + commit + push before Slice 2):
REPO_RECALL_FORGEJO_TOKENin SSM and wired into deploy/env (none exists today).active-repos - confirmed by reading real rows on the dashboard AND one MCP query, not
"not configured".
src/process/join.rscross-ref parser recognizes the Forgejo host, not justgithub.com; new unit test beside the github one.pre-commit run --all-filesandcargo testgreen.Slice 2 - remote commit ingest:
5. The shared
GithubClienttrait (which the forgejo_client also implements) gains acommit-fetch method; both GitHub and Forgejo impls satisfy it.
6. A remote-mode ingest path populates
CommitRecordrows from the Forgejo commits APIwith no local clone; spot-check a handful against Forgejo's web view.
7. Remote-mode is additive - it does NOT remove the local git ingest.
8.
pre-commit run --all-filesandcargo testgreen.Non-goals (scope fence)
serves non-container hosts. Remote-first is additive.
fetch_deploy_healthfor Forgejo may stay deferred; implement only if cheap, else file.Build path
coily ops aws ssm put-parameter --type SecureString), update SSM.md,wire into deploy/env.
until Slice-1 rows hydrate. Extend join.rs + test. CHECKPOINT, commit, push to main.
gate behind remote-mode; spot-check rows. Commit, push.
Long-run mechanics (per kai-long-run)
pivot or park that thread, do not spin.