Files
conversation-history/SquareMCP/2026-06-13-chatgpt-living-brief-full-session-sanitized.md

8.3 KiB

ChatGPT Living Brief: Full Session Record (Sanitized)

Date: 2026-06-13 Status: Implemented and deployed; OAuth credential rotation remains required

This note preserves the substance of the ChatGPT session so the original conversation can be deleted. No access token, OAuth client secret, or other raw credential is included.

Product Decision

SquareMCP's strongest value is continuity across AI agents through a user-owned Obsidian vault. A user can begin work in ChatGPT, continue it in Claude or Claude Code, and avoid rebuilding project context across sessions.

The initial customer examples were:

  • Matthew has project history in ChatGPT that he wants available in Claude Code through Obsidian. Fragmented vendor context contributed to serious launch errors and a six-month delay.
  • Alex loses the history of why customer content was created and for whom, causing errors and lost customers.

The launch wedge selected was Matthew's use case:

Carry your project memory between ChatGPT and Claude through an Obsidian vault you own.

The product sequence is:

  1. Living Brief as the marketplace acquisition product.
  2. Communications after users repeatedly act from Living Brief context.
  3. Social Publisher after publishing workflows show repeat use.
  4. The complete SquareMCP product behind the focused entry product.

Monetization

Three approaches were reviewed:

  • Option A: separate OAuth clients with server-enforced capabilities.
  • Option B: focused schemas but broad token authority.
  • Option C: one shared OAuth client for every product.

Option A was selected because it supports buyer trust, product-level analytics, revocation, packaging, and future upgrades.

The initial offer discussed was:

  • First three months free.
  • Then a $5 per month founding price.
  • Early customers retain the founding price.
  • Full SquareMCP target price: $29 per month.

The GPT marketplace is a distribution channel. SquareMCP owns the subscription and underlying continuity service.

Engineering Decisions

Compatibility Contract

  • Existing schema URLs remain available.
  • Existing OAuth clients retain broad access.
  • Existing OAuth tokens continue working.
  • Existing users do not reconnect.
  • Existing Claude, ChatGPT, browser, CLI, app, API-key, and session connections retain their behavior.
  • Capability restrictions apply only to explicitly configured new clients.
  • Claude continues using its current generic MCP transport.
  • Living Brief uses a focused OpenAPI schema and a dedicated OAuth client.

Schema Contract

The existing /openapi-chatgpt.json contract is preserved. Focused products use new schema URLs.

Living Brief uses:

  • /openapi-living-brief.json
  • Obsidian-only operations
  • A dedicated OAuth client

Authorization Architecture

Before this work, OAuth accepted a requested scope but did not enforce route-level authorization. The approved additive design stores a nullable allowed_capabilities policy on oauth_clients.

Semantics:

  • SQL NULL: unrestricted legacy client
  • ["obsidian"]: Living Brief client
  • Empty array: explicitly no product capabilities
  • Other explicit arrays: future focused products

Tokens already contain client_id, so authorization resolves the current client policy through that relationship. Capabilities are not copied onto every token.

OAuth capability middleware protects these REST families:

Route family Capability
/api/obsidian/* obsidian
/api/email/* email
/api/whatsapp/* whatsapp
/api/linkedin/* linkedin
/api/telegram/* telegram
/api/discord/* discord
/api/instagram/* instagram
/api/twitter/* twitter
/api/facebook/* facebook
/api/tiktok/* tiktok

Null-policy legacy OAuth clients are allowed. Explicitly restricted clients must have the required capability. Unauthorized authenticated clients receive HTTP 403 insufficient_capability.

Global API keys, customer API keys, JWT sessions, and generic MCP transports retain their existing behavior.

Public dynamic client registration cannot assign capabilities to itself. Capability assignment requires a controlled operator action.

Living Brief Schema

The initial draft mistakenly included email. The final schema contains only:

  • Obsidian search
  • Obsidian note read
  • Obsidian note append
  • Obsidian note update through the shared note path
  • Obsidian sync status

Production count: four paths and five operations.

Implementation

The implementation handoff is:

SquareMCP/2026-06-13-option-a-capability-enforcement-kimi-handoff.md

Kimi CLI reported changes to:

  • src/db.ts
  • src/oauth.ts
  • src/index.ts
  • src/manifest.ts
  • OAuth, DCR, login-route, capability-route, and manifest tests

Reported verification:

  • TypeScript build passed.
  • 75 focused tests passed.
  • Full suite passed: 418 tests across 30 files.

Important process learning: implementation occurred on the server, whose repository absolute path differs from the workstation. Future handoffs must use repository-relative paths or first discover the target machine's repository path.

Production Deployment

Kimi CLI deployed the implementation to production MicroK8s:

  • Deployment: hermes-mcp
  • Namespace: fetcherpay
  • Production URL: https://hermes.squaremcp.com
  • Rollout completed successfully.

The immutable image digest is recorded in the dedicated deployment note and is not repeated here.

Live verification reported:

  • Health returned status: ok.
  • Tool count was 55.
  • /openapi.json returned HTTP 200.
  • /openapi-chatgpt.json returned HTTP 200.
  • /openapi-mail.json returned HTTP 200.
  • /openapi-social.json returned HTTP 200.
  • /openapi-living-brief.json returned four Obsidian-only paths and five operations.
  • A Living Brief token successfully searched Obsidian notes.
  • The same token received HTTP 403 on email.
  • The same token received HTTP 403 on Instagram.
  • A legacy null-policy OAuth token continued to access Obsidian, email, and Instagram.
  • The global API key continued to work on email.

Deployment documentation:

SquareMCP/2026-06-13-capability-enforcement-deploy.md

Security Incident

The new Living Brief OAuth client secret was pasted into the ChatGPT conversation and reportedly stored in the deployment vault note.

The secret is deliberately omitted here. Treat it as compromised. Deleting the conversation does not invalidate a credential that may have been copied, logged, cached, indexed, or retained elsewhere.

Required Remediation

  1. Rotate only the new Living Brief OAuth client secret.
  2. Update the Living Brief GPT Builder OAuth configuration.
  3. Redact the old secret from SquareMCP/2026-06-13-capability-enforcement-deploy.md.
  4. Search the vault, server logs, shell history, deployment transcripts, and repository for the old value without printing it into new output.
  5. Confirm the old secret no longer authenticates.
  6. Confirm the replacement secret completes the ChatGPT OAuth flow.
  7. Do not rotate or modify legacy Claude or ChatGPT credentials.
  8. Do not store the replacement secret in Obsidian, source control, ordinary logs, or chat.
  9. Append a sanitized rotation record to the deployment note without including either secret.

Acceptance Criteria

  • Old Living Brief credential fails.
  • Replacement credential succeeds in GPT Builder.
  • Existing legacy connections still work.
  • Living Brief remains Obsidian-only.
  • Vault notes contain no raw old or replacement secret.

Current State

  • Implemented: yes
  • Deployed: yes
  • Legacy compatibility verified: yes
  • Living Brief least privilege verified: yes
  • Remaining marketplace blocker: rotate the exposed Living Brief OAuth secret and sanitize the deployment record

Safe Server Handoff

Read these Obsidian notes:

- SquareMCP/2026-06-13-chatgpt-living-brief-full-session-sanitized.md
- SquareMCP/2026-06-13-capability-enforcement-deploy.md

Rotate the exposed Living Brief OAuth client secret. Do not print either the old
or replacement value. Update the production secret store and GPT Builder,
confirm the old credential fails and the replacement succeeds, verify legacy
connections remain unchanged, redact raw credentials from the deployment note,
and append a sanitized completion report. Use repository-relative paths or
discover the repository path on this server before editing.