AGENT SKILL

Conscrypt 代码格式化

conscrypt-formatting

使用项目专用的格式化工具,自动格式化 Conscrypt 目录中的 C++、Java 和 C 源文件。当你修改了 `third_party/java/conscrypt/main_src/` 下的 C++、Java 或 C 文件,并需要在提交前确保其符合项目代码风格时使用。不适用于通用的 Google3 格式化(除非在 Conscrypt 中工作,否则请改用标准的 `g4 fix` 或 `hg fix`)。

License 许可
Apache-2.0
所属仓库
google/conscrypt
最近更新
2026-11-09
Stars
★ 1.4k
Forks
329

01 前言 Front Matter

name
pilotswarm-architecture
description
The shape of PilotSwarm — the pieces, how a turn flows through them, and the rules that constrain each layer.

03 SKILL.md 正文

PilotSwarm Architecture

A durable execution runtime for GitHub Copilot SDK agents, powered by duroxide (a Rust durable-orchestration engine). What durability buys: crash recovery, durable timers, session dehydration, multi-node scale-out.

Two runtime components

  • Client — creates sessions, sends prompts, subscribes to events. Lightweight, needs no GitHub token, handles only serializable data.
  • Worker — runs LLM turns, executes tool handlers, owns the Copilot runtime. Needs a GitHub token. Tools are registered here.

Both connect to the same PostgreSQL. Duroxide coordinates between them, which is why the client can hold no handler functions: everything crossing that boundary must survive a database round-trip.

The path of one turn

Client → duroxide orchestration → SessionProxy activity
       → SessionManager → ManagedSession → CopilotSession (Copilot SDK)

The rule that shapes everything: replay

The orchestration is a generator replayed from the beginning on every new event, so it must yield the identical sequence each time. Date.now(), Math.random(), crypto.randomUUID(), setTimeout, and any I/O are therefore banned inside it — the deterministic substitutes are ctx.utcNow(), ctx.newGuid(), ctx.scheduleTimer(), and activities. Changing the yield sequence creates a new orchestration version, which is why versions are frozen rather than edited.

Storage

Session state lives in the CMS (copilot_sessions schema); facts live in their own schema. All data access goes through stored procedures with versioned migrations applied under advisory locks, so concurrent workers can start safely against the same database.

Composition

A session can spawn sub-agents, each its own session with its own conversation and tools, running concurrently under a parent. Capability arrives as agent packages: a manifest plus agents, skills, worker tools, and MCP servers.