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
10 changes: 5 additions & 5 deletions docs/content/dibs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ still call `prompts/get` directly.

`dibs ingest plaud` turns Plaud Note / Note Pro recordings into private draft
ideas, unattended and at no cost beyond the Plaud subscription. It talks to the
official, free Plaud MCP server (`npx -y @plaud-ai/mcp@latest`, over stdio),
official, free Plaud MCP server (`npx -y @plaud-ai/mcp@0.3.15`, over stdio),
lists recordings since its cursor, fetches each one's Plaud summary and
transcript, and submits them with the `submit_idea` tool (tags `plaud,voice-note`).

Expand Down Expand Up @@ -358,7 +358,7 @@ running the server. Either forward the port while you sign in:
ssh -L 8199:localhost:8199 user@host # then run dibs ingest plaud there and open the URL locally
```

or sign in once on your laptop (`npx -y @plaud-ai/mcp@latest` from any MCP
or sign in once on your laptop (`npx -y @plaud-ai/mcp@0.3.15` from any MCP
client) and copy `~/.plaud/tokens-mcp.json` to the host, keeping it readable
only by that user. `--home` (or `$DIBS_PLAUD_HOME`) points the server at a
different `$HOME`, so a service account can keep its token store under, say,
Expand All @@ -370,7 +370,7 @@ different `$HOME`, so a service account can keep its token store under, say,
| `--token` | `$DIBS_TOKEN` | Hub bearer token; prefer the env var, flags show up in `ps`. Never logged |
| `--interval` | `0` | Poll interval; `0` runs once |
| `--cursor` | `~/.dibs/plaud-cursor.json` | Submitted Plaud ids, newest recording time, recent submission times |
| `--mcp-command` | `$DIBS_PLAUD_MCP_COMMAND` or `npx -y @plaud-ai/mcp@latest` | Plaud MCP server command (whitespace-separated, no shell quoting) |
| `--mcp-command` | `$DIBS_PLAUD_MCP_COMMAND` or `npx -y @plaud-ai/mcp@0.3.15` | Plaud MCP server command (whitespace-separated, no shell quoting) |
| `--since-days` | `7` | How far back the first run looks |
| `--tags` | `plaud,voice-note` | Comma-separated tags |
| `--max-per-hour` / `--max-per-day` | `10` / `30` | Submission budget per rolling hour / 24h (`0` = unlimited) |
Expand All @@ -396,8 +396,8 @@ the caller's: `PATH`, `HOME` (or `--home`), `USER`/`LOGNAME`, `SHELL`,
basics. Anything else — `DIBS_TOKEN`, `GITHUB_TOKEN`, cloud or model-provider
keys — never reaches it, and a name containing `TOKEN`, `SECRET`, `PASSWORD`,
`CREDENTIAL` or `AUTH` is dropped even inside those prefixes (so
`NODE_AUTH_TOKEN` is not forwarded). To stop `@latest` from pulling an
unreviewed upstream release on each poll, pin it:
`NODE_AUTH_TOKEN` is not forwarded). The default command pins the server to
version `0.3.15`; to use another version, set
`--mcp-command "npx -y @plaud-ai/mcp@<version>"` (or `$DIBS_PLAUD_MCP_COMMAND`).

Future recording timestamps are clamped to the submission time in the cursor,
Expand Down
25 changes: 25 additions & 0 deletions docs/content/hive/advisory.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,31 @@ window; `0` disables the floor. The governor log line
`advisory digest comment written` marks the cycles that really reached GitHub
(`posted advisory digest` is logged for every healthy cycle, skipped or not).

### Build and instructions footer

Every digest ends with a compact footer identifying what produced it, so a
reader filing a problem about a report can say which Hive release and which
instructions shaped it (#21202):

```text
🐝 Hive `5.2.3` (commit `abc1234`) · role `governor` · instructions `scanner-automerge.md, reviewer-queue.md` (sha256 `1a2b3c4d5e6f`) · ACMM L2
```

- **Hive version and commit** come from the same build stamp that `hive
--version`, the hub heartbeat and the dashboard report — no separate
environment variable. An unstamped or dev build renders `unknown` or its
`0.0.0-dev` fallback explicitly rather than dropping the field.
- **role** names the flow that rendered the comment. The advisory digest is
produced by `governor`, which aggregates findings from every agent.
- **instructions** names the kick templates of the hive's enabled agents, with
a stable hash over the agent→template pairs, plus the ACMM level in effect.
Disabled agents do not contribute. Template names are public file names; the
footer never carries hostnames, cluster names, agent names or user names,
because the digest is posted on a public issue.

The footer is part of the digest body, which is replaced wholesale on every
write, so regeneration never accumulates duplicate footers.

## Where the digest is posted

`governor.advisory.target` — default `github`. Chooses which tracker hosts the
Expand Down
2 changes: 1 addition & 1 deletion docs/content/hive/agent-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ Other backends (copilot, codex, gemini, …) ignore `type: mcp` connections for

### Replicated agents

Set `replicas: N` on a declared agent to run a small pool with the same prompt, backend, model, mode, channel, tool, and metadata settings. `N` defaults to `1` and is capped at `5`; config load fails if it is outside `1..5`. Hive materializes derived names as `<base>-2`, `<base>-3`, ... (`scanner`, `scanner-2`, `scanner-3`). Do not declare those derived names yourself: a real `scanner-2` entry collides with `scanner: { replicas: 2 }` and is rejected. Derived replicas get their own IDs and bead directories (`/data/beads/scanner-2`) but inherit the base agent's kick template/prompt selection. Runtime-derived replicas are stripped before saving and recreated on the next load. For the reviewer lane, `review.reviewers.autoscale` can raise and lower the materialised count at runtime between `min` and `max`; the declared `replicas` then only seeds the initial size. See [review-swarm.md](/docs/hive/operations/automation-and-review/review-swarm#reviewer-autoscale-reviewreviewersautoscale).
Set `replicas: N` on a declared agent to run a small pool with the same prompt, backend, model, mode, channel, tool, and metadata settings. `N` defaults to `1` and is capped at `5`; config load fails if it is outside `1..5`. Hive materializes derived names as `<base>-2`, `<base>-3`, ... (`scanner`, `scanner-2`, `scanner-3`). Do not declare those derived names yourself: a real `scanner-2` entry collides with `scanner: { replicas: 2 }` and is rejected. Derived replicas get their own IDs and bead directories (`/data/beads/scanner-2`) but inherit the base agent's kick template/prompt selection. Runtime-derived replicas are stripped before saving and recreated on the next load. Two lanes can scale at runtime and use the declared `replicas` only as the seed of their initial size, clamped into `[min, max]`: the reviewer lane via `review.reviewers.autoscale`, and the scanner lane via `scanner.autoscale` (see [review-swarm.md](/docs/hive/operations/automation-and-review/review-swarm#reviewer-autoscale-reviewreviewersautoscale) and [review-swarm.md](/docs/hive/operations/automation-and-review/review-swarm#scanner-autoscale-scannerautoscale)). Both are off by default; with either off the lane runs exactly its declared pool. A replica added at runtime is an ordinary derived replica, so it needs no per-agent configuration beyond what the base declares. The two lanes must scale different agents; pointing both at one agent fails config load.

### Trigger channels

Expand Down
10 changes: 8 additions & 2 deletions docs/content/hive/agent-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,14 @@ workflow); `hive-panes.sh` is the reader today. The event types:
- `error` — `data.message` describes an agent-side error.
- `tool_call_completed` — no payload; emitted after a tool call finishes.

No in-process Hive consumer tails these logs today. They exist for
`hive-panes` and manual/operator inspection.
The meeting persona's jam relay is an in-process consumer: a shared design
session created for a meeting (the Betty ↔ Spek relay,
`meetings.persona.actions.spek_jam`) is captured the same way, into
`/var/run/pluk/logs/hive-sess-<id>.jsonl`, and the meeting engine tails that
log to relay the session's turns into the meeting. A user session's log is
handed to the session uid (append) and the hive's reader group (read), since
the session uid cannot write the shared `dev:node` logs directory. Otherwise
the logs exist for `hive-panes` and manual/operator inspection.

## How `hive-panes` reads it

Expand Down
6 changes: 3 additions & 3 deletions docs/content/hive/api-reference/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Part of the [Dashboard REST API reference](https://github.com/hivecommons/hive/b
| `GET` | `/api/openrouter/models` | Dashboard auth/session | Open Router Models | `pkg/dashboard/openrouter.go:47` |
| `GET` | `/api/openrouter/credit` | Dashboard auth/session | Open Router Credit | `pkg/dashboard/openrouter.go:48` |
| `GET` | `/openrouter/callback` | Public | Open Router Callback | `pkg/dashboard/openrouter.go:49` |
| `POST` | `/api/github-app/recheck` | Dashboard auth/session | GitHub App Recheck | `pkg/dashboard/server.go:1869` |
| `POST` | `/api/github-app/install-clicked` | Dashboard auth/session | GitHub App Install Clicked | `pkg/dashboard/server.go:1870` |
| `GET` | `/gh-setup` | Public | GitHub App Setup Callback | `pkg/dashboard/server.go:1871` |
| `POST` | `/api/github-app/recheck` | Dashboard auth/session | GitHub App Recheck | `pkg/dashboard/server.go:1909` |
| `POST` | `/api/github-app/install-clicked` | Dashboard auth/session | GitHub App Install Clicked | `pkg/dashboard/server.go:1910` |
| `GET` | `/gh-setup` | Public | GitHub App Setup Callback | `pkg/dashboard/server.go:1911` |
| `GET` | `/api/github-owner-identity` | Owner only | The hive owner's GitHub identity for remote repos ([#18197](https://github.com/hivecommons/hive/issues/18197)): `connected`, `login`, `scope`, `connected_at`, `usable`, `reason`, `verified_at`, `scope_required` (`public_repo`), `private_repos_supported` (false) and `file` (the token file path on the spoke). Never the token | `pkg/dashboard/api.go:597` |
| `POST` | `/api/github-owner-identity/start` | Owner only | Start the consent: a GitHub device flow with the spoke's `oauth_client_id` asking for `public_repo`, separate from the scope-free login flow. Returns `user_code`, `verification_uri`, `expires_in`, `interval`, `scope` and the `flow_id` the poll must present. 502 when GitHub refused the device-code request | `pkg/dashboard/api.go:598` |
| `POST` | `/api/github-owner-identity/poll` | Owner only | Poll the consent with `{"flow_id"}`: `status` `pending` / `slow_down` (poll again), `complete` (with `login` and the identity) or `error`. On completion the granted scope must cover `public_repo`, the token must validate and the account must be the logged-in owner's; the identity is then stored on the spoke (`/data/secrets/github-owner-token`, `HIVE_GITHUB_OWNER_TOKEN_FILE` overrides) and the reference-repo policies re-resolve. 400 without a live flow or with the wrong `flow_id`; audited as `github_owner_identity_connected` / `_rejected` | `pkg/dashboard/api.go:599` |
Expand Down
2 changes: 1 addition & 1 deletion docs/content/hive/api-reference/dashboard-misc.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ review are settled.
| `POST` | `/api/hives/{id}/heartbeat` | Dashboard auth/session | Hives Heartbeat | `pkg/dashboard/api_contribute.go:378` |
| `DELETE` | `/api/hives/{id}` | Owner only | Hives Delete | `pkg/dashboard/api_contribute.go:379` |
| `POST` | `/api/hives/onboard` | Dashboard auth/session | Hives Onboard | `pkg/dashboard/api_contribute.go:380` |
| `GET` | `/sso` | Public | SSO | `pkg/dashboard/server.go:1876` |
| `GET` | `/sso` | Public | SSO | `pkg/dashboard/server.go:1916` |
### Activity observation provenance

The CI snapshot retains real check/node IDs, head, App ID and transition times.
Expand Down
Loading
Loading