
# Activity log

Activity is your organization's audit record: every invite, role change, approval, connection grant, setting change and identity event, with who did it and when. Open **Activity** in the left menu, and filter with **All**, **People**, **Agents** or **agent.cloud**.

The **When** menu narrows it to Any time, Today, or the last 7, 30 or 90 days. It shows the latest 200 entries, newest first, grouped by day in your time zone, and entries are kept for a year.

## Do it in the console

1. In the left menu, open **Activity**.
2. Pick a filter at the top:
   - **People**: actions by a signed-in person;
   - **Agents**: actions by an agent, shown by the name it gave itself and marked "(agent)";
   - **agent.cloud**: actions the platform took itself, such as an email hold or a provider deprovisioning someone.
3. Read the table: **Time** (in your time zone, under a day heading), **Who** (an address, an agent's name with "(agent)", or agent.cloud), **What** (the kind's sentence and subject), and **App** when the entry is about one app.

Each app's **Settings** page also has an **Activity** section with that app's latest 20 entries.

## How it works

Every change goes through one recorder that appends a row with the organization, the actor, the kind, a subject and, when relevant, the app. Nothing edits or deletes rows except the retention sweep, which runs daily and removes entries older than a year. Deleting the organization deletes its activity with it.

The page shows a sentence per kind, e.g. `member.role` reads "changed a role: ana@example.test is now owner". The kinds below are what you'll find, grouped by area.

### Event kinds

| Area | Kinds |
|---|---|
| Organization | `org.created`, `org.renamed`, `org.confirmed`, `org.join_policy`, `org.verify`, `org.provisioned`, `org.manual`, `org.session_length`, `org.group_mapped`, `org.group_unmapped` |
| New-app defaults and organization settings | `defaults.signin`, `defaults.listed`, `defaults.stack`, `defaults.analytics`, `org.walkthrough_videos`, `org.keep_hosting`, `app.keep_host` |
| Members | `invite.sent`, `invite.resent`, `invite.revoked`, `member.joined`, `member.left`, `member.removed`, `member.role`, `join.requested`, `join.approved`, `join.declined` |
| Provisioned members | `member.deprovisioned`, `member.deprovision_refused`, `member.group_sync`, `member.reconciled`, `member.exception`, `breakglass.set` |
| Domains | `domain.added`, `domain.verified`, `domain.removed`, `domain.code_locked` |
| Company sign-in | `sso.connected`, `sso.configured`, `sso.tested`, `sso.removed`, `sso.remove_failed`, `sso.bypass`, `scim.connected`, `scim.removed`, `scim.removals_held`, `scim.rotation_started`, `scim.rotated`, `scim.rotation_cancelled` |
| App audiences | `identity.audience` |
| Apps | `app.created`, `app.started_from`, `app.claimed`, `app.transferred`, `app.deleted`, `app.restored`, `app.purged`, `app.address_changed`, `app.analytics_added`, `app.icon_changed`, `app.signin_methods`, `app.password_given`, `app.password_removed`, `release.approved`, `release.declined` |
| Agents and join codes | `join_code.made`, `join_code.revoked`, `agent.joined`, `agent.connected`, `agent.left` |
| Connections | `connection.added`, `connection.edited`, `connection.removed`, `connection.role_set`, `connection.role_removed`, `connection.tested`, `connection.requested`, `connection.granted`, `connection.declined`, `connection.revoked`, `connection.rotated`, `connection.mirror_fetch` |
| Context docs | `context.added`, `context.edited`, `context.removed` |
| Deployment targets | `target.added`, `target.default`, `target.runbook`, `target.registered`, `target.revoked`, `target.held`, `target.released`, `target.limits`, `target.gateway_plaintext_accepted`, `target.gateway_plaintext_withdrawn`, `target.storage_issuer`, `target.unhealthy`, `target.recovered`, `target.removed`, and operator-set `target.public_alb`, `target.stack_pins`, `target.lb_addresses` |
| Outbound hosts | `egress.requested`, `egress.granted`, `egress.declined`, `egress.revoked`, `egress.turned_off`, `egress.turned_on` |
| Notifications and chat | `comms.connected`, `comms.disconnected`, `comms.linked`, `comms.unlinked`, `comms.bot_added`, `comms.bot_removed`, `comms.subscribed`, `comms.unsubscribed`, `comms.paused`, `comms.resumed`, `comms.notices`, `comms.chat_approvals`, `comms.imessage`, `comms.agent`, `comms.agent_limit` |
| Email | `email.held`, `email.resumed` |
| Feedback | `feedback.filed` |

`app.icon_changed` records who changed an app's icon (for example with `agc icon`) and the version before and after, e.g. "version 2 → 3"; see [Your app's icon](/docs/build/your-apps-icon.md).

`member.joined` covers every way in; its subject says how: by invite, by their domain, by request, by the provider at sign-in (`jit`) or by SCIM. A break-glass sign-in (`sso.bypass`) is also emailed to every owner.

### Where release events live

Activity records decisions and changes to the organization. A release's events (built, rehearsed, approved, live) are on its own page, and changes to an app's release policy and budget are app events (`settings.changed`).

## Audit trail

Activity is one of four records of what happened to an app. Each release that goes live gets a release record with a receipt id (`rcp_` plus 128 random bits) linked from `agc ship`'s envelope. The app's events record releases, approvals, secret changes and credential changes with the actor. Where the GitHub integration is configured, the app's repository gets one commit per live release. A ship that went live returns `"outcome": "live"`, exit 0, and `receipt.url` pointing at `/r/rcp_…`.

### Release records (receipts)

When a release goes live, control writes a `releases` row with the version, op, image digest and a new receipt id. `GET /r/:id` needs a signed-in person and redirects to the release page's record section, which shows the record id, live time, image digest and any large build inputs with their SHA-256. The release page also carries the plan's decision: whether a person was needed and why, as rules wrote it. For example: "Changes the production database (…)" or "Code only, and this app lets agents release code on their own."

An approval keeps `decided_by`, `decided_at`, `decided_via` (`console`, `session`, or `chat` for Slack's buttons) and `decided_agent`. A decision made in an agent's session reads "approved by <person> in an agent session (agent <label>, <id>)" on the release page and in activity.

### App events

`store.event()` appends a row to `events` with the app, op, actor, kind and text. The actor is a person's email, an agent's label, or `agent.cloud` for the platform, and control's code has no path that deletes from `events`. Kinds written include:

| Area | Kinds |
|---|---|
| Approvals | `approval.requested`, `approval.approved`, `approval.declined`, `approval.expired`, `approval.resumed` |
| Releases | `release.live_on_its_own`, `release.cancelled`, `release.deferred`, `release.resumed` |
| Settings | `settings.changed` (budget and autonomy, naming the person) |
| Secrets | `secret.set`, `secret.removed`, `secret.generated` (names, never values) |
| Credentials | `agent.connected`, `agent.purpose`, `agent.revoked`, `agent.expired`, `key.expiring` |
| Checks and lifecycle | `check.released`, `app.deleted` |

### The app's GitHub repository

With the GitHub App configured, each app gets a private repository with one commit per live release, titled from the ship message. A failed sync never blocks a release. Protection, filtering, merges and transfer: [The app's GitHub repo](/docs/ship/the-apps-github-repo.md).

| Record | Where a person sees it | Retention in code |
|---|---|---|
| Release record | Console release page, `/r/<receipt>` | Not deleted by control |
| Approval | Release page and activity | Not deleted by control |
| App events | App page in the console, `agc events` | Not deleted by control |
| Organization activity | Organization activity page | 1 year |
| Logs (for context) | Console Observability, `agc logs` | 30 days |
| GitHub commits | The app's repository | GitHub's |

## Limits

Entries are kept 1 year; the page shows the latest 200 and an app's Activity card the latest 20.

## Agent notes

- A receipt exists only once a release is live; `waiting_approval` has an approval link instead.
- Quote the receipt id and the decision reason from the envelope; don't paraphrase why it needed or skipped approval.
- Read the receipt from `agc ship` and `agc wait`, and the app's events with `agc events` (newest 30, up to 100 with `--limit`; `--failed` for failures only).
- An in-session approval is recorded with `decided_via: session`, so a reviewer can tell it from a console decision.

## Related

- [Members, roles, invites, join requests](/docs/owners/members-roles-invites-join-requests.md)
- [Company sign-in (SSO) and SCIM](/docs/owners/company-sign-in-and-scim.md)
- [Outcomes and receipts](/docs/concepts/operations-and-waiting.md#outcomes-and-receipts)
- [The app's GitHub repo](/docs/ship/the-apps-github-repo.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "owners/activity-log: <what is wrong>" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
