mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix(gateway): no model self-attribution in agent commits
Two layers: generated agent settings now set includeCoAuthoredBy: false (never set anywhere before, so the CLI nudged models into appending 'Co-Authored-By: Claude ...' to commit messages), and the commit verb strips AI-attribution lines deterministically at the chokepoint every provider routes through.
This commit is contained in:
@@ -86,6 +86,18 @@ class TestSharedClaudeCredentialsDenied:
|
||||
assert "Read(//home/agent/.claude/.credentials.json)" in deny, deny
|
||||
assert "Read(//home/agent/.claude.json)" in deny, deny
|
||||
|
||||
def test_settings_set_include_co_authored_by_false(self) -> None:
|
||||
"""Suppresses the CLI's default Claude co-author commit trailer —
|
||||
agent commits carry the agent's identity, not the model vendor's."""
|
||||
orch = _orch()
|
||||
path = orch._generate_agent_settings(
|
||||
agent_id="be-dev-1",
|
||||
role="developer",
|
||||
workspace_path=_WS,
|
||||
cell_workspace_path=_CELL,
|
||||
)
|
||||
assert json.loads(Path(path).read_text())["includeCoAuthoredBy"] is False
|
||||
|
||||
def test_deny_uses_absolute_double_slash_form(self) -> None:
|
||||
"""Per the #167 gotcha: a single leading / resolves against the
|
||||
settings.json project root, not the container filesystem root — an
|
||||
|
||||
Reference in New Issue
Block a user