Repository navigation
Add a local agent-native CRM slice, with research and a draft spec - #3271
Open
jparker2006 wants to merge 1 commit into
Open
jparker2006 wants to merge 1 commit into
jparker2006 wants to merge 1 commit into
Conversation
The notes cite the Ampersand CRM guide and the Salesforce, HubSpot, Twenty, Attio, Folk, Pipedrive and Close docs. The draft follows the records template and records the ADR 0004 conflict. The slice is a standard-library SQLite store with a JSON command line and MCP server, covered by local tests and no external calls. Co-authored-by: Jake Parker <jparker2006@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds three pieces for an agent-native CRM:
docs/research/crm-guide-notes.md, taken from Ampersand's public preview of The Engineer's Guide to CRMs and from the Salesforce, HubSpot, Twenty, Attio, Folk, Pipedrive and Close docs linked there. The printed book was not in hand. The preview is the seven-part field guide at https://www.ampersand.ai/resources/engineers-guide-to-crms.docs/specs/agent-native-crm.md, using the sections fromkernel/records.v1.md. ADR 0004 says a live spec is a parent issue. This file is a review copy and says so.products/crm: a SQLite store, a JSON command line, and a newline-delimited MCP server. Standard library only, so the Rust workspace gains no crate. No network calls and no secrets.OpenWiz can use the same model to track users, contributors, partners and leads (a university application, an outside repository). Another agent can point the same tools at its own database.
Key insights
__cand managed packages add a namespace: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/custom_fields.htm.1001and company1001are different records: https://developers.hubspot.com/docs/api-reference/latest/crm/understanding-the-crm. The slice's external binding is provider + object type + id for that reason.MVP cut
In this pull request:
person,company,dealandactivity, plus custom objects and fields (text,number,boolean,date,select).context, change history, and an optional revision check so a stale write is refused.products/crm/test_crm.py.Not in this cut: Salesforce or HubSpot clients, OAuth, webhooks, Slack, email, GitHub or X capture, permissions, a UI, and pipelines as their own object. The spec's roadmap orders those.
How to run
products/crm/README.mdlists every command. Keep a database that holds real people outside the checkout.What's next
contextand passif_revision.products/crmis outside the paths the changelog check treats as non-product, and there is no ticket number for achanges/<ticket>.mdline. The changelog job will refuse until there is a ticket or an explicit exemption. This pull request does not invent a ticket number.Open decisions
Collected in the spec's Further Notes: the public name, one database or one per workspace, Python versus a Rust crate after a dependency approval, which lead sources come first, and who approves the first live read.