canary

package module
v3.49.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Canary

ci release license

繁體中文:網站及入門指南 · 简体中文:网站及入门指南

A risk desk for your Interactive Brokers account. It reads your account for you and your AI agent, checks it against your limits, and, in the trading build, places the trades you authorise.

Canary runs beside your IB Gateway or TWS and nothing runs on a server of mine. It tells you what needs attention today. It runs twenty discipline checks against limits you set and names the ones your positions breach. It shows exposure by underlying. Canary Edge shows what the price did 1, 5 and 20 sessions after your past stock, ETF and option trades, from your broker statements, where a decision repeated often enough to count. The same readings come as text, as JSON, in a paired phone app, and as MCP tools for Claude Desktop, Claude Code, Cursor or Zed.

It comes in two builds. The standard binary reads; it has no compiled order path. The trading binary, a separate download, also executes orders, and only the ones you authorised: a transaction you confirmed, or a close or reduction the daemon runs under a bucket you listed in your written policy, a list that ships empty. Every order is pinned to one account, client ID and mode, consumes a preview token for that exact draft, is journaled with its origin before it is sent, and passes the risk policy's order limits, the mandate gate and the freeze. An agent trades only through the gated CLI. The MCP server has no order or preview tool in any build. Canary never decides a trade on its own.

Documentation · Install · First session · Agentic trading · Canary Edge · MCP tools · Safety · Privacy

Start

You need IB Gateway 10.37+ or TWS with API socket access enabled, an IBKR Pro account, and macOS or Linux on arm64 or amd64. Paper and live both work. There is no Windows build; use WSL.

Terminal, and every MCP host. One signed binary in ~/.local/bin:

curl -fsSL https://raw.githubusercontent.com/osauer/canary/main/install.sh | sh
canary status    # show which Gateway and account Canary reached
canary brief     # review what changed and what needs attention

The install guide shows how to inspect the script first and covers every other installation path.

Claude Desktop. Download the MCP Bundle, canary.mcpb, open it with Claude Desktop, then quit and relaunch Claude. The walkthrough covers the first connection.

Any other MCP host. Install the binary as above, then point the host at its absolute path; which canary prints it.

{
  "mcpServers": {
    "canary": {
      "command": "/ABSOLUTE/PATH/TO/canary",
      "args": ["mcp"]
    }
  }
}

A first question that works in any host:

What needs attention today, and which data is missing or stale?

Canary Edge in the paired app, rendered from synthetic data: what the price did after past decisions, and how much evidence supports each row.

Ways in

You want to… Start with What you get
Ask an agent about the account The MCP Bundle, or canary mcp from any local framework that can launch a stdio MCP server Read-only tools; the MCP server has no order or preview tool
Work in a terminal or script canary brief, canary positions --by underlying, and --json Every reading as text or JSON, from the same source as the app and the MCP tools
Check the desk from a phone canary app, then canary app pair A paired web app on your phone; local by default, remote access optional
Read Canary from your own Go program github.com/osauer/canary/v3, the daemon client, at your release's tag (how) The daemon's read methods over its local socket; its one submit method is served by a trading daemon only
Build directly on the TWS protocol github.com/osauer/canary/v3/pkg/ibkr A low-level transport; it carries no policy, authorisation or journal, those stay in your program

MCP hosts

Ask plain questions rather than naming tools. The host guide covers Claude Code, Cursor, Zed, continuously running agents, logs, and connection checks. The generated MCP reference lists every tool and its schema.

Terminal and paired app

Every data command supports --json:

canary account
canary positions --by underlying
canary edge
canary rules
canary regime --explain
canary stress --details

Run canary status first for connection problems and canary data health for missing or stale data. canary --help and the CLI reference list every command and flag.

For the paired app, run canary app on the machine that owns the Gateway or TWS session, then run canary app pair and scan the QR code. The app guide covers pairing, remote access, and push notifications.

Experimental: moomoo and Futu through OpenD

Canary can also read a Futu or moomoo account through OpenD, Futu's local gateway, while OpenD is running and logged in. This support is experimental. Reading balances and holdings, order and fill history, and converting to the base currency have been tested only against a stand-in for OpenD written for Canary's tests, so check what Canary shows against your broker. Canary cannot place, change or cancel orders through OpenD: it refuses the request and sends nothing to your broker.

Add this to ~/.config/ibkr/config.toml:

[broker]
kind = "opend"

With one real account on your login, Canary uses it. With several, it picks none: canary status lists them, and you set account under [opend] to its id. A simulated account is never picked: to use one, set account to its id.

With this setting, Canary shows account balances and stock and ETF positions, and quotes for the Hong Kong and US markets where your OpenD login has the quote rights; no other market's quotes have been read. A holding in a market without a quote right shows the price OpenD reports with the holding, not a market quote. Options, futures and anything else in the account appear in a separate list at the value OpenD reports, unconverted and not checked by Canary. Canary's exposure figures and checks against your limits do not count them, so those figures do not cover your whole account. Holdings outside the account's base currency are converted at a rate worked out from OpenD's own account totals, not a quoted rate; where that is not possible they are not measured, and the checks against your limits report that they cannot judge them. The regime, portfolio stress and the market overview answer in part, tested only against that stand-in: OpenD has no VIX term structure, USD/JPY or gamma, so the regime's headline always reads "Market state undefined — data incomplete". Many features are not available, among them daily P&L, Edge, statement reporting, the market tape and technical analysis; canary status lists most of them. Canary with moomoo and Futu has the details.

Each daemon serves one broker. To run OpenD beside IBKR, start a second daemon with its own XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, XDG_RUNTIME_DIR and CANARY_SOCKET. The configuration reference lists every key.

Go wire-protocol library

pkg/ibkr coverage

pkg/ibkr is a clean-room Go library for the TWS wire protocol. It transports broker requests only. Its API reference is on pkg.go.dev, and its statement coverage is updated on each push to main as a line-by-line report.

The module path is github.com/osauer/canary/v3, and every release tag from v3.38.0 on is a Go module version. To use the daemon client or pkg/ibkr from your own Go program, get the module at the release your daemon runs, for example:

go get github.com/osauer/canary/v3@v3.38.0

go get github.com/osauer/canary/v3@latest gives the newest release. Take the client from the same release as the daemon: the daemon refuses a request with a field it does not know, so a newer client can be refused. The /v2 path ends at v2.8.5 (August 2026) and receives no further releases.

For the canary binary, use the installer: it installs a signed build.

Start with the package documentation and the wire protocol page.

Safety and privacy

The standard binary has no compiled order path, and the installer, updater and MCP Bundle never install the trading binary. The trading binary executes what you authorised and nothing else. The daemon checks every order at preview, at admission and at the final send: account, client ID and mode pins, the preview token for that draft, the journal entry written before the send, the risk policy's order limits, the mandate gate and the freeze. Gated orders has the detail.

Canary has no telemetry and does not send account IDs, balances, quantities, or P/L to the maintainer. PRIVACY.md is the data map. SECURITY.md covers the threat model and signed releases.

Canary is an independent third-party client for Interactive Brokers' publicly documented TWS API. It is not built, endorsed, sponsored, or supported by Interactive Brokers Group, Inc. or its affiliates. pkg/ibkr redistributes no Interactive Brokers code, libraries, jars, or market data. Canary's OpenD client is likewise independent and is not built, endorsed, sponsored, or supported by Futu or its affiliates; pkg/futu includes protocol definitions from Futu's public client under the Apache License 2.0, as its notice sets out. Nothing here is investment advice.

Canary is a private project of Oliver Sauer.

MIT. See LICENSE.

Documentation

Overview

Package canary is the Go client for a running Canary daemon.

It executes the tool catalogue that canary mcp serves, over the daemon's Unix socket and without an MCP process in between, for programs that read Canary mechanically rather than through a model. Capability to call a tool is not authority: the daemon keeps every account, mode, policy and broker gate, and this package restates none of them.

A Client opens one connection per call because the daemon answers one request at a time per connection. Dedicated non-catalogue methods can read entry setup observations and their coverage and read/save a cash-sweep ordering preference, never protection policy or broker authority. Concurrent calls never queue behind each other, and a Client holds nothing between calls.

Index

Constants

View Source
const (
	// CodeUnknownMethod means the daemon does not serve the requested method.
	CodeUnknownMethod = rpc.CodeUnknownMethod
	// CodeBadRequest means the daemon rejected the arguments.
	CodeBadRequest = rpc.CodeBadRequest
	// CodeGatewayUnavailable means the broker gateway is not connected.
	CodeGatewayUnavailable = rpc.CodeGatewayUnavailable
	// CodeSymbolInactive means the requested instrument is not active or the
	// broker has no definition for it.
	CodeSymbolInactive = rpc.CodeSymbolInactive
	// CodeTimeout means the daemon gave up waiting on the broker.
	CodeTimeout = rpc.CodeTimeout
	// CodeTradingDisabled means the daemon was built without trading.
	CodeTradingDisabled = rpc.CodeTradingDisabled
	// CodeInternal means the daemon failed for a reason it does not classify.
	CodeInternal = rpc.CodeInternal
	// CodeRegimeUnavailable means no validated regime snapshot exists.
	CodeRegimeUnavailable = rpc.CodeRegimeUnavailable
)

Daemon failure codes carried by Error.Code.

View Source
const (
	CashPolicyPresetCautious   = rpc.CashPolicyPresetCautious
	CashPolicyPresetBalanced   = rpc.CashPolicyPresetBalanced
	CashPolicyPresetAggressive = rpc.CashPolicyPresetAggressive
	CashPolicyPresetCustom     = rpc.CashPolicyPresetCustom
)

Preset ids a CashPolicyPreset carries.

View Source
const (
	CodePolicyInvalid            = rpc.CodePolicyInvalid
	CodePolicyUnwritable         = rpc.CodePolicyUnwritable
	CodeConfirmationRequired     = rpc.CodeConfirmationRequired
	CodeConfirmationUnverifiable = rpc.CodeConfirmationUnverifiable
	CodeRequestReused            = rpc.CodeRequestReused
)

Error codes a cash policy save reports besides CodeSettingsConflict.

View Source
const (
	DeskOverrideTermsKind      = rpc.DeskOverrideTermsKind
	DeskOverrideReviewKind     = rpc.DeskOverrideReviewKind
	OverrideGrantedFromConsole = rpc.OverrideGrantedFromConsole
)

Override kinds and the console provenance an override record carries.

View Source
const (
	DeskClassProtect    = rpc.DeskClassProtect
	DeskClassReduce     = rpc.DeskClassReduce
	DeskClassAdd        = rpc.DeskClassAdd
	DeskOutcomeAccepted = rpc.DeskOutcomeAccepted
	DeskOutcomeRefused  = rpc.DeskOutcomeRefused
	DeskOutcomeUnknown  = rpc.DeskOutcomeUnknown
	DeskOutcomeAbsent   = rpc.DeskOutcomeAbsent
)

Desk execution item classes and outcomes.

View Source
const (
	DeskBlockerDrawdownBrake    = rpc.DeskBlockerDrawdownBrake
	DeskBlockerEpisodeConsumed  = rpc.DeskBlockerEpisodeConsumed
	DeskBlockerRequestConflict  = rpc.DeskBlockerRequestConflict
	DeskBlockerAuthorityChanged = rpc.DeskBlockerAuthorityChanged
	DeskBlockerClassMismatch    = rpc.DeskBlockerClassMismatch
	DeskBlockerPriorUnknown     = rpc.DeskBlockerPriorUnknown
	DeskBlockerProposalChanged  = rpc.DeskBlockerProposalChanged
)

Desk execution blocker codes.

View Source
const CashPolicySectionOrderLimits = rpc.CashPolicySectionOrderLimits

CashPolicySectionOrderLimits is the section of the order cap settings, which live in the risk constitution.

View Source
const CodeSettingsConflict = rpc.CodeSettingsConflict

CodeSettingsConflict reports a stale expected settings revision.

View Source
const CodeWatchlistConflict = rpc.CodeWatchlistConflict

CodeWatchlistConflict identifies an explicit stale-revision or changed-terms rejection.

View Source
const DeskExecutionContractVersion = rpc.DeskExecutionContractVersion

DeskExecutionContractVersion is the contract version a daemon must report.

View Source
const OriginPairedDevice = rpc.OrderOriginPairedDevice

OriginPairedDevice is the origin of an act the owner confirms on a device paired with the desk; the daemon treats it as human.

Variables

View Source
var ErrDaemonUnavailable = errors.New("canary: daemon unavailable")

ErrDaemonUnavailable reports that no daemon serves the socket and none could be started.

View Source
var ErrUnknownTool = errors.New("canary: unknown tool")

ErrUnknownTool reports a tool name outside the catalogue.

Functions

func DeskIntentDigest

func DeskIntentDigest(item DeskExecutionItem) string

DeskIntentDigest binds a request to its receipt.

func ValidateAutomaticOrder

func ValidateAutomaticOrder(items []DeskExecutionItem) error

ValidateAutomaticOrder refuses an addition listed before protection or a reduction.

func ValidateFXResult

func ValidateFXResult(result FXResult) error

ValidateFXResult checks the versioned, finite, missing-aware FX contract.

func ValidateFinancingFeesResult

func ValidateFinancingFeesResult(result FinancingFeesResult) error

ValidateFinancingFeesResult validates the public lending fee contract.

Types

type CashPolicyApplyRequest

type CashPolicyApplyRequest = rpc.CashPolicyApplyRequest

CashPolicyApplyRequest saves the terms a check returned, with the owner's device confirmation.

type CashPolicyApplyResult

type CashPolicyApplyResult = rpc.CashPolicyApplyResult

CashPolicyApplyResult is the snapshot after a save, with its receipt.

type CashPolicyChange

type CashPolicyChange = rpc.CashPolicyChange

CashPolicyChange is one changed setting in a CashPolicyCheckResult.

type CashPolicyCheckRequest

type CashPolicyCheckRequest = rpc.CashPolicyCheckRequest

CashPolicyCheckRequest names a draft of cash management settings.

type CashPolicyCheckResult

type CashPolicyCheckResult = rpc.CashPolicyCheckResult

CashPolicyCheckResult is the daemon's verdict on a draft; it writes nothing.

type CashPolicyConfirmation

type CashPolicyConfirmation = rpc.CashPolicyConfirmation

CashPolicyConfirmation is the owner's device confirmation of one save.

type CashPolicyDevice

type CashPolicyDevice = rpc.CashPolicyDevice

CashPolicyDevice says which of the owner's credentials Canary verifies itself.

type CashPolicyFile

type CashPolicyFile = rpc.CashPolicyFile

CashPolicyFile is one policy file's state in a CashPolicySnapshot: the protection file's fields on the snapshot itself, the risk constitution's under Constitution.

type CashPolicyPartial

type CashPolicyPartial = rpc.CashPolicyPartial

CashPolicyPartial reports a two-file save that stopped after its first file.

type CashPolicyPreset

type CashPolicyPreset = rpc.CashPolicyPreset

CashPolicyPreset is the stance the files' values derive to.

type CashPolicyPresetFacts

type CashPolicyPresetFacts = rpc.CashPolicyPresetFacts

CashPolicyPresetFacts is what a preset comes to at today's NLV.

type CashPolicyPresetOption

type CashPolicyPresetOption = rpc.CashPolicyPresetOption

CashPolicyPresetOption is one preset the owner may apply, with its values and what they come to at today's NLV.

type CashPolicyRestore

type CashPolicyRestore = rpc.CashPolicyRestore

CashPolicyRestore offers the owner's own values back after a preset replaced them.

type CashPolicySetting

type CashPolicySetting = rpc.CashPolicySetting

CashPolicySetting is one setting in a CashPolicySnapshot.

type CashPolicySnapshot

type CashPolicySnapshot = rpc.CashPolicySnapshot

CashPolicySnapshot is the cash management settings as the daemon reads them from the protection policy file, with their facts.

type CashSweepPreferences

type CashSweepPreferences = rpc.CashSweepPreferences

CashSweepPreferences is the daemon's runtime ordering preference and receipt.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client executes catalogue tools and display subscriptions against one daemon socket. It is safe for concurrent use and needs no Close.

func New

func New(o Options) *Client

New returns a Client for o. It performs no I/O.

func (*Client) ApplyCashPolicy

func (c *Client) ApplyCashPolicy(ctx context.Context, in CashPolicyApplyRequest) (*CashPolicyApplyResult, error)

ApplyCashPolicy saves checked terms with the owner's device confirmation: the daemon writes only the changed lines, raises policy_version by one and records a receipt. Retrying a request id with the same terms writes nothing and returns the receipt's version.

func (*Client) Call

func (c *Client) Call(ctx context.Context, name string, args json.RawMessage) (json.RawMessage, error)

Call executes the catalogue tool name with JSON args and returns the tool's JSON result. A read tool passes on what the daemon sent, so the result may carry fields newer than this build: decode the fields you use and ignore the rest. Open orders reach a program with those fields too, where canary mcp keeps to this build's types; broker free text is withheld from both. Empty args mean an empty object. The call ends at ctx's deadline or at the tool's catalogue budget, whichever comes first, and such an end reports context.DeadlineExceeded. A failure the daemon reported is an *Error.

func (*Client) CashPolicy

func (c *Client) CashPolicy(ctx context.Context) (*CashPolicySnapshot, error)

CashPolicy reads the cash management settings. Like the methods below it is outside the MCP catalogue and the CLI: Desk's console calls it.

func (*Client) CashSweepPreferences

func (c *Client) CashSweepPreferences(ctx context.Context) (*CashSweepPreferences, error)

CashSweepPreferences reads runtime ordering preferences independently of proposal/risk readiness. This method is outside the MCP catalogue.

func (*Client) CheckCashPolicy

func (c *Client) CheckCashPolicy(ctx context.Context, in CashPolicyCheckRequest) (*CashPolicyCheckResult, error)

CheckCashPolicy validates a draft and works out its figures; it writes nothing.

func (*Client) ConfirmDeskAuthority

func (c *Client) ConfirmDeskAuthority(ctx context.Context, in DeskAuthorityConfirmParams) (*DeskAuthorityStatus, error)

ConfirmDeskAuthority stores the mandate after verifying the device confirmation. It does not start the controller.

func (*Client) ConfirmDeskOverride

func (c *Client) ConfirmDeskOverride(ctx context.Context, in DeskOverrideConfirmParams) (*RiskPolicyWriteResult, error)

ConfirmDeskOverride grants the override after Canary verified the device confirmation; a retry of the same terms answers with the same override.

func (*Client) ControlDeskAuthority

func (c *Client) ControlDeskAuthority(ctx context.Context, in DeskAuthorityControlParams) (*DeskAuthorityStatus, error)

ControlDeskAuthority runs, pauses, downgrades or disarms under the daemon-held generation. Upgrading needs a fresh confirmation.

func (*Client) DeskAuthority

func (c *Client) DeskAuthority(ctx context.Context) (*DeskAuthorityStatus, error)

DeskAuthority reads the mandate's effective state, including a hold by the a breach of the mandate's loss room (HeldBy; before 2026-10-31 the drawdown brake).

func (*Client) DeskExecutionCapabilities

func (c *Client) DeskExecutionCapabilities(ctx context.Context) (*DeskExecutionCapabilitiesResult, error)

DeskExecutionCapabilities reports the served contract version, methods and authorisations. A daemon without it is unavailable to Desk.

func (*Client) DiscoverSetupOptions

func (c *Client) DiscoverSetupOptions(ctx context.Context, in SetupOptionsParams) (*SetupOptionsResult, error)

DiscoverSetupOptions lists or resolves standard calls without preparing an order.

func (*Client) EvaluateSetup

func (c *Client) EvaluateSetup(ctx context.Context, in SetupEvaluateParams) (*SetupResult, error)

EvaluateSetup reads daemon-owned entry evidence. It does not save a playbook, create a delivery episode, change policy or transmit a broker order.

func (*Client) LookupDeskExecution

func (c *Client) LookupDeskExecution(ctx context.Context, in DeskExecutionLookupParams) (*DeskExecutionLookupResult, error)

LookupDeskExecution answers named requests from Canary's journal. It is read-only; an error never means that nothing happened.

func (*Client) PrepareDeskAuthority

func (c *Client) PrepareDeskAuthority(ctx context.Context, in DeskAuthorityPrepareParams) (*DeskAuthorityPrepared, error)

PrepareDeskAuthority returns exact terms for the owner's device review.

func (*Client) PrepareDeskOverride

func (c *Client) PrepareDeskOverride(ctx context.Context, in DeskOverridePrepareParams) (*DeskOverridePrepared, error)

PrepareDeskOverride returns exact override terms for the owner's device review.

func (*Client) SetCashSweepPriority

func (c *Client) SetCashSweepPriority(ctx context.Context, in SetCashSweepPriorityRequest) (*CashSweepPreferences, error)

SetCashSweepPriority is restricted to an ordering preference. It claims no human-terminal origin, and cannot change a protection policy or broker gate.

func (*Client) SetupCoverage

func (c *Client) SetupCoverage(ctx context.Context, in SetupCoverageParams) (*SetupCoverageResult, error)

SetupCoverage reads how live setup evaluations covered a session's completed five-minute bars and how many historical requests they issued. It needs no gateway and changes nothing.

func (*Client) SetupMarkouts

func (c *Client) SetupMarkouts(ctx context.Context, in SetupMarkoutsParams) (*SetupMarkoutsResult, error)

SetupMarkouts reads daemon-captured entry markouts. They are an entry diagnostic, not realized profit; the read schedules or captures nothing.

func (*Client) SocketPath

func (c *Client) SocketPath() string

SocketPath reports the daemon socket the Client dials.

func (*Client) SubmitDeskExecution

func (c *Client) SubmitDeskExecution(ctx context.Context, in DeskExecutionSubmitParams) (*DeskExecutionSubmitResult, error)

SubmitDeskExecution sends items under exactly one authorisation. Since 2026-10-18 the daemon serves the automatic authorisation: the standing mandate the owner confirmed on a device, presented by Desk's controller with its private capability, generation and preferences hash. Every item is journaled before dispatch and answered with its own receipt; a retry of a journaled request returns the original receipt and sends nothing. An error from this call never means that nothing happened: resolve the request IDs with LookupDeskExecution.

func (*Client) Subscribe

func (c *Client) Subscribe(ctx context.Context, onFrame func(json.RawMessage) error) error

Subscribe streams display snapshots until ctx ends, the daemon closes the stream, or onFrame returns an error. Each frame holds one snapshot's JSON, byte for byte what canary market --watch prints per line. Subscribe returns nil when the daemon ends the stream, ctx.Err() when ctx ends, onFrame's error unchanged, and an *Error when the daemon refuses the subscription. The daemon serves at most four display readers.

func (*Client) Version

func (c *Client) Version(ctx context.Context) (string, error)

Version returns the running daemon's stamped version.

func (*Client) VetoProposal

VetoProposal stops the pending pre-authorised submission of one proposal row. Accepted false carries the daemon's reason in Message; a transport or method error is returned as an error.

func (*Client) Watchlist

func (c *Client) Watchlist(ctx context.Context) (*Watchlist, error)

Watchlist reads durable owner preferences independently of broker connectivity. Mutations are intentionally absent from the public client and model tools.

type DeskAuthorityConfirmParams

type DeskAuthorityConfirmParams = rpc.DeskAuthorityConfirmParams

DeskAuthorityConfirmParams carries the terms and the device confirmation.

type DeskAuthorityControlParams

type DeskAuthorityControlParams = rpc.DeskAuthorityControlParams

DeskAuthorityControlParams changes the running state under a generation fence.

type DeskAuthorityPrepareParams

type DeskAuthorityPrepareParams = rpc.DeskAuthorityPrepareParams

DeskAuthorityPrepareParams asks for terms at a maximum scope.

type DeskAuthorityPrepared

type DeskAuthorityPrepared = rpc.DeskAuthorityPrepared

DeskAuthorityPrepared carries the canonical terms and their digest.

type DeskAuthorityStatus

type DeskAuthorityStatus = rpc.DeskAuthorityStatus

DeskAuthorityStatus is the persisted and effective authority.

type DeskAuthorityTerms

type DeskAuthorityTerms = rpc.DeskAuthorityTerms

DeskAuthorityTerms are the exact mandate terms the owner confirms.

type DeskAutomaticAuthorization

type DeskAutomaticAuthorization = rpc.DeskAutomaticAuthorization

DeskAutomaticAuthorization is the standing mandate as the controller holds it.

type DeskBatchAuthorization

type DeskBatchAuthorization = rpc.DeskBatchAuthorization

DeskBatchAuthorization is the one-use manual authorisation.

type DeskExecutionAdd

type DeskExecutionAdd = rpc.DeskExecutionAdd

DeskExecutionAdd is an automatic stock entry.

type DeskExecutionBatchItem

type DeskExecutionBatchItem = rpc.DeskExecutionBatchItem

DeskExecutionBatchItem is one confirmed batch item.

type DeskExecutionBatchTerms

type DeskExecutionBatchTerms = rpc.DeskExecutionBatchTerms

DeskExecutionBatchTerms are a manual batch's confirmed terms.

type DeskExecutionCapabilitiesResult

type DeskExecutionCapabilitiesResult = rpc.DeskExecutionCapabilitiesResult

DeskExecutionCapabilitiesResult lists the served desk.execution methods.

type DeskExecutionIntent

type DeskExecutionIntent = rpc.DeskExecutionIntent

DeskExecutionIntent is one order's exact intent.

type DeskExecutionItem

type DeskExecutionItem = rpc.DeskExecutionItem

DeskExecutionItem is one order request with its stable identities.

type DeskExecutionLookupParams

type DeskExecutionLookupParams = rpc.DeskExecutionLookupParams

DeskExecutionLookupParams names requests by ID.

type DeskExecutionLookupResult

type DeskExecutionLookupResult = rpc.DeskExecutionLookupResult

DeskExecutionLookupResult answers every named request.

type DeskExecutionPrepareBatchParams

type DeskExecutionPrepareBatchParams = rpc.DeskExecutionPrepareBatchParams

DeskExecutionPrepareBatchParams names a manual batch's proposals.

type DeskExecutionPrepareBatchResult

type DeskExecutionPrepareBatchResult = rpc.DeskExecutionPrepareBatchResult

DeskExecutionPrepareBatchResult carries batch terms and the private reference.

type DeskExecutionProposal

type DeskExecutionProposal = rpc.DeskExecutionProposal

DeskExecutionProposal names one served proposal revision.

type DeskExecutionReceipt

type DeskExecutionReceipt = rpc.DeskExecutionReceipt

DeskExecutionReceipt is one item's result.

type DeskExecutionSubmitParams

type DeskExecutionSubmitParams = rpc.DeskExecutionSubmitParams

DeskExecutionSubmitParams sends items under exactly one authorisation.

type DeskExecutionSubmitResult

type DeskExecutionSubmitResult = rpc.DeskExecutionSubmitResult

DeskExecutionSubmitResult reports every item in send order.

type DeskOverrideConfirmParams

type DeskOverrideConfirmParams = rpc.DeskOverrideConfirmParams

DeskOverrideConfirmParams carries the terms and the device confirmation.

type DeskOverridePrepareParams

type DeskOverridePrepareParams = rpc.DeskOverridePrepareParams

DeskOverridePrepareParams asks for the terms of one override.

type DeskOverridePrepared

type DeskOverridePrepared = rpc.DeskOverridePrepared

DeskOverridePrepared carries the canonical terms and their digest.

type DeskOverrideTerms

type DeskOverrideTerms = rpc.DeskOverrideTerms

DeskOverrideTerms are the exact override terms the owner confirms.

type Error

type Error struct {
	// Code classifies the failure.
	Code string
	// Message is the daemon's explanation.
	Message string
}

Error is a failure the daemon reported. Code is one of the Code constants.

func (*Error) Error

func (e *Error) Error() string

Error renders the code and message.

type FXBackfill

type FXBackfill = rpc.FXBackfill

FXBackfill is the background statement acquisition progress.

type FXDay

type FXDay = rpc.FXDay

FXDay is a reconciled daily contribution or a dated evidence gap.

type FXPeriod

type FXPeriod = rpc.FXPeriod

FXPeriod is a complete period total or an explicit coverage failure.

type FXResult

type FXResult = rpc.FXResult

FXResult is the cached completed-day FX attribution returned by canary_reporting_fx. It contains no account identity or position details.

type FinancingCurrencyAmount

type FinancingCurrencyAmount = rpc.FinancingCurrencyAmount

FinancingCurrencyAmount is known earned income in one native currency.

type FinancingFee

type FinancingFee = rpc.FinancingFee

FinancingFee is one sanitized net earned fee, with optional conversion evidence.

type FinancingFeesParams

type FinancingFeesParams = rpc.FinancingFeesParams

FinancingFeesParams selects a bounded canary_lending_fees read.

type FinancingFeesResult

type FinancingFeesResult = rpc.FinancingFeesResult

FinancingFeesResult contains full-period totals and a separate filtered page.

type FinancingSummary

type FinancingSummary = rpc.FinancingSummary

FinancingSummary is missing-aware earned-fee attribution for an exact period.

type LendingPosition

type LendingPosition = rpc.LendingPosition

LendingPosition is a statement-dated managed-stock-loan annotation.

type Options

type Options struct {
	// SocketPath is the daemon's Unix socket. Empty selects the canonical
	// path, which honours CANARY_SOCKET.
	SocketPath string
	// Executable is the canary binary whose daemon is started when the
	// socket is absent. Empty disables that start; Call, Subscribe and
	// Version then report ErrDaemonUnavailable until a daemon serves the
	// socket.
	Executable string
}

Options configures a Client. The zero value selects the canonical socket and never starts a daemon.

type OverrideRecord

type OverrideRecord = rpc.OverrideRecord

OverrideRecord is one override as Canary keeps it; GrantedFrom is OverrideGrantedFromConsole for one granted on the owner's device.

type RiskPolicyWriteResult

type RiskPolicyWriteResult = rpc.RiskPolicyWriteResult

RiskPolicyWriteResult is Canary's answer to a granted override, the override record (OverrideRecord) with it.

type SetCashSweepPriorityRequest

type SetCashSweepPriorityRequest = rpc.SetCashSweepPriorityRequest

SetCashSweepPriorityRequest names one immutable ordering-preference edit.

type SetupBar

type SetupBar = rpc.SetupBar

SetupBar contains explicit interval-start and interval-end timestamps.

type SetupBaseline

type SetupBaseline = rpc.SetupBaseline

SetupBaseline contains one comparable prior-session slot observation.

type SetupContract

type SetupContract = rpc.ContractParams

SetupContract preserves exact underlying identity for a setup evaluation.

type SetupCoverageContract

type SetupCoverageContract = rpc.SetupCoverageContract

SetupCoverageContract is one contract's live setup evaluations in a session.

type SetupCoverageParams

type SetupCoverageParams = rpc.SetupCoverageParams

SetupCoverageParams selects one retained session (default: the newest) and optionally one underlying symbol.

type SetupCoverageResult

type SetupCoverageResult = rpc.SetupCoverageResult

SetupCoverageResult is the per-session instrument for live setup evaluations; it is operational evidence, never a signal or authority.

type SetupEvaluateParams

type SetupEvaluateParams = rpc.SetupEvaluateParams

SetupEvaluateParams selects one underlying and an optional reconstruction clock.

type SetupFeatures

type SetupFeatures = rpc.SetupFeatures

SetupFeatures contains measured, missing-aware setup values.

type SetupMarkoutTarget

type SetupMarkoutTarget = rpc.SetupMarkoutTarget

SetupMarkoutTarget is one pending, captured or missing markout target.

type SetupMarkoutsParams

type SetupMarkoutsParams = rpc.SetupMarkoutsParams

SetupMarkoutsParams filters the entry-markout read by order, fill date or symbol.

type SetupMarkoutsResult

type SetupMarkoutsResult = rpc.SetupMarkoutsResult

SetupMarkoutsResult is the entry-markout ledger and its capture clock.

type SetupOptionCall

type SetupOptionCall = rpc.SetupOptionCall

SetupOptionCall is one strike with optional indicative quote evidence.

type SetupOptionExpiry

type SetupOptionExpiry = rpc.SetupOptionExpiry

SetupOptionExpiry is one observed standard-class expiry.

type SetupOptionQuote

type SetupOptionQuote = rpc.SetupOptionQuote

SetupOptionQuote is the one dated quote for the exact selected call; its bid and ask are present only when its status is quoted.

type SetupOptionsParams

type SetupOptionsParams = rpc.SetupOptionsParams

SetupOptionsParams chooses a listing stage or an exact standard call tuple.

type SetupOptionsResult

type SetupOptionsResult = rpc.SetupOptionsResult

SetupOptionsResult is bounded option discovery without execution authority.

type SetupResult

type SetupResult = rpc.SetupResult

SetupResult contains observed setup evidence without policy or order authority.

type SetupSpec

type SetupSpec = rpc.SetupSpec

SetupSpec is the fixed versioned intraday observation template.

type Tool

type Tool struct {
	// Name is the tool name Call accepts.
	Name string
	// Title is the short human title.
	Title string
	// Description is the model-facing description.
	Description string
	// InputSchema is the JSON Schema for Call's args.
	InputSchema json.RawMessage
	// ReadOnly reports the catalogue's read-only hint. Every catalogue tool
	// is read-only today; the field keeps a future write tool from passing
	// as a read.
	ReadOnly bool
	// Methods lists the daemon methods the tool may invoke.
	Methods []string
}

Tool describes one catalogue entry as canary mcp advertises it.

func Lookup

func Lookup(name string) (Tool, bool)

Lookup returns the catalogue entry for name.

func Tools

func Tools() []Tool

Tools returns the full catalogue in catalogue order. The result is a copy.

type TradeProposalAutomatic

type TradeProposalAutomatic = rpc.TradeProposalAutomatic

TradeProposalAutomatic is a row's pre-authorisation record, as the daemon serves it on every proposal and on a veto's answer.

type TradeProposalVetoParams

type TradeProposalVetoParams = rpc.TradeProposalVetoParams

TradeProposalVetoParams names the row (key and, optionally, revision), the reason and the origin of the owner's act. Notification actions also supply NoticeID and VetoUntil together; the daemon checks both against the stored window immediately before changing it. Omitting both retains the fresh console/terminal veto behavior. Notification requests use a distinct method so an older daemon refuses them instead of ignoring their conditions.

type TradeProposalVetoResult

type TradeProposalVetoResult = rpc.TradeProposalVetoResult

TradeProposalVetoResult is the daemon's answer: whether it accepted, the row's automatic state afterwards and its words.

type Watchlist

type Watchlist = rpc.Watchlist

Watchlist is Canary's accepted owner list and current receipt clock.

type WatchlistContract

type WatchlistContract = rpc.WatchlistContract

WatchlistContract is a stock underlying; zero ConID is explicitly unresolved.

Directories

Path Synopsis
Package canarytest runs a fake Canary daemon for tests of programs built on the canary client.
Package canarytest runs a fake Canary daemon for tests of programs built on the canary client.
policyfile
Package policyfile serves the daemon's own cash policy methods on a canarytest fake daemon, over a temporary protection policy file: a client's end-to-end tests read, check and write the file exactly as the daemon does, and reread it afterwards.
Package policyfile serves the daemon's own cash policy methods on a canarytest fake daemon, over a temporary protection policy file: a client's end-to-end tests read, check and write the file exactly as the daemon does, and reread it afterwards.
cmd
canary command
Command canary provides terminal, MCP, app-host, and daemon entry points for the local trading harness.
Command canary provides terminal, MCP, app-host, and daemon entry points for the local trading harness.
canary-sim command
Command canary-sim (build it with -tags trading to place orders) runs the real Canary daemon against the TWS simulator in pkg/ibkr/twssim, in live mode against a placeholder account (U1234567), inside one directory of its own: socket, config, log, policies, state and home.
Command canary-sim (build it with -tags trading to place orders) runs the real Canary daemon against the TWS simulator in pkg/ibkr/twssim, in live mode against a placeholder account (U1234567), inside one directory of its own: socket, config, log, policies, state and home.
opend-sim command
Command opend-sim serves a synthetic OpenD on a loopback port, for Desk and CLI witnesses of the OpenD path.
Command opend-sim serves a synthetic OpenD on a loopback port, for Desk and CLI witnesses of the OpenD path.
wire-assert command
Command wire-assert reads a JSONL wire log (as emitted by IBKR_WIRE_LOG_PATH) and evaluates one named invariant against the frames produced after a given byte offset.
Command wire-assert reads a JSONL wire log (as emitted by IBKR_WIRE_LOG_PATH) and evaluates one named invariant against the frames produced after a given byte offset.
internal
app
Package app assembles and runs the independently authenticated Canary HTTP and PWA host.
Package app assembles and runs the independently authenticated Canary HTTP and PWA host.
app/alerts
Package alerts turns daemon-authored alert state into redacted app inbox records and Web Push work.
Package alerts turns daemon-authored alert state into redacted app inbox records and Web Push work.
app/auth
Package auth manages Canary device pairing and app-session credentials.
Package auth manages Canary device pairing and app-session credentials.
app/daemonclient
Package daemonclient adapts the app host to the daemon's typed RPC surface.
Package daemonclient adapts the app host to the daemon's typed RPC surface.
app/http
Package apphttp registers the Canary app's authenticated HTTP routes and maps internal state and daemon RPC values onto explicit browser DTOs.
Package apphttp registers the Canary app's authenticated HTTP routes and maps internal state and daemon RPC values onto explicit browser DTOs.
app/live
Package live maintains the app host's refreshable daemon snapshot and publishes change events to local subscribers.
Package live maintains the app host's refreshable daemon snapshot and publishes change events to local subscribers.
app/push
Package push validates app-owned subscriptions and sends redacted Web Push payloads.
Package push validates app-owned subscriptions and sends redacted Web Push payloads.
app/relay
Package relay connects the local Canary app host to an optional public relay.
Package relay connects the local Canary app host to an optional public relay.
app/state
Package state owns the Canary app's private durable state, including paired devices, push subscriptions, redacted inbox records, attention cursors, and app-local delivery evidence.
Package state owns the Canary app's private durable state, including paired devices, push subscriptions, redacted inbox records, attention cursors, and app-local delivery evidence.
breadth/spx
Package spx computes S&P 500 breadth measurements locally from a validated constituent universe and daily closes obtained through the daemon's broker connector.
Package spx computes S&P 500 breadth measurements locally from a validated constituent universe and daily closes obtained through the daemon's broker connector.
broker
Package broker names the reads every broker must serve to the daemon: session health, account summary, positions, quotes, bars and instrument lookup.
Package broker names the reads every broker must serve to the daemon: session health, account summary, positions, quotes, bars and instrument lookup.
broker/ibkr
Package ibkr adapts one *ibkr.Connector to the read seam in internal/broker.
Package ibkr adapts one *ibkr.Connector to the read seam in internal/broker.
broker/opend
Package opend adapts the Futu OpenD client in pkg/futu to the daemon's read seam.
Package opend adapts the Futu OpenD client in pkg/futu to the daemon's read seam.
chainrec
Package chainrec records a daily option-chain snapshot for research: one row per contract per run, with quotes, model greeks and open interest, so the desk owns its own options panel instead of buying one.
Package chainrec records a daily option-chain snapshot for research: one row per contract per run, with quotes, model greeks and open interest, so the desk owns its own options panel instead of buying one.
cli
Package cli adapts typed daemon contracts and local workflows into Canary commands, machine-readable output, and terminal rendering.
Package cli adapts typed daemon contracts and local workflows into Canary commands, machine-readable output, and terminal rendering.
config
Package config loads and validates operator-owned TOML configuration for gateway identity, daemon behavior, and capability enablement.
Package config loads and validates operator-owned TOML configuration for gateway identity, daemon behavior, and capability enablement.
core
Package core is the strategy evaluator's arithmetic (internal-docs/design/strategy-evaluator.md): one fund held while a trend filter from a small library says so, sized so its volatility is at most its sleeve's risk allocation of the mandate's budget.
Package core is the strategy evaluator's arithmetic (internal-docs/design/strategy-evaluator.md): one fund held while a trend filter from a small library says so, sized so its volatility is at most its sleeve's risk allocation of the mandate's budget.
daemon
Code generated by config-ref -policy-help; DO NOT EDIT.
Code generated by config-ref -policy-help; DO NOT EDIT.
daemon/corestore
Package corestore owns the daemon's authoritative SQLite state in daemon.db.
Package corestore owns the daemon's authoritative SQLite state in daemon.db.
dial
Package dial connects local adapters to the daemon's typed, newline-delimited
Package dial connects local adapters to the daemon's typed, newline-delimited
discover
Package discover finds an IB Gateway or TWS endpoint on the local host when the user hasn't pinned one in config.
Package discover finds an IB Gateway or TWS endpoint on the local host when the user hasn't pinned one in config.
edge
Package edge is Canary Edge's pure analytical core.
Package edge is Canary Edge's pure analytical core.
feedback
Package feedback composes the redacted diagnostic report behind `canary feedback` and the `canary_feedback` MCP tool, and the GitHub new-issue URL that opens the bug report form prefilled with it.
Package feedback composes the redacted diagnostic report behind `canary feedback` and the `canary_feedback` MCP tool, and the GitHub new-issue URL that opens the bug report form prefilled with it.
financing
Package financing deterministically projects managed stock lending and net earned fees from retained statement evidence.
Package financing deterministically projects managed stock lending and net earned fees from retained statement evidence.
flexstmt
Package flexstmt parses IBKR Flex query statements into typed records for the post-trade reconciliation engine (internal-docs/design/post-trade-truth.md).
Package flexstmt parses IBKR Flex query statements into typed records for the post-trade reconciliation engine (internal-docs/design/post-trade-truth.md).
ibkrledger
Package ibkrledger reads per-currency cash from an existing authenticated IBKR Web API session.
Package ibkrledger reads per-currency cash from an existing authenticated IBKR Web API session.
logepisode
Package logepisode bounds repeated diagnostics without changing producer state.
Package logepisode bounds repeated diagnostics without changing producer state.
loglevel
Package loglevel owns the shared log-verbosity contract for the daemon and the app host: one four-value level string, and a text handler that keeps process-lifecycle markers visible at any level.
Package loglevel owns the shared log-verbosity contract for the daemon and the app host: one four-value level string, and a text handler that keeps process-lifecycle markers visible at any level.
logrotate
Package logrotate provides the size-capped log file writer shared by the daemon and the app host.
Package logrotate provides the size-capped log file writer shared by the daemon and the app host.
macrosource
Package macrosource reads a fixed public economic-calendar and official-news source set.
Package macrosource reads a fixed public economic-calendar and official-news source set.
mandate
Package mandate evaluates the owner's mandate risk budget (internal-docs/design/mandate-risk-budget.md): the loss measure, premium at risk on every bought option plus the cash loss to every armed share stop, against the loss the mandate still allows (the headline); and ex-ante portfolio volatility by historical simulation with full revaluation of every leg, named gap and index stresses, which sizes the sleeve allocations and reports the daily swing.
Package mandate evaluates the owner's mandate risk budget (internal-docs/design/mandate-risk-budget.md): the loss measure, premium at risk on every bought option plus the cash loss to every armed share stop, against the loss the mandate still allows (the headline); and ex-ante portfolio volatility by historical simulation with full revaluation of every leg, named gap and index stresses, which sizes the sleeve allocations and reports the daily swing.
marketcal
Package marketcal queries embedded official exchange-session calendars without consulting broker contract metadata or the network.
Package marketcal queries embedded official exchange-session calendars without consulting broker contract metadata or the network.
mcp
Package mcp adapts Canary's read-only desk tools to the Model Context Protocol over stdio.
Package mcp adapts Canary's read-only desk tools to the Model Context Protocol over stdio.
procinfo
Package procinfo reads the identity of local processes for lifecycle commands (stop, restart, update activation) and best-effort discovery.
Package procinfo reads the identity of local processes for lifecycle commands (stop, restart, update activation) and best-effort discovery.
productidentity
Package productidentity defines Canary's public executable identity and the durable pre-rename identifiers that must remain stable for safety.
Package productidentity defines Canary's public executable identity and the durable pre-rename identifiers that must remain stable for safety.
publichttp
Package publichttp chooses the request identity Canary presents to public data sources.
Package publichttp chooses the request identity Canary presents to public data sources.
redact
Package redact is Canary's one text redactor for free text that leaves the machine: the scheduled log monitor's samples and the `canary feedback` report.
Package redact is Canary's one text redactor for free text that leaves the machine: the scheduled log monitor's samples and the `canary feedback` report.
regimerows
Package regimerows builds presentation-oriented regime rows, bands, and provenance labels from typed RPC results.
Package regimerows builds presentation-oriented regime rows, bands, and provenance labels from typed RPC results.
register
Package register is the compiled side of the strategy register (internal-docs/design/strategy-register.md; owner decision 2026-10-18 09:01 CEST: "one register for all machine strategies, the ladder stage in Canary's risk policy, shadow on the production path, and strategies declaring the data Canary collects").
Package register is the compiled side of the strategy register (internal-docs/design/strategy-register.md; owner decision 2026-10-18 09:01 CEST: "one register for all machine strategies, the ladder stage in Canary's risk policy, shadow on the production path, and strategies declaring the data Canary collects").
risk
Package risk provides pure risk-policy evaluation and related domain contracts.
Package risk provides pure risk-policy evaluation and related domain contracts.
rpc
Package rpc defines the stable method names, envelopes, and typed payloads broker authority remain in the daemon.
Package rpc defines the stable method names, envelopes, and typed payloads broker authority remain in the daemon.
rpc/api
Package api declares every daemon method once, with the request it takes and the result it answers.
Package api declares every daemon method once, with the request it takes and the result it answers.
scorecard
Package scorecard is the decision scorecard's pure core.
Package scorecard is the decision scorecard's pure core.
setups
Package setups evaluates a fixed entry-observation template without I/O.
Package setups evaluates a fixed entry-observation template without I/O.
strategy
Package strategy reconstructs conservative option-strategy groups from exact current position identities.
Package strategy reconstructs conservative option-strategy groups from exact current position identities.
stress
Package stress composes the portfolio Stress assessment from typed account, position, regime, and market-event inputs.
Package stress composes the portfolio Stress assessment from typed account, position, regime, and market-event inputs.
update
Package update implements the local self-update lifecycle: discover a published release, download and verify its signed artifacts, install the binary atomically under an install lock, and coordinate explicitly requested process restarts.
Package update implements the local self-update lifecycle: discover a published release, download and verify its signed artifacts, install the binary atomically under an install lock, and coordinate explicitly requested process restarts.
xdgcache
Package xdgcache provides shared filesystem primitives for user data and caches: same-directory temp-and-rename replacement, non-blocking process locks, and XDG-aware cache-directory resolution.
Package xdgcache provides shared filesystem primitives for user data and caches: same-directory temp-and-rename replacement, non-blocking process locks, and XDG-aware cache-directory resolution.
pkg
futu
Package futu implements a clean-room Go client for the Futu OpenD TCP protocol, the gateway process through which Futu and moomoo accounts are reached.
Package futu implements a clean-room Go client for the Futu OpenD TCP protocol, the gateway process through which Futu and moomoo accounts are reached.
futu/futusim
Package futusim is a hermetic OpenD simulator: it speaks the real wire protocol of pkg/futu against a synthetic book, so the client, the daemon and the surfaces are proven without an OpenD, an account or the network.
Package futusim is a hermetic OpenD simulator: it speaks the real wire protocol of pkg/futu against a synthetic book, so the client, the daemon and the surfaces are proven without an OpenD, an account or the network.
ibkr
Package ibkr implements a clean-room Go client for the Interactive Brokers TWS wire protocol.
Package ibkr implements a clean-room Go client for the Interactive Brokers TWS wire protocol.
ibkr/internal/logging
Package logging is a tiny slog-backed shim that preserves the call-site API the ibkr package was originally written against (Component(name).Debugf/Infof/...).
Package logging is a tiny slog-backed shim that preserves the call-site API the ibkr package was originally written against (Component(name).Debugf/Infof/...).
ibkr/twssim
Package twssim is a simulated TWS: a broker and market on a loopback TCP port that speaks the TWS API at server version 203, so the real daemon, its real IBKR connector and its wire codec run against it without TWS, an account or the network.
Package twssim is a simulated TWS: a broker and market on a loopback TCP port that speaks the TWS API at server version 203, so the real daemon, its real IBKR connector and its wire codec run against it without TWS, an account or the network.
scripts
account-data command
Command account-data prints the owner's current holdings and live money figures for the account-data gate (scripts/check-no-account-data.sh).
Command account-data prints the owner's current holdings and live money figures for the account-data gate (scripts/check-no-account-data.sh).
app-log-audit command
Command app-log-audit rejects production Canary app log emitters that can write physical lines without an explicit severity field.
Command app-log-audit rejects production Canary app log emitters that can write physical lines without an explicit severity field.
check-mcp-server-card command
Command check-mcp-server-card verifies that public MCP discovery metadata exposes exactly the canonical runtime tool names and input schemas.
Command check-mcp-server-card verifies that public MCP discovery metadata exposes exactly the canonical runtime tool names and input schemas.
docgen/broker-coverage command
Command broker-coverage emits the broker coverage page from the daemon's coverage table (internal/daemon/coverage.go): what each broker supplies, how each Canary capability runs on it, and why one is not served on OpenD. The same table decides what the daemon refuses under OpenD, so the page cannot drift from the behaviour.
Command broker-coverage emits the broker coverage page from the daemon's coverage table (internal/daemon/coverage.go): what each broker supplies, how each Canary capability runs on it, and why one is not served on OpenD. The same table decides what the daemon refuses under OpenD, so the page cannot drift from the behaviour.
docgen/cli-ref command
Command cli-ref emits docs/docs/reference/cli.md from the CLI command registry.
Command cli-ref emits docs/docs/reference/cli.md from the CLI command registry.
docgen/config-ref command
Command config-ref emits docs/docs/reference/config.md from two kinds of
Command config-ref emits docs/docs/reference/config.md from two kinds of
docgen/edge-flex command
Command edge-flex emits the Canary reporting Flex-query reference from the parser's canonical manifest.
Command edge-flex emits the Canary reporting Flex-query reference from the parser's canonical manifest.
docgen/mcp-tools command
Command mcp-tools emits docs/docs/reference/mcp-tools.md from the canonical tool registry at internal/mcp.Tools.
Command mcp-tools emits docs/docs/reference/mcp-tools.md from the canonical tool registry at internal/mcp.Tools.
go-doc-audit command
Command go-doc-audit reports missing, duplicated, and malformed Go documentation comments without evaluating build constraints.
Command go-doc-audit reports missing, duplicated, and malformed Go documentation comments without evaluating build constraints.
log-monitor command
Command log-monitor incrementally reads Canary daemon and app logs and reports incidents, not line shapes.
Command log-monitor incrementally reads Canary daemon and app logs and reports incidents, not line shapes.
refresh-fund-sectors command
Command refresh-fund-sectors rewrites internal/daemon/fund_sectors_data.go with SPY's GICS sector split.
Command refresh-fund-sectors rewrites internal/daemon/fund_sectors_data.go with SPY's GICS sector split.
refresh-spx-members command
Command refresh-spx-members pulls the current S&P-500 constituent list from Wikipedia's "List of S&P 500 companies" article and rewrites internal/breadth/spx/members_data.go with the result.
Command refresh-spx-members pulls the current S&P-500 constituent list from Wikipedia's "List of S&P 500 companies" article and rewrites internal/breadth/spx/members_data.go with the result.
release-ci-wait command
Command release-ci-wait waits for one active GitHub Actions workflow and its exact required job set to succeed for a specific commit, branch, and event.
Command release-ci-wait waits for one active GitHub Actions workflow and its exact required job set to succeed for a specific commit, branch, and event.
release-registry-server command
Command release-registry-server derives a versioned MCP Registry document from an explicit release-tag server.json template and the release bundle's SHA-256 digest.
Command release-registry-server derives a versioned MCP Registry document from an explicit release-tag server.json template and the release bundle's SHA-256 digest.
release-sign-ed25519 command
Command release-sign-ed25519 creates or verifies Canary's compact detached release signature.
Command release-sign-ed25519 creates or verifies Canary's compact detached release signature.
store-compat command
Command store-compat is the store-compatibility gate: a daemon must start on the store the previous build wrote, and the previous build must start on the store the candidate wrote, or an install cannot be rolled back.
Command store-compat is the store-compatibility gate: a daemon must start on the store the previous build wrote, and the previous build must start on the store the candidate wrote, or an install cannot be rolled back.
web
app
Package appweb embeds the static Canary PWA assets served by the app host.
Package appweb embeds the static Canary PWA assets served by the app host.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL