Skip to content

Contacts and roles

Who hears about what. ForgeSync sends mail to roles, not to addresses typed at install, and resolves the role when the mail is sent. Put a person on a role and they hear from then on; retire them and their replacement does. Nothing needs a restart, a deploy or a shell.

The six roles

Role Hears about Critical
Order desk Orders that fail or stall on their way into Sage, unhandled paste, unmapped ship-via yes
Sales Exported orders, new website signups, and quote requests and RFQs where those modules are installed
Finance / AR Payout reports, tax and freight variances
IT on call Scheduled-job failures, dead alert sinks, bounced contacts, settings changes, release and maintenance notices from Keyway yes
Security contact Security notices from Keyway
Account owner Subscription, billing and plan notices from Keyway; a copy of every settings change

A critical role can never be left with no primary: removing the last one needs a replacement. The account owner and the security contact are required at install, because they are the two people Keyway's notices must reach, and Keyway holds no address for your install: the roles live on your box and notices arrive there.

How a notice from Keyway arrives

Keyway never emails your people directly. A notice is signed on Keyway's side, stored at the fleet receiver, and your install picks it up on its next check-in (within about ten minutes), checks the signature against the key pinned at install, and only then does two things: it shows the notice at the top of every page of the ForgeSync admin in Shopify until someone presses Mark as seen, and it mails the role the notice is for (security notices to the security contact, subscription, billing and plan notices to the account owner, release and maintenance notes to IT on call). Who pressed Mark as seen, and when, is kept on the Install page under Notices from Keyway. Keyway can see that a notice was received and marked as seen, never who did it or where the mail went. A notice nobody has marked as seen stays visible; a security notice that has sat for a week is something Keyway will follow up on.

How a role resolves

  1. The role's directory members, primaries first; a member whose address is bouncing still receives (only a person removes a person).
  2. If the role is empty, the backup role you chose for it. Off by default: finance mail never silently lands in IT.
  3. Otherwise the list you gave at install for that lane. It cannot be blank, so mail always has somewhere to go.

One lane has a switch: exported-order mail. While "Email on every exported order" is off, that event resolves to nobody on purpose, whatever the role or its list says; its install list may then be blank.

php artisan fe:roles shows every role, its members and what each mail event resolves to right now, with the source. fe:roles:check exits 0 when every role has a member, 2 when some fall to an install list, 1 when a critical role reaches nobody.

Day to day

In the Settings tab, Contacts: add a person or a shared inbox, put them on a role as primary or backup, choose a backup role, retire a person and name who takes over. Every action sends a change notice to the people the change touched, to IT on call and to the account owner, so a silent redirect is visible to whoever was displaced.

The same on the server:

php artisan fe:roles:assign it_oncall jane@acme.test --name "Jane Doe" --reason "on call"
php artisan fe:roles:assign order_desk ops@acme.test --name "Ops team" --kind shared_inbox --reason "install"
php artisan fe:roles:unassign sales bob@acme.test --reason "moved teams"
php artisan fe:roles:retire jane@acme.test --reassign-to bob@acme.test --reason "left the company"
php artisan fe:roles:backup finance it_oncall --reason "month-end cover"

A person who leaves: retire them. Their roles pass to the replacement in one step, any Slack mention that held their Slack id is cleared, and the ledger records all of it under one change. ForgeSync cannot remove their Shopify staff account or their Slack seat; do those where they live.

A contact carrying a Shopify staff id names that person in the admin audit trail, in place of the number.

First fill

php artisan fe:roles:import --preview proposes directory rows from the install lists you already gave, guessing person or shared inbox from the address. Correct any guess, then --apply --reason "first fill".

Proof of arrival

A new contact receives a confirmation link that works once, for seven days; the People card shows who has confirmed and offers a resend. php artisan fe:mail:test --role it_oncall (or --address <email>, or --all) sends one real mail per address with a reference code and records each send; the inbox proves the arrival. php artisan fe:mail:probe reads the sender state on SES every morning (production access, paused sending, each From identity's verification and DKIM); the Sender identity card shows it. A failed send is a ledger fact, a Slack warning on the IT lane, a fe:verify advisory and a beacon state word, in that order.

Bounces and complaints (SES)

Your access stack, with its InstallLabel and PublicHostname parameters, creates the SES configuration set and the topic SES feeds; php artisan fe:mail:setup subscribes that topic to this install through a signed subscription bound to the topic and a random path. The box creates nothing on your account. A hard bounce or a complaint marks the contact as bouncing and tells IT on call once a day; three soft bounces in a week do the same. Mail keeps going to the address until a person replaces or retires the contact. Off SES, or before setup, arrival is proven by the confirmation link and fe:mail:test only, and the Install card says so.

What fe:verify says

The contacts row is advisory: it warns when the account owner or security contact is missing, when a critical role still rests on its install list, or when a member's address is bouncing. It fails only when a critical role reaches nobody at all, which the install lists prevent. Every admin page shows a banner in that one case. The notices row, advisory as well, names a security notice nobody has marked as seen, a notice that could not be mailed to its role, or a missing notice key. The mail row, also advisory, says whether sends are failing, whether the sender is in the SES sandbox or unverified, and which primary contacts never confirmed their address.