Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
edigate
command
Command edigate runs the gateway: config -> database pool -> migrations -> edge + MCP server, the partner entrance and the operator entrance -> HTTP server (/mcp, /edi/inbound, /ops/, /healthz), the relay that delivers the outbox (to the ERP, the warehouse and, as AS2 transmissions, to the partner) and the saga runner.
|
Command edigate runs the gateway: config -> database pool -> migrations -> edge + MCP server, the partner entrance and the operator entrance -> HTTP server (/mcp, /edi/inbound, /ops/, /healthz), the relay that delivers the outbox (to the ERP, the warehouse and, as AS2 transmissions, to the partner) and the saga runner. |
|
edigatectl
command
Command edigatectl is the operator tool of the gateway.
|
Command edigatectl is the operator tool of the gateway. |
|
internal
|
|
|
adapters
Package adapters holds the clients through which the relay performs effects in other systems.
|
Package adapters holds the clients through which the relay performs effects in other systems. |
|
approval
Package approval holds the parts of the approval requests (flow P7) that are not SQL: what the operator is shown, how long a request lives, and the loop that closes requests whose time is over.
|
Package approval holds the parts of the approval requests (flow P7) that are not SQL: what the operator is shown, how long a request lives, and the loop that closes requests whose time is over. |
|
audit
Package audit makes the audit log tamper-evident: a hash chain over the rows of a tenant, signed anchors every 100 rows (in the database and in a file outside it), and a check that finds an edited row or a cut tail.
|
Package audit makes the audit log tamper-evident: a hash chain over the rows of a tenant, signed anchors every 100 rows (in the database and in a file outside it), and a check that finds an edited row or a cut tail. |
|
config
Package config loads the gateway settings: an optional YAML file (flag --config) overridden by environment variables, checked at start.
|
Package config loads the gateway settings: an optional YAML file (flag --config) overridden by environment variables, checked at start. |
|
contracts
Package contracts holds the JSON Schemas (draft 2020-12) of tool inputs and outputs, and the closed schemas of the quarantined reader's answers (notes/).
|
Package contracts holds the JSON Schemas (draft 2020-12) of tool inputs and outputs, and the closed schemas of the quarantined reader's answers (notes/). |
|
decimal
Package decimal reads and writes non-negative decimal numbers as whole counts of a small unit, so that money and quantities never pass through a floating point number.
|
Package decimal reads and writes non-negative decimal numbers as whole counts of a small unit, so that money and quantities never pass through a floating point number. |
|
edge
Package edge is the gate in front of the gateway's two HTTP entrances: /mcp for agents and /edi/inbound for partners (the second is in internal/inbound).
|
Package edge is the gate in front of the gateway's two HTTP entrances: /mcp for agents and /edi/inbound for partners (the second is in internal/inbound). |
|
edi/document
Package document holds the types of the stored document body and reads it back for the agent.
|
Package document holds the types of the stored document body and reads it back for the agent. |
|
edi/outbound
Package outbound builds the documents the gateway sends to a partner: the 855 (order acknowledgment) and the 856 (ship notice).
|
Package outbound builds the documents the gateway sends to a partner: the 855 (order acknowledgment) and the 856 (ship notice). |
|
edi/x12
Package x12 is a strict reader and writer of ANSI X12 004010 interchanges.
|
Package x12 is a strict reader and writer of ANSI X12 004010 interchanges. |
|
inbound
Package inbound is the HTTP entrance for partners: POST /edi/inbound.
|
Package inbound is the HTTP entrance for partners: POST /edi/inbound. |
|
mcpserver
Package mcpserver registers the gateway's tools in the go-sdk server.
|
Package mcpserver registers the gateway's tools in the go-sdk server. |
|
mode
Package mode names the configurations the gateway can play (flag --mode, variable EDIGATE_MODE).
|
Package mode names the configurations the gateway can play (flag --mode, variable EDIGATE_MODE). |
|
ops
Package ops is the HTTP entrance of operators: /ops/.
|
Package ops is the HTTP entrance of operators: /ops/. |
|
policy
Package policy asks the embedded OPA whether a tool call may go on, and at which price: at once, after one operator, or after two.
|
Package policy asks the embedded OPA whether a tool call may go on, and at which price: at once, after one operator, or after two. |
|
quarantine
Package quarantine is the one place where a model reads partner text (control M5, flow P3).
|
Package quarantine is the one place where a model reads partner text (control M5, flow P3). |
|
rpcerr
Package rpcerr is the single error format of the gateway.
|
Package rpcerr is the single error format of the gateway. |
|
sanitize
Package sanitize turns an accepted X12 set into what the agent may see: the typed body and the notes (control M1, the white list).
|
Package sanitize turns an accepted X12 set into what the agent may see: the typed body and the notes (control M1, the white list). |
|
store
Package store owns the PostgreSQL pool, the embedded goose migrations and every SQL query of the gateway.
|
Package store owns the PostgreSQL pool, the embedded goose migrations and every SQL query of the gateway. |
|
store/storetest
Package storetest gives tests a throwaway migrated database.
|
Package storetest gives tests a throwaway migrated database. |
|
taint
Package taint stops a reference to a note from reaching a tool that has an effect (control M3).
|
Package taint stops a reference to a note from reaching a tool that has an effect (control M3). |
|
tools
Package tools holds the services behind the MCP tools.
|
Package tools holds the services behind the MCP tools. |
|
txn
Package txn holds the pure parts of the guarantee "at most one effect per business key": the idempotency key (invariant I2), the hash of the request and the order payload (this file and order.go), and the relay that delivers the outbox (relay.go).
|
Package txn holds the pure parts of the guarantee "at most one effect per business key": the idempotency key (invariant I2), the hash of the request and the order payload (this file and order.go), and the relay that delivers the outbox (relay.go). |
|
txn/saga
Package saga drives the sagas (invariant I5): it looks at the open sagas again and again and does what each one needs next.
|
Package saga drives the sagas (invariant I5): it looks at the open sagas again and again and does what each one needs next. |
|
upstream
The linter of tool descriptions: a signal for the administrator who pins a tool, not a border (control M2).
|
The linter of tool descriptions: a signal for the administrator who pins a tool, not a border (control M2). |
|
mocks
|
|
|
control
Package control holds the knobs of the mocks per tenant, for the slots of the benchmark.
|
Package control holds the knobs of the mocks per tenant, for the slots of the benchmark. |
|
onec
command
Command mock-onec runs mock-1c, the stand's stand-in for the 1C HTTP service.
|
Command mock-onec runs mock-1c, the stand's stand-in for the 1C HTTP service. |
|
onec/server
Package server is mock-1c: a small HTTP service that behaves like the HTTP service of a 1C installation for sales orders, for the test stand.
|
Package server is mock-1c: a small HTTP service that behaves like the HTTP service of a 1C installation for sales orders, for the test stand. |
|
partner
command
Command partner-emulator runs the stand's trading partner (see mocks/partner/server).
|
Command partner-emulator runs the stand's trading partner (see mocks/partner/server). |
|
partner/server
Package server is partner-emulator: the stand's trading partner that receives the documents the gateway sends and answers them the way a real partner does.
|
Package server is partner-emulator: the stand's trading partner that receives the documents the gateway sends and answers them the way a real partner does. |
|
wms
command
Command mock-wms runs mock-wms, the stand's stand-in for the warehouse system.
|
Command mock-wms runs mock-wms, the stand's stand-in for the warehouse system. |
|
wms/server
Package server is mock-wms: a small HTTP service that behaves like the warehouse system for the test stand.
|
Package server is mock-wms: a small HTTP service that behaves like the warehouse system for the test stand. |
|
Package policies embeds the Rego policy and its data into the binary, so that the gateway needs no files at run time.
|
Package policies embeds the Rego policy and its data into the binary, so that the gateway needs no files at run time. |
|
servers
|
|
|
adversarial/adversary
Package adversary builds the three hostile MCP servers of the test stand.
|
Package adversary builds the three hostile MCP servers of the test stand. |
|
adversarial/common
Package common is the shell of the three hostile MCP servers of the test stand (evil-validator, shadow-carrier, rugpull-rates).
|
Package common is the shell of the three hostile MCP servers of the test stand (evil-validator, shadow-carrier, rugpull-rates). |
|
adversarial/evil-validator
command
Command evil-validator runs the hostile server with a poisoned description (TL-01).
|
Command evil-validator runs the hostile server with a poisoned description (TL-01). |
|
adversarial/rugpull-rates
command
Command rugpull-rates runs the hostile server whose description changes after RUGPULL_AFTER calls (default 3) of get_rates (TL-03, TL-04).
|
Command rugpull-rates runs the hostile server whose description changes after RUGPULL_AFTER calls (default 3) of get_rates (TL-03, TL-04). |
|
adversarial/shadow-carrier
command
Command shadow-carrier runs the hostile server with a tool that shadows a tool of the gateway (TL-02).
|
Command shadow-carrier runs the hostile server with a tool that shadows a tool of the gateway (TL-02). |
Click to show internal directories.
Click to hide internal directories.