Repository navigation
attribution: always sign, and name only the bare model - #1412
Merged
Merged
Conversation
…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
marked this pull request as ready for review
September 23, 2026 18:26
…on-always-on # Conflicts: # cmd/codeaf/chatv3_subharness.go
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
codeaf now always signs what it writes. The only part a person can turn off is the model's name in the
Assisted-byline.What changed
attributionrow andCODEAF_ATTRIBUTIONare retired through the retired-profile-keys list (config: unread notice skips keys the product itself retired #1245). A profile holdingattribution: 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, andConfig.Attributionin config and session.attribution.model(CODEAF_ATTRIBUTION_MODEL, on by default, labelledmodel in commits). Hint:On, commits say `Assisted-by: CodeAF (<model>)`; off, `Assisted-by: CodeAF`.The model may not change it throughchange_setting, the same rule the old row had.exec.BareModelNameremoves 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.AttributionTrailersandexec.SignCommitMessageare the one spelling that every writer uses.Assisted-by, thenCo-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.prefixWaiversexplains this. The coordinator accepted this raise.permissions.md,what-i-can-do.mdandcommands.mdin the chat corpus, andasking-for-work.mdandsurfaces.mdin the resident corpus, are updated. Change entry1412-attribution-always-on.md(kindchanged) lists the retired row underinvalidates.task_run.goI changed only the trailer path: thesigned()body and doc, the type of thesignparameter on four signatures, and the child config's field copy.Evidence (Spark, fresh clones under
~/src/trees)b998c8725, as assertions in trunk's own API:Assisted-by: CodeAF (deepseek/deepseek-v4-flash).attributionand tells a profile withattribution: falsenothing.Assisted-byline.task: …\n\nCo-Authored-By: …\nwith noAssisted-by.BareModelName,RetiredRowNote,gitSignature,AttributionModelOff).go build ./...,go vet, andgofmt -lare 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.make check TEST_FLAGS=-count=1on the merged head01de08b97(mergesorigin/santos/dev2through7c3a49978; the one conflict, incmd/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.