Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ Accepted
This records the chosen topology. The identity, fallback, envelope, and
admission foundation is implemented; the
[trace-context v1 specification](../normative/trace-context/v1/README.md)
defines its contract. Carrier publication, key provisioning, and runtime
integration are pending.
defines its contract. `fullsend repos install` provisions the signing keys of
GitHub repositories (see the
[key lifecycle](../reference/trace-context.md#key-lifecycle)). Carrier
publication, key provisioning on GitLab, the flags through which the
behaviour-test suite supplies its own keys, delivery of the signing key to
runs, and runtime integration are pending.

## Context

Expand Down
239 changes: 214 additions & 25 deletions docs/cli/repos.md

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions docs/contributing/go-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,18 +696,23 @@ entry, and the symptom only appears on user repositories after
`FULLSEND_DISPATCH_SECRET` through `seedGitLabPollState`, not through
`managedVarsForForge`. Anything added by a similar out-of-band path
needs a cleanup entry too, and needs naming in the parity test, which
cannot discover it.
cannot discover it. On GitHub, `convergeTraceSigningKey` writes
`FULLSEND_TRACE_SIGNING_KEY` and `FULLSEND_TRACE_SIGNING_KEY_ID`
([ADR 0154](../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md))
outside both builders; `uninstallSecrets` and `uninstallVariables` delete
them, and the parity tests name them in `installSideSecretExtras` and
`installSideExtras`.

### The invariant is one-way

Everything install writes must be deleted on uninstall. The reverse is
false by design: the uninstall lists deliberately retain names install no
longer writes, so repositories installed by earlier versions are still
cleaned up — `gitlabRetiredLegacyVars` and the `forge.VarLegacy*` names.
The uninstall lists also carry the trace signing key,
The GitLab uninstall list also carries the trace signing key,
`FULLSEND_TRACE_SIGNING_KEY`
([ADR 0154](../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md)),
which install does not write.
which install does not write on GitLab.
Two omissions are also deliberate and documented where they are defined:
`gitlabUninstallVars` excludes the legacy shared forge token, and
`gitlabUninstallSecrets` excludes the unprefixed `OPENAI_API_KEY`, which
Expand Down
1 change: 1 addition & 0 deletions docs/guides/dev/cli-internals.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ fullsend
│ │ ├── --jira-email <email> # FULLSEND_JIRA_EMAIL for repos whose tracker.jira.poll.enabled is true (optional; CLI-only)
│ │ ├── --jira-client-id <id> # FULLSEND_JIRA_CLIENT_ID instead of --jira-token (CLI-only)
│ │ ├── --jira-client-secret <secret> # FULLSEND_JIRA_CLIENT_SECRET instead of --jira-token (CLI-only; never logged)
│ │ ├── --rotate-trace-signing-key # New trace signing key pair for GitHub repos; the first rotation gives an existing install its keys
│ │ ├── --fullsend-binary <path> # Pre-built binary to vendor (requires a selected repo with vendor: true)
│ │ ├── --fullsend-source <path> # Source checkout to vendor from (requires a selected repo with vendor: true)
│ │ ├── --gitlab-role-registry <path> # Administrator GitLab role registry JSON
Expand Down
19 changes: 14 additions & 5 deletions docs/guides/getting-started/migrating-from-github-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ These inputs are never written to `repos.yaml`:
|---|---|
| Secrets and sensitive provisioning | `--openai-api-key`, `--jira-token`, `--jira-email`, `--jira-client-id`, `--jira-client-secret`, `--vertex-project`, `--vertex-wif-provider`, `--gitlab-role-token role=token` (repeatable), `--gitlab-role-registry`, `--gitlab-token` (or `GITLAB_TOKEN`) |
| Local vendoring artifacts | `--fullsend-binary`, `--fullsend-source`. Valid only when a selected repository resolves `vendor: true`; otherwise install fails and points at `fullsend repos set defaults.vendor true` |
| One-run controls | `-f` / `--manifest`, `--dry-run`, `--direct`, `--concurrency`, `--force`, `--reactivate-schedules`, `--rotate-gitlab-roles`, `--rotate-gitlab-role`, `--rotate-gitlab-trigger-token`, `--rotate-gitlab-trigger-account` |
| One-run controls | `-f` / `--manifest`, `--dry-run`, `--direct`, `--concurrency`, `--force`, `--reactivate-schedules`, `--rotate-gitlab-roles`, `--rotate-gitlab-role`, `--rotate-gitlab-trigger-token`, `--rotate-gitlab-trigger-account`, `--rotate-trace-signing-key` |

`--vertex-project` and `--vertex-wif-provider` are optional when the
effective configuration declares `inference.project` and
Expand Down Expand Up @@ -205,8 +205,11 @@ github:

`fullsend repos install acme/web` installs `acme/web` with the glob's
settings, even when the org listing omits it (for example a fork or an
archived repository), and adds no explicit entry. To give one repository
different settings, add an explicit entry for it.
archived repository). Naming it adds no explicit entry, but install gives it
one, copied from the glob, when it writes the first-install `tracker` default
or, on GitHub, the `trace_context` block to `repos.yaml`. Edits to the glob
entry do not apply to a repository that has its own entry. To give one
repository different settings, add an explicit entry for it.

### Infrastructure values

Expand Down Expand Up @@ -461,14 +464,20 @@ cannot be read back to compare, so they are always refreshed from the
supplied values. When neither supplies a project, the existing secrets are
reused.

Install writes to `repos.yaml` itself only in two cases, both of which
predate this change:
Install writes to `repos.yaml` itself only in these cases:

- On a first install with no preset and no `tracker` declaration, it
records `config.tracker.github.allowed_targets.repos: [fullsend-ai/fullsend, fullsend-ai/agents]`
on a GitHub repository's entry. For GitLab it records the explicit empty
policy `config.tracker.gitlab.allowed_targets: {}`. For a repository covered only by a glob, this
adds an explicit entry.
- When it converts legacy `tracker` or `create_issues` configuration, it
writes the converted manifest (see
[Permit agent improvement proposals on existing installations](#permit-agent-improvement-proposals-on-existing-installations)).
- When it generates a trace signing key pair for a GitHub repository, it
records `config.trace_context` in the repository's entry. For a repository
covered only by a glob, this adds an explicit entry, copied from the glob.
See [Trace signing keys](../../cli/repos.md#trace-signing-keys).
- After a first install, it writes the CLI's release to
`github.fullsend_ref` or `gitlab.fullsend_ref` when that key is unset.

Expand Down
6 changes: 5 additions & 1 deletion docs/guides/getting-started/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,20 @@ fullsend github set "$OWNER/$REPO" FULLSEND_GCP_REGION global
| `FULLSEND_OPENAI_IDENTITY_PROVIDER_ID` | Repo variable | OpenAI WIF identity-provider ID | `idp-example` |
| `FULLSEND_OPENAI_SERVICE_ACCOUNT_ID` | Repo variable | OpenAI WIF service-account ID | `sa-example` |
| `FULLSEND_REVIEW_CLIENT_ID` | Repo variable | OAuth client ID of the review agent's GitHub App (best-effort, auto-set by installer) | `Iv23li1nIorNLIQy6NWK` |
| `FULLSEND_TRACE_SIGNING_KEY_ID` | Repo variable | Key ID of the last seed `repos install` confirmed writing to `FULLSEND_TRACE_SIGNING_KEY`: 16 lowercase hex characters. `repos install` deletes it before it writes a new key and sets it once the write succeeds. Not secret; do not set it by hand. `repos uninstall` deletes it | `0123456789abcdef` |
| `FULLSEND_GCP_PROJECT_ID` | Repo secret | GCP project ID where Agent Platform is enabled | `my-gcp-project` |
| `FULLSEND_GCP_WIF_PROVIDER` | Repo secret | Full WIF provider resource name for OIDC authentication | `projects/123456789/locations/global/...` |
| `FULLSEND_OPENAI_API_KEY` | Repo secret | OpenAI API key for repos whose `inference.auth` is `openai-api-key`, written by `repos install --openai-api-key` (exported as `OPENAI_API_KEY`; unused when the WIF trio is set) | `sk-...` |
| `FULLSEND_INFERENCE_GATEWAY_API_KEY` | Repo secret | Inference gateway API key for repos whose `inference.gateway.auth` is `api-key`; set by the repository admin (`fullsend github set`), not by setup. A long-lived secret: prefer `auth: oidc` | — |
| `FULLSEND_JIRA_TOKEN` | Repo secret | Jira API token for polling and Jira-originated agent status updates when effective `tracker.jira.poll.enabled` is `true`, written by `repos install --jira-token` (required on the first install unless client credentials are supplied; an omitted flag keeps the existing secret; `repos uninstall` deletes it) | (Jira API token) |
| `FULLSEND_JIRA_EMAIL` | Repo secret | Optional Jira account email for the same poller and agent status calls, written by `repos install --jira-email`; an omitted flag keeps the existing secret; `repos uninstall` deletes it | `poller@example.com` |
| `FULLSEND_JIRA_CLIENT_ID` / `FULLSEND_JIRA_CLIENT_SECRET` | Repo secret | A service account's OAuth 2.0 credential, used instead of `FULLSEND_JIRA_TOKEN` (never both). GitHub poll and Jira-originated dispatch workflows forward them to the Jira client; `repos install` writes them on GitHub and GitLab. `repos uninstall` deletes them | (OAuth client credentials) |
| `FULLSEND_TRACE_SIGNING_KEY` | Repo secret | Reserved for the trace-context signing key ([ADR 0154](../../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md)). Fullsend does not provision it yet. `fullsend run` keeps it from harnesses. `repos uninstall` deletes it | — |
| `FULLSEND_TRACE_SIGNING_KEY` | Repo secret | Trace-context signing key ([ADR 0154](../../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md)): standard base64 of a 32-byte Ed25519 seed, generated by `repos install`, which records its public key in `repos.yaml` as `config.trace_context`. [Trace signing keys](../../cli/repos.md#trace-signing-keys) lists when install writes it. Nothing reads it yet. `fullsend run` keeps it from harnesses. `repos uninstall` deletes it | (generated) |
| `FULLSEND_GITHUB_RUNNER_SECRETS` | Repo or org secret (optional) | JSON object of name → value for host-side scripts, read through each harness's `env.runner`. Set with `gh secret set`, not `fullsend github set`; see [Pass secrets to host-side scripts](../user/bring-your-own-agent.md#pass-secrets-to-host-side-scripts-github) | `{"JIRA_API_TOKEN":"..."}` |

> **Planned:** delivery of `FULLSEND_TRACE_SIGNING_KEY` to runs
> ([#9060](https://github.com/fullsend-ai/fullsend/issues/9060)).

Repositories selecting `inference.auth: openai-wif` need no inference secrets unless
Vertex sub-agents require GCP credentials. See [OpenAI Workload Identity](../infrastructure/openai-workload-identity.md)
for identifier sources and precedence. These three WIF variables are user-owned;
Expand Down
23 changes: 18 additions & 5 deletions docs/guides/getting-started/repo-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,16 @@ replaced. `.fullsend/config.base.yaml` is managed as described under
[Configuration presets](#configuration-presets).

When the manifest is read-only (an HTTPS URL, a pipe or FIFO such as `<(cmd)`,
or a local file without write permission), install fails before attempting any
manifest write and prints the exact entry to add to its source, including for a
glob-covered repository whose first-install `tracker` default needs an explicit
entry. `--dry-run`, live install and `repos status` agree.
or a local file without write permission or on a read-only file system),
install fails before attempting any manifest write and prints the exact entry
to add to its source, including for a glob-covered repository whose
first-install `tracker` default needs an explicit
entry. `--dry-run`, live install and `repos status` agree. Trace signing keys
follow their own rule on GitHub: from such a manifest, a fresh install without
`--rotate-trace-signing-key` goes ahead without keys and says so, any other
repository that must record a key fails, and `--rotate-trace-signing-key`
stops the run before it writes a key (see
[Trace signing keys](../../cli/repos.md#trace-signing-keys)).

```bash
fullsend repos status -f repos.yaml --json # whole-file managed drift
Expand Down Expand Up @@ -871,7 +877,14 @@ fullsend repos install acme/new-api acme/new-web --dry-run
To cover every repository in an org, declare a glob entry such as
`fullsend repos set 'github.repos["acme/*"]' '{}'`. Naming a concrete
repository the glob covers (`fullsend repos install acme/new-api`)
installs it with the glob's settings without adding an explicit entry.
installs it with the glob's settings. Naming it adds no explicit entry. Any
install, whether it names the repository, passes `"acme/*"` or selects the
whole manifest, gives a glob-covered repository its own entry, copied from the
glob, when it writes that repository's first-install `tracker` default or, on
GitHub, its `trace_context` block
([Trace signing keys](../../cli/repos.md#trace-signing-keys)) to `repos.yaml`.
Edits to the glob entry apply only to repositories that have no entry of their
own.

Per-repo settings live on the entry, never in install flags:
`fullsend_ref`, `mint_url`, `app_set`, `inference.auth`, `vendor`,
Expand Down
18 changes: 14 additions & 4 deletions docs/guides/infrastructure/infrastructure-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,22 +348,32 @@ Secrets and variables are deployed on the target repository.
not by `github setup`)
- `FULLSEND_JIRA_TOKEN`, `FULLSEND_JIRA_EMAIL` — Jira API token and optional account email for repos whose effective `tracker.jira.poll.enabled` is `true`, used by the poller and Jira-originated agent status updates (written by `repos install --jira-token` / `--jira-email`; an omitted flag keeps the existing secret; deleted by `repos uninstall`; not set by `github setup`)
- `FULLSEND_JIRA_CLIENT_ID`, `FULLSEND_JIRA_CLIENT_SECRET` — a service account's OAuth 2.0 credential, an alternative to `FULLSEND_JIRA_TOKEN` (never both). GitHub poll and Jira-originated dispatch workflows forward them to the Jira client, and `repos install` writes them on GitHub and GitLab; `repos uninstall` deletes them
- `FULLSEND_TRACE_SIGNING_KEY` — reserved for the trace-context signing key
([ADR 0154](../../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md)).
Fullsend does not provision it yet. `fullsend run` keeps it from harnesses.
`repos uninstall` deletes it.
- `FULLSEND_TRACE_SIGNING_KEY` — trace-context signing key
([ADR 0154](../../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md)):
standard base64 of a 32-byte Ed25519 seed, generated by `repos install`,
which records its public key in `repos.yaml` as `config.trace_context`
([when install writes it](../../cli/repos.md#trace-signing-keys)). Nothing
reads it yet. `fullsend run` keeps it from harnesses. Deleted by
`repos uninstall`; not set by `github setup`.
- `FULLSEND_GITHUB_RUNNER_SECRETS` — optional, set by you: a JSON object of
name → literal value for host-side scripts, resolved through each harness's
`env.runner`
([setup](../user/bring-your-own-agent.md#pass-secrets-to-host-side-scripts-github))

> **Planned:** delivery of `FULLSEND_TRACE_SIGNING_KEY` to runs
> ([#9060](https://github.com/fullsend-ai/fullsend/issues/9060)).

Repos whose `inference.auth` is `openai-wif` need no fullsend-managed inference secret: they authenticate with the user-managed `FULLSEND_OPENAI_*` identifier variables or `inference.openai` configuration, and the GCP secrets above are written only when Vertex sub-agents are configured.

**Target repo variables:**
- `FULLSEND_MINT_URL`
- `FULLSEND_GCP_REGION` (value drift is detected and repaired by convergence)
- `FULLSEND_REVIEW_CLIENT_ID` — OAuth client ID of the review agent's GitHub App (best-effort, conditional on successful lookup)
- `FULLSEND_APP_SET` — GitHub App set prefix (apps named `{app-set}-{role}`); auto-set by the installer and repaired on convergence
- `FULLSEND_TRACE_SIGNING_KEY_ID` — key ID of the last seed `repos install`
confirmed writing to `FULLSEND_TRACE_SIGNING_KEY`. Install deletes it before
it writes a new key and sets it once the write succeeds. Not secret. Deleted
by `repos uninstall`

#### GitLab

Expand Down
26 changes: 16 additions & 10 deletions docs/reference/config-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,24 +1022,30 @@ The repository's trace-context keys
([ADR 0154](../ADRs/0154-correlate-work-item-and-behaviour-scenario-traces.md)):
its installation ID, the public keys that verify its trace-context envelopes,
and the name of the secret that holds its private signing key. Every value in
the block is public. No fullsend command generates these keys or creates the
secret, and nothing signs or verifies an envelope with them; the
[Trace Context Reference](trace-context.md#implementation-scope) lists what is
implemented.
the block is public. `fullsend repos install` generates the keys of GitHub
repositories (see
[Trace Context Reference — Key lifecycle](trace-context.md#key-lifecycle)).
Nothing signs or verifies an envelope with them yet.

- **`installation_id`** — Identifies the repository's key set: exactly 32
lowercase hex characters (128 bits), not all zero.
lowercase hex characters (128 bits), not all zero. Install keeps it through
recovery, rotation and reinstall while the `repos.yaml` entry keeps its
`trace_context`; a fully uninstalled repository declared again without it
starts a new installation.
- **`signing_key.secret`** — The secret that holds the private signing key. It
must be exactly `FULLSEND_TRACE_SIGNING_KEY`. The key itself never appears in
configuration.
- **`verification_keys.active`** — The public key of the current signing key:
standard base64, with padding, of a 32-byte Ed25519 public key.
- **`verification_keys.retained`** — Optional. Earlier public keys, in the same
form, so that envelopes signed with their private keys still verify.

A concrete repository entry in `repos.yaml` declares the block as
`config.trace_context`, and `fullsend repos install` renders it into the managed
`.fullsend/config.yaml`. Only a concrete repository entry may declare it:
form, so that envelopes signed with their private keys still verify. Within
an installation, install never removes one; enrolling a fully uninstalled
repository again replaces the whole block.

On GitHub, `fullsend repos install` records the block in the repository's
concrete `repos.yaml` entry as `config.trace_context`. Install renders the
block into the managed `.fullsend/config.yaml`. Commit the `repos.yaml`
changes install makes. Only a concrete repository entry may declare it:
manifest validation rejects it in `defaults.config`, `github.config`,
`gitlab.config` and glob entries. `repos install` also rejects a configuration
preset or an existing `.fullsend/config.base.yaml` that contains it, and
Expand Down
Loading
Loading