Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,25 @@ Maintainers curate `good first issue` items:
- A maintainer leaves a short "where to start" note in the issue.
- If the issue turns out larger than advertised, say so and split it rather than leaving a newcomer stuck.

## Developer Certificate of Origin (DCO)

Xazz uses the [Developer Certificate of Origin](https://developercertificate.org/)
instead of a CLA. It is lightweight: by signing off your commits you certify that
you wrote the change or otherwise have the right to submit it under the project's
license.

- Sign off every commit with `git commit -s`, which appends:

```
Signed-off-by: Your Name <you@example.com>
```

The name and email must be real and match the commit author.
- To sign off a branch you already committed, use `git rebase --signoff main` (or
`git commit --amend -s` for the last commit).
- CI enforcement is planned as a check on pull-request commits; until it lands,
reviewers ask for the sign-off during review. Dependabot commits are exempt.

## Releasing

Release cadence, the checklist, and the release-note template live in [docs/RELEASING.md](docs/RELEASING.md).
Expand Down
23 changes: 23 additions & 0 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,29 @@ and is expected to evolve as the contributor base grows.
The current maintainer is the project author (`@x1zzdev`). Additional maintainers
are added from sustained, high-quality contributors.

## Contributor ladder

Roles are earned by doing the work, not by asking for the title. The rungs and
the promotion criteria are:

| Level | What they do | How they get there |
|-------|--------------|--------------------|
| **User** | Bug reports, feature requests, discussions, usability feedback. | — |
| **Contributor** | File issues, open PRs, join Discussions. | First merged pull request. |
| **Regular contributor** | Repeated reviewed contributions; help triage issues and review others' PRs. | A track record of merged PRs and useful reviews. |
| **Reviewer** | Review PRs in an area and approve them. | Nominated by a maintainer after sustained ownership of an area. |
| **Maintainer** | Merge rights, releases, security triage, roadmap. | Invited by existing maintainers. |

Promotion is proposed in the contributor's area of ownership and recorded when
the role changes. `CONTRIBUTING.md` holds the contributor-facing version of this
ladder.

## Developer Certificate of Origin

All contributions are accepted under the [Developer Certificate of Origin](https://developercertificate.org/),
not a CLA. Commits must carry a `Signed-off-by` line (`git commit -s`); see
[`CONTRIBUTING.md`](CONTRIBUTING.md#developer-certificate-of-origin-dco).

## Decision making

- **Lazy consensus:** most changes proceed if no blocking objection is raised on
Expand Down
5 changes: 5 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ Copyright 2026 Jangseowoo (ax1s.xazz.com) and the Xazz contributors

This product is licensed under the Apache License, Version 2.0 (see LICENSE).

Commercial code keys (where offered) are evidence of a support/distribution
contract only. They do not restrict the rights Apache-2.0 grants to the source:
use, reproduction, modification and distribution of the source follow LICENSE
alone, with or without a key. See docs/design/licensing.md.

This product includes third-party open-source software. The authoritative,
machine-checked dependency set lives in Cargo.lock and visual-ide/package-lock.json;
its licenses are enforced in CI by cargo-deny (deny.toml) and enumerated in the
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ Every image below is captured from this repository: the binaries in `target/rele

---

## Examples

Runnable `.xzz` pipelines live in [`examples/`](examples/README.md) — from the smallest bar chart to differential privacy, Burn training, DuckDB/PostgreSQL sources, and the security guardrail demos. The index lists each example's command and data prerequisites (Git LFS data, generators, or a local database). CI checks and runs all of them in the `Example smoke` job.

---

## Architecture

Xazz is a modularized Rust workspace. The CLI stays a 2–5 MB binary; heavyweight engines live behind the `xazz-runner` subprocess boundary.
Expand Down Expand Up @@ -249,7 +255,7 @@ Same 4-stage pipeline (drop nulls → dual filter → group-by aggregates → fi
</div>

- **Faster at every scale**: 2.04× vs pandas at 228K rows (76 ms vs 155 ms), 3.84× at 912K rows (143 ms vs 548 ms) and 2.14× at 4.09M rows (1,148 ms vs 2,457 ms) — with lower peak RSS at every scale (405 MB vs 635 MB at 4.09M rows). The gap is widest at 912K rows and narrows again at 4.09M rows.
- Both sides are measured as **pipeline execution only** — the Python interpreter boot (~0.3–0.7 s) is excluded from pandas, and Xazz reports its own `[xazz:timing]` pipeline marker, so the comparison is apples-to-apples. Peak RSS uses the process tree for both engines.
- Both sides are measured as **pipeline execution only** — the Python interpreter boot (~0.3–0.7 s) is excluded from pandas, and Xazz reports its own `[xazz:timing]` pipeline marker, so the comparison is apples-to-apples. Peak RSS uses the process tree for both engines. Xazz's marker also excludes the `xazz-runner`/`xazz-exec` process spawn and boot, so at the smallest (228K) scale the reported pipeline figure is smaller than the wall time you would see from a shell; the benchmark records that startup delta separately (`startup_ms`) so a rerun keeps it visible.
- Source comes from Apache Arrow columnar memory + Polars LazyFrame query optimization + multithreaded native execution.
- **Out-of-core execution:** `load()` now returns a lazy scan (`scan_csv`/`scan_parquet`/`scan_ipc`), so sources stay on disk until the terminal collect — no full-file materialization upfront. For very large workloads set `XAZZ_STREAMING=1` to collect through Polars' streaming engine (unsupported plans fall back to in-memory automatically). See [docs/ROADMAP.md](docs/ROADMAP.md) Track A2.
- Honest footnote: Polars' multithreading trades higher peak RSS for latency — pandas holds more rows per thread, Polars parallelizes across them. Note the benchmark data itself is not committed (it is built from the Seoul air-quality sources).
Expand Down Expand Up @@ -281,7 +287,7 @@ python benches/run_readme_benchmark.py --xlarge

## Security & Privacy

**Policy-as-Code guardrails** scan the pipeline *before* execution — PII patterns (RRN, phone, card numbers with Luhn validation), secrets, and custom rules. Violations are blocked with structured JSON reports; an optional local sLM hook (Ollama, e.g. Qwen2.5-Coder) proposes safe corrections that are re-verified by the same policy engine before adoption — your code stays on the machine by default. See [docs/SECURITY_GUARDRAIL.md](docs/SECURITY_GUARDRAIL.md).
**Policy-as-Code guardrails** scan the pipeline *before* execution — PII patterns (RRN, phone, card numbers with Luhn validation), secrets, and custom rules. Violations are blocked with structured JSON reports; an optional local sLM hook (Ollama, e.g. Qwen2.5-Coder) proposes safe corrections that are re-verified by the same policy engine before adoption — your code stays on the machine by default. See [docs/SECURITY_GUARDRAIL.md](docs/SECURITY_GUARDRAIL.md). The regulatory basis attached to each rule is an audit-trail reference, **not legal advice**; the mapping priority, coverage/confidence and verification procedure are in [docs/design/regulatory-mapping.md](docs/design/regulatory-mapping.md).

**Differential privacy** — Laplace/Gaussian mechanisms with ε **and δ** composition accounting. Each query records `(εᵢ, δᵢ)`; `PrivacyBudget` accumulates `Σεᵢ`, `Σδᵢ` and refuses queries that would exceed either budget. Budget state is visible in the IDE monitor. See [docs/design/dp-spec.md](docs/design/dp-spec.md).

Expand Down Expand Up @@ -335,6 +341,8 @@ python benches/run_readme_benchmark.py --xlarge
| `xazz sanitize` | Fine-tuning data sanitization — PII scan, duplicate & bias checks (Track F3) | Stable |
| Model provenance | Policy registry gate — `hf://` model references, license/unknown-weights blocking (Track F5) | Stable |

> **Note on `--tenant`.** The tenant-scoped commands above (`xazz registry`, `xazz policy-status`, `xazz policy-ttl`, `xazz dp`) accept `--tenant`, but when the server runs in single-token mode (`XAZZ_SERVER_TOKEN`) it ignores `X-Xazz-Tenant` and operates on an empty tenant — so `--tenant` is accepted but has no effect. The flag stays accepted for forward compatibility; see [docs/SERVER.md](docs/SERVER.md).

---

## Limitations & Non-goals
Expand All @@ -346,7 +354,7 @@ Xazz is pre-1.0. We would rather state what is **not** verified than let you dis
- `burn-cuda` compiles and fails closed to CPU when no driver is present, but its gated parity test has **not** run on a CUDA-driver host yet.
- ONNX Runtime export/inference is wired, but its gated acceptance test has **not** passed on a standard toolchain: `ort-sys` ships prebuilt binaries only for `*-windows-msvc` (the Windows GNU toolchain fails), and the macOS `coreml` run is pending. See [docs/GPU_BACKENDS.md](docs/GPU_BACKENDS.md).
- **No native Python extension yet.** `import xazz` is a pure-Python adapter over the CLI, not a PyO3 module — it returns the same diagnostics as the CLI but pays a subprocess boundary. The PyO3 path and the NumPy/Pandas → Arrow handoff are deferred. See [docs/ROADMAP.md](docs/ROADMAP.md) Track C4.
- **`xazz emit rust` is a reference emitter, not a second runtime.** New language features land in `xazz-exec` first; the emitted Rust can lag on some training options (e.g. single-run `validation_split` / early stopping, per-epoch sweep columns). `xazz run` is the source of truth — treat the emitted code as readable reference output.
- **`xazz emit rust` is a reference emitter, not a second runtime.** New language features land in `xazz-exec` first; the emitted Rust can lag on some training options (e.g. single-run `validation_split` / early stopping, per-epoch sweep columns). `xazz run` is the source of truth — treat the emitted code as readable reference output. When the pipeline trains or predicts, the generated file also needs the `serde_json` crate, and a `predict` stage additionally reads the `checkpoints/<Model>.stats.json` sidecar written during training — running that file on its own without the sidecar fails. The generated header lists the required Cargo dependencies; the exact output shape is pinned by the emitter tests in `xazz-compiler/src/emitter.rs`.
- **The container image and clean-host smoke are pending the next tag.** The `Dockerfile` and `docker compose up` demo work from a local build, but the GHCR multi-arch image is published only on a `v*` tag, and the [clean-host smoke checklist](docs/DOCKER.md#smoke-checklist-clean-host) has not been recorded against a published tag yet.
- **Benchmarks are single-host.** The numbers in [Performance](#performance) are provenance-stamped but come from one Windows laptop; they have not been reproduced on a second host or on Linux/macOS yet, so read the ratios as representative, not as a guarantee.
- **Not a sandbox.** `xazz-runner` is process isolation with an execution timeout, not an OS-level sandbox. Policy-as-Code blocks known-bad pipeline shapes before execution; see [docs/SECURITY_GUARDRAIL.md](docs/SECURITY_GUARDRAIL.md) for the `PATH`-shadowing deployment caveat.
Expand Down
2 changes: 1 addition & 1 deletion README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[English](README.md) · [한국어](README_kr.md) · [日本語](README_ja.md) · [简体中文](README_zh.md)

> 翻訳ステータス: [英語版 README](README.md) の `e8db438` (2026-09-24) を基にした入門用の要約です。機能やコマンドの最新情報は英語版を確認してください。更新方法は[翻訳ガイド](docs/TRANSLATING.md)にあります。
> 翻訳ステータス: ⚠ この翻訳は古くなっている可能性があります。[英語版 README](README.md) の `e8db438` (2026-09-24) を基にした入門用の要約で、以降の変更(「Limitations & Non-goals」セクション、DuckDB/Polars の比較、[examples インデックス](examples/README.md))は反映されていません。機能やコマンドの最新情報は英語版を確認してください。更新方法は[翻訳ガイド](docs/TRANSLATING.md)にあります。

Xazz は Rust で実装された AI パイプライン向けのガバナンス層です。`.xzz` スクリプトを実行前に解析し、型・null 値・セキュリティポリシーを確認します。データ処理には Polars、学習には Burn を使用します。

Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[English](README.md) · [한국어](README_kr.md) · [日本語](README_ja.md) · [简体中文](README_zh.md)

> 翻译状态:本文是根据[英文 README](README.md) 的 `e8db438`(2026-09-24)编写的入门摘要。功能和命令的最新说明以英文版为准。更新流程见[翻译指南](docs/TRANSLATING.md)。
> 翻译状态:⚠ 本翻译可能已过时。本文是根据[英文 README](README.md) 的 `e8db438`(2026-09-24)编写的入门摘要,尚未反映其后的变更(“Limitations & Non-goals”章节、DuckDB/Polars 对比、[示例索引](examples/README.md))。功能和命令的最新说明以英文版为准。更新流程见[翻译指南](docs/TRANSLATING.md)。

Xazz 是用 Rust 构建的 AI 流水线治理层。它在运行 `.xzz` 脚本之前检查类型、空值和安全策略;数据处理使用 Polars,模型训练使用 Burn。

Expand Down
50 changes: 50 additions & 0 deletions TRADEMARK.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Trademark Policy

The Apache-2.0 license covers the **source code** of Xazz. It does **not** grant
rights to the Xazz name or logo. This policy explains what you may and may not do
with the project's marks.

## Marks

- The name **"Xazz"** and the Xazz logo.
- Related word marks used by the project (for example "xazz-guardrail" for the
reference model).

These are trademarks of the project author (`Jangseowoo`, `ax1s.xazz.com`). The
Apache-2.0 grant in [`LICENSE`](LICENSE) does not imply any trademark license.

## You may (no permission needed)

- Use the name to refer to the project truthfully: "built with Xazz", "an Xazz
pipeline", "Xazz 0.4".
- Redistribute unmodified copies of the software under the name Xazz.
- Use the name in articles, talks, tutorials, and comparisons, as long as you do
not imply endorsement.

## You may not (without written permission)

- Use the marks in a way that suggests your fork or product **is** the official
Xazz, or is endorsed by the project.
- Use the marks in a company, product, or domain name in a way that is likely to
confuse users about the source of the software.
- Modify the software and continue to call the result "Xazz" without marking it
as a modified fork (for example, "Xazz — FooCorp fork").

## Forks

A fork may keep the name only while it is a faithful redistribution. If you
change behavior, add features, or ship it as part of a product, use your own name
and add a clear notice such as "Based on Xazz, an independent fork; not
affiliated with the Xazz project."

## Reporting misuse

Open an issue or contact the maintainer (see [`SECURITY.md`](SECURITY.md) for the
private channel). We prefer to resolve trademark questions by clarification
first.

## Relationship to the license

This policy governs names and branding only. It does not change, and is not a
condition of, the rights granted by Apache-2.0 for the source code. See
[`docs/design/licensing.md`](docs/design/licensing.md) for the licensing boundary.
13 changes: 10 additions & 3 deletions benches/run_readme_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,13 @@ def summarize(runs: list[dict]) -> dict:
latency = round(statistics.median(run["latency_ms"] for run in runs), 1)
if latency <= 0:
raise RuntimeError("지연 중앙값을 기존 0.1ms 결과 해상도로 표현할 수 없습니다")
return {"latency_ms": latency,
"peak_mb": round(statistics.median(run["peak_mb"] for run in runs), 1), "runs": runs}
result = {"latency_ms": latency,
"peak_mb": round(statistics.median(run["peak_mb"] for run in runs), 1), "runs": runs}
# xazz 실행에만 있다 — wall-clock에서 파이프라인 마커를 뺀 러너 스폰/부팅 비용.
startups = [run["startup_ms"] for run in runs if "startup_ms" in run]
if startups:
result["startup_ms"] = round(statistics.median(startups), 1)
return result


def parse_xazz_collections(stdout: str, streaming: str) -> list[dict]:
Expand Down Expand Up @@ -287,7 +292,7 @@ def bench_xazz(csv: Path, *, xazz_bin: Path = XAZZ_BIN, streaming: str = "auto",
warmup_collections = []
try:
for index in range(runs + 1):
_, peak, stdout = measure_tree([str(xazz_bin), "run", script.name], csv.parent,
wall_ms, peak, stdout = measure_tree([str(xazz_bin), "run", script.name], csv.parent,
capture=True, env={"XAZZ_BACKEND": "cpu", "XAZZ_STREAMING":
{"auto": None, "on": "1", "off": "0"}[streaming],
"XAZZ_COLLECT_DIAGNOSTICS": "1",
Expand All @@ -300,6 +305,8 @@ def bench_xazz(csv: Path, *, xazz_bin: Path = XAZZ_BIN, streaming: str = "auto",
collections = parse_xazz_collections(stdout, streaming)
if index:
samples.append({"latency_ms": latency, "peak_mb": peak,
"wall_ms": wall_ms,
"startup_ms": max(0.0, wall_ms - latency),
"fallback_to_wallclock": False, "collections": collections})
else:
warmup_collections = collections
Expand Down
8 changes: 7 additions & 1 deletion docs/SECURITY_GUARDRAIL.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
> Xazz statically detects and blocks PII leaks and security-compliance violations **before** a `.xzz` pipeline runs. The Type Checker asks "does this code run?"; the guardrail asks "is it safe to run this code?"

Related: [ARCHITECTURE.md](ARCHITECTURE.md) · [WORKSPACE.md](WORKSPACE.md) ·
[design/security-model.md](design/security-model.md) · [experiments/slm_guardrail](../experiments/slm_guardrail/README.md)
[design/security-model.md](design/security-model.md) · [design/regulatory-mapping.md](design/regulatory-mapping.md) · [experiments/slm_guardrail](../experiments/slm_guardrail/README.md)

> ⚠️ The regulatory basis recorded in each violation's `source_ref` is an
> **audit-trail reference, not legal advice**. The framework priority order,
> per-reference coverage/confidence, and the verification procedure live in
> [design/regulatory-mapping.md](design/regulatory-mapping.md). Override the
> basis per organization with `rule_source_refs` in the policy file.

---

Expand Down
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- [Service blueprint](design/service-blueprint.md)
- [Alternatives considered](design/alternatives.md)
- [Licensing](design/licensing.md)
- [Regulatory mapping](design/regulatory-mapping.md)
- [Asset ledger](design/asset-ledger.md)
- [IDE governance brief](design/ide-governance-brief.md)
- [Review & verification](design/review-verification.md)
Expand Down
4 changes: 4 additions & 0 deletions docs/design/licensing.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Xazz의 소스는 Apache-2.0이다. 제품화 시 상용 배포에 부여하는
상업 권리는 계약(법적)으로, 소스 오픈은 Apache-2.0으로 별도 표기한다.
- 향후 중앙 호스팅 검증(옵션 2)은 호스팅 계획이 설 때 별도 문서에서
정의한다. 그 전까지 서버 쪽 검증은 구현하지 않는다.
- **키는 Apache-2.0이 부여한 권리를 제약하지 않는다.** 사용·복제·수정·배포는
키의 유무와 무관하게 `LICENSE`(Apache-2.0) 조건만 따른다. 키는 상용 지원·배포
계약의 **증거**일 뿐, 소스 라이선스를 좁히는 장치가 아니다. `NOTICE`도 같은
경계를 표기한다.

## 배포

Expand Down
Loading
Loading