From 4ca4c02b61efc7010de64239cb6b81ad82eba7b9 Mon Sep 17 00:00:00 2001 From: anevans Date: Mon, 9 Nov 2026 13:18:27 -0500 Subject: [PATCH 1/4] docs(#7175): document the scribe agent under docs/agents/ Add docs/agents/scribe.md to document the scribe agent defined in fullsend-ai/agents, covering its vision, pipeline behavior, expected outcomes, commands, control labels, and configuration options (including dedicated GCP service account setup, Jira issue creation, and operating modes). Add scribe to the summary table in docs/agents/README.md and to the sidebar navigation in docs/.vitepress/config.ts. Closes #7175 Signed-off-by: anevans --- docs/.vitepress/config.ts | 1 + docs/agents/README.md | 1 + docs/agents/scribe.md | 172 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 174 insertions(+) create mode 100644 docs/agents/scribe.md diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index c7b2e2dd42..93f915e4ff 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -279,6 +279,7 @@ export default defineConfig({ { text: "Fix", link: "/agents/fix" }, { text: "Retro", link: "/agents/retro" }, { text: "Prioritize", link: "/agents/prioritize" }, + { text: "Scribe", link: "/agents/scribe" }, ], }, { diff --git a/docs/agents/README.md b/docs/agents/README.md index 8027c12b41..bcfcea2394 100644 --- a/docs/agents/README.md +++ b/docs/agents/README.md @@ -19,6 +19,7 @@ Custom agents can be registered via the `agents:` field in the repository-local | [Review](review.md) | Reviews pull requests for correctness, security, and intent alignment | | [Fix](fix.md) | Addresses review feedback on open PRs | | [Retro](retro.md) | Analyzes completed workflows and proposes system improvements | +| [Scribe](scribe.md) | Maps discussion topics from meeting notes to existing issues or new issue proposals | ## Configuration diff --git a/docs/agents/scribe.md b/docs/agents/scribe.md new file mode 100644 index 0000000000..6f98c82dd3 --- /dev/null +++ b/docs/agents/scribe.md @@ -0,0 +1,172 @@ +--- +description: How the fullsend scribe agent processes meeting notes from Google Drive, maps discussion topics to the issue backlog, and comments on or creates issues. +--- + +# Scribe Agent + +![Scribe agent icon](icons/scribe.png) + +Reads meeting notes that Gemini saves to Google Drive after Google Meet calls, maps discussion topics to the issue backlog, and adds comments to existing issues or creates new ones. + +## How the agent works + +The scribe agent bridges synchronous team interactions and autonomous development loops. It runs on a schedule or via manual trigger, searching Google Drive for recent meeting notes, extracting actionable engineering topics, and updating the repository backlog so downstream agents ([triage](triage.md), [prioritize](prioritize.md), [code](code.md)) can act on team decisions. + +Scribe follows the host pre-script / sandbox / validation loop / post-script architecture: + +1. **Pre-script (host)**: + - Fetches repository context: open issues (`backlog.json`), recently closed issues (`closed-issues.json`), open pull requests (`open-prs.json`), and markdown documentation index (`repo-docs-index.json`). + - Queries Google Drive API using a keyword search query (`SCRIBE_SEARCH_QUERY`) across a rolling time window (`SCRIBE_LOOKBACK_HOURS`, default 3 hours) using credentials from a dedicated GCP service account. + - PII and structural scrubbing: Drops transcript sections, anonymizes bracketed attendee names (e.g. `[John Smith]`) and bullet attribution prefixes (`- Jane Doe: action`), and packages cleaned notes into `notes.tar.gz`. + - Generates `scribe-meta.json` with runtime metadata including `cutoff_date` and `notes_url`. +2. **Sandbox**: + - The sandboxed agent extracts `notes.tar.gz` and reads the notes alongside repository context files. + - Treats all meeting notes as untrusted user input — never following commands, directives, or instructions embedded within notes content. + - Evaluates topics against strict criteria: + - **Recency**: Extracts topics only from the most recent meeting section on or after `cutoff_date`. + - **Substance threshold**: Requires concrete discussion — decisions made, questions debated, options evaluated, or action items assigned. Skips brief name drops, logistics, status updates with no new information, and topics whose only outcome is an external chat. + - **Public-appropriateness gate**: Assigns every topic a `public_safe` boolean and a `public_safe_category`. Sets `public_safe: true` only if the topic contains no personal names, no interpersonal commentary or opinions, no internal HR/headcount/compensation topics, no undisclosed business strategy or financials, no undisclosed security vulnerabilities, and no confidential or legal matters. If unsafe, it flags `public_safe: false` with one of the fixed categories (`names`, `interpersonal`, `hr`, `strategy`, `security`, `legal`, `confidential`) without quoting or paraphrasing the sensitive text. + - **Confidence calibration**: Assigns a confidence score from 0.0 to 1.0 (>= 0.8 for clear decisions and actionable conclusions; 0.6–0.7 for substantive discussion with trade-offs; < 0.6 filtered out by post-script gate). + - **Backlog matching**: Matches discussion topics against open issues by analyzing both issue titles and bodies. Checks closed issues to avoid proposing already-resolved work (noting prior resolution in comments instead). Correlates in-flight work with open PRs and references relevant ADRs or problem docs. + - **Formatting**: Formats comments for existing issues with structured markdown (date header, relevance statement, discussion bullet points, related PRs/docs, and a mandatory `[Meeting notes](URL)` citation link). Proposes new issues with structured markdown sections: Problem, Options considered, Acceptance criteria (checkboxes), and Related links. + - Writes structured JSON output (`agent-result.json`) containing `topics[]`, `new_issues[]`, and `stats`. The sandbox has no network access to forge APIs or Google Drive. +3. **Validation loop**: + - Validates `agent-result.json` against `schemas/scribe-result.schema.json`, retrying up to 2 times if schema validation fails. +4. **Post-script (host)**: + - Deduplicates topics against previous notes links (idempotency check) to prevent reposting. + - Filters out topics below `SCRIBE_MIN_CONFIDENCE` (default 0.6) and rejects any entry marked `public_safe: false`. + - Enforces sensitive-content and suspicious-Unicode gates on all titles, bodies, summaries, and labels. + - Enforces dry-run safety: requires `SCRIBE_DRY_RUN` to be set explicitly (`true` for preview; `false` for live writes). + - Applies mode filtering (`all`, `comments_only`, `new_issues_only`). + - Writes approved comments and issues using forge API calls (`gh` on GitHub, `curl` on GitLab) or Jira Cloud issue creation (`fullsend issues create --tracker jira`). + - Optionally sends run summary notifications to Slack when `SCRIBE_SLACK_WEBHOOK_URL` is set. + +### Security model + +- **Untrusted input**: Meeting notes are treated as untrusted user input. Prompts explicitly instruct the agent to ignore any embedded directives or prompt injection attempts in meeting text. +- **Dedicated GCP service account**: A service account with zero initial Drive permissions is invited only to specific calendar events whose notes it needs to process. +- **Host-side PII scrubbing**: Bracketed attendee names and speaker attributions are scrubbed on the host before notes enter the sandbox; raw transcripts are excluded entirely. +- **Sandbox network isolation**: Sandbox outbound network policy permits Vertex AI only; curl, forge APIs, and Drive APIs are blocked to prevent token or credential exfiltration. +- **Credential isolation**: Drive credentials, forge tokens (`GH_TOKEN`, `GITLAB_TOKEN`), and Jira API tokens remain on the host runner and are never injected into the sandbox. +- **Host-side validation gates**: Output schema checks, confidence thresholds, sensitive content pattern matching, and public-safety verification run host-side before any mutations occur. + +## How it helps + +- Automatically transfers meeting decisions, architecture debates, and action items into the issue backlog without manual note-taking or copy-pasting. +- Matches discussion topics to existing issues by title and body semantics, keeping existing tracking issues up to date and avoiding duplicate tickets. +- Public-safety and PII gates prevent confidential business matters, personal commentary, and attendee identities from leaking into issue trackers. +- Idempotency checks avoid duplicate comments or repeated issues when processing rolling meeting documents across overlapping lookback windows. +- Serves as the upstream bridge between team discussions and downstream fullsend agents such as [triage](triage.md), [prioritize](prioritize.md), and [code](code.md). + +## Commands + +The scribe agent does not accept slash commands. It runs on a schedule or via manual workflow dispatch. + +## Control labels + +The scribe agent does not consume or apply control labels that gate agent workflow execution. It applies a `meeting-notes` label (or allowlisted Jira labels) to issues it creates for categorization and filtering. + +## Configuration and extension + +Register the scribe agent in your repository's `.fullsend` directory: + +```bash +fullsend agent add \ + https://github.com/fullsend-ai/agents/blob/main/harness/scribe.yaml \ + --name scribe \ + --fullsend-dir . +``` + +### Dedicated GCP service account setup + +To grant the agent access to meeting notes without exposing other Drive files: + +1. Create a dedicated Google Cloud service account with zero default Drive permissions. +2. Invite the service account email address to the Google Calendar events you want scribed. +3. In the Google Calendar event settings, enable Gemini meeting notes and permit read access to external attendees. +4. Export the service account credentials JSON path as `GOOGLE_APPLICATION_CREDENTIALS` (or `SCRIBE_DRIVE_CREDENTIALS`) on the CI runner. + +At runtime, the pre-script queries the Google Drive API for notes matching `SCRIBE_SEARCH_QUERY` created or modified within `SCRIBE_LOOKBACK_HOURS`. Use a specific query term to restrict matching to intended meeting notes. + +### Variables + +Per [ADR 0049](../ADRs/0049-agent-configuration-env-var-convention.md), scribe configuration uses the `SCRIBE_` prefix: + +| Variable | Required | Description | +|----------|----------|-------------| +| `SCRIBE_REPO` | Yes | Target repository (`owner/name` on GitHub, `group/project` on GitLab) | +| `SCRIBE_SEARCH_QUERY` | Yes | Google Drive search query for meeting note document names | +| `SCRIBE_LOOKBACK_HOURS` | No | Search lookback window in hours (default: `3`) | +| `SCRIBE_DRY_RUN` | Yes | `true` to preview actions in logs; `false` for live writes | +| `SCRIBE_MIN_CONFIDENCE` | No | Minimum confidence threshold for posting topics (default: `0.6`) | +| `SCRIBE_MODE` | No | Operating mode: `all`, `comments_only`, or `new_issues_only` (default: `all`) | +| `FULLSEND_FORGE` | Yes | Forge type: `github` or `gitlab` | +| `GH_TOKEN` | Yes (GitHub) | GitHub token with issue read/write permissions | +| `CONTENTS_TOKEN` | No (GitHub) | Optional token for repository content reads; falls back to `GH_TOKEN` | +| `GITLAB_TOKEN` | Yes (GitLab) | GitLab access token with API read/write permissions | +| `GOOGLE_APPLICATION_CREDENTIALS` | Yes | Path to GCP service account key for Drive reads and Vertex AI | +| `SCRIBE_DRIVE_CREDENTIALS` | No | Path to an alternate Drive-scoped service account key (defaults to `GOOGLE_APPLICATION_CREDENTIALS`) | +| `SCRIBE_SLACK_WEBHOOK_URL` | No | Optional Slack incoming webhook URL for run notifications | + +### Operating modes + +| Mode | Effect | +|------|--------| +| `all` | Posts comments on existing issues and creates new issues for unmapped topics | +| `comments_only` | Posts comments on existing issues only; skips new issue creation | +| `new_issues_only` | Creates new issues only; skips commenting on existing issues | + +### Jira issue creation + +Scribe can create new issues in Jira Cloud instead of the forge's native issue tracker. The forge (`FULLSEND_FORGE`) provides repository context (open PRs and documentation index), while the Jira Cloud project provides the open backlog and recently resolved issues for matching and receives new issues. + +Set `FULLSEND_TRACKER=jira` and configure Jira variables in runner environment variables. Extend the harness with `base:` composition in `.fullsend/scribe.yaml`: + +```yaml +base: https://raw.githubusercontent.com/fullsend-ai/agents//harness/scribe.yaml#sha256= +env: + runner: + FULLSEND_TRACKER: jira + SCRIBE_JIRA_PROJECT: PROJ + SCRIBE_JIRA_ISSUE_TYPE: Task + JIRA_BASE_URL: ${JIRA_BASE_URL} + JIRA_TOKEN: ${JIRA_TOKEN} + JIRA_USER_EMAIL: ${JIRA_USER_EMAIL} + FULLSEND_DIR: ${FULLSEND_DIR} +``` + +Then register the local harness override: + +```bash +fullsend agent add .fullsend/scribe.yaml --name scribe --fullsend-dir . +``` + +| Variable | Required | Description | +|----------|----------|-------------| +| `FULLSEND_TRACKER` | Yes (Jira) | Must be set to `jira`. Defaults to `FULLSEND_FORGE`. | +| `SCRIBE_JIRA_PROJECT` | Yes (Jira) | Jira project key for backlog reads and issue creation. | +| `SCRIBE_JIRA_ISSUE_TYPE` | No | Jira issue type for created issues (default: `Task`). | +| `SCRIBE_JIRA_LABELS` | No | Comma-separated allowlist of labels scribe may apply to Jira issues (default: `meeting-notes`). | +| `JIRA_BASE_URL` | Yes (Jira) | Jira Cloud instance URL (`https://.atlassian.net`). | +| `JIRA_API_URL` | No | Target REST API gateway URL. Defaults to `JIRA_BASE_URL`. | +| `JIRA_TOKEN` | Yes (Jira) | Jira API token. | +| `JIRA_USER_EMAIL` | No | Email address for bot user authentication (uses HTTP Basic auth with token). Omit for service accounts (uses Bearer auth). | +| `FULLSEND_DIR` | Yes (Jira) | Path to `.fullsend` directory containing `config.yaml` with `tracker.jira` settings. | + +In Jira mode: +- Only new issues are created. Comments on existing Jira issues are not supported (`all` operates as `new_issues_only`, and `comments_only` is rejected). +- Up to 50 pages of unresolved issues are fetched for backlog matching, along with recently resolved issues from the past 30 days to avoid re-proposing completed work. +- Issue creation delegates to `fullsend issues create --tracker jira`, which converts Markdown to Atlassian Document Format (ADF) and invokes Jira REST APIs. +- Labels are validated against an allowlist (`SCRIBE_JIRA_LABELS`) and applied host-side. + +### GitLab host validation + +On GitLab, the pre- and post-scripts validate `CI_SERVER_URL` against `CI_SERVER_HOST`. Validation requires an HTTPS URL and ensures the URL host matches `CI_SERVER_HOST`, failing closed if variables are missing or mismatched. + +### Skills + +The scribe agent has no built-in skills (`skills: []`). Custom skills can be added via harness composition or repository skill directories. + +## Source + +[`fullsend-ai/agents` — `harness/scribe.yaml`](https://github.com/fullsend-ai/agents/blob/main/harness/scribe.yaml) From 97db9128ee7328426d344888c65a442c6b8c070d Mon Sep 17 00:00:00 2001 From: anevans Date: Mon, 9 Nov 2026 13:31:36 -0500 Subject: [PATCH 2/4] docs(#7175): address review feedback on scribe documentation - Update environment variable tables to include Default column - Clarify SCRIBE_DRY_RUN defaults to true (preview mode) - Document SCRIBE_NAME_FILTER and SCRIBE_SEARCH_QUERY workflow mapping - Expand Drive search scope guidance regarding Shared Drives - Accurately describe GCP key mounting in sandbox and credential isolation - Include agent remove step before local agent add in Jira setup - Rewrap prose paragraphs and list items to ~80 columns - Note runtime discovery from fullsend-ai/agents in docs/agents/README.md Signed-off-by: anevans --- docs/agents/README.md | 5 + docs/agents/scribe.md | 272 ++++++++++++++++++++++++++++++------------ 2 files changed, 198 insertions(+), 79 deletions(-) diff --git a/docs/agents/README.md b/docs/agents/README.md index bcfcea2394..eccb71d11d 100644 --- a/docs/agents/README.md +++ b/docs/agents/README.md @@ -11,6 +11,11 @@ and resolved at runtime via config entries or agents-repo fallback. Custom agents can be registered via the `agents:` field in the repository-local `.fullsend/config.yaml` (see [Architecture](../architecture.md#agent-registry) for details on the registration model). +The table below documents primary agents shipped by fullsend. The full, +current agent inventory is defined and discovered dynamically from the +[`fullsend-ai/agents`](https://github.com/fullsend-ai/agents) repository at +runtime (under `harness/*.yaml`). + | Agent | Summary | |-------|---------| | [Triage](triage.md) | Inspects new issues and produces structured triage decisions | diff --git a/docs/agents/scribe.md b/docs/agents/scribe.md index 6f98c82dd3..d3f231ebaf 100644 --- a/docs/agents/scribe.md +++ b/docs/agents/scribe.md @@ -6,65 +6,143 @@ description: How the fullsend scribe agent processes meeting notes from Google D ![Scribe agent icon](icons/scribe.png) -Reads meeting notes that Gemini saves to Google Drive after Google Meet calls, maps discussion topics to the issue backlog, and adds comments to existing issues or creates new ones. +Reads meeting notes that Gemini saves to Google Drive after Google Meet +calls, maps discussion topics to the issue backlog, and adds comments to +existing issues or creates new ones. ## How the agent works -The scribe agent bridges synchronous team interactions and autonomous development loops. It runs on a schedule or via manual trigger, searching Google Drive for recent meeting notes, extracting actionable engineering topics, and updating the repository backlog so downstream agents ([triage](triage.md), [prioritize](prioritize.md), [code](code.md)) can act on team decisions. +The scribe agent bridges synchronous team interactions and autonomous +development loops. It runs on a schedule or via manual trigger, searching +Google Drive for recent meeting notes, extracting actionable engineering +topics, and updating the repository backlog so downstream agents +([triage](triage.md), [prioritize](prioritize.md), [code](code.md)) can +act on team decisions. -Scribe follows the host pre-script / sandbox / validation loop / post-script architecture: +Scribe follows the host pre-script / sandbox / validation loop / post-script +architecture: 1. **Pre-script (host)**: - - Fetches repository context: open issues (`backlog.json`), recently closed issues (`closed-issues.json`), open pull requests (`open-prs.json`), and markdown documentation index (`repo-docs-index.json`). - - Queries Google Drive API using a keyword search query (`SCRIBE_SEARCH_QUERY`) across a rolling time window (`SCRIBE_LOOKBACK_HOURS`, default 3 hours) using credentials from a dedicated GCP service account. - - PII and structural scrubbing: Drops transcript sections, anonymizes bracketed attendee names (e.g. `[John Smith]`) and bullet attribution prefixes (`- Jane Doe: action`), and packages cleaned notes into `notes.tar.gz`. - - Generates `scribe-meta.json` with runtime metadata including `cutoff_date` and `notes_url`. + - Fetches repository context: open issues (`backlog.json`), recently + closed issues (`closed-issues.json`), open pull requests (`open-prs.json`), + and markdown documentation index (`repo-docs-index.json`). + - Queries Google Drive API using a keyword search query + (`SCRIBE_SEARCH_QUERY`) across a rolling time window + (`SCRIBE_LOOKBACK_HOURS`, default 3 hours) using credentials from + a dedicated GCP service account. + - PII and structural scrubbing: Drops transcript sections, anonymizes + bracketed attendee names (e.g. `[John Smith]`) and bullet attribution + prefixes (`- Jane Doe: action`), and packages cleaned notes into + `notes.tar.gz`. + - Generates `scribe-meta.json` with runtime metadata including + `cutoff_date` and `notes_url`. 2. **Sandbox**: - - The sandboxed agent extracts `notes.tar.gz` and reads the notes alongside repository context files. - - Treats all meeting notes as untrusted user input — never following commands, directives, or instructions embedded within notes content. + - The sandboxed agent extracts `notes.tar.gz` and reads the notes alongside + repository context files. + - Treats all meeting notes as untrusted user input — never following + commands, directives, or instructions embedded within notes content. - Evaluates topics against strict criteria: - - **Recency**: Extracts topics only from the most recent meeting section on or after `cutoff_date`. - - **Substance threshold**: Requires concrete discussion — decisions made, questions debated, options evaluated, or action items assigned. Skips brief name drops, logistics, status updates with no new information, and topics whose only outcome is an external chat. - - **Public-appropriateness gate**: Assigns every topic a `public_safe` boolean and a `public_safe_category`. Sets `public_safe: true` only if the topic contains no personal names, no interpersonal commentary or opinions, no internal HR/headcount/compensation topics, no undisclosed business strategy or financials, no undisclosed security vulnerabilities, and no confidential or legal matters. If unsafe, it flags `public_safe: false` with one of the fixed categories (`names`, `interpersonal`, `hr`, `strategy`, `security`, `legal`, `confidential`) without quoting or paraphrasing the sensitive text. - - **Confidence calibration**: Assigns a confidence score from 0.0 to 1.0 (>= 0.8 for clear decisions and actionable conclusions; 0.6–0.7 for substantive discussion with trade-offs; < 0.6 filtered out by post-script gate). - - **Backlog matching**: Matches discussion topics against open issues by analyzing both issue titles and bodies. Checks closed issues to avoid proposing already-resolved work (noting prior resolution in comments instead). Correlates in-flight work with open PRs and references relevant ADRs or problem docs. - - **Formatting**: Formats comments for existing issues with structured markdown (date header, relevance statement, discussion bullet points, related PRs/docs, and a mandatory `[Meeting notes](URL)` citation link). Proposes new issues with structured markdown sections: Problem, Options considered, Acceptance criteria (checkboxes), and Related links. - - Writes structured JSON output (`agent-result.json`) containing `topics[]`, `new_issues[]`, and `stats`. The sandbox has no network access to forge APIs or Google Drive. + - **Recency**: Extracts topics only from the most recent meeting section + on or after `cutoff_date`. + - **Substance threshold**: Requires concrete discussion — decisions made, + questions debated, options evaluated, or action items assigned. Skips + brief name drops, logistics, status updates with no new information, + and topics whose only outcome is an external chat. + - **Public-appropriateness gate**: Assigns every topic a `public_safe` + boolean and a `public_safe_category`. Sets `public_safe: true` only if + the topic contains no personal names, no interpersonal commentary or + opinions, no internal HR/headcount/compensation topics, no undisclosed + business strategy or financials, no undisclosed security + vulnerabilities, and no confidential or legal matters. If unsafe, it + flags `public_safe: false` with one of the fixed categories (`names`, + `interpersonal`, `hr`, `strategy`, `security`, `legal`, `confidential`) + without quoting or paraphrasing the sensitive text. + - **Confidence calibration**: Assigns a confidence score from 0.0 to 1.0 + (>= 0.8 for clear decisions and actionable conclusions; 0.6–0.7 for + substantive discussion with trade-offs; < 0.6 filtered out by + post-script gate). + - **Backlog matching**: Matches discussion topics against open issues by + analyzing both issue titles and bodies. Checks closed issues to avoid + proposing already-resolved work (noting prior resolution in comments + instead). Correlates in-flight work with open PRs and references + relevant ADRs or problem docs. + - **Formatting**: Formats comments for existing issues with structured + markdown (date header, relevance statement, discussion bullet points, + related PRs/docs, and a mandatory `[Meeting notes](URL)` citation + link). Proposes new issues with structured markdown sections: Problem, + Options considered, Acceptance criteria (checkboxes), and Related links. + - Writes structured JSON output (`agent-result.json`) containing `topics[]`, + `new_issues[]`, and `stats`. The sandbox has no network access to forge + APIs or Google Drive. 3. **Validation loop**: - - Validates `agent-result.json` against `schemas/scribe-result.schema.json`, retrying up to 2 times if schema validation fails. + - Validates `agent-result.json` against `schemas/scribe-result.schema.json`, + retrying up to 2 times if schema validation fails. 4. **Post-script (host)**: - - Deduplicates topics against previous notes links (idempotency check) to prevent reposting. - - Filters out topics below `SCRIBE_MIN_CONFIDENCE` (default 0.6) and rejects any entry marked `public_safe: false`. - - Enforces sensitive-content and suspicious-Unicode gates on all titles, bodies, summaries, and labels. - - Enforces dry-run safety: requires `SCRIBE_DRY_RUN` to be set explicitly (`true` for preview; `false` for live writes). + - Deduplicates topics against previous notes links (idempotency check) + to prevent reposting. + - Filters out topics below `SCRIBE_MIN_CONFIDENCE` (default 0.6) and + rejects any entry marked `public_safe: false`. + - Enforces sensitive-content and suspicious-Unicode gates on all titles, + bodies, summaries, and labels. + - Enforces dry-run safety: defaults to preview mode (`SCRIBE_DRY_RUN: true`); + live writes require `SCRIBE_DRY_RUN` to be set to `false`. - Applies mode filtering (`all`, `comments_only`, `new_issues_only`). - - Writes approved comments and issues using forge API calls (`gh` on GitHub, `curl` on GitLab) or Jira Cloud issue creation (`fullsend issues create --tracker jira`). - - Optionally sends run summary notifications to Slack when `SCRIBE_SLACK_WEBHOOK_URL` is set. + - Writes approved comments and issues using forge API calls (`gh` on + GitHub, `curl` on GitLab) or Jira Cloud issue creation (`fullsend issues + create --tracker jira`). + - Optionally sends run summary notifications to Slack when + `SCRIBE_SLACK_WEBHOOK_URL` is set. ### Security model -- **Untrusted input**: Meeting notes are treated as untrusted user input. Prompts explicitly instruct the agent to ignore any embedded directives or prompt injection attempts in meeting text. -- **Dedicated GCP service account**: A service account with zero initial Drive permissions is invited only to specific calendar events whose notes it needs to process. -- **Host-side PII scrubbing**: Bracketed attendee names and speaker attributions are scrubbed on the host before notes enter the sandbox; raw transcripts are excluded entirely. -- **Sandbox network isolation**: Sandbox outbound network policy permits Vertex AI only; curl, forge APIs, and Drive APIs are blocked to prevent token or credential exfiltration. -- **Credential isolation**: Drive credentials, forge tokens (`GH_TOKEN`, `GITLAB_TOKEN`), and Jira API tokens remain on the host runner and are never injected into the sandbox. -- **Host-side validation gates**: Output schema checks, confidence thresholds, sensitive content pattern matching, and public-safety verification run host-side before any mutations occur. +- **Untrusted input**: Meeting notes are treated as untrusted user input. + Prompts explicitly instruct the agent to ignore any embedded directives or + prompt injection attempts in meeting text. +- **Dedicated GCP service account**: A service account with zero initial + Drive permissions is invited only to specific calendar events whose notes + it needs to process. +- **Host-side PII scrubbing**: Bracketed attendee names and speaker + attributions are scrubbed on the host before notes enter the sandbox; + raw transcripts are excluded entirely. +- **Sandbox network isolation**: Sandbox outbound network policy permits + Vertex AI only; curl, forge APIs, and Drive APIs are blocked to prevent + token or credential exfiltration. +- **Credential isolation and host-side tokens**: Forge tokens (`GH_TOKEN`, + `GITLAB_TOKEN`) and Jira API tokens remain host-side and are never + injected into the sandbox container. The GCP service account key + (`GOOGLE_APPLICATION_CREDENTIALS`) is mounted into the sandbox at + `/tmp/.gcp-credentials.json` for Vertex AI inference, so it can also access + Drive if granted; use a dedicated service account with minimal scope + (invited calendar events only) and restrict sandbox egress to Vertex AI so + the key cannot be exfiltrated. +- **Host-side validation gates**: Output schema checks, confidence + thresholds, sensitive content pattern matching, and public-safety + verification run host-side before any mutations occur. ## How it helps -- Automatically transfers meeting decisions, architecture debates, and action items into the issue backlog without manual note-taking or copy-pasting. -- Matches discussion topics to existing issues by title and body semantics, keeping existing tracking issues up to date and avoiding duplicate tickets. -- Public-safety and PII gates prevent confidential business matters, personal commentary, and attendee identities from leaking into issue trackers. -- Idempotency checks avoid duplicate comments or repeated issues when processing rolling meeting documents across overlapping lookback windows. -- Serves as the upstream bridge between team discussions and downstream fullsend agents such as [triage](triage.md), [prioritize](prioritize.md), and [code](code.md). +- Automatically transfers meeting decisions, architecture debates, and action + items into the issue backlog without manual note-taking or copy-pasting. +- Matches discussion topics to existing issues by title and body semantics, + keeping existing tracking issues up to date and avoiding duplicate tickets. +- Public-safety and PII gates prevent confidential business matters, personal + commentary, and attendee identities from leaking into issue trackers. +- Idempotency checks avoid duplicate comments or repeated issues when + processing rolling meeting documents across overlapping lookback windows. +- Serves as the upstream bridge between team discussions and downstream + fullsend agents such as [triage](triage.md), [prioritize](prioritize.md), + and [code](code.md). ## Commands -The scribe agent does not accept slash commands. It runs on a schedule or via manual workflow dispatch. +The scribe agent does not accept slash commands. It runs on a schedule or +via manual workflow dispatch. ## Control labels -The scribe agent does not consume or apply control labels that gate agent workflow execution. It applies a `meeting-notes` label (or allowlisted Jira labels) to issues it creates for categorization and filtering. +The scribe agent does not consume or apply control labels that gate agent +workflow execution. It applies a `meeting-notes` label (or allowlisted Jira +labels) to issues it creates for categorization and filtering. ## Configuration and extension @@ -81,32 +159,49 @@ fullsend agent add \ To grant the agent access to meeting notes without exposing other Drive files: -1. Create a dedicated Google Cloud service account with zero default Drive permissions. -2. Invite the service account email address to the Google Calendar events you want scribed. -3. In the Google Calendar event settings, enable Gemini meeting notes and permit read access to external attendees. -4. Export the service account credentials JSON path as `GOOGLE_APPLICATION_CREDENTIALS` (or `SCRIBE_DRIVE_CREDENTIALS`) on the CI runner. - -At runtime, the pre-script queries the Google Drive API for notes matching `SCRIBE_SEARCH_QUERY` created or modified within `SCRIBE_LOOKBACK_HOURS`. Use a specific query term to restrict matching to intended meeting notes. +1. Create a dedicated Google Cloud service account with zero default Drive + permissions. +2. Invite the service account email address to the Google Calendar events you + want scribed. +3. In the Google Calendar event settings, enable Gemini meeting notes and + permit read access to external attendees. +4. Export the service account credentials JSON path as + `GOOGLE_APPLICATION_CREDENTIALS` (or `SCRIBE_DRIVE_CREDENTIALS`) on the CI + runner. + +At runtime, the pre-script queries the Drive API using a keyword search +(`SCRIBE_SEARCH_QUERY`) over a rolling time window (`SCRIBE_LOOKBACK_HOURS`, +default 3 hours) across everything the service account can access — including +Shared Drives if the account has been added to any. The search query narrows +matching, but it is not a security boundary: the service account can read +notes from any meeting it has been invited to, not just a single event. To keep +the blast radius small, use a distinctive search query and avoid adding the +service account to unrelated Shared Drives. ### Variables -Per [ADR 0049](../ADRs/0049-agent-configuration-env-var-convention.md), scribe configuration uses the `SCRIBE_` prefix: - -| Variable | Required | Description | -|----------|----------|-------------| -| `SCRIBE_REPO` | Yes | Target repository (`owner/name` on GitHub, `group/project` on GitLab) | -| `SCRIBE_SEARCH_QUERY` | Yes | Google Drive search query for meeting note document names | -| `SCRIBE_LOOKBACK_HOURS` | No | Search lookback window in hours (default: `3`) | -| `SCRIBE_DRY_RUN` | Yes | `true` to preview actions in logs; `false` for live writes | -| `SCRIBE_MIN_CONFIDENCE` | No | Minimum confidence threshold for posting topics (default: `0.6`) | -| `SCRIBE_MODE` | No | Operating mode: `all`, `comments_only`, or `new_issues_only` (default: `all`) | -| `FULLSEND_FORGE` | Yes | Forge type: `github` or `gitlab` | -| `GH_TOKEN` | Yes (GitHub) | GitHub token with issue read/write permissions | -| `CONTENTS_TOKEN` | No (GitHub) | Optional token for repository content reads; falls back to `GH_TOKEN` | -| `GITLAB_TOKEN` | Yes (GitLab) | GitLab access token with API read/write permissions | -| `GOOGLE_APPLICATION_CREDENTIALS` | Yes | Path to GCP service account key for Drive reads and Vertex AI | -| `SCRIBE_DRIVE_CREDENTIALS` | No | Path to an alternate Drive-scoped service account key (defaults to `GOOGLE_APPLICATION_CREDENTIALS`) | -| `SCRIBE_SLACK_WEBHOOK_URL` | No | Optional Slack incoming webhook URL for run notifications | +Per [ADR 0049](../ADRs/0049-agent-configuration-env-var-convention.md), scribe +configuration uses the `SCRIBE_` prefix. In the reference GitHub Actions +workflow, `SCRIBE_SEARCH_QUERY` is mapped from the repository variable +`vars.SCRIBE_GDRIVE_SEARCH_QUERY`, and `SCRIBE_NAME_FILTER` is mapped from +`vars.SCRIBE_GDRIVE_NAME_FILTER`: + +| Name | Required | Default | Description | +|------|----------|---------|-------------| +| `SCRIBE_REPO` | Yes | `-` | Target repository (`owner/name` on GitHub, `group/project` on GitLab) | +| `SCRIBE_SEARCH_QUERY` | Yes | `-` | Google Drive search query for meeting note document names (mapped from `vars.SCRIBE_GDRIVE_SEARCH_QUERY`) | +| `SCRIBE_NAME_FILTER` | No | `none` | Optional document title substring or regex filter (mapped from `vars.SCRIBE_GDRIVE_NAME_FILTER`) | +| `SCRIBE_LOOKBACK_HOURS` | No | `3` | Search lookback window in hours | +| `SCRIBE_DRY_RUN` | No | `true` | `true` to preview actions in logs; `false` for live writes | +| `SCRIBE_MIN_CONFIDENCE` | No | `0.6` | Minimum confidence threshold for posting topics | +| `SCRIBE_MODE` | No | `all` | Operating mode: `all`, `comments_only`, or `new_issues_only` | +| `FULLSEND_FORGE` | Yes | `-` | Forge type: `github` or `gitlab` | +| `GH_TOKEN` | Yes (GitHub) | `-` | GitHub token with issue read/write permissions | +| `CONTENTS_TOKEN` | No (GitHub) | `GH_TOKEN` | Optional token for repository content reads; falls back to `GH_TOKEN` | +| `GITLAB_TOKEN` | Yes (GitLab) | `-` | GitLab access token with API read/write permissions | +| `GOOGLE_APPLICATION_CREDENTIALS` | Yes | `-` | Path to GCP service account key for Drive reads and Vertex AI | +| `SCRIBE_DRIVE_CREDENTIALS` | No | `GOOGLE_APPLICATION_CREDENTIALS` | Path to an alternate Drive-scoped service account key | +| `SCRIBE_SLACK_WEBHOOK_URL` | No | `none` | Optional Slack incoming webhook URL for run notifications | ### Operating modes @@ -118,9 +213,14 @@ Per [ADR 0049](../ADRs/0049-agent-configuration-env-var-convention.md), scribe c ### Jira issue creation -Scribe can create new issues in Jira Cloud instead of the forge's native issue tracker. The forge (`FULLSEND_FORGE`) provides repository context (open PRs and documentation index), while the Jira Cloud project provides the open backlog and recently resolved issues for matching and receives new issues. +Scribe can create new issues in Jira Cloud instead of the forge's native issue +tracker. The forge (`FULLSEND_FORGE`) provides repository context (open PRs and +documentation index), while the Jira Cloud project provides the open backlog +and recently resolved issues for matching and receives new issues. -Set `FULLSEND_TRACKER=jira` and configure Jira variables in runner environment variables. Extend the harness with `base:` composition in `.fullsend/scribe.yaml`: +Set `FULLSEND_TRACKER=jira` and configure Jira variables in runner environment +variables. Extend the harness with `base:` composition in +`.fullsend/scribe.yaml`: ```yaml base: https://raw.githubusercontent.com/fullsend-ai/agents//harness/scribe.yaml#sha256= @@ -135,37 +235,51 @@ env: FULLSEND_DIR: ${FULLSEND_DIR} ``` -Then register the local harness override: +If `scribe` was previously registered from a remote URL, remove it first before +registering the local harness override, as `fullsend agent add` refuses +duplicate agent names: ```bash +fullsend agent remove scribe --fullsend-dir . fullsend agent add .fullsend/scribe.yaml --name scribe --fullsend-dir . ``` -| Variable | Required | Description | -|----------|----------|-------------| -| `FULLSEND_TRACKER` | Yes (Jira) | Must be set to `jira`. Defaults to `FULLSEND_FORGE`. | -| `SCRIBE_JIRA_PROJECT` | Yes (Jira) | Jira project key for backlog reads and issue creation. | -| `SCRIBE_JIRA_ISSUE_TYPE` | No | Jira issue type for created issues (default: `Task`). | -| `SCRIBE_JIRA_LABELS` | No | Comma-separated allowlist of labels scribe may apply to Jira issues (default: `meeting-notes`). | -| `JIRA_BASE_URL` | Yes (Jira) | Jira Cloud instance URL (`https://.atlassian.net`). | -| `JIRA_API_URL` | No | Target REST API gateway URL. Defaults to `JIRA_BASE_URL`. | -| `JIRA_TOKEN` | Yes (Jira) | Jira API token. | -| `JIRA_USER_EMAIL` | No | Email address for bot user authentication (uses HTTP Basic auth with token). Omit for service accounts (uses Bearer auth). | -| `FULLSEND_DIR` | Yes (Jira) | Path to `.fullsend` directory containing `config.yaml` with `tracker.jira` settings. | +| Name | Required | Default | Description | +|------|----------|---------|-------------| +| `FULLSEND_TRACKER` | Yes (Jira) | `FULLSEND_FORGE` | Must be set to `jira` | +| `SCRIBE_JIRA_PROJECT` | Yes (Jira) | `-` | Jira project key for backlog reads and issue creation | +| `SCRIBE_JIRA_ISSUE_TYPE` | No | `Task` | Jira issue type for created issues | +| `SCRIBE_JIRA_LABELS` | No | `meeting-notes` | Comma-separated allowlist of labels scribe may apply to Jira issues | +| `JIRA_BASE_URL` | Yes (Jira) | `-` | Jira Cloud instance URL (`https://.atlassian.net`) | +| `JIRA_API_URL` | No | `JIRA_BASE_URL` | Target REST API gateway URL | +| `JIRA_TOKEN` | Yes (Jira) | `-` | Jira API token | +| `JIRA_USER_EMAIL` | No | `none` | Email address for bot user Basic auth. Omit for service account Bearer auth | +| `FULLSEND_DIR` | Yes (Jira) | `-` | Path to `.fullsend` directory containing `config.yaml` with `tracker.jira` settings | In Jira mode: -- Only new issues are created. Comments on existing Jira issues are not supported (`all` operates as `new_issues_only`, and `comments_only` is rejected). -- Up to 50 pages of unresolved issues are fetched for backlog matching, along with recently resolved issues from the past 30 days to avoid re-proposing completed work. -- Issue creation delegates to `fullsend issues create --tracker jira`, which converts Markdown to Atlassian Document Format (ADF) and invokes Jira REST APIs. -- Labels are validated against an allowlist (`SCRIBE_JIRA_LABELS`) and applied host-side. +- Only new issues are created. Comments on existing Jira issues are not + supported (`all` operates as `new_issues_only`, and `comments_only` is + rejected). +- Up to 50 pages of unresolved issues are fetched for backlog matching, along + with recently resolved issues from the past 30 days to avoid re-proposing + completed work. +- Issue creation delegates to `fullsend issues create --tracker jira`, which + converts Markdown to Atlassian Document Format (ADF) and invokes Jira REST + APIs. +- Labels are validated against an allowlist (`SCRIBE_JIRA_LABELS`) and applied + host-side. ### GitLab host validation -On GitLab, the pre- and post-scripts validate `CI_SERVER_URL` against `CI_SERVER_HOST`. Validation requires an HTTPS URL and ensures the URL host matches `CI_SERVER_HOST`, failing closed if variables are missing or mismatched. +On GitLab, the pre- and post-scripts validate `CI_SERVER_URL` against +`CI_SERVER_HOST`. Validation requires an HTTPS URL and ensures the URL host +matches `CI_SERVER_HOST`, failing closed if variables are missing or +mismatched. ### Skills -The scribe agent has no built-in skills (`skills: []`). Custom skills can be added via harness composition or repository skill directories. +The scribe agent has no built-in skills (`skills: []`). Custom skills can be +added via harness composition or repository skill directories. ## Source From 2b542ee7c369def42b5f9e1ccefce4eb3a4bd08e Mon Sep 17 00:00:00 2001 From: anevans Date: Mon, 9 Nov 2026 14:02:37 -0500 Subject: [PATCH 3/4] docs(#7175): correct registration commands and jira credentials for scribe - Update agent add/remove commands to run from repo root with default .fullsend - Register local harness override using scribe.yaml relative to fullsend dir - Document tracker.jira config and FULLSEND_JIRA_* env credentials for CLI - Clarify legacy JIRA_* variables are consumed only by external scripts Signed-off-by: anevans --- docs/agents/scribe.md | 61 ++++++++++++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 15 deletions(-) diff --git a/docs/agents/scribe.md b/docs/agents/scribe.md index d3f231ebaf..c0d01cdb9b 100644 --- a/docs/agents/scribe.md +++ b/docs/agents/scribe.md @@ -146,13 +146,13 @@ labels) to issues it creates for categorization and filtering. ## Configuration and extension -Register the scribe agent in your repository's `.fullsend` directory: +From the repository root, register the scribe agent (which writes to +`.fullsend/config.yaml` using the default `--fullsend-dir .fullsend`): ```bash fullsend agent add \ https://github.com/fullsend-ai/agents/blob/main/harness/scribe.yaml \ - --name scribe \ - --fullsend-dir . + --name scribe ``` ### Dedicated GCP service account setup @@ -218,6 +218,23 @@ tracker. The forge (`FULLSEND_FORGE`) provides repository context (open PRs and documentation index), while the Jira Cloud project provides the open backlog and recently resolved issues for matching and receives new issues. +Configure Jira connection settings under `tracker.jira` in +`.fullsend/config.yaml`: + +```yaml +tracker: + jira: + base_url: https://myteam.atlassian.net + project: PROJ + # api_url: https://api.atlassian.com # optional API gateway URL +``` + +Issue creation delegates to `fullsend issues create --tracker jira`, which +reads connection settings from `tracker.jira` and requires credentials in +`FULLSEND_JIRA_*` environment variables. External harness scripts in +`fullsend-ai/agents` query the Jira backlog using legacy `JIRA_*` variables +until those scripts are updated to translate or read `FULLSEND_JIRA_*`. + Set `FULLSEND_TRACKER=jira` and configure Jira variables in runner environment variables. Extend the harness with `base:` composition in `.fullsend/scribe.yaml`: @@ -229,32 +246,40 @@ env: FULLSEND_TRACKER: jira SCRIBE_JIRA_PROJECT: PROJ SCRIBE_JIRA_ISSUE_TYPE: Task + FULLSEND_JIRA_TOKEN: ${FULLSEND_JIRA_TOKEN} + FULLSEND_JIRA_EMAIL: ${FULLSEND_JIRA_EMAIL} + # Legacy variables read only by external harness scripts: JIRA_BASE_URL: ${JIRA_BASE_URL} JIRA_TOKEN: ${JIRA_TOKEN} JIRA_USER_EMAIL: ${JIRA_USER_EMAIL} FULLSEND_DIR: ${FULLSEND_DIR} ``` -If `scribe` was previously registered from a remote URL, remove it first before -registering the local harness override, as `fullsend agent add` refuses -duplicate agent names: +If `scribe` was previously registered from a remote URL, remove it first from +the repository root before registering the local harness override, as `fullsend +agent add` refuses duplicate agent names. Register the local file relative to +`--fullsend-dir` (default: `.fullsend`): ```bash -fullsend agent remove scribe --fullsend-dir . -fullsend agent add .fullsend/scribe.yaml --name scribe --fullsend-dir . +fullsend agent remove scribe +fullsend agent add scribe.yaml --name scribe ``` | Name | Required | Default | Description | |------|----------|---------|-------------| | `FULLSEND_TRACKER` | Yes (Jira) | `FULLSEND_FORGE` | Must be set to `jira` | -| `SCRIBE_JIRA_PROJECT` | Yes (Jira) | `-` | Jira project key for backlog reads and issue creation | +| `SCRIBE_JIRA_PROJECT` | Yes (Jira) | `-` | Jira project key for backlog reads and issue creation (matches `tracker.jira.project`) | | `SCRIBE_JIRA_ISSUE_TYPE` | No | `Task` | Jira issue type for created issues | | `SCRIBE_JIRA_LABELS` | No | `meeting-notes` | Comma-separated allowlist of labels scribe may apply to Jira issues | -| `JIRA_BASE_URL` | Yes (Jira) | `-` | Jira Cloud instance URL (`https://.atlassian.net`) | -| `JIRA_API_URL` | No | `JIRA_BASE_URL` | Target REST API gateway URL | -| `JIRA_TOKEN` | Yes (Jira) | `-` | Jira API token | -| `JIRA_USER_EMAIL` | No | `none` | Email address for bot user Basic auth. Omit for service account Bearer auth | -| `FULLSEND_DIR` | Yes (Jira) | `-` | Path to `.fullsend` directory containing `config.yaml` with `tracker.jira` settings | +| `FULLSEND_JIRA_TOKEN` | Yes (Jira) | `-` | Scoped Jira API token for `fullsend issues create --tracker jira` (required unless OAuth credentials are set) | +| `FULLSEND_JIRA_EMAIL` | No | `none` | Email address for bot user Basic auth with `FULLSEND_JIRA_TOKEN`. Omit for service account Bearer auth | +| `FULLSEND_JIRA_CLIENT_ID` | No | `none` | OAuth 2.0 client ID for service account authentication (used with `FULLSEND_JIRA_CLIENT_SECRET`) | +| `FULLSEND_JIRA_CLIENT_SECRET` | No | `none` | OAuth 2.0 client secret for service account authentication (used with `FULLSEND_JIRA_CLIENT_ID`) | +| `FULLSEND_DIR` | No | `.fullsend` | Path to `.fullsend` directory containing `config.yaml` with `tracker.jira` settings | +| `JIRA_BASE_URL` | Yes (Jira) | `-` | Jira Cloud instance URL (`https://.atlassian.net`), read only by external harness scripts | +| `JIRA_API_URL` | No | `JIRA_BASE_URL` | Target REST API gateway URL, read only by external harness scripts | +| `JIRA_TOKEN` | Yes (Jira) | `-` | Jira API token, read only by external harness scripts | +| `JIRA_USER_EMAIL` | No | `none` | Email address for bot user Basic auth, read only by external harness scripts | In Jira mode: - Only new issues are created. Comments on existing Jira issues are not @@ -265,7 +290,13 @@ In Jira mode: completed work. - Issue creation delegates to `fullsend issues create --tracker jira`, which converts Markdown to Atlassian Document Format (ADF) and invokes Jira REST - APIs. + APIs. The CLI reads connection settings from `tracker.jira` in + `.fullsend/config.yaml` and credentials from `FULLSEND_JIRA_*` + (`FULLSEND_JIRA_TOKEN` plus optional `FULLSEND_JIRA_EMAIL`, or + `FULLSEND_JIRA_CLIENT_ID` and `FULLSEND_JIRA_CLIENT_SECRET`). Legacy + `JIRA_TOKEN` and `JIRA_BASE_URL` are rejected by the CLI and are read only + by external harness scripts for backlog querying if those scripts do not + translate credentials. - Labels are validated against an allowlist (`SCRIBE_JIRA_LABELS`) and applied host-side. From b1e692c0fbe7e516cba4796073643a701048802a Mon Sep 17 00:00:00 2001 From: anevans Date: Mon, 9 Nov 2026 14:39:31 -0500 Subject: [PATCH 4/4] docs(#7175): address review feedback on scribe workflow and credentials - Document JIRA_* credentials used by external scribe scripts and translated to CLI - Require SCRIBE_DRY_RUN explicitly and explain post-script preview behavior - Note that all harness variables must exist in runner environment - State sandbox egress allows configured inference providers (Vertex AI and OpenAI) - Document scribe prerequisites, dogfood role, and link example workflows - Clarify built-in agent resolution vs opt-in scribe harness in README Signed-off-by: anevans --- docs/agents/README.md | 10 ++-- docs/agents/scribe.md | 103 ++++++++++++++++++++++++------------------ 2 files changed, 65 insertions(+), 48 deletions(-) diff --git a/docs/agents/README.md b/docs/agents/README.md index eccb71d11d..b36e915578 100644 --- a/docs/agents/README.md +++ b/docs/agents/README.md @@ -11,10 +11,10 @@ and resolved at runtime via config entries or agents-repo fallback. Custom agents can be registered via the `agents:` field in the repository-local `.fullsend/config.yaml` (see [Architecture](../architecture.md#agent-registry) for details on the registration model). -The table below documents primary agents shipped by fullsend. The full, -current agent inventory is defined and discovered dynamically from the -[`fullsend-ai/agents`](https://github.com/fullsend-ai/agents) repository at -runtime (under `harness/*.yaml`). +Built-in agents resolve automatically through repository configuration or the +[`fullsend-ai/agents`](https://github.com/fullsend-ai/agents) repository +fallback. Additional agents, such as Scribe, are opt-in and must be added +explicitly with `fullsend agent add`. | Agent | Summary | |-------|---------| @@ -24,7 +24,7 @@ runtime (under `harness/*.yaml`). | [Review](review.md) | Reviews pull requests for correctness, security, and intent alignment | | [Fix](fix.md) | Addresses review feedback on open PRs | | [Retro](retro.md) | Analyzes completed workflows and proposes system improvements | -| [Scribe](scribe.md) | Maps discussion topics from meeting notes to existing issues or new issue proposals | +| [Scribe](scribe.md) (opt-in) | Maps discussion topics from meeting notes to existing issues or new issue proposals | ## Configuration diff --git a/docs/agents/scribe.md b/docs/agents/scribe.md index c0d01cdb9b..d7753d790c 100644 --- a/docs/agents/scribe.md +++ b/docs/agents/scribe.md @@ -84,8 +84,10 @@ architecture: rejects any entry marked `public_safe: false`. - Enforces sensitive-content and suspicious-Unicode gates on all titles, bodies, summaries, and labels. - - Enforces dry-run safety: defaults to preview mode (`SCRIBE_DRY_RUN: true`); - live writes require `SCRIBE_DRY_RUN` to be set to `false`. + - Enforces dry-run safety: `SCRIBE_DRY_RUN` must be set explicitly; + `false` enables live writes, while any other value previews actions in + logs without making mutations (the reference dogfood workflow in + `fullsend-ai/.fullsend` defaults to previewing by passing `true`). - Applies mode filtering (`all`, `comments_only`, `new_issues_only`). - Writes approved comments and issues using forge API calls (`gh` on GitHub, `curl` on GitLab) or Jira Cloud issue creation (`fullsend issues @@ -104,17 +106,18 @@ architecture: - **Host-side PII scrubbing**: Bracketed attendee names and speaker attributions are scrubbed on the host before notes enter the sandbox; raw transcripts are excluded entirely. -- **Sandbox network isolation**: Sandbox outbound network policy permits - Vertex AI only; curl, forge APIs, and Drive APIs are blocked to prevent +- **Sandbox network isolation**: Sandbox outbound network policy permits only + the configured inference providers (Vertex AI and OpenAI in the shipped + harness); curl, forge APIs, and Drive APIs are blocked to reduce the risk of token or credential exfiltration. - **Credential isolation and host-side tokens**: Forge tokens (`GH_TOKEN`, - `GITLAB_TOKEN`) and Jira API tokens remain host-side and are never - injected into the sandbox container. The GCP service account key + `GITLAB_TOKEN`) and Jira API tokens remain host-side and are never injected + into the sandbox container. The GCP service account key (`GOOGLE_APPLICATION_CREDENTIALS`) is mounted into the sandbox at - `/tmp/.gcp-credentials.json` for Vertex AI inference, so it can also access + `/tmp/.gcp-credentials.json` for Vertex AI inference, so it could also access Drive if granted; use a dedicated service account with minimal scope - (invited calendar events only) and restrict sandbox egress to Vertex AI so - the key cannot be exfiltrated. + (invited calendar events only) and restrict sandbox egress to the required + inference providers to minimize exfiltration risk. - **Host-side validation gates**: Output schema checks, confidence thresholds, sensitive content pattern matching, and public-safety verification run host-side before any mutations occur. @@ -138,6 +141,22 @@ architecture: The scribe agent does not accept slash commands. It runs on a schedule or via manual workflow dispatch. +### Prerequisites and workflow setup + +Scribe is an opt-in agent and mint-only dogfood role; fullsend does not ship a +pre-configured scribe workflow under `.github/workflows/` or within +`internal/scaffold`, and `scribe` is **not** a valid role under the `roles:` +field in `config.yaml` (see +[Config Reference](../reference/config-reference.md#roles)). + +To run scribe: +1. If using the fullsend token mint service, register the dogfood role: + `fullsend mint add-role scribe`. +2. Register the agent harness with `fullsend agent add` (shown below). +3. Supply your own scheduled or dispatch workflow on your CI runner. For an + example implementation, see the [reference scribe workflow in `fullsend-ai/.fullsend`](https://github.com/fullsend-ai/.fullsend/blob/main/.github/workflows/scribe.yml) + or the workflow step guide in [agents `docs/scribe.md`](https://github.com/fullsend-ai/agents/blob/main/docs/scribe.md). + ## Control labels The scribe agent does not consume or apply control labels that gate agent @@ -182,25 +201,33 @@ service account to unrelated Shared Drives. Per [ADR 0049](../ADRs/0049-agent-configuration-env-var-convention.md), scribe configuration uses the `SCRIBE_` prefix. In the reference GitHub Actions -workflow, `SCRIBE_SEARCH_QUERY` is mapped from the repository variable +workflow in [`fullsend-ai/.fullsend`](https://github.com/fullsend-ai/.fullsend/blob/main/.github/workflows/scribe.yml), +`SCRIBE_SEARCH_QUERY` is mapped from the repository variable `vars.SCRIBE_GDRIVE_SEARCH_QUERY`, and `SCRIBE_NAME_FILTER` is mapped from -`vars.SCRIBE_GDRIVE_NAME_FILTER`: +`vars.SCRIBE_GDRIVE_NAME_FILTER`. + +Because `harness/scribe.yaml` references these environment variables in +`env.runner` and `env.sandbox`, every variable listed below must exist in the +runner environment (even if set to an empty string `""`); `fullsend run` +validates harness variable references and fails with ` is not set` if any +referenced variable is omitted. Documented defaults apply when the variable is +empty or set to its default value. | Name | Required | Default | Description | |------|----------|---------|-------------| | `SCRIBE_REPO` | Yes | `-` | Target repository (`owner/name` on GitHub, `group/project` on GitLab) | | `SCRIBE_SEARCH_QUERY` | Yes | `-` | Google Drive search query for meeting note document names (mapped from `vars.SCRIBE_GDRIVE_SEARCH_QUERY`) | | `SCRIBE_NAME_FILTER` | No | `none` | Optional document title substring or regex filter (mapped from `vars.SCRIBE_GDRIVE_NAME_FILTER`) | -| `SCRIBE_LOOKBACK_HOURS` | No | `3` | Search lookback window in hours | -| `SCRIBE_DRY_RUN` | No | `true` | `true` to preview actions in logs; `false` for live writes | -| `SCRIBE_MIN_CONFIDENCE` | No | `0.6` | Minimum confidence threshold for posting topics | -| `SCRIBE_MODE` | No | `all` | Operating mode: `all`, `comments_only`, or `new_issues_only` | +| `SCRIBE_LOOKBACK_HOURS` | No | `3` | Search lookback window in hours (applied when empty) | +| `SCRIBE_DRY_RUN` | Yes | `-` | `false` enables live writes; any other value previews actions in logs (post-script exits if unset) | +| `SCRIBE_MIN_CONFIDENCE` | No | `0.6` | Minimum confidence threshold for posting topics (applied when empty) | +| `SCRIBE_MODE` | No | `all` | Operating mode: `all`, `comments_only`, or `new_issues_only` (applied when empty) | | `FULLSEND_FORGE` | Yes | `-` | Forge type: `github` or `gitlab` | | `GH_TOKEN` | Yes (GitHub) | `-` | GitHub token with issue read/write permissions | -| `CONTENTS_TOKEN` | No (GitHub) | `GH_TOKEN` | Optional token for repository content reads; falls back to `GH_TOKEN` | +| `CONTENTS_TOKEN` | No (GitHub) | `GH_TOKEN` | Optional token for repository content reads; falls back to `GH_TOKEN` when empty | | `GITLAB_TOKEN` | Yes (GitLab) | `-` | GitLab access token with API read/write permissions | | `GOOGLE_APPLICATION_CREDENTIALS` | Yes | `-` | Path to GCP service account key for Drive reads and Vertex AI | -| `SCRIBE_DRIVE_CREDENTIALS` | No | `GOOGLE_APPLICATION_CREDENTIALS` | Path to an alternate Drive-scoped service account key | +| `SCRIBE_DRIVE_CREDENTIALS` | No | `GOOGLE_APPLICATION_CREDENTIALS` | Path to an alternate Drive-scoped service account key; falls back to `GOOGLE_APPLICATION_CREDENTIALS` when empty | | `SCRIBE_SLACK_WEBHOOK_URL` | No | `none` | Optional Slack incoming webhook URL for run notifications | ### Operating modes @@ -216,7 +243,7 @@ workflow, `SCRIBE_SEARCH_QUERY` is mapped from the repository variable Scribe can create new issues in Jira Cloud instead of the forge's native issue tracker. The forge (`FULLSEND_FORGE`) provides repository context (open PRs and documentation index), while the Jira Cloud project provides the open backlog -and recently resolved issues for matching and receives new issues. +and recently resolved issues for matching, and receives new issues. Configure Jira connection settings under `tracker.jira` in `.fullsend/config.yaml`: @@ -229,11 +256,12 @@ tracker: # api_url: https://api.atlassian.com # optional API gateway URL ``` -Issue creation delegates to `fullsend issues create --tracker jira`, which -reads connection settings from `tracker.jira` and requires credentials in -`FULLSEND_JIRA_*` environment variables. External harness scripts in -`fullsend-ai/agents` query the Jira backlog using legacy `JIRA_*` variables -until those scripts are updated to translate or read `FULLSEND_JIRA_*`. +Issue creation delegates to `fullsend issues create --tracker jira`. The +external harness scripts in `fullsend-ai/agents` query the Jira backlog using +`JIRA_BASE_URL` and `JIRA_TOKEN` (with optional `JIRA_USER_EMAIL`), and +automatically pass these to `fullsend issues create` as `FULLSEND_JIRA_TOKEN` +and `FULLSEND_JIRA_EMAIL`. (Note that OAuth credentials are not supported by the +scribe harness scripts; token authentication via `JIRA_TOKEN` is required). Set `FULLSEND_TRACKER=jira` and configure Jira variables in runner environment variables. Extend the harness with `base:` composition in @@ -246,13 +274,9 @@ env: FULLSEND_TRACKER: jira SCRIBE_JIRA_PROJECT: PROJ SCRIBE_JIRA_ISSUE_TYPE: Task - FULLSEND_JIRA_TOKEN: ${FULLSEND_JIRA_TOKEN} - FULLSEND_JIRA_EMAIL: ${FULLSEND_JIRA_EMAIL} - # Legacy variables read only by external harness scripts: JIRA_BASE_URL: ${JIRA_BASE_URL} JIRA_TOKEN: ${JIRA_TOKEN} JIRA_USER_EMAIL: ${JIRA_USER_EMAIL} - FULLSEND_DIR: ${FULLSEND_DIR} ``` If `scribe` was previously registered from a remote URL, remove it first from @@ -269,17 +293,12 @@ fullsend agent add scribe.yaml --name scribe |------|----------|---------|-------------| | `FULLSEND_TRACKER` | Yes (Jira) | `FULLSEND_FORGE` | Must be set to `jira` | | `SCRIBE_JIRA_PROJECT` | Yes (Jira) | `-` | Jira project key for backlog reads and issue creation (matches `tracker.jira.project`) | -| `SCRIBE_JIRA_ISSUE_TYPE` | No | `Task` | Jira issue type for created issues | +| `SCRIBE_JIRA_ISSUE_TYPE` | No | `Task` | Jira issue type for created issues (applied when empty) | | `SCRIBE_JIRA_LABELS` | No | `meeting-notes` | Comma-separated allowlist of labels scribe may apply to Jira issues | -| `FULLSEND_JIRA_TOKEN` | Yes (Jira) | `-` | Scoped Jira API token for `fullsend issues create --tracker jira` (required unless OAuth credentials are set) | -| `FULLSEND_JIRA_EMAIL` | No | `none` | Email address for bot user Basic auth with `FULLSEND_JIRA_TOKEN`. Omit for service account Bearer auth | -| `FULLSEND_JIRA_CLIENT_ID` | No | `none` | OAuth 2.0 client ID for service account authentication (used with `FULLSEND_JIRA_CLIENT_SECRET`) | -| `FULLSEND_JIRA_CLIENT_SECRET` | No | `none` | OAuth 2.0 client secret for service account authentication (used with `FULLSEND_JIRA_CLIENT_ID`) | -| `FULLSEND_DIR` | No | `.fullsend` | Path to `.fullsend` directory containing `config.yaml` with `tracker.jira` settings | -| `JIRA_BASE_URL` | Yes (Jira) | `-` | Jira Cloud instance URL (`https://.atlassian.net`), read only by external harness scripts | -| `JIRA_API_URL` | No | `JIRA_BASE_URL` | Target REST API gateway URL, read only by external harness scripts | -| `JIRA_TOKEN` | Yes (Jira) | `-` | Jira API token, read only by external harness scripts | -| `JIRA_USER_EMAIL` | No | `none` | Email address for bot user Basic auth, read only by external harness scripts | +| `JIRA_BASE_URL` | Yes (Jira) | `-` | Jira Cloud instance URL (`https://.atlassian.net`) | +| `JIRA_API_URL` | No | `JIRA_BASE_URL` | Target REST API gateway URL, read by external harness scripts | +| `JIRA_TOKEN` | Yes (Jira) | `-` | Jira API token (passed to CLI as `FULLSEND_JIRA_TOKEN`) | +| `JIRA_USER_EMAIL` | No | `none` | Email address for Basic auth; omit for service account Bearer auth (passed to CLI as `FULLSEND_JIRA_EMAIL`) | In Jira mode: - Only new issues are created. Comments on existing Jira issues are not @@ -291,14 +310,12 @@ In Jira mode: - Issue creation delegates to `fullsend issues create --tracker jira`, which converts Markdown to Atlassian Document Format (ADF) and invokes Jira REST APIs. The CLI reads connection settings from `tracker.jira` in - `.fullsend/config.yaml` and credentials from `FULLSEND_JIRA_*` - (`FULLSEND_JIRA_TOKEN` plus optional `FULLSEND_JIRA_EMAIL`, or - `FULLSEND_JIRA_CLIENT_ID` and `FULLSEND_JIRA_CLIENT_SECRET`). Legacy - `JIRA_TOKEN` and `JIRA_BASE_URL` are rejected by the CLI and are read only - by external harness scripts for backlog querying if those scripts do not - translate credentials. + `.fullsend/config.yaml`, and the harness scripts translate `JIRA_TOKEN` and + `JIRA_USER_EMAIL` into the `FULLSEND_JIRA_*` variables expected by the CLI. - Labels are validated against an allowlist (`SCRIBE_JIRA_LABELS`) and applied host-side. +- For complete Jira configuration details and harness examples, see [Jira setup + in `fullsend-ai/agents` `docs/scribe.md`](https://github.com/fullsend-ai/agents/blob/main/docs/scribe.md). ### GitLab host validation