NOTES / FROM THE CORPUS

StandMeet ノート

StandMeet の背後にある公開の設計ノート。動機、アーキテクチャ、主要な設計とそのトレードオフを、作者の StandMeet コーパス wiki からそのままお届けします。

これらのノートは英語と中国語で書かれています。以下は英語版へのリンクです。

すべてのノート

  1. architectureEach pillar is a node under key-designs, carrying its components, code paths, status, and design pages:
  2. confusablesThe vocabulary collisions in this system, each split precisely. When a doc says one of these words unqualified, check here.
  3. deploymentStandMeet deploys as a self-hosted, single-tenant, single-box app. This is the shape the product demands, not a limitation to fix later — and the code's lack of horizontal scalin…
  4. key-designsThe non-obvious, load-bearing design decisions, organized as eight pillar nodes (each a folder with its design pages as children). The through-line: StandMeet is becoming a pluggab…
  5. access-controlWho may see and do what — the most heavily tested pillar (the acl- e2e matrices). Entry is by access code (= invitation, QR); a code issues against a role whose RoleSnapshot free…
  6. access-control-diagram-coverageThe pillar's class diagrams live on the design pages they belong to; this page is the coverage gate.
  7. acl-and-quota-granularityNotation:
  8. byoai-browser-vaultThe visitor's own key is XSS-resistant on the browser side: a non-extractable AES-GCM CryptoKey lives in IndexedDB (JS can call encrypt/decrypt but never read its raw bytes), and t…
  9. byoai-envelopeA visitor's own model key (BYOAI) never touches server storage or Redis. The browser keeps it and wraps it per request in an X-BYOAI-Key header: AES-256-GCM, with the symmetric key…
  10. coded-landing-and-code-rotationMotivating problem. The résumé PDF (resume-composer-one-renderer) prints <publicurl/?code=<code in its QR. That is a credential in a URL: it lands in browser history, in the Refe…
  11. owner-keypair-authThe owner MCP handle (/mcp/) gates every HTTP request with a valid Sigv1 signature — legacy Bearer PAT was removed when keypair auth replaced PATs (routes/mcphandle/server.go).
  12. owner-sessions-and-abuse-controlsThe big valves have pages — the three-layer ACL (access-control list, acl-and-quota-granularity), Sigv1 (owner-keypair-auth), the embed JWT (JSON Web Token, embed-credential-neve…
  13. role-snapshot-frozenWhen a session is issued, the entire role state (corpus URIs, prompt body, skill prompts, allowed tools, denied blocks, denied corpus globs, waypoints, per-block config, role id/na…
  14. trusted-identity-via-metaThe session's trusted identity — OwnerID, Subject{Kind, ID} (an access code or an outbound key; it was CodeID until 2026-08-20, 162f09833, when key-path sessions got a subject so…
  15. agent-coreThe interpretation engine — where the product thesis (same corpus, per-audience presentation) executes. inference (backend/internal/conversation/inference/) wraps the CloudWego e…
  16. agent-as-injectable-driverAgent core = independently launchable module via Bridge/Driver.
  17. agent-core-diagram-coverageThe module's class diagrams live on the design pages they belong to; this page is the coverage gate — what's diagrammed, what isn't yet.
  18. detached-turn-persist-at-completionThe agent turn runs on context.WithoutCancel — a client disconnect (refresh / close) doesn't cancel it; the stream completes and lands in the DB (only a WithTimeout caps it). The…
  19. entry-agnostic-agentThe agent is entry-agnostic: entries are just consumers that fill a neutral session context and invoke it.
  20. eval-harness-on-prod-loopThe eval-harness imports only the public agentcore facade (never internal/) and runs the byte-for-byte same agent loop as prod — so a bug found in eval is a real bug, not an arti…
  21. force-final-answerIf the agent loop ends in an error having produced zero assistant text (max iterations hit, hallucinated tool name, etc.), instead of surfacing an error it makes one more LLM call …
  22. ghost-steeringThe owner wants visitor conversations to converge toward per-role destinations (see project X, grasp the differentiation, book a call) — but the agenda is the visitor's and there…
  23. system-prompt-hash-regressionThe composed system prompt is SHA-256 hashed; an invariants check builds it 3× and asserts the hash is identical (backend/internal/plugin/registry/systemprompt.go — Registry.Sys…
  24. unbuffered-sse-passthroughThe /api/v1/agent/turn Next route does not go through next.config rewrites — those buffer the upstream SSE, so the browser would receive every frame at once at the very end and t…
  25. capabilitiesThe agent's hands, organized as plugins on the MCP standard (copied verbatim — no private protocol). capreg is the registry: deterministic assembly order (the system-prompt hash …
  26. capabilities-diagram-coverageSame two-sided cut as connector-diagram-coverage: the assembly side (how capabilities register and get exposed per session) and the consumption side (what the loop actually holds).…
  27. capability-owns-quota-config-and-storemcp-capability-plugins explains that a builtin is a manifest plus an MCP process in a sandbox. This page is about the part the host used to hand-write for each one: how many times …
  28. capsocketSandboxed builtin plugins (summarize / retrieval / booker / mail-sender; ask-visitor is sandboxed too but declares no host ops, so it gets no socket at all) run network-isolated (-…
  29. feature-floorThe contract governing the externalization migration — moving a capability out of the core must not drop any of these cross-cutting behaviors. The floor items (each backed by an …
  30. mcp-capability-pluginsThis page is the capability plane — StandMeet as MCP host (see confusables). The agent's external tools / skills (retrieval, booker, summarize, askvisitor + owner-registered ext-…
  31. skills-progressive-disclosureA skill is not one-tool-per-script (that explodes the tool list and bloats the system prompt) — and a skill is not a capability either: it's an authored artifact riding on capabi…
  32. ui-cardsPer-tool interactive cards in the chat, delivered as MCP-Apps ui:// resources, rendered in a sandboxed iframe talking to the host via postMessage. All per-tool cards are migrated …
  33. connectorEvery credentialed contact with the outside world goes through one layer: connector.Hub + category slots. Consumers (agent capabilities, platform features, the IM bridge; the job-l…
  34. connector-depsThe formal interface between the capabilities pillar and the connector pillar — fail-closed and consumer-agnostic by design. A plugin manifest declares Requires: ["calendar", "ma…
  35. connector-diagram-coverageThe connector module is two designs sharing one package: the registry side (how a connector gets installed, credentialed, activated) and the caller side (how a consumer invokes a c…
  36. connector-egress-guardOnce an owner can upload an arbitrary OpenAPI connector-plugins, the target URL is attacker-influenceable — a classic SSRF surface (point it at 169.254.169.254 or an internal ser…
  37. connector-pluginsA connector is NOT MCP — it speaks category contracts, not the MCP wire protocol; the two plugin axes touch only at connector-deps (confusables, incl. action vs sync mode).
  38. idempotent-bookingCalendar events.insert is non-idempotent: if the connection drops after Google created the event but before the response, a blind retry double-books. So the idempotency key is gene…
  39. corpusThe owner's knowledge base — the moat. One table, corpusnotes, with a genre column (raw / wiki / output / subjectivity / writing) — the three tiers are still raw→wiki→outpu…
  40. backlinks-as-rebuilt-edge-tablesX lives literally in the body (never rewritten at storage). On every save, the code extracts all X, resolves them to ids, and deletes all out-edges then inserts the new set (notere…
  41. corpus-diagram-coverageThe pillar's class diagrams live on the design pages they belong to; this page is the coverage gate.
  42. corpus-retrievalToday (landed): corpussearch / corpusread / corpuslist / corpuslinks / corpusgrep / corpusmap / corpuspeek / corpusresolve — eight tools over a Meilisearch lexical index with a P…
  43. derived-path-corpus-as-filesystemcorpusnotes (every genre — wiki / output / subjectivity, and raw too since d925d9081, 2026-07-09) has a parentid self-ref tree but no path column. The address is derived on the f…
  44. global-asset-poolMotivating problem. Before 2026-09-05 an asset belonged to its holder — storagekey = <holderid/<assetid, "delete holder → delete its assets in the same transaction" (the old co…
  45. obsidian-sync-mechanismBidirectional sync between StandMeet and an Obsidian vault. Shaped like Quartz / obsidian-importer: two buttons, each a batch job, owner-triggered manually — no file watcher, no …
  46. protocolFor every field, two questions: where does its value really come from, and who reads it — Obsidian, StandMeet, both, or neither. Anything whose source is more trustworthy than "y…
  47. rendering-and-extensibilityHow StandMeet supports the presentation / extensibility layer of the notes it syncs (theorem callouts, math, diagrams, dynamic widgets) — the settled design.
  48. vault-ingestionStandMeet's account syncs a single Obsidian vault as its live source — Option A. The two alternatives are deferred:
  49. rendering-enginesStandMeet's markdown pipeline renders rich content across chat answers, wiki/output pages, and writings (app/src/components/page/markdown.tsx): remark-gfm + remark-math + rehype-ka…
  50. katexMath rendering. StandMeet: remark-math → rehype-katex (katex ^0.16). Obsidian: MathJax.
  51. mermaidText-based diagrams. Obsidian: built-in. StandMeet: a code component override detects mermaid (isMermaidCode / mermaidSource, app/src/components/page/markdown-helpers.ts:5) and ren…
  52. tikzjaxFills the gap mermaid can't: precise mathematical figures — geometry constructions, commutative diagrams, coordinate/labeled boxes, function curves. A tikz fence renders to SVG…
  53. three-tier-corpus-promotionraw → wiki → output: draft → curated → polished. Entries are promoted, not copied — since the tiers folded into one corpusnotes table (d925d9081, 2026-07-09) provenance i…
  54. writings-import-exportToday (landed): manual, owner-triggered, batch architecture. GET /api/admin/obsidian/export streams a standmeet-vault.zip (no temp file); POST /api/admin/obsidian/import accepts a …
  55. eight-controls-appliedRead as a cybernetic machine, StandMeet is a control apparatus that destroys a stochastic LLM's variety and converges it onto one goal G = "answer as the owner would — grounded, …
  56. embed-credential-never-carries-the-codeMotivating problem. A <standmeet-chat widget runs on a site StandMeet does not control, and its session must land on an access code — the code is what carries the role → corpus…
  57. eventsStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  58. async-response-contractStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  59. code-structureStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  60. completion-hooksStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  61. concurrency-controlStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  62. consolidation-inventoryStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  63. embed-update-hookStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo. The standmeet.com side is built in its ow…
  64. event-modelStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  65. events-roadmapStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  66. events-test-planStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo. The full-suite acceptance below passed on…
  67. message-loss-guaranteesStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  68. model-call-retryThe model call gets exactly one retry: the httpx transport retries transient failures at most twice from a 400ms base, with a 10s public-tier cap.
  69. no-bypass-by-structureStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  70. queue-behind-portsStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  71. relay-claims-rows-not-cursorStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  72. retry-has-one-ownerStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  73. saturation-degrades-gracefullyStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  74. storage-boundsStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  75. tasks-panelStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  76. two-sources-of-eventsStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  77. webhooksStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  78. why-not-a-brokerStatus: released in v0.1.76 (2026-09-27) — design and as-built record in docs/design/event-bus-outbox-webhooks.md in the StandMeet repo.
  79. micrositesThe instance root is the reserved slug home (HomepageSlug, owner/usecase/microsite.go:37; a5e1cada9 on 2026-09-04, template 77aee7dc6). The app middleware probes GET /api/v1/homepa…
  80. monitorCall-time telemetry of the running system: the host's second cross-cutting controller, distinct in timing from ACL — acl-and-quota-granularity acts at session establishment (via …
  81. product-owned-upgradeMotivating problem. In the image-based stack the backend deliberately has no docker.sock (deployment) — it cannot pull images or recreate its own containers. Until 2026-09-04 the…
  82. resume-composer-one-rendererMotivating problem. The résumé is the outbound half of chain-hiring: the PDF carries a QR (quick-response) code whose URL admits the recruiter under an access code (access-contro…
  83. service-handleNot a pillar — the outward face. This node is deliberately separate from capabilities because the two are the easiest concepts in the system to conflate (confusables): capabiliti…
  84. as-mcp-facadeThis page is the service handle — StandMeet as an MCP server (the outward plane), not the capability plane where our own agent consumes plugins as host — see confusables.
  85. ui-mcp-parityEvery owner operation reachable through the admin UI is also reachable through the service handle (StandMeet-as-MCP-server) — so the owner's AI session is never second-class to t…
  86. structureThe ground the other six pillars stand on. Code shape: Go packaged by domain (internal/<domain/{entity,usecase,repo,db,ops,facade} — the by-layer domain → usecases → routes g…
  87. a-gate-that-cannot-go-redTen of the fifty-five check- entries under infra/scripts/ (counted 2026-09-07) exist only to attack the other forty-five. Their shared opening line is the doctrine: 一个从没红…
  88. backend-domain-modulesThe backend was packaged by layer, not by domain (until 2026-07-27). That was the root debt behind a whole
  89. builder-claim-skip-lockedMicrosite builds (the surface was called "custom pages" until the rename, e7fe80e91, 2026-09-05) run in a separate builder service, not the main app — so the API process never ne…
  90. convergence-inbound-and-outboundThe deepest structural idea in the backend, and the one that had no note. Everything a capability can do, and everything it can ask back for, passes through exactly one place each …
  91. display-error-surfacingErrors that reach the user are wrapped in a single envelope shape; the cause is audited separately in logs, never exposed to the client.
  92. domain-facade-and-ddd-layoutThe domains under internal/<domain/ have no outward-facing exposure layer. To use a domain
  93. ephemeral-over-statefulA recurring taste across the codebase: don't keep mutable state you can derive or append.
  94. external-means-fully-externalAn externalized capability owns its own storage too. If the kernel still holds the table, the capability was relocated, not externalized — and a tidier address passes every gate …
  95. facade-directionsfacade-parity made every facade a projection of one registry. That model had no direction axis — its only base reaches were OwnerRead() / OwnerAction(), and it wired exactly two …
  96. facade-parityOne registry; every facade is generated from it or verified against it. Never a second hand-written description of the same capability.
  97. judgment-auditThe split: lint / type / test guard mechanical correctness (mechanical-guardrails); the audit guide guards judgment quality — "mechanical correctness ≠ clean architecture." A s…
  98. mechanical-guardrails"Mechanical constraint over social argument" made literal. It has grown from a handful of linters into 55 check- entries under infra/scripts/ — 45 guards plus 10 self-tests (coun…
  99. one-source-per-ui-primitiveTwelve gates, one doctrine: every visual primitive has exactly one definition, and a build-time guard makes the second one impossible. This is where the product's visual coherence …
  100. ordering-depended-upon-firstA rollout rule, and a rule about who decides the rollout.
  101. owner-facade-from-registryThe owner's agent (owner's own MCP client / Claude Code) must reach capabilities the same
  102. sandbox-js-hardeningOwner-authored skill scripts (skillrunscript, see skills-progressive-disclosure) are untrusted, so they run hard-sandboxed: --network=none (can't exfiltrate), --read-only root (can…
  103. structure-diagram-coverageThe pillar's class diagrams live on the design pages they belong to; this page is the coverage gate.
  104. subjectivity-record-notes-acl(was "Subjectivity owner-visibility (gate-one tightening)" — renamed: "owner" was the wrong frame. Nothing varies about owner visibility; the whole corpus is the owner's. What va…
  105. productWhat it's for, what it is, and the lines around it.
  106. boundariesStandMeet is not a job-seeking tool. Hiring is an obvious application (a recruiter pre-reads, then asks better follow-ups), but the owner's own use comes first — external brain, …
  107. design-principlesEvery design choice traces back to an articulated stance — that internal consistency is a hard requirement, not decoration.
  108. streaming-three-moves-synchronous-turnsStreaming processing has three moves: a bounded buffer, back-pressure, and degrade-first — shed model cost before dropping words. They are the standard answer when output must st…
  109. differentiationvs input tools (Notion / Glasp / Readwise). They solve input — highlighter, note-taker, journal. They don't solve retrieval-by-others-in-your-voice. A Notion page is prose a visi…
  110. introductionStandMeet inverts the compression. You curate a knowledge base of who you are and what you've actually done; then you — or a visitor — query it, and an AI answers in your voice…
  111. motivationWhy StandMeet has to exist — the problem, the seed insight, the timing, and the fit.
  112. ai-conversation-is-the-substrateThe seed insight, from lived experience: conversation with an LLM is now where substantive thinking actually happens. Explaining a complex view to Claude, you articulate it better …
  113. dont-repeat-myselfThe sharpest, most concrete pain — and the strongest evidence the product is real. An articulated thinker pays a steep cost being asked the same thing over and over:
  114. founder-product-fitSijie is the product's target user — not a marketing claim, an architectural advantage. Years of AI-conversation substance lost; LinkedIn under-represents him; friends find him h…
  115. interpretation-economyFor 25 years the internet ran on an attention economy — shout, get eyeballs, perform on LinkedIn. It's shifting to an interpretation economy: the whole web is filtered through wh…
  116. lossy-self-presentationThis bites hardest for a networked thinker — someone whose ideas live in a dense graph while every capture-and-delivery channel is stubbornly linear. Three losses compound:
  117. stiff-questions-soft-captureInterview-shaped questions — "tell me about a time you…" — are stiff: they retrieve episodes, and episodes cannot be crammed. Asked cold, even a person rich in stories answer…
  118. transaction-needs-differenceHiring — and most high-stakes first contact — is at bottom a transaction, and a transaction needs difference: a reason to pick you over the alternative. The résumé does the o…
  119. why-nowThree enablers converge:
  120. thesisThe loop: the user agentically curates the good parts of an AI conversation → pushes them to StandMeet via MCP → the corpus accumulates → the corpus serves multiple use cases…
  121. requirements-to-designThe missing middle between product and architecture — how the product surface decomposes into the seven pillars, traced BOTH ways: every promise to its engineering, every pillar …
  122. chain-explicit-pushNothing enters except what the owner deliberately curated and pushed; the private substrate becomes a durable public-facing layer only through deliberate acts.
  123. chain-hiringboundaries — hiring is an application on the foundation, explicitly NOT the product. transaction-needs-difference — a transaction needs difference; the résumé is lossy compre…
  124. chain-interpretationAnyone can ask a specific question and receive a specific answer phrased in the owner's voice, grounded and cited, framed for their role — one corpus, linearized per question per…
  125. chain-machine-readableinterpretation-economy — the web shifts from attention to interpretation economy: "they don't ask you — they ask an AI"; an agent won't fill gaps charitably, it needs structure…
  126. chain-owner-firstintroduction — "the first user is you — an external brain over your own thinking; others querying is a second surface". boundaries — "not a job-seeking tool; the owner's own …
  127. chain-selective-accessStatus: DEEPEST CHAIN — design finalized, heaviest tests.
  128. chain-sovereigntyintroduction — the corpus is yours to curate and push, never scraped; the act of attaching it is the trust boundary. design-principles — architectural prediction: individual + …