Skip to content

About

[constellation] People connected through their agents — resident, reachable, metered services. · 以智能体相连的人——常驻、可达、可计量的服务。

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Wanxing (萬星)

Part of the Constellation line (寻数·萬星) — People connected through their agents — resident, reachable, metered services.

English · 简体中文

The standalone Constellation-line product among FindData's five lines (Yizuo / Lex / Wire / Facet / Constellation): the outward run-and-serve platform for agent services — deployment, residency, facade, billing, and fleet observation.

2026-10-04 decision: Wanxing independently phases out of paas (the repo hosting Yizuo + Facet). Positioning and ladder in ADR-0001; rollout plan in the program doc.

What this repo holds today

Component Status
wanxing facade (A2A facade + boundary settlement) services/wanxing-facade/ (19 modules, a standalone deploy unit, live sha-8692179)
fleet observation (event spine + rollup + observation API) services/fleet-observer/
stats-collector (local harness consumption collector) services/stats-collector/ (runs on the user's machine, no server deployment — by design)
wanxing-web (public catalogue + deployer console + docs facade) wanxing-web/ (wanxing.finddatatech.cloud, Leichi → Caddy → NodePort 31880)
agent-runner (multi-tenant runtime) paas borrowed boundary (2026-11-06 ruling: formally a borrowed contract, not migrated in; see ADR-0005)

Deploy source of truth: the GitOps repo fd-infra-deploy (all-services/prod/) + ArgoCD all-services-prod, see deploy/README.

Borrowed contracts (not owned here; accessed through explicit contracts)

Capabilities this repo borrows (Wanxing depends on others):

  • Facet registry (runtime truth + routing; paas ADR-0015) and the packs deploy ledger (packs internal API, re-pointable env)
  • sub2api billing surface (invocation keys / deploy keys / settlement)
  • agent-runner (multi-tenant runtime; a formal borrowed boundary since 2026-11-06)
  • Facet packs surface (deployer self-serve): FACET_BASE_URL / FACET_INTERNAL_TOKEN, called with forwarded identity
  • Shared workspace service (multi-agent shared disk + claim leases; paas shared-agent-workspace capability, HTTP service fd-workspace-service): WORKSPACE_SERVICE_URL / WORKSPACE_SERVICE_TOKEN; missing means an explicit degraded no-claim; never access its directory/database directly
  • Copilot skills: the formal source is two external repos — source text in finddata-skills (Gitee); the registry entry is only a projection; see ADR-0006

Public read surfaces this repo lends (others depend on Wanxing — changing shape requires a contract revision bump):

  • GET /api/wanxing/v1/agents — Facet supply spine, Wanxing ops MCP
  • GET /api/wanxing/v1/ops/usage — Yizuo owner cross-line view
  • GET /api/fleet/v1/board — Yizuo ops-console, Wanxing web console
  • GET /api/wanxing/v1/collections — public collection discovery (public summaries only, no credentials, no owner); consumed by the Wanxing web collections page
  • POST /api/wanxing/v1/a2a/<slug> — Wire ticket direct connect, Wanxing ops MCP, data-factory ticket chain
  • GET /copilot.js (source file wanxing-web/public/copilot.js) + the wx-copilot-* host protocol — Lex console copilot. Hosts must reference /copilot.js; writing /public/copilot.js returns 404 (before 2026-11-13 it was a 200 index.html, and a <script> receiving HTML dies silently)

Access sibling lines only through HTTP contracts with re-pointable env vars — hold this discipline and L3 (external private delivery) becomes discussable.

Variable addressing table (authoritative: services/wanxing-facade/env.js)

The same upstream has been named by different variable families across components, and the facade once had "one upstream, two code paths, two alias sets". All outbound reads now go through resolve() / resolveBase(), and this table is a mirror of that map: scripts/test-env-table.mjs checks both directions (every name here must be in env.js; every name in env.js must be here), so it cannot silently go stale. Canonical names win; aliases apply only when the canonical is empty.

Component Upstream Address (canonical → alias) Credential (canonical → alias)
facade registry AGENT_SERVING_REGISTRY_URL → REGISTRY_URL AGENT_SERVING_REGISTRY_TOKEN → MARKET_REGISTRY_TOKEN
facade registry (backend read) — AGENT_SERVING_BACKEND_TOKEN
facade packs ledger PACKS_INTERNAL_BASE_URL (defaults to this process's market) —
facade sub2api SUB2API_BASE_URL SUB2API_ADMIN_KEY
facade memory CELL_MEMORY_URL → FD_MEMORY_URL CELL_MEMORY_PLATFORM_TOKEN → FD_MEMORY_PLATFORM_TOKEN
facade facet packs surface FACET_BASE_URL FACET_INTERNAL_TOKEN
facade fleet observation FLEET_OBSERVER_URL FLEET_OBSERVER_TOKEN
facade shared workspace WORKSPACE_SERVICE_URL WORKSPACE_SERVICE_TOKEN
observer registry FLEET_REGISTRY_URL FLEET_REGISTRY_TOKEN
observer sub2api FLEET_STATS_SUB2API_BASE_URL → FLEET_STATS_SUB2API_BASE FLEET_STATS_SUB2API_TOKEN
observer event ingest — FLEET_INGEST_TOKEN
observer stats collection — FLEET_STATS_COLLECTOR_TOKEN
collector fleet observation OBSERVER_URL FSC_TOKEN

agent-runner has no address of its own: it is invoked through the registry proxy (marked proxied), so it does not appear above.

Machine-readable contract of the public surface

The consumed shape lives in contracts/wanxing-public-api.v1.json: the top-level x-contract-rev is the revision number, and each field's description in $defs names who consumes it.

  • Renaming, deleting, or changing the semantics of a consumed field (even with the same key) → must bump x-contract-rev and update both sides' shape validation.
  • Pure additions do not bump (consumers ignore unknown keys by design).
  • Every key emitted by the surface must be named: the validator only walks declared keys (JSON Schema allows unknown properties), so "extra fields" are invisible to it. contract.coverage() closes this blind spot — it runs four real payloads (catalogue, usage, fleet board, agent-card, two producer shapes for receipts) and red-flags any undeclared key. This is not fussiness: the repo previously had three same-class gaps found by human eyes before the criterion existed.
  • Sibling lines hold a byte-identical copy (paas/facet/contract/); cross-repo consistency is reconciled by the workspace-root scripts/check_wanxing_contract_drift.py (non-zero exit = drift).
  • The drift check compares working trees, so it naturally sees "branch not merged yet": when the paas side is on another branch, the default path reports missing consumer twin / bytes differ. That is a branch difference, not drift — point --consumer-dir at the worktree holding the new copy (it becomes consistent automatically once this repo's change lands on paas main).

Related

  • Mother repo: paas (Yizuo platform + Facet marketplace; its gateway/wanxing/ is the platform-domain twin face, with the detach plan in change unify-wanxing-a2a-face)
  • Brand and five-line language: ~/finddata/CONTEXT.md
  • One-pager (caller side): docs/wanxing-serving-api.md

About

[constellation] People connected through their agents — resident, reachable, metered services. · 以智能体相连的人——常驻、可达、可计量的服务。

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages