Matthew Meszaros
a4739b63ec
feat: add first-touch contact source attribution (migration 000106: contacts.source with a CHECK, source_detail, first_seen_at, existing rows stamped unknown) stamped at every creation site (dashboard manual/campaign, file import, Google Sheets sync, API key, AI assistant), write contact_created / campaign_added / campaign_removed / category_added / category_removed lifecycle events into contact_activities inside the same transactions as the links and merge them into the contact timeline, refactor FindNextRoutedPair's routing into a campaignRouter shared with a per-contact RouteContact and split CalculateNextCampaignTime into campaignSenders + placeCampaignSend so a read-only PreviewContactSend derives a contact's next step through the scheduler's own constraints, expose it as GET /contacts/:id/campaigns behind the contact service, render a per-campaign state panel, Campaigns/Lifecycle filter chips and expandable event rows in the Activity tab plus a Source section on Overview, cover it with TestLive* for the timeline events and the next-action preview (step wait, sending window, paused), and document it in the contacts, campaigns and API reference docs (issue #255 )
2026-08-29 03:28:16 -07:00
Matthew Meszaros
27630eec0a
feat: add website visitor tracking for issue #255 with migration 000106 (website_tracking_settings, website_visitors, website_page_hits, all registered in the orgtransfer spec), a consent-gated dependency-free tracking.js served by the Rust tracking service with a rate-limited, size-capped, prefetch-filtered POST /p ingest that forwards to a new backend internal page-hits endpoint for server-side user-agent and GeoIP enrichment, contact identification only through the click ticket the redirect appends to registered hosts, a per-workspace retention job, page_hit events with an expandable detail view in the contact Activity timeline, a Settings > Website tracking page for the snippet and consent, location and retention configuration, realtime PAGE_HIT fanout, and a website tracking guide plus endpoint, export and configuration docs
2026-08-29 03:25:50 -07:00
Matthew Meszaros
d67cdb8562
feat: add recipient-level engagement to the campaign Leads view by adding an engagement search filter (opened, not_opened, clicked, not_clicked, replied, not_replied, bounced) that composes with lead_status as AND and rejects unknown values with stable 400 codes, counting only human opens so machine opens never read as engagement, adding contacted/opened/clicked/replied_any totals to lead_counts, rendering Opened/Clicked/Replied columns and clickable server-backed status and engagement chips in the Leads table with matching Filters sheet sections, offering lead_status/lead_opened/lead_clicked/lead_replied export columns from a campaign, covering every filter value with a live Postgres test, and documenting the columns, filters, error codes and export fields (issue #250 )
2026-08-29 03:12:02 -07:00
Matthew Meszaros
7eb495be8d
Merge pull request #256 from warmbly/fix/issue-243-stranded-rest
...
feat: give a resting mailbox an exit when its warmup stops (#243 )
2026-08-29 02:19:42 -07:00
Matthew Meszaros
d9b4220bf0
feat: drive the resting notice in the mailbox drawer off warmup_health presence, which is the pool row the rebalancer reads, instead of warmup_status, which stays present for paused or unentitled warmup, condense the new lifecycle and drawer comments to one line, and correct the mailboxes guide so it says a rest ends without a signal only when the mailbox leaves its pool, since pausing warmup keeps it there
2026-08-29 02:09:49 -07:00
Matthew Meszaros
3552fffae1
feat: stop stranding a resting mailbox whose warmup stopped by letting lifecycle.Decide run the rest clock on an unknown health signal and resume the mailbox after the 72h window instead of re-stamping probation on every tick, make POST /emails/:id/release the manual exit from resting with its own reason, add a Put back into campaigns action and warmup-aware copy to the resting notice in the mailbox drawer, and document the automatic and manual exits in the mailboxes guide, API reference and endpoint map (issue #243 )
2026-08-29 02:04:18 -07:00
Matthew Meszaros
234c6aeead
Merge pull request #254 from warmbly/fix/issue-244-reserve-hold
...
feat: wire reserve to a real mailbox hold and drop the unreachable warming lifecycle state
2026-08-28 23:37:39 -07:00
Matthew Meszaros
5938a4af82
feat: renumber the drop-warming-lifecycle migration from 000104 to 000105 after 000104_org_risk_override reached main first, and merge origin/main into the branch so check-migrations sees one version per number again
2026-08-28 23:33:47 -07:00
Matthew Meszaros
4cee178c7a
Merge remote-tracking branch 'origin/main' into fix/issue-244-reserve-hold
2026-08-28 23:33:26 -07:00
Matthew Meszaros
35e8f95f2a
feat: make a release from the mailbox hold land where the rebalancer would put it by running lifecycle.Decide against the mailbox's current warmup health through a new GetLifecycleCandidate repository read, so an unhealthy mailbox goes straight to resting instead of sending cold for up to an hour before the hourly pass rests it again, report that outcome in the drawer toast and the API reference, and condense the new hold comments in the email service, backend wiring, repository, hook, client and drawer to the one-line form the repo convention asks for
2026-08-28 23:30:15 -07:00
Matthew Meszaros
3b27b32089
Merge pull request #253 from warmbly/fix/issue-241
...
fix: a suspended workspace can never be un-suspended
2026-08-28 23:12:42 -07:00
Matthew Meszaros
934a4868a5
feat: correct the operator docs after the class-model merge, since import quality is no longer a finding that ages out: it is a running assessment across everything a workspace has imported and withdraws itself, so the expiry paragraph now names the detectors that genuinely have no way back (a signup's origin, a run of anomalous sign-ins) and says which kind the panel's Ages out column is reporting
2026-08-28 23:08:39 -07:00
Matthew Meszaros
84700bae8d
Merge remote-tracking branch 'origin/main' into fix/issue-241
...
# Conflicts:
# cmd/consumer/main.go
# docs/content/docs/guides/deliverability.mdx
# internal/app/auth/login_risk.go
# internal/app/auth/provision.go
# internal/app/contact/import.go
# internal/app/orgrisk/service.go
2026-08-28 23:06:07 -07:00
Matthew Meszaros
713faa0217
Merge pull request #251 from warmbly/fix/issue-245-resolution
...
Judge a workspace's posture on what it did, not on what it looks like
2026-08-28 23:00:24 -07:00
Matthew Meszaros
c9693dabce
Merge remote-tracking branch 'origin/main' into fix/issue-241
2026-08-28 22:51:44 -07:00
Matthew Meszaros
6bb2a3d0c2
Merge remote-tracking branch 'origin/main' into fix/issue-245-resolution
2026-08-28 22:51:37 -07:00
Matthew Meszaros
4ead1b200f
feat: answer the review on #251 by filing a signup's throwaway-domain finding separately from its soft ones so the aggregate score no longer carries one class, and by measuring import quality across everything a workspace has imported instead of the newest file, so a small clean upload cannot retract a large bad list whose addresses are still stored while the finding still fades as good data outweighs it, with the running counts kept as evidence on the finding and a finding filed before those counts existed folded in as the smallest list that could have flagged it
2026-08-28 22:51:23 -07:00
Matthew Meszaros
4c2f5f87be
Merge pull request #252 from warmbly/fix/issue-143-investigation
...
feat: fix two defects in the per-provider warmup placement signal and cover its routing feedback end to end
2026-08-28 22:50:17 -07:00
Matthew Meszaros
5c832461b0
feat: wire the unreachable reserve send-lifecycle state to a real per-mailbox hold (POST /emails/:id/hold and /release behind manage_emails and WRITE_EMAILS, SetSendHold on the email service forcing the lifecycle past the rebalancer guard, a Hold from campaigns toggle on the mailbox drawer's Overview tab with the reserve notice rewritten to point at it, warmblyctl mailbox hold/release, and docs in the mailboxes guide, API reference and scope map), and drop the warming state nothing ever set from the model, the web type, the docs table and the DB check via migration 000104, which folds any legacy warming row back to active
2026-08-28 22:47:31 -07:00
Matthew Meszaros
0ab947dc5d
Merge remote-tracking branch 'origin/main' into fix/issue-241
2026-08-28 22:47:28 -07:00
Matthew Meszaros
2fd22cafd3
feat: answer 404 rather than 500 when a risk mutation names an organization that does not exist, by having every org-risk repository path return nil for a missing row and one resolved() helper turn that into the not-found the GET already gave, and stop showing an admin who holds only view_organizations the Set posture, Lift override and retract controls, which the backend can only ever answer 403, so the Abuse posture panel reads as evidence for them and as evidence plus actions for an admin who can actually act
2026-08-28 22:47:24 -07:00
Matthew Meszaros
74fdd5002d
feat: condense the new comments on PoolSpamPlacementsByProvider, its unknown bucket, the blank-domain placement filter and the summary model field to the one-line form the repo convention asks for, keeping the non-obvious constraint (the stored recipient_provider is the connect method, and a domainless placement belongs to no provider) and dropping the narration
2026-08-28 22:46:25 -07:00
Matthew Meszaros
771bbe04e4
feat: correct the comment on the partner-routing fixture's service wiring, since the org-risk read now runs ahead of the stored warmup tier and it is that read failing open, not the tier short-circuiting, that lets the selector run without an org-risk repository
2026-08-28 22:42:59 -07:00
Matthew Meszaros
a5ea55bba5
feat: give a suspended workspace a way back, because risk_state was a one-way door: the derived band is no longer pinned at suspended by the UPDATE in pg_org_risk, an operator's decision is now an explicit risk_override that outranks the score and survives every later detector write until it is lifted, the one-shot detectors (signup origin, import list quality, repeated sign-in anomalies) file findings with a 30-day expiry that a six-hourly consumer sweep retires so a score falls on its own, migration 000104 backfills that expiry onto findings already on file, and four admin endpoints plus an Abuse posture panel in admin/ let an operator finally read the evidence the customer endpoint withholds, retract a finding, pin a band and lift the pin; also stops the reviewing admin's identity reaching the tenant's own audit feed (which resolves an actor to a name and email) by recording the platform as the actor there and the operator in the admin trail, and stops risk_signals riding along in a customer-downloadable org export
2026-08-28 22:42:57 -07:00
Matthew Meszaros
6c172daaef
Merge remote-tracking branch 'origin/main' into fix/issue-143-investigation
2026-08-28 22:42:25 -07:00
Matthew Meszaros
2b25e32f6b
feat: judge an organization's abuse posture on what it did rather than on what it looks like, so an agency opening client workspaces from one office under one operator identity and connecting the mailboxes in an afternoon lands on watch instead of restricted: findings now carry a circumstantial/substantive class, shape is capped at 40 points and can never move a band past watch, the signup address and identity clusters count once as one family, the signup finding is substantive only when the domain is really disposable, list_quality retracts on a later clean import, and the nightly sweep gains a recipient-outcome pass scoring 30-day bounce and complaint rates against the provider bands so a band still has evidence it may act on
2026-08-28 22:41:44 -07:00
Matthew Meszaros
5b28c80902
Merge pull request #249 from warmbly/fix/issue-247-report
...
fix: mailbox Settings save crash, signature caret reset, and DNS check 404 (#247 )
2026-08-28 22:15:46 -07:00
Matthew Meszaros
bb5809a035
Merge remote-tracking branch 'origin/main' into fix/issue-247-report
2026-08-28 22:12:18 -07:00
Matthew Meszaros
3d72c7386e
feat: condense the explanatory comments on the signature editor DOM sync, the patchEmailLists cache helper and the org-scoped auth-check lookup to the one-line form the repo convention asks for
2026-08-28 22:09:18 -07:00
Matthew Meszaros
9ba657db2d
Merge pull request #248 from warmbly/fix/issue-144-resolution
...
feat: make the campaign content check actually fire
2026-08-28 22:08:07 -07:00
Matthew Meszaros
6da2c3dfaa
feat: fix the three mailbox Settings bugs from #247 : patch both cache shapes under ["emails", "list"] (paginated pages and the flat directory array) through one patchEmailLists helper so saving, removing, warmup lifecycle and tracking-domain writes no longer crash on undefined.map, stop rewriting the signature editor's contentEditable innerHTML on every keystroke so the caret stays where the user is typing, and scope the auth-check GET/POST handlers by organization instead of user id so the SPF/DKIM/DMARC check stops returning 404
2026-08-28 22:05:41 -07:00
Matthew Meszaros
bd126e7c89
Merge remote-tracking branch 'origin/main' into fix/issue-144-resolution
2026-08-28 22:03:23 -07:00
Matthew Meszaros
ec7b7bbed3
feat: count anchors and bare URLs together instead of taking the larger of the two, so three labeled links plus three written-out URLs no longer score a clean 100, clear the editor's pending flag when the draft is emptied mid-request since the cancelled request's finally can no longer do it, fail the preflight content check when a campaign's attachments cannot be read rather than scoring as if there were none and passing copy the send path then warns about, and condense the new comments to the one-line form the repo convention asks for
2026-08-28 21:59:53 -07:00
Matthew Meszaros
4ddcb24bcd
feat: make the campaign content check actually fire, fixing a link cap that counted zero links on every HTML email because the URLs live in href attributes that tag-stripping discards, a preflight that scored wait and action nodes as copy and so failed every campaign using one at 55/100 because GetSequencesByCampaignID never selected the kind column, a content_warning log level of "warning" that never matched the dashboard's "warn" amber tier, an unvalidated min_content_score an API caller could set to 5000, attachments the send path scored but preflight ignored, and a docs claim of live editor scoring that was really a manual button
2026-08-28 21:54:29 -07:00
Matthew Meszaros
7993327e9c
Merge pull request #246 from warmbly/fix/issue-242-investigation
...
Keep a restricted workspace out of the premium warmup pool
2026-08-28 21:39:03 -07:00
Matthew Meszaros
230d80db64
feat: condense the new warmup pool comments in email_task.go, handler.go, service.go, pg_worker.go and warmup_scheduler.go to the one-line form the repo convention asks for, keeping the non-obvious constraints (the stored tier is never empty, the tier column records what is paid for rather than where the mailbox warms) and dropping the narration
2026-08-28 21:31:06 -07:00
Matthew Meszaros
f518c950d7
feat: stop an unattributable warmup spam placement demoting every custom-domain partner, key the admin pool rollup to who runs the recipient's mail rather than the connect method, and cover issue #143 's routing feedback end to end with a live selectWarmupPartner test that proves the per-provider signal reaches the partner the selector returns
2026-08-28 21:30:52 -07:00
Matthew Meszaros
c28ef3e82a
feat: keep a restricted or suspended workspace out of the premium warmup pool by checking the organization's risk posture before the stored warmup_pool_type in resolveWarmupPoolType (tasks and email services), which is never empty so the restricted branch below it was dead code, make the scheduler's recipient-capacity count risk-aware the same way, wire the org risk repository into the email service, and refuse the premium membership move in UpdateEmailAccountWarmupPoolType while the owning organization is restricted so a worker rebalance cannot readmit a risky tenant
2026-08-28 21:26:57 -07:00
Matthew Meszaros
6fb09b803f
Merge pull request #240 from joaoppa/fix/batch-level-failure-reason
...
fix: record why a warmup generation batch failed, instead of only 'batch failed'
2026-08-28 20:09:59 -07:00
Matthew Meszaros
5e0916b266
feat: count only readable messages in the warmup batch failure suffix, so a blank provider error entry no longer renders "(+1 more)" and sends the operator hunting for a second reason that does not exist, and condense the new BatchState, batchFailureReason and failed-batch comments to the one-line form the repo convention asks for
2026-08-28 20:03:07 -07:00
joao-crm
0e4a696c2f
feat: record the provider's own reason when a warmup generation batch fails as a whole, instead of leaving the job saying only "batch failed": a batch that never ran has no error file to read the refusal out of, so the message OpenAI puts on the batch itself is the only account of why, and GetBatch now returns it as part of a BatchState the poller writes into the job row
2026-08-29 01:12:22 +00:00
Matthew Meszaros
4537335c43
Merge pull request #239 from warmbly/feat/149-ato-signals
...
feat: challenge a sign-in that could not physically be the same person
2026-08-28 12:32:16 -07:00
Matthew Meszaros
becbc5bb18
Merge remote-tracking branch 'origin/main' into feat/149-ato-signals
...
# Conflicts:
# docs/content/docs/guides/security.mdx
2026-08-28 12:26:55 -07:00
Matthew Meszaros
580e0c4ee3
Merge pull request #238 from warmbly/feat/148-cross-account-velocity
...
feat: sweep for cross-account patterns nightly
2026-08-28 12:26:31 -07:00
Matthew Meszaros
61f7b9cd3e
feat: condense the correlate package and Run comments to the local constraint, moving the cross-account rationale out of production code
2026-08-28 12:21:59 -07:00
Matthew Meszaros
719b8cb0e3
Merge remote-tracking branch 'origin/main' into feat/149-ato-signals
...
# Conflicts:
# internal/app/lifecycle/lifecycle.go
# internal/app/lifecycle/lifecycle_test.go
# internal/repository/pg_send_lifecycle.go
2026-08-28 12:20:27 -07:00
Matthew Meszaros
70d49e7c5f
feat: record the verdict that issued the login challenge instead of re-judging at confirm, and stop a mailbox in no warmup pool reading as healthy: the emailed code is confirmed by a second request that can carry a different address and sees history the first one did not, so re-assessing there could file a challenged sign-in as clean and drop it from the repeat count that reaches the workspace posture; the verdict now travels in the login session and every completion path takes it, while ListLifecycleCandidates returns a NULL health as unknown so leaving the pool is no longer evidence of recovery and a resting mailbox neither resumes nor accrues probation on it
2026-08-28 12:20:11 -07:00
Matthew Meszaros
b8ddf2bc83
chore: merge main, keeping both background jobs
2026-08-28 12:12:51 -07:00
Matthew Meszaros
e31286d973
feat: retract findings that no longer hold, exclude private IPv6, and fix the containment operator that let loopback through: a cluster ageing out of the lookback or a mailbox burst ending left its weight on the workspace permanently, so the score could only ever climb, and each detector now clears itself from organizations that stopped matching before recording the current ones; the private-address filter covered only IPv4, so an IPv6-only self-hosted install would have clustered as a ring; and it used << rather than <<=, which is strictly-contained and therefore excludes an address from the prefix describing exactly it, so ::1 was never inside ::1/128
2026-08-28 12:12:28 -07:00
Matthew Meszaros
9f23c663c4
feat: give a cold mailbox a rotation lifecycle so a tired one can rest ( #237 )
...
* feat: give a cold mailbox a rotation lifecycle so a tired one can rest and come back, instead of running at full volume until a hard band trips: send_lifecycle is warming, active, resting or reserve and decides whether cold sender resolution offers the mailbox at all, which is a different axis from risk_band deciding which worker and IP host it, so a resting mailbox is still a clean-band mailbox that keeps its warmup traffic and its reputation; the hourly rebalancer rests a mailbox at throttled and worse but never at watch, since watch is defined as the band that changes nothing a customer can feel and leaving cold rotation is very much something they feel, and a rested mailbox returns only after three clean days so one good hour cannot bounce it back to full volume; reserve is the owner's hold and is never overridden, the default is active so no existing mailbox changes on deploy, and the state never travels in a workspace archive because it is this instance's decision about sending it watched
* feat: stop a query error re-admitting rested mailboxes, make probation measure healthy time, and rotate the candidate window so no mailbox starves: sendLifecycles returned a nil map on failure and an unresolved state reads as active, so one bad query quietly put every resting and reserved mailbox back into cold rotation, and the gate is now applied only when the states were actually read, with the skip logged rather than silent; ReadyToResume measured total time resting, so a mailbox that sat unhealthy for three days resumed on its first healthy tick having served no clean time, and an unhealthy evaluation now restarts the streak; and ordering candidates by send_lifecycle_since put every never-moved mailbox equal-first, so on an install with more than one page of them the same page was re-examined forever, which a checked-at stamp and its index fix
2026-08-28 12:08:52 -07:00