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
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ plans/
tmp/
.mb-scratch/
.corbits/
packages/longevity-sim/output/
18 changes: 9 additions & 9 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ grants); the hub never seeds data on a client's behalf.
before every commit. `check:structural` (`scripts/checks/run.ts`)
discovers and runs every `scripts/checks/*.ts` file with an
`import.meta.main` entry point — run one on its own with `bun run
check:structural <name>` (e.g. `bun run check:structural report-error`),
check:structural <name>` (e.g. `bun run check:structural report-error`),
forwarding flags after it.
- Worktrees live in `.worktrees/<branch>`; branch = `cl-<issue#>-<slug>`.
- Commit sequence per change: tests first ("Add tests for X"), then
Expand All @@ -64,14 +64,14 @@ grants); the hub never seeds data on a client's behalf.

Env flags (unset behavior):

| Flag | If unset |
| --- | --- |
| `DATABASE_URL` | DB-gated suites skip locally; `CI=true` makes it a hard failure on jobs that provision Postgres |
| `HUB_DATA_DIR` | hub boot fails — required runtime config |
| `CI` | set by GitHub Actions; not a caller flag |
| `E2E_PROVIDER` / `E2E_PROVIDER_API_KEY` / `OLLAMA_BASE_URL` | live-inference e2e stays on the noop/stub path |
| `EVAL_PROVIDER` / `EVAL_PROVIDER_API_KEY` | `bun run eval` runs against the stub |
| `CHROME_PATH` | browser walkthrough falls back to platform defaults, fails if none exist |
| Flag | If unset |
| ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `DATABASE_URL` | DB-gated suites skip locally; `CI=true` makes it a hard failure on jobs that provision Postgres |
| `HUB_DATA_DIR` | hub boot fails — required runtime config |
| `CI` | set by GitHub Actions; not a caller flag |
| `E2E_PROVIDER` / `E2E_PROVIDER_API_KEY` / `OLLAMA_BASE_URL` | live-inference e2e stays on the noop/stub path |
| `EVAL_PROVIDER` / `EVAL_PROVIDER_API_KEY` | `bun run eval` runs against the stub |
| `CHROME_PATH` | browser walkthrough falls back to platform defaults, fails if none exist |

## Tests

Expand Down
126 changes: 0 additions & 126 deletions apps/hub/src/inbox-unsnooze-sweep.ts

This file was deleted.

15 changes: 2 additions & 13 deletions apps/hub/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ import {
createDrizzleServingRefreshStore,
createTenantServingRefresh,
} from "./credential-material-refresh";
import {
createDrizzleInboxUnsnoozeSweepStore,
createInboxUnsnoozeSweep,
} from "./inbox-unsnooze-sweep";

import { type } from "arktype";
import { betterAuth } from "better-auth";
import { createSignInAttemptLimiter } from "./sign-in-rate-limit";
Expand Down Expand Up @@ -1869,13 +1864,8 @@ export async function createHub(config: HubConfig) {
// workflow deployed like any other Routine rather than a hub-owned
// periodic loop.

// Reopen a snoozed inbox item once its `until` has passed (CL-7208) — a
// light periodic sweep over `@corbits/inbox`'s own snooze table, on the
// same mailboxDb/mailboxBus every other mailbox consumer here shares.
const inboxUnsnoozeSweep = createInboxUnsnoozeSweep({
store: createDrizzleInboxUnsnoozeSweepStore(mailboxDb),
bus: mailboxBus,
});
// Snooze is dropped (CL-8185): the unsnooze sweep and its `inbox.snooze`
// table are gone — see `packages/inbox/src/migrations.ts`'s forward-drop.

// Recurring auto-fire for schedule-triggered deployments. The cron and
// the tick arithmetic belong to `@corbits/workflow-schedule`; this root
Expand Down Expand Up @@ -1951,7 +1941,6 @@ export async function createHub(config: HubConfig) {
relaunchSweepSeries += 1;
clearTimeout(relaunchSweepTimer);
chatOrchestrator.dispose();
inboxUnsnoozeSweep.stop();
cronEmitter.stop();
await closeMailbox();
// The pool end waits on in-flight queries; a query whose socket
Expand Down
65 changes: 0 additions & 65 deletions apps/hub/test/inbox-unsnooze-sweep-report-error.test.ts

This file was deleted.

100 changes: 0 additions & 100 deletions apps/hub/test/inbox-unsnooze-sweep.test.ts

This file was deleted.

Loading
Loading