This directory keeps the current Bun-kernel contract. Active documentation is maintained as synchronized English .md and Chinese .zh.cn.md pairs. Retired, misleading, or superseded material is moved under old-docs/ with traceable file names.
Official homepage: https://flyflor.qingshen.xin
- boundaries.md - hard engineering boundaries, OOP + use composition, JSONC config, Bun binary constraints, and the zero-character-matching rule.
- architecture.md - philosophy layers, source ownership, context/ledger split, vascular socket boundary, prompt layering, and flyflor-cli relationship.
- directory.architecture.md - source owners, naming rules, and retired paths.
- runtime.turn.md - single-turn runtime flow from
/wsto Memory, Crystal, Executive, and events. - memory.system.md - constitution, hot memory, memory tree, recall, forgetting, vector offset, Scope, codename, ContextFork, Crystal, and
brain.db. - blackboard.md - routing, Blackboard workers, ASK handoff, current-turn deliberation, and query boundaries.
- crystal.reflection.md - Crystal reflection, Gem promotion, and drift repair.
- executive.exoskeleton.md - Capability / Tool / Trust / Loop, MCP, user tools, sidecars, subagents, approval, and the CLI tool-call closure.
- control.protocol.md -
/wscontrol protocol, snapshot matrix, thin-client bootstrap, and current CLI closure state. - ws.doc.md - field-level WebSocket manual and detail query matrix.
- runtime.events.md - event classes, timelines, and subscription surface.
- development.workflow.md - worktree/tmux/Codex collaboration flow.
- project.report.md - current architecture report.
- external.kit.md - read-only external kit discovery.
- external.tools.seal.md - external tool capability matrix and seal criteria.
- mcp.tools.md - MCP discovery, resources, prompts, and tool execution.
- sandbox.capabilities.md - sandbox, approval, and audit boundaries.
- skill.system.md - external
SKILL.mdcapability packages. - refactor.roadmap.md - sealed Bun-kernel roadmap and drift policy.
- openapi/flyflor.socket.openapi.md - Apifox-importable socket OpenAPI.
- apifox/README.md - Apifox WebSocket examples and local tester.
- ../TODO.md - active handoff and next work.
- Flyflor is the Bun + TypeScript intelligent-lifeform kernel. It is not a chat/session agent and not a CLI application.
- Mindstream is fluid intelligence: model calls, generation, route decisions, and turn-time reasoning.
- Memory is hot, scoped, and decaying. Crystal is reusable crystallized intelligence.
brain.dbis the ledger/query/replay/audit/detail store. Scopeis the explicit work domain.ContextForkis an explicit branch.codenameis an anchor/proposal/recall boost before scope promotion.- ASK closes uncertainty, scope promotion, fork merge conflict, crystallization gates, tool-loop pauses, and user decisions.
- Executive is the action exoskeleton. Tools, MCP, plugins, skills, sidecars, user tools, subagents, sandbox, quota, approval, and audit pass through it.
src/socketowns the vascular layer.gateway.*names remainflyflor.ws.v1wire compatibility strings only.- HTTP stays limited to
/wsand/health;/channelsis not restored.
flyflor-cli is an external Rust TUI shell. It consumes /ws envelopes, snapshots, and events; it must not become the kernel, memory owner, tool executor, prompt container, or ledger writer.
Current closure status:
- Kernel local smoke examples use
ws://127.0.0.1:8788/ws; the CLI default isws://127.0.0.1:8787/ws. UseFLYFLOR_WS_URLuntil defaults are unified. - The kernel exposes
server.helloandcapability.catalog.get; the CLI bootstrap requests the capability catalog. - Kernel context input supports
toolApprovals.mcpToolCallsandtoolApprovals.userToolCalls; the CLI exposes/approvefor one-turn non-YOLO approval and also documents/displays YOLO mode. - ASK typed-answer continuation is closed: plain replies such as
lint:fixorprettier:allcarry the latest pending ASK continuation metadata instead of starting a context-losing fresh turn. /undois a kernel command (gateway.message.undo). The CLI selects a user-message anchor; the kernel records append-only undo audit and abandons affected hot memory / ASK / continuation state without deletingbrain.db.- Model context-window display is kernel-authoritative when
gateway.status.snapshot.model.contextWindowTokensis present; the kernel resolves explicit config, provider model metadata, and fallback mapping before the CLI renders it.
old-docs/ stores historical material. The files can explain past decisions but cannot define the active runtime contract.
External Rust-shell references are archived only:
- old-docs/rust.integration.md
- old-docs/rust.connection.core.md
- old-docs/rust.gateway.shell.backlog.md
The active documentation snapshots archived on 2026-05-25 and 2026-05-26 live under dated old-docs/ subdirectories.
This heading is kept intentionally for the docs guard and for bilingual operators scanning the English index. These Rust-shell references remain external-only: