Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
df5d582
build(xtask): declare workspace crates in root workspace.dependencies
404Wolf Nov 6, 2026
22c4991
build(cargo): depend on workspace crates through workspace.dependencies
404Wolf Nov 6, 2026
8904354
docs(rust): depend on workspace crates with { workspace = true }
404Wolf Nov 6, 2026
1edef40
build(xtask): report crate layer violations from cargo x deps
404Wolf Nov 6, 2026
dc2fdea
ci(deps): run the dependency check when the layer config changes
404Wolf Nov 6, 2026
e2933fe
build(web): keep wasm cache keys when unrelated workspace crates change
404Wolf Nov 6, 2026
54892e4
Merge origin/main into wolf/reorg-workspace-deps
404Wolf Nov 6, 2026
bcce087
build(xtask): only declare workspace crates that something depends on
404Wolf Nov 6, 2026
c86e789
Merge origin/main into wolf/reorg-workspace-deps
404Wolf Nov 6, 2026
ac99481
Merge remote-tracking branch 'origin/wolf/reorg-layer-check' into wol…
404Wolf Nov 6, 2026
ee64c98
build(tooling): add the crate move scripts
404Wolf Nov 6, 2026
d48207d
refactor: match crate directories and package names
404Wolf Nov 6, 2026
33ac29d
refactor: group graphql crates
404Wolf Nov 6, 2026
cec45be
refactor: group aws crates
404Wolf Nov 6, 2026
bdc2623
refactor: group service and vendor clients
404Wolf Nov 6, 2026
2b5b5d0
refactor: group platform crates
404Wolf Nov 6, 2026
5c352c3
refactor: group type crates
404Wolf Nov 6, 2026
ae52659
refactor: group accounts and notifications crates
404Wolf Nov 6, 2026
17b4c51
refactor: group email and calendar crates
404Wolf Nov 6, 2026
5b21afe
refactor: group messaging and whatsapp crates
404Wolf Nov 6, 2026
8ae0760
refactor: group entity and sharing crates
404Wolf Nov 6, 2026
dd24dc9
refactor: group soup and search crates
404Wolf Nov 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .agents/rules/config-and-service-urls.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ startup loudly.
## Service URLs

- Stable service URLs and public OAuth/callback/app origins are typed in
`crates/macro_service_urls` (`service_url!` with `local`/`dev`/`prod`), chosen by `ENVIRONMENT`. Call
`crates/platform/macro_service_urls` (`service_url!` with `local`/`dev`/`prod`), chosen by `ENVIRONMENT`. Call
`XServiceUrl::new()`. Never declare a `FOO_SERVICE_URL` env var or match on
`Environment` to build a URL. Queue names follow the same pattern in
`crates/macro_queues`.
`crates/platform/macro_queues`.
- The only override is `OVERRIDE_<SNAKE_NAME>`, read from the process
environment, not from Doppler. Local in-network overrides live in
`xtask_local`'s `local_env.rs`; `local` defaults are host ports and do not
Expand Down
4 changes: 2 additions & 2 deletions .agents/rules/rust/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Type design, idioms, errors and observability, performance, and tests.
- **CS-19** Give third-party errors their own variant — don't collapse e.g. a
`jsonwebtoken` failure into a generic internal error. A provider outage
(5xx, 429, unreachable, undecodable) is an `upstream_error::UpstreamError`,
answered 502/503 — see `crates/upstream_error`.
answered 502/503 — see `crates/platform/upstream_error`.
- **CS-20** Depending on a rate-limited external provider requires a fallback
(fallback model, retry story, or documented degradation).
- **CS-21** Wire usage metering on every invocation path — MCP-triggered tool
Expand Down Expand Up @@ -62,7 +62,7 @@ Type design, idioms, errors and observability, performance, and tests.
mark documentation code blocks `ignore` to skip doctests unless explicitly
directed.
- **CS-55** AI spans follow the OpenTelemetry GenAI conventions (`gen_ai.*`, see
`crates/genai_telemetry`). Agent sessions of every harness are traced in one
`crates/platform/genai_telemetry`). Agent sessions of every harness are traced in one
place: the session actor projects each session's ACP frames onto
`invoke_agent` / `execute_tool` spans
(`crates/agent_session/src/domain/session/telemetry.rs`), so do not add GenAI
Expand Down
9 changes: 5 additions & 4 deletions .agents/rules/rust/libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ them instead of their generic equivalents.
Ports expose `type Err: std::error::Error + Send + Sync + 'static`; services
map adapter errors with `rootcause::Report::new(e).into_dynamic()`. Binaries
return `Result<(), rootcause::Report>`. Never add `anyhow` to a crate that
doesn't use it (CS-46). Model: `crates/user_api_key`.
doesn't use it (CS-46). Model: `crates/accounts/user_api_key`.
- **CS-57** No panics outside tests and startup: no `.unwrap()`, `.expect()`,
`unreachable!`, `panic!`, `todo!`, or unchecked indexing on a path a request,
tool call, or message can reach. Return a typed error the caller can show
Expand Down Expand Up @@ -62,7 +62,8 @@ them instead of their generic equivalents.
- **CS-66** Never wait for a condition by polling: no `yield_now` or `sleep`
loops. Signal with `oneshot`, `Notify`, `watch`, `Barrier`, or a channel, and
use `#[tokio::test(start_paused = true)]` for time.
- **CS-67** Dependencies come from root `[workspace.dependencies]` as `x = {
workspace = true }`; after any `Cargo.toml` change run `just hakari` and
commit `crates/workspace-hack`. Check the workspace list before adding a
- **CS-67** Dependencies, workspace crates included, come from root
`[workspace.dependencies]` as `x = { workspace = true }`, never a relative
`path`; after any `Cargo.toml` change run `just hakari` (it adds a new
member's root entry and rewrites relative paths) and commit the result. Check the workspace list before adding a
crate, and don't add one that duplicates an existing choice.
2 changes: 1 addition & 1 deletion .agents/rules/rust/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Authorization and permission checks in backend code.
- **CS-39** Pin third-party GitHub Actions to a commit SHA, not a movable tag.
- **CS-72** Store user or third-party secrets (API keys, OAuth refresh tokens)
only as AWS KMS ciphertext, following `crates/cursor_api_key` (direct KMS) or
`crates/microsoft_oauth_grant_db_utils` (envelope: encrypted data key, KMS
`crates/accounts/microsoft_oauth_grant_db_utils` (envelope: encrypted data key, KMS
key id, encryption version). Bind the encryption context to the owner so a
copied row won't decrypt. Hold the plaintext in a type that redacts `Debug`
and zeroizes on drop, use it immediately (e.g. as a request header), and never
Expand Down
6 changes: 3 additions & 3 deletions .agents/skills/create-ai-tool/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Decide which domain crate the tool belongs in. Tools live at `crates/<crate>/src

Study an existing tool for patterns:
- `crates/documents/src/inbound/toolset/` — tools: `read_content.rs`, `read_metadata.rs`, `create_document.rs`
- `crates/email/src/inbound/toolset/` — tools: `send_email.rs`, `get_thread.rs`, `update_thread_labels.rs`
- `crates/soup/src/inbound/toolset/` — tool: `list_entities.rs`
- `crates/call/src/inbound/toolset/` — call-related tools
- `crates/email/email/src/inbound/toolset/` — tools: `send_email.rs`, `get_thread.rs`, `update_thread_labels.rs`
- `crates/search/soup/src/inbound/toolset/` — tool: `list_entities.rs`
- `crates/comms/call/src/inbound/toolset/` — call-related tools

Each tool is a struct that derives `JsonSchema` and `Deserialize`, with `#[schemars(title = "...", description = "...")]` on the struct and `#[schemars(description = "...")]` on each field. The struct implements `AsyncTool<Context>` from the `ai_toolset` crate.

Expand Down
6 changes: 3 additions & 3 deletions .agents/skills/feature-flags/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: feature-flags
description: Add, read, or remove a feature flag in the web app (`defineFlag`, PostHog, `ENABLE_*` env flags, `useFeatureFlag`, `isFeatureEnabled`, `ShowFeatureFlag`) or the Rust backend (`crates/feature_flags`). Use when gating, rolling out, or killing a feature, or when asked to "flag it".
description: Add, read, or remove a feature flag in the web app (`defineFlag`, PostHog, `ENABLE_*` env flags, `useFeatureFlag`, `isFeatureEnabled`, `ShowFeatureFlag`) or the Rust backend (`crates/platform/feature_flags`). Use when gating, rolling out, or killing a feature, or when asked to "flag it".
---

# Feature flags
Expand Down Expand Up @@ -99,12 +99,12 @@ These are the mistakes past flagged launches had to fix:

## 5. Backend

- **Per-user remote flags** use `crates/feature_flags` (read its `README.md`):
- **Per-user remote flags** use `crates/platform/feature_flags` (read its `README.md`):
construct `PostHogFeatureFlags` once at the composition root, load one
`FlagSnapshot` per authenticated user id, and read it synchronously. A failed
load returns `Err`; the caller decides the fallback, explicitly. Wire the adapter and its config at the consuming service composition root.
- **Every backend rollout or feature gate**, per user or for everyone, is a
`crates/feature_flags` flag, never a `MacroConfig`/Doppler boolean.
`crates/platform/feature_flags` flag, never a `MacroConfig`/Doppler boolean.
`MacroConfig` holds real environment configuration (endpoints, credentials,
capacities), not switches that turn features on. Remove the gate once its
rollout is done.
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/instrumentation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ enqueue time (`enqueuedAtMs`), so they survive reloads; when it is missing or
skewed, `mutation_queue.age_known` is false and the age is omitted rather than
zero. The runner sends inside it, so
`dssGraphqlFetch` injects `traceparent` and the DSS `graphql.execute` span and
the instrumented resolvers (`crates/graphql_entity_mutation`,
the instrumented resolvers (`crates/graphql/graphql_entity_mutation`,
`graphql_properties`, `graphql_notification`) join the same trace. A loop that
can repeat forever reports counters instead of lines: each item logs a failure
class once, and `graphql.mutation_queue.summary` flushes counters every five
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/upgrade-model/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ These are separate choices; the application no longer has a two-entry
requested change affects one of those predefined models.
- Check provider-specific behavior and speed support in `crates/agent/src/model/`
before assigning a new model the capabilities of its predecessor.
- `crates/chat/src/domain/models/model_access.rs` owns the selectable chat
- `crates/comms/chat/src/domain/models/model_access.rs` owns the selectable chat
`CHAT_MODELS`, `PAID_DEFAULT_MODEL`, and `FREE_MODEL`. Change the relevant
catalog/default and preserve the intended plan restrictions.

Expand Down
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[alias]
x = "run -p xtask --"

# worker-rs-otel (wasm32-unknown-unknown) pulls getrandom 0.3 via OTLP types;
# worker_rs_otel (wasm32-unknown-unknown) pulls getrandom 0.3 via OTLP types;
# getrandom 0.3 needs its backend selected at
# build time. Harmless for wasm crates that don't use getrandom 0.3.
[target.wasm32-unknown-unknown]
Expand Down
2 changes: 1 addition & 1 deletion .config/hakari.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ workspace-members = [
"macro_sync_service_jwt",
"sync_service",
"sync_service_bebop_schema",
"worker-rs-otel",
"worker_rs_otel",
# maybe_send: zero-dep marker traits used by cache-core; must stay
# wasm-safe (workspace-hack pulls native-only deps like mio into wasm32).
"maybe_send",
Expand Down
Loading
Loading