Skip to content

attribution: always sign, and name only the bare model - #1412

Merged
santoshkumarradha merged 9 commits into
santos/dev2from
task/attribution-always-on
Sep 23, 2026
Merged

santoshkumarradha merged 9 commits into
santos/dev2from
task/attribution-always-on

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

codeaf now always signs what it writes. The only part a person can turn off is the model's name in the Assisted-by line.

What changed

  • Signing can no longer be turned off. The attribution row and CODEAF_ATTRIBUTION are retired through the retired-profile-keys list (config: unread notice skips keys the product itself retired #1245). A profile holding attribution: false, or a shell that sets the variable, is not silently ignored or silently obeyed. The key is reported unread, and the surface prints the row's own sentence: config.RetiredRowNote("attribution"). Every code path that skipped signing is gone: signed(), WithAttribution, the belt fact's absent case, and Config.Attribution in config and session.
  • Kept: a repository's CONTRIBUTING policy against AI trailers still wins. That is the law's last sentence and it is unchanged.
  • New row attribution.model (CODEAF_ATTRIBUTION_MODEL, on by default, labelled model in commits). Hint: On, commits say `Assisted-by: CodeAF (<model>)`; off, `Assisted-by: CodeAF`. The model may not change it through change_setting, the same rule the old row had.
  • Bare model name. exec.BareModelName removes the provider or company prefix and OpenRouter's ~, and it removes routing suffixes from a closed list (:free, :nitro, :floor, :online, :extended, :thinking, :beta, :exacto, :batch, and the effort words). It keeps the model's own version or date, and it keeps unknown suffixes such as a local :32b. exec.AssistedBy, exec.AttributionTrailers and exec.SignCommitMessage are the one spelling that every writer uses.
  • One shape everywhere. Every commit now ends with one blank line, Assisted-by, then Co-Authored-By, and nothing else. This holds for the chat's belt fact, the leaf loop's contract, the harness landing commit (which names the model the task ran on), the family checkpoint, and the run engine's landing (bare line, because the run store records no model). The law's commit sentence spells both lines through a slot. The chat's second copy of the trailer block is gone.
  • Prefix budget. The fixed arm drops 127 bytes (waiver 8,273 → 8,146). The lean arm rises 927 bytes (waiver 16,387 → 17,314). The lean shape used to measure a page with signing off, but every real conversation had signing on by default, so it was already paying those bytes. The dated note in prefixWaivers explains this. The coordinator accepted this raise.
  • Manual: permissions.md, what-i-can-do.md and commands.md in the chat corpus, and asking-for-work.md and surfaces.md in the resident corpus, are updated. Change entry 1412-attribution-always-on.md (kind changed) lists the retired row under invalidates.
  • In task_run.go I changed only the trailer path: the signed() body and doc, the type of the sign parameter on four signatures, and the child config's field copy.

Evidence (Spark, fresh clones under ~/src/trees)

  • RED on trunk b998c8725, as assertions in trunk's own API:
    • The bare name: trunk writes Assisted-by: CodeAF (deepseek/deepseek-v4-flash).
    • The retired row: trunk still registers attribution and tells a profile with attribution: false nothing.
    • The model-off line: trunk has no bare Assisted-by line.
    • The landing commit: trunk writes task: …\n\nCo-Authored-By: …\n with no Assisted-by.
    • The new tests on trunk also fail to build (undefined BareModelName, RetiredRowNote, gitSignature, AttributionModelOff).
  • GREEN: go build ./..., go vet, and gofmt -l are clean. Touched packages (make test-touched BASE=origin/santos/dev2, -count=1) found two tests to fix (the env-pin registry, and the worker-seat page comparison). Both are fixed and pass again on their own.
  • Full make check TEST_FLAGS=-count=1 on the merged head 01de08b97 (merges origin/santos/dev2 through 7c3a49978; the one conflict, in cmd/codeaf/chatv3_subharness.go, keeps both the model-name row and the Codex window): EXIT=0, 119 packages ok, no FAIL. Log: ~/src/trees/attr-check-01de08b97.log. The prefix budgets measured the same after the merge: fixed 56,146, lean 48,814.

…ution row

The attribution row and CODEAF_ATTRIBUTION are retired: every commit, pull
request, issue and comment codeaf writes is signed. A profile that still says
attribution: false is told so in the row's own sentence. The new
attribution.model row (CODEAF_ATTRIBUTION_MODEL, on by default) decides only
whether the Assisted-by line names the model. The line names the bare model,
without the provider or a routing suffix, through one function, and every
commit codeaf writes carries the same two trailer lines in the same order.
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review September 23, 2026 18:26
…on-always-on

# Conflicts:
#	cmd/codeaf/chatv3_subharness.go
@santoshkumarradha
santoshkumarradha merged commit 10beaa5 into santos/dev2 Sep 23, 2026
4 checks passed
@santoshkumarradha
santoshkumarradha deleted the task/attribution-always-on branch September 23, 2026 18:47
santoshkumarradha added a commit that referenced this pull request Oct 24, 2026
Attribution is always on; the model's name in Assisted-by is the one part a person can turn off (attribution.model), shown bare without its provider. Full make check on Spark at 48ba92a20: EXIT 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant