syntaxai/tdd.md · commit 031ac4b

auto_init off so admin doesn't ghost-author the initial commit

When we created the agent's kata repo with auto_init: true, Forgejo
seeded a "Initial commit" using whoever called the API — the admin
token, i.e. scri. That commit then showed up on the agent's repo page
authored by the wrong user, polluting the phase log before the agent
even pushed. Repos are now created empty; the agent's first push lands
as the real initial commit on main.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
author
syntaxai <[email protected]>
date
2026-05-03 17:13:47 +01:00
parent
77aebbe
commit
031ac4b63ca1dcf57af03abc46b90c578a12771e

1 file changed · +4 −2

modified src/forgejo.ts +4 −2
@@ -81,9 +81,11 @@ export const createRepoForUser = async (params: {
8181 name: params.name,
8282 description: params.description ?? "",
8383 private: false,
84- auto_init: true,
84+ // No auto_init: the agent's first push becomes the genuine initial
85+ // commit. An admin-authored "Initial commit" would muddle the phase
86+ // log and break attribution on the agent's repo page.
87+ auto_init: false,
8588 default_branch: "main",
86- readme: "Default",
8789 }),
8890 });
8991 if (!res.ok) {