Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
d230299
fix(ontogeny): escape graph tooltips and preserve edge arrows
Oct 29, 2026
e14fb7a
fix(ontogeny): generate unique bootstrap admin credentials
Oct 29, 2026
d78efaf
fix(ontogeny): authorize source reads and contain function paths
Oct 29, 2026
25c2be3
fix(ontogeny): restrict agent sessions to their drivers
Oct 29, 2026
b4310f5
chore(ontogeny): require Python 3.12 and enable frontend lint in CI
Oct 29, 2026
9587b77
docs: restore HugeGraph AI overview and add Ontogeny entry
Oct 29, 2026
c07732a
fix(ontogeny): validate staged builder changes and roll back failed p…
Oct 29, 2026
c25f5f3
fix(ontogeny): authorize approval decisions before changing state
Oct 29, 2026
d25d6e6
fix(ontogeny): store bootstrap credentials privately instead of loggi…
Oct 29, 2026
691584b
fix(ontogeny): preserve watermark boundaries and quarantined objects
Oct 29, 2026
121ca7e
fix(ontogeny): enforce field markings on query predicates
Oct 29, 2026
54fceb0
fix(ontogeny): commit restored evolution state before reloading
Oct 29, 2026
447f5f2
fix(ontogeny): persist generated IDs and check revision preconditions
Oct 29, 2026
8f75785
fix(ontogeny): isolate scripted agent evaluations from live writes
Oct 29, 2026
e87ac74
fix(ontogeny): make agent execution atomic and freeze session claims
Oct 29, 2026
f37ad12
fix(ontogeny): persist derivation retries and quarantine required nulls
Oct 29, 2026
721d78f
fix(ontogeny): isolate user state and preserve edits during saves
Oct 29, 2026
2e646bc
fix(ontogeny): align deployment defaults and documented startup flows
Oct 29, 2026
cce4272
test(ontogeny): gate PostgreSQL concurrency and clean up test resources
Oct 29, 2026
47b5821
fix(ontogeny): detect standalone GraphSpace APIs without masking fail…
Oct 29, 2026
13eafde
fix(ontogeny): verify live 1.8 projection and stabilize audit checks
Oct 29, 2026
2a2a382
test(ontogeny): cover idempotent HugeGraph deletion responses
Oct 29, 2026
38c9fc2
fix(ontogeny): stream consistent snapshots and serialize native sourc…
Oct 29, 2026
7df6ae2
fix(ontogeny): preserve declared properties and ordered action effects
Oct 29, 2026
a6a6ef0
fix(ontogeny): reject sensitive markings on public object keys
Oct 29, 2026
697841b
fix(ontogeny): manage automatic outbox delivery through server lifespan
Oct 29, 2026
ad3ec49
test(ontogeny): gate snapshot and action ordering on PostgreSQL
Oct 29, 2026
bf6f9e4
test(ontogeny): assert declared names after schema promotion
Oct 29, 2026
4dcae81
fix(ontogeny): default bootstrap password to six digits
Oct 29, 2026
27a5ec7
fix(ontogeny): acknowledge outbox deliveries independently of commit …
Oct 29, 2026
53dd420
fix(ontogeny): enforce unique live business keys in the database
Oct 29, 2026
d979f46
fix(ontogeny): preserve HTTP parameters during deployment reference r…
Oct 29, 2026
44efa18
fix(ontogeny): evaluate derived properties in dependency order
Oct 29, 2026
43c5d11
docs(ontogeny): describe delivery migration and gate concurrency regr…
Oct 29, 2026
d394c89
fix(ontogeny): validate function effects and preserve action event se…
Oct 29, 2026
db52c0d
fix(ontogeny): resolve deployment credentials in HTTP headers
Oct 29, 2026
e708810
fix(ontogeny): restore typed PostgreSQL watermark checkpoints
Oct 29, 2026
71794ab
fix(ontogeny): allow initial writes before required derivations mater…
Oct 29, 2026
39a598c
fix(ontogeny): reject domains that share materialized table names
Oct 29, 2026
dc4a955
docs(ontogeny): document domain and derivation boundaries with CI reg…
Oct 29, 2026
3341a14
fix(ontogeny): serialize changes to active administrators
Oct 29, 2026
054bc7e
fix(ontogeny): validate only active Cedar statements
Oct 29, 2026
6f34102
fix(ontogeny): isolate batch function stdout from the JSON protocol
Oct 29, 2026
605c23d
fix(ontogeny): enforce response limits during HTTP streaming
Oct 29, 2026
d8a8bc2
fix(ontogeny): coerce object keys before database comparisons
Oct 29, 2026
b6ec2ed
fix(ontogeny): reconcile snapshots using complete business keys
Oct 29, 2026
1c99d0d
test(ontogeny): gate typed keys and administrator concurrency on Post…
Oct 29, 2026
379ca22
fix(ontogeny): evaluate approval policies against unmasked state
Oct 29, 2026
13295c6
fix(ontogeny): align idempotency constraints with action and principa…
Oct 29, 2026
04ad401
fix(ontogeny): encode nested temporal values in typed JSON columns
Oct 29, 2026
97f2d20
fix(ontogeny): bound sandbox frames and preserve query sorting
Oct 29, 2026
20df60f
fix(ontogeny): commit schemas before installing runtime snapshots
Oct 29, 2026
1e5e918
test(ontogeny): gate lifecycle schemas and authorization contracts on…
Oct 29, 2026
f99a327
fix(ontogeny): preserve derived policy values and target rollback fau…
Oct 29, 2026
3f8e82d
fix(ontogeny): preserve large sandbox input and query reply contracts
Oct 29, 2026
7088c08
feat(ontogeny): document intelligence subsystem and platform wiring
simon824 Nov 1, 2026
420d505
feat(ontogeny): chip-lifecycle golden domain; retire product-manufact…
simon824 Nov 1, 2026
65cb004
feat(ontogeny): kind taxonomy docs, Python 3.12+ floor, selective-CI …
simon824 Nov 1, 2026
3958aaa
merge mainline ontogeny (e3b98ec): hardening wave + document intellig…
simon824 Nov 1, 2026
0e0b6ab
chore(license): add ASF headers to the new domain/fixture/tool sources
simon824 Nov 1, 2026
84d2b5d
fix(ontogeny): address runtime and ingestion review findings
imbajin Nov 8, 2026
066a796
fix(ontogeny): index pending outbox deliveries safely
imbajin Nov 8, 2026
bef3b92
fix(ontogeny): scope document identities by store
imbajin Nov 8, 2026
194762c
fix(ontogeny): preserve scoped extraction evidence and mappings
Nov 8, 2026
7adaefa
fix(ontogeny): enforce denies and retain document provenance
Nov 8, 2026
f2b36f0
fix(ontogeny): retract withdrawn document relationships
Nov 8, 2026
6159666
fix(ontogeny): retain relationships outside extraction scope
Nov 8, 2026
d97afa1
fix(ontogeny): handle incomplete historical replay safely
imbajin Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
sdk: ${{ steps.select.outputs.sdk }}
llm: ${{ steps.select.outputs.llm }}
mcp: ${{ steps.select.outputs.mcp }}
ontogeny: ${{ steps.select.outputs.ontogeny }}
quality: ${{ steps.select.outputs.quality }}
dependencies: ${{ steps.select.outputs.dependencies }}
codeql: ${{ steps.select.outputs.codeql }}
Expand All @@ -55,6 +56,7 @@ jobs:
sdk-pythons: ${{ steps.select.outputs.sdk-pythons }}
llm-pythons: ${{ steps.select.outputs.llm-pythons }}
mcp-pythons: ${{ steps.select.outputs.mcp-pythons }}
ontogeny-pythons: ${{ steps.select.outputs.ontogeny-pythons }}
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -133,6 +135,14 @@ jobs:
server-image: ${{ needs.preflight.outputs.server-image }}
version: ${{ needs.preflight.outputs.version }}

ontogeny:
needs: preflight
if: needs.preflight.outputs.ontogeny == 'true'
uses: ./.github/workflows/ontogeny.yml
with:
python-versions: ${{ needs.preflight.outputs.ontogeny-pythons }}
primary-python: ${{ needs.preflight.outputs.python-version }}

dependencies:
needs: preflight
if: >-
Expand All @@ -159,7 +169,7 @@ jobs:
result:
name: CI Result
if: always() && (github.event_name != 'schedule' || github.repository == 'apache/hugegraph-ai')
needs: [preflight, quality, client, sdk, llm, mcp, dependencies, codeql]
needs: [preflight, quality, client, sdk, llm, mcp, ontogeny, dependencies, codeql]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down
110 changes: 0 additions & 110 deletions .github/workflows/ontogeny-ci.yml

This file was deleted.

177 changes: 177 additions & 0 deletions .github/workflows/ontogeny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# Ontogeny module gate: backend tests, frontend suite, full-stack integration,
# plus the stage-1 zero-coupling invariant (this module must not import
# upstream hugegraph-llm/hugegraph-ml until the step-2 feature merge lands).
# Reusable: selected by scripts/ci.py from changed paths.
name: "Ontogeny CI"

on:
workflow_call:
inputs:
python-versions:
description: JSON list of Python runtimes for the backend matrix
required: true
type: string
primary-python:
description: Primary runtime for the integration job
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
backend:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ${{ fromJSON(inputs.python-versions) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install
working-directory: ontogeny
run: |
python -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -e '.[mcp]' pytest pytest-asyncio httpx
- name: Zero-coupling gate (stage 1)
working-directory: ontogeny
run: |
# `! git grep` under bash -e can never fail; assert explicitly instead
if git grep -qnE '^[[:space:]]*(from|import)[[:space:]]+(hugegraph_llm|hugegraph_ml|pyhugegraph|vermeer)' -- server extensions tests tools; then
echo "::error::ontogeny imports upstream modules -- stage 1 must stay decoupled"
exit 1
fi
- name: ASF header presence
working-directory: ontogeny
run: |
# Belt to the repository-wide licenserc check: fail when any module
# source file lacks the ASF license header. Written with an explicit loop so
# no `|| true` / `!` can mask the exit status (grep -L inverts it).
failed=0
while IFS= read -r f; do
if ! grep -q "Licensed to the Apache Software Foundation" "$f"; then
echo "::error file=$f::missing the ASF license header"
failed=1
fi
done < <(find server extensions tests tools web/src -type f \( -name '*.py' -o -name '*.ts' -o -name '*.tsx' -o -name '*.sh' -o -name '*.yaml' -o -name '*.yml' -o -name 'Dockerfile' \) 2>/dev/null)
exit "$failed"
- name: Tests
working-directory: ontogeny
run: .venv/bin/pytest -q

frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: ontogeny/web/package-lock.json
- name: Install
working-directory: ontogeny/web
run: npm ci
- name: Type check
working-directory: ontogeny/web
run: npx tsc --noEmit -p tsconfig.app.json
- name: Lint
working-directory: ontogeny/web
run: npm run lint
- name: Unit tests
working-directory: ontogeny/web
run: npx vitest run
- name: Build
working-directory: ontogeny/web
run: npm run build

postgres:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.primary-python }}
- name: Install backend with PostgreSQL support
working-directory: ontogeny
run: |
python -m venv .venv
.venv/bin/pip install -e '.[postgres,mcp]' pytest pytest-asyncio httpx
- name: Start temporary PostgreSQL
run: |
export POSTGRES_PASSWORD="$(python -c 'import secrets; print(secrets.token_hex(24))')"
docker run -d --rm --name ontogeny-ci-postgres \
-e POSTGRES_USER=ontogeny -e POSTGRES_PASSWORD -e POSTGRES_DB=ontogeny \
-p 127.0.0.1::5432 postgres:16 >/dev/null
for attempt in $(seq 1 30); do
if docker exec ontogeny-ci-postgres pg_isready -U ontogeny >/dev/null 2>&1; then
break
fi
if [ "$attempt" -eq 30 ]; then
echo 'PostgreSQL did not start' >&2
exit 1
fi
sleep 1
done
port="$(docker port ontogeny-ci-postgres 5432/tcp | cut -d: -f2)"
umask 077
printf '%s' "$POSTGRES_PASSWORD" > "$RUNNER_TEMP/ontogeny-postgres-password"
printf '%s' "$port" > "$RUNNER_TEMP/ontogeny-postgres-port"
- name: PostgreSQL concurrency tests
working-directory: ontogeny
run: |
audit_password="$(cat "$RUNNER_TEMP/ontogeny-postgres-password")"
audit_port="$(cat "$RUNNER_TEMP/ontogeny-postgres-port")"
export ONTOGENY_PG_DSN="postgresql+asyncpg://ontogeny:${audit_password}@127.0.0.1:${audit_port}/ontogeny"
set -o pipefail
.venv/bin/pytest -q tests/test_postgres_id_sequence.py 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_agent_governance.py -k postgres 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_agent_identity_and_run_claim.py::test_concurrent_run_claim_on_postgres 2>&1 | sed "s/${audit_password}/[redacted]/g"
PYTHONPATH=tests .venv/bin/pytest -p pg_agent_plugin tests/test_agent_atomicity.py \
-k 'failed_second_effect or simultaneous_decisions or approval_preserves' -q 2>&1 | sed "s/${audit_password}/[redacted]/g"
PYTHONPATH=tests .venv/bin/pytest -p pg_agent_plugin tests/test_action_effect_order.py -q 2>&1 | sed "s/${audit_password}/[redacted]/g"
PYTHONPATH=tests .venv/bin/pytest -p pg_agent_plugin tests/test_action_plan_and_projection_events.py \
-k 'function_plan or created_object' -q 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_source_snapshot_and_native_values.py 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_postgres_watermark_sync.py 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_outbox_receipts.py tests/test_object_live_uniqueness.py 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_postgres_object_keys.py tests/test_auth_postgres_concurrency.py 2>&1 | sed "s/${audit_password}/[redacted]/g"
.venv/bin/pytest -q tests/test_typed_json_storage.py tests/test_service_schema_commit.py 2>&1 | sed "s/${audit_password}/[redacted]/g"
PYTHONPATH=tests .venv/bin/pytest -p pg_agent_plugin tests/test_action_idempotency_scope.py tests/test_approval_marked_policy.py -q 2>&1 | sed "s/${audit_password}/[redacted]/g"
- name: Stop temporary PostgreSQL
if: always()
run: |
docker stop ontogeny-ci-postgres >/dev/null 2>&1 || true
rm -f "$RUNNER_TEMP/ontogeny-postgres-password" "$RUNNER_TEMP/ontogeny-postgres-port"

integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.primary-python }}
- name: Install backend
working-directory: ontogeny
run: |
python -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -e '.[mcp]' pytest pytest-asyncio httpx
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: ontogeny/web/package-lock.json
- name: Install frontend
working-directory: ontogeny/web
run: npm ci
- name: Integration tests (real server)
working-directory: ontogeny/web
run: npm run test:e2e
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ cython_debug/
# ---- ontogeny module: runtimes & local state ----
.venv/
.ontogeny-*/
admin-bootstrap-password
.kina-*/
ontogeny/.docs/
__pycache__/
*.pyc
.pytest_cache/
Expand All @@ -235,3 +237,8 @@ web/.e2e-port
*.pid
.DS_Store
docs/pr380-reply-matrix.md

# ---- local-only material (not part of the project) ----
.zcodeignore
wechat-assets/
wechat-ontogeny-launch.md
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ uv run --extra dev ty check hugegraph-llm-sdk/src/hugegraph_llm_sdk hugegraph-ll
- Before editing, identify whether the change belongs to `hugegraph-llm`, `hugegraph-python-client`, or root workspace configuration.
- For multi-file features, API contract changes, or cross-module design changes, read `rules/README.md` first.
- Keep changes scoped to the module that owns the behavior. Avoid opportunistic rewrites in sibling modules.
- DSL taxonomy: the 11 kinds (9 platform resources + 2 manifest) are registered once in `ontogeny/server/ontogeny/core/kinds.py`. Adding or removing a kind must update that registry, the frozen table in `ontogeny/tests/test_kind_registry.py`, and `ontogeny/docs/{zh,en}/architecture/00-kind-taxonomy.md`. `/meta/ontology.kinds` and the console board read from the registry — do not add a second list.

## Cross-module Notes

Expand Down
Loading
Loading