Commit Graph

3 Commits

Author SHA1 Message Date
72e461cf2c scripts: forge write-back — close the git→gitea→agentic loop
The forge already DRIVES sessions (briefing → tmux launch, sx-fix-up.sh).
This records what comes BACK, making the forge a true system of record:

- sx-fix-writeback.sh <forge-agent> [kind] [base-ref]: reads new commits on
  loops/sx-<slug>, appends a record per commit to writeback.sxsrc (idempotent,
  matched by sha), then rebuilds the forge + replays them as agentic-sx
  commit!s on agents/<forge-agent> and re-dumps forge.sxdata.
- forge-build.sxsrc: fb-writeback-records / fb-replay-writeback / fb-do-writeback
  — each real-git commit becomes an agentic-sx commit whose tree is a small
  commit.sx pointer (sha/branch/message/files); real git holds the code, the
  forge holds the index, so the CID stays small.
- writeback.sxsrc: the append-only record log (source of truth for what's
  been recorded); replayed chronologically so agent branch heads advance right.

Verified live: the sx-gate loop's first real commit (f09368e1, "pin K18
expt-overflow float-promotion") is now recorded as a test-kind agentic-sx
commit on agents/ws-W14 (session log: spawn → finding → writeback), its
commit.sx pointing back at the real-git sha.

Loop closed: forge → tmux (drive) and tmux → real-git → forge (record).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 22:36:59 +00:00
4e397e599f plans/sx-review: sx-commit START — fix work begins from 8651cefe
Adds a starting-point decision-commit on the coordinator branch
(sx1:9f05cceb...) marking the state where all review infrastructure is in
place — plan, rulings, quick-wins batch (dc7aa709), and the forge itself —
as the baseline from which the fix program starts. Records the sequencing
rule (W14 test-gate first, then W1/K01) so the next agent picks up correctly.

Coordinator branch: spawn -> baseline -> done -> START (4 commits).
forge.sxdata re-dumped (46KB); forge-build.sxsrc stays the reproducible source.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 22:17:11 +00:00
8651cefed9 plans/sx-review: dogfood — store the review program in git-sx via gitea-sx
Built the SX-review remediation program as native fed-sx objects using the
now-green forge stack (sx-git 267/267, sx-gitea 615/615, agentic-sx 196/196):

- gitea-sx forge repo "rose-ash/sx-review" (one persist backend)
- agentic-sx session: coordinator + 16 workstream agent branches
  (agents/ws-W1 .. ws-W16), each with a briefing (goal + finding-ids + status)
  and a finding-commit carrying its workstream as queryable SX data
- baseline decision-commit sx1:a495549... (MANIFEST: 217 findings / 16
  workstreams / real-git a24c8796 / done-commit dc7aa709)
- the completed quick-wins batch recorded as a refactor-commit

forge-build.sxsrc is the reproducible source (content-addressed → re-running
yields identical CIDs); forge.sxdata is the durable kv+stream snapshot
(45KB, 299 native sx1: objects). Load order = agentic conformance base +
relations + gitea/repo; run bounded, never the shared MCP image.

The review is now first-class queryable data in the native store, not just
markdown — each workstream/finding is addressable by CID.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 22:08:05 +00:00