Skip to content

docs(legal): say what a commit email publishes and how long it stays - #9

Merged
kalaspuff merged 3 commits into
mainfrom
fctl/22-look-into-https-github-com-hyperstructur
Oct 18, 2026
Merged

kalaspuff merged 3 commits into
mainfrom
fctl/22-look-into-https-github-com-hyperstructur

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

app.fctl.sh will let people choose a commit email in Settings → Profile (hyperstructure/fctl#55, for hyperstructure/fctl#15). The commits in the sessions they start then end with a Co-authored-by trailer that has their name and that address: everyone who can read the repository sees it, and GitHub uses it to link the commits to their account. That changes what app.fctl.sh stores and who receives it, so the privacy policy says so:

  • What we collect → Your account: the commit email, if you set one.
  • Why we use it: crediting you in commits when you set a commit email (contract, with the rest of running the service).
  • Who else receives it → GitHub: the Co-authored-by line, that a project's maintainers can turn it off, who sees it (everyone, for a public repository), and what GitHub does with it.
  • How long we keep it: until you remove it or delete your account. Commits already made keep it; they are part of the repository's history, which its owners control.
  • Your rights → Correct it: Profile is where to change it.

updated already says 2026-10-18.

Merge this when hyperstructure/fctl#55 ships (its release redeploys app.fctl.sh), so the policy and the app change together. It is opt-in: no address reaches a commit until someone sets one.

Refs hyperstructure/fctl#15

Verification

Rendered legal/privacy.md with the site's scripts/markdown.mjs: the four changed passages come out as list items and a table row as expected.

Also noticed, not changed here

"What we collect → GitHub" says agents "work with short-lived tokens limited to one repository per session". Since projects can span several repositories (fctl 0.2, hyperstructure/fctl#36), a session's tokens cover the project's repositories, or every repository of an account when the project grants that. That sentence needs its own change.

Session: https://app.fctl.sh/s/ses_01M56GAEEHP8WBMTPQ9ZY9VVA0

app.fctl.sh lets people choose a commit email in Settings → Profile
(hyperstructure/fctl#15). Commits in the sessions they start then end
with a Co-authored-by trailer that has their name and that address. The
policy now lists the address with the account data, says that GitHub and
everyone who can read the repository receive it, that it is kept until
removed or the account is deleted, that pushed commits keep it, and that
Profile is where to change it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fctl-sh Bot and others added 2 commits October 18, 2026 11:25
Projects get a setting that keeps people's names and commit emails out
of their sessions' commits (hyperstructure/fctl#55).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kalaspuff
kalaspuff merged commit 55c69d6 into main Oct 18, 2026
4 checks passed
@kalaspuff
kalaspuff deleted the fctl/22-look-into-https-github-com-hyperstructur branch October 18, 2026 12:13
kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Oct 18, 2026
Commits from sessions credited the GitHub App's bot and Claude, never
the person who started the session. People can now choose a commit email
in Settings → Profile (or with `fctl account set --commit-email`), and
the commits in the sessions they start end with a `Co-authored-by`
trailer with their name and that address, so GitHub links the commits to
their account. Without one nothing changes, and the sign-in email never
goes into a commit. Each project chooses who its commits credit, with a
switch for the person and one for Claude.

Refs #15. The privacy policy change it asks for is
hyperstructure/fctl-site#9.

## What changed

- **A commit email people choose** (the issue's proposal). Settings →
Profile has a "Commit email" field whose hint says what it does and who
sees it, and links GitHub's email settings for the noreply address. From
the CLI: `fctl account set --commit-email ADDRESS` (`""` removes it,
`--json` prints `Me`), and `fctl whoami` shows it. It is stored on the
user row (migration `0009_commit_email.sql`), returned in `Me` but not
in `User`, which admins also get, included in the data export, and
cleared when the account is deleted. `validate::commit_email` keeps its
case (GitHub matches it against accounts) and allows only a plain
dot-atom before the `@`, so it can't break a trailer.
- **Projects choose who their commits credit**, with two switches in the
project's settings (Agents), both on by default: **Credit people in
commits** (`credit_people`) and **Credit Claude in commits**
(`credit_claude`). From the CLI: `fctl projects set --credit-people
on|off --credit-claude on|off`, a new command that changes what it's
given and sends the other settings back as they are (an update replaces
all settings). Without people, the control plane doesn't look up the
starter's commit email, so it never reaches the sandbox. Without Claude,
fctl-agent leaves Claude's trailer out of `attribution.commit` (the
person's trailer alone, or an empty string for none) and sets
`attribution.sessionUrl: false`, so Remote Control sessions leave out
the claude.ai session link too (that key came in Claude Code 2.1.183;
fctl-agent writes it only when Claude is off). An update that leaves
either field out keeps its stored value, as for `claude_ai_connectors`,
so a tab opened before the deploy or an older CLI can't turn crediting
back on. The Profile hint says a project can turn it off.
- **A new spec field, `co_authored_by`**, which `creator()` fills with
the starter's name and commit email, only when they chose one. The issue
planned to reuse `co_authors`, but every control plane so far fills that
with the sign-in email, so a new agent reading it would publish the
sign-in email whenever it runs against an older control plane: a host
updated between the Release workflow publishing archives and redeploying
app.fctl.sh, or a self-hosted instance that lags. `co_authors` stays in
the spec, empty, because older agents require it.
- **fctl-agent sets Claude Code's `attribution.commit`** in Claude's
user settings when there is someone to credit:

  ```
  Co-authored-by: Claude <[email protected]>
  Co-authored-by: Ada Lovelace <[email protected]>
  ```

This replaces Claude Code's default trailer, which names the model in
use. fctl-agent writes the settings before Claude starts, so it says
`Claude`, as Claude Code itself does when it can't tell the model's
version. Names lose control characters and angle brackets, and an
address with spaces or brackets is skipped, so each trailer stays one
line. `attribution.commit` came in Claude Code 2.0.62 together with
`attribution.pr`, which fctl already writes, so it can't make an older
Claude Code skip the file. With nobody to credit, the settings are as
before.
- **Pull requests stay plain** (`attribution.pr` stays empty, #23).
GitHub's squash merges carry the `Co-authored-by` trailers of the
squashed commits into the commit on `main`: #48's description has none,
its commits have Claude's, and its squash commit ca134aa ends with it.
So the credit reaches `main` without naming people in descriptions.
- **fake-claude** ends the commit `write <name>` makes as Claude Code
does: with `attribution.commit` from `~/.claude/settings.json`, nothing
when that is empty, or Claude's trailer when it is unset. So `cargo
xtask dev` shows every combination.
- **Docs**: architecture.md (Sessions → Commits), security.md (a Commits
section, and retention), cli.md, getting-started.md, development.md, and
[ADR
0011](docs/adr/0011-commits-credit-people-with-an-address-they-choose.md),
which records the decision and the alternatives the issue weighed (git
hooks, rewriting commits).

## Left as they were

- Only the starter is credited. The issue's open question, whether
people who message a session become co-authors too, is a person's call;
`co_authored_by` can carry more people.
- Commits a script makes get no trailer, and a repository's own Claude
settings (`attribution`) or a CLAUDE.md rule against attribution take
precedence (Claude Code 2.1.269 and later). As the issue suggests, this
starts with the setting to see whether it is reliable enough.
- Sessions take a changed address or project setting when they next
start or resume.

## Compatibility

- The API and protocol changes are additive and optional:
`Me.commit_email`, `UpdateMeRequest.commit_email`,
`SessionSpec.co_authored_by`, and `ProjectSettings.credit_people` and
`credit_claude` (on when absent; an update without them keeps the stored
values).
- Turning Claude's credit off needs hosts from this release: older
agents ignore `credit_claude` and keep Claude's trailer. Turning
people's credit off works with any agent, since the control plane then
sends nobody.
- Older agents ignore `co_authored_by` and add no trailers. Newer agents
ignore `co_authors`, so with an older control plane they add none
either.
- Deploying applies D1 migration `0009_commit_email.sql`, which adds a
nullable column.
- **Privacy policy**: hyperstructure/fctl-site#9 updated fctl.sh's
policy (what is stored, who receives it, how long, where to change it).
It was merged on 2026-10-18 and is live on fctl.sh/privacy, ahead of
this pull request: until this ships, the policy describes an opt-in
setting app.fctl.sh doesn't have yet.

## Verification

- `cargo xtask check --quick` passes: fmt, generated types, Biome and
TypeScript, Clippy (native and wasm), all Rust and web tests.
- New tests: commit email validation (`fctl-domain`); the spec in both
directions of version skew (`fctl-proto`); the settings fctl-agent
writes, and one-line trailers (`fctl-agent`).
- `cargo xtask dev` (process driver, fake-claude), driven with the CLI:
- Without a commit email, the sandbox's `~/.claude/settings.json` has
`"attribution": {"pr": ""}` only, so Claude Code's own trailer stays and
nobody else is credited, and the sign-in email appears nowhere in the
sandbox's data.
- `fctl account set --commit-email "
[email protected] "` stores it trimmed with its
case; `fctl whoami` shows it; `fctl admin users --json` doesn't contain
it; `fctl account export` has it as `account.commit_email`. `Dev
<[email protected]>`, `dev@example` and `"dev"@example.com` are refused
with "Enter a valid email address".
- A new session's commit ends with both trailers; `git log
--format='%(trailers:key=Co-authored-by,valueonly)'` reads both, and
`fctl logs` shows them in the commit's output.
- A session started before the address was set takes it when stopped and
resumed.
- `--commit-email ""` removes it, and the next session's commit has no
trailer for the person.
- Settings → Profile in Chromium against the dev stack: saving an
address (it comes back trimmed and survives a reload), the server's
error under the field for `dev@example`, both themes, 390 px.
- After merging `main` (4b94afa; #58 had taken migration number 0008, so
this one is now 0009): `cargo xtask check --quick` passes again, and on
fresh dev state the migrations apply in order (`0008_claude_usage.sql`,
`0009_commit_email.sql`) and a session's commit ends with both trailers.
- The project's switches, with the dev owner's commit email set, one
session each (the trailers its commit ended with, and Claude's
`attribution` setting):
  - both on: Claude's and the person's trailers;
  - people only: the person's trailer, with `sessionUrl: false`;
- Claude only: `attribution.commit` unset, so fake-claude, like Claude
Code, adds Claude's own trailer;
- both off: `attribution.commit: ""` and `sessionUrl: false`, and no
trailers.

With people off, the address appeared nowhere in the sandbox. A `PATCH`
whose settings leave both fields out, as an older client sends them,
kept both off, and `fctl projects set --credit-claude on` changed only
that one. In Chromium, each switch saved, and the API read back the
value.
- Not tried: real Claude Code following `attribution.commit` (the dev
stack runs fake-claude, and this sandbox can't start another Claude),
and GitHub crediting a noreply address.

## Screenshots

At 1c69f94, in Chromium against `cargo xtask dev`, with `main` (012337e
for Profile, 9587c2b for the project) against the same control plane as
the before. This session can't attach images (#40), so in words:

**Settings → Profile**

- **Before**, light and dark: the section reads "How you appear in
sessions and to your team." and has first and last name, Avatar URL and
Save.
- **After**, light and dark: the description reads "How you appear in
sessions, in commits and to your team." A "Commit email" field follows
Avatar URL, styled like it, with the placeholder "None: commits don't
credit you" and the hint "Commits in the sessions you start credit you
as a co-author with this address, which anyone who can read the
repository sees; a project can turn this off. Use one your GitHub
account has, such as your noreply address, so GitHub links the commits
to you." ("noreply address" links to github.com/settings/emails,
underlined in the accent color).
- **The server's error**: with `dev@example` saved, "Enter a valid email
address" replaces the hint in the danger color, as the other fields'
errors do.
- **Dark, 390 px, with an address saved**: the fields stack,
`[email protected]` fits the field, and the hint
wraps.

**The project's settings → Agents**

- **Before**, light and dark: three switches, "Open a pull request when
done", "Remote Control" and "claude.ai connectors".
- **After**, light and dark: two more switches below them, on by default
and styled like them: "Credit people in commits" ("Commits name the
person who started the session as a co-author, with the commit email in
their profile.") and "Credit Claude in commits" ("Commits name Claude as
a co-author, Claude Code's default. Off: they leave out its trailer and
the claude.ai session link.").
- **Dark, 390 px, with Credit Claude in commits switched off and
saved**: that switch shows off, the text wraps beside each switch like
the others', and "Settings saved" shows.

Session: https://app.fctl.sh/s/ses_01M56GAEEHP8WBMTPQ9ZY9VVA0

---------

Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant