Files
AFFiNE/AGENTS.md
T
DarkSky dbe1e2f2c7 feat(native-playground): headless GPUI harness, variable Inter weights, web bundle, and CI gates
- Prune undeclared cfg gates in crates/ui and enforce unexpected_cfgs = deny
- Restore lean HeadlessPlatform driving real PlaygroundView via Window::draw()
  and Element::paint() FrameSnapshot capture (removing shadow scene builder)
- Restore PlatformWindow::draw invocation in Window::present for desktop and web
- Support OpenType variable-font 'wght' axis across CosmicTextSystem (Linux and
  WebAssembly) and AppleTextSystem (macOS CoreText) with Bold vs Regular advance
  width and rasterized ink unit test
- Bundle tracked Inter variable font in crates/playground across macOS, Linux,
  and WebAssembly; add minimal Web HTML harness and headless Chromium smoke test
- Unify animation time onto TestScheduler / BackgroundExecutor::now() and verify
  60/120/24/7 fps PlaygroundView pill transitions with identical terminal snapshots
- Add warm 30-frame steady-state bench with schema-aligned ci_wall_ms object,
  optional unmeasured v1 metric fields, and strict 40-hex commit resolution
- Commit Cargo.lock, enforce --locked in CI, harden check-invariants.sh link-flag
  check, align CI wasm-bindgen CLI with Cargo.lock, and keep AGENTS.md exact
2026-11-23 13:58:03 +09:00

1.7 KiB

Working on AFFiNE Native Playground (for agents)

These rules apply at repository root on the darksky/native-playground branch and topic branches under darksky/np/**. Subdirectory AGENTS.md files (notably blocksuite/native-playground/AGENTS.md) state narrower rules beside the code they govern.

Branch & CI workflow

  • Never merge to canary. Integration lands on darksky/native-playground only.
  • PR-less CI on push: Push topic branches matching darksky/np/** (or darksky/native-playground) to trigger .github/workflows/native-playground.yml directly. .github/workflows/build-test.yml ignores darksky/native-playground pull requests so unrelated legacy jobs stay silent.
  • Review council gate: Every topic branch requires at least 3 of 4 review council approvals before squash-landing onto darksky/native-playground.
  • Performance regression gate: Any CI benchmark metric regressing by more than 10% against the rolling N-3 baseline is routed to the dedicated performance guardian before landing.
  • Cargo rustflags isolation: Root .cargo/config.toml injects NAPI linker flags (-all_load, -undefined dynamic_lookup, -z nodelete) that Cargo concatenates into nested workspaces. Always build and test blocksuite/native-playground with CARGO_ENCODED_RUSTFLAGS="" in the environment.

Keeping rules true

  • When a change makes any statement, path, command, or invariant in an AGENTS.md file inaccurate, update that AGENTS.md in the same commit.
  • A new directory with rules of its own gets an AGENTS.md and a one-line CLAUDE.md containing @AGENTS.md.
  • Keep code, comments, workflows, AGENTS.md, and commit messages free of internal process-journal jargon.