Attio、multi-tenant scale向けtyped formula languageを構築
AttioはLezerとCodeMirrorベースのcustom grammarでformula attributeを作り、incremental parsing、error highlighting、autocomplete、domain-specific referenceを得ました。Declarative type systemはrecord attribute、historical value、phone number、actor referenceを表現し、genericとruntime coercionを支えます。大規模再計算はbatchへfan-outし、SQLベースfunctionはSpannerで実行、全batchが一貫したsnapshot用の共通transaction timestampを読みます。Workspace ID由来のPub/Sub ordering keyは各tenantのworker利用を公平に制限します。Formula作成agentはschema contextを受け、custom DSL outputがvalidになるまでtypeとreference errorをfeedbackに使います。
