NOTICE — agent-context-os
========================

This product is licensed under the GNU Affero General Public License v3.0
(see LICENSE).

Derived work and attribution
----------------------------

agent-context-os is a Rust re-implementation (copy-port) of the server-side
core capabilities of volcengine/OpenViking, pinned at upstream commit
94ff079f514f0803ae1777b17142586f8ed1df4c (vendored as the git submodule
at ./OpenViking for reference).

Inherited / derived components:

1. crates/ovcore (planned)
   Fork of OpenViking's crates/ragfs (Apache-2.0, (c) upstream
   contributors). Apache-2.0 code is included under its terms; the
   combined work remains AGPL-3.0.

2. engine-cpp / engine-shim (planned)
   Vendored from OpenViking's src/ C++ vector engine (AGPL-3.0, (c)
   Beijing Volcano Engine Technology Co., Ltd.), linked via a thin C ABI
   shim. SPDX headers preserved.

3. Ported Python -> Rust
   The business orchestration layer (ingestion, semantic layering,
   retrieval, assembly, sessions/memory, skills, snapshot) is a
   function-by-function translation of OpenViking's Python layer
   (AGPL-3.0, (c) Beijing Volcano Engine Technology Co., Ltd.).
   Ported files carry source-path and commit annotations in their
   headers, as required by our porting discipline (ADR-15).

4. Prompt templates and memory-type YAML definitions
   Reused verbatim from OpenViking
   (openviking/prompts/templates/, AGPL-3.0), snapshotted at
   contracts/golden/memory-types/.

Upstream project: https://github.com/volcengine/OpenViking

License scope
-------------
- The AGPL-3.0 license above covers this repository as a whole, including the
  sidecar binary (engine-cpp / leveldb / krl) and its platform packages.
- Exception: packages/client/ is an independent implementation of the HTTP
  protocol plus generated type declarations. It contains no code copied or
  translated from AGPL sources and is licensed under MIT (see
  packages/client/LICENSE). Any file derived from AGPL sources must live
  outside packages/client/.
- Decided (2026-09-13, product owner): the TypeScript declarations in
  packages/client/src/generated/ are ```type declarations``` generated from
  crates/agent-ctx-os-contract. They are not treated as a derivative work and
  are distributed under MIT together with the rest of packages/client/.
  Scope of this decision: type declarations only. The sidecar binary and its
  platform packages remain AGPL-3.0 (static engine-cpp/leveldb/krl link chain)
  and are unaffected; the releaseGate recorded in consumers' ctx-runtime locks
  applies to that component, not to this package.

SPDX policy
-----------
- Every inherited or translated source file keeps the upstream SPDX
  identifier and copyright notice.
- Translation-source annotations: `// ported-from: <upstream path>@<commit>`
  on ported files.
- This NOTICE must be distributed with the product.
