Skip to content

Instantly share code, notes, and snippets.

@phola
phola / rfc-passive-channel-ingest.md
Created February 13, 2026 18:09
RFC: Passive Channel Ingest — full detailed version

RFC: Passive Channel Ingest

Status: Draft
Author: Geoff
Date: 2026-02-12

Summary

A gateway-level feature that captures messages from linked channels (starting with WhatsApp groups) without routing them to the agent, storing them as structured logs that a skill or cron job can batch-process as untrusted data.

@phola
phola / machine.js
Last active December 4, 2020 16:40
Generated by XState Viz: https://xstate.js.org/viz
// CF guaranteed order
// orchestrator
//https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/azure-functions/durable/durable-functions-singletons.md
//1sst orch calls this with contactid
const mapper = (item) => {item.title += ' mapped'}
@phola
phola / machine.js
Last active March 19, 2020 13:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@phola
phola / machine.js
Created February 14, 2020 13:13
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@phola
phola / machine.js
Last active February 14, 2020 14:26
Generated by XState Viz: https://xstate.js.org/viz
const productMachine = Machine(
{
id: 'productMachine',
initial: 'idle',
context: {
items: [],
},
states: {
idle: {
on: {
@phola
phola / machine.js
Last active February 14, 2020 16:59
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@phola
phola / machine.js
Last active February 13, 2020 20:08
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@phola
phola / machine.js
Created February 13, 2020 10:53
Generated by XState Viz: https://xstate.js.org/viz
const searchValid = (context, event) => {
return context.canSearch && event.query && event.query.length > 0;
}
const searchMachine = Machine(
{
id: 'search',
initial: 'idle',
context: {
canSearch: true
@phola
phola / machine.js
Last active March 3, 2020 15:11
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@phola
phola / machine.js
Created January 21, 2020 21:07
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions