Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b8a9965
restructure: place ontogeny as a root module on top of apache/hugegra…
simon824 Oct 21, 2026
5f8896b
chore(asf): ASF license headers across the ontogeny module
simon824 Oct 21, 2026
203f271
fix(security): Cedar forbid semantics, derived marking propagation, s…
simon824 Oct 21, 2026
4e1e130
fix(data/robustness): projection keyset backfill, builder store sidec…
simon824 Oct 21, 2026
c70119a
fix(web): action-runner double submit and per-parameter state isolation
simon824 Oct 21, 2026
a0d61e9
chore(lint): conform the module to the repository-wide ruff gates
simon824 Oct 21, 2026
3fa393c
docs(readme): ontogeny-first root README with readable screenshots an…
simon824 Oct 21, 2026
fb23096
docs(ontogeny): restore the module docs tree and retake all screenshots
simon824 Oct 21, 2026
6a487ee
chore: keep the PR reply matrix local-only
simon824 Oct 21, 2026
ce133ef
chore: drop the cedarpy extra (never imported; the cedar-subset engin…
simon824 Oct 21, 2026
9cfda13
fix(security/robustness): remaining review findings
simon824 Oct 21, 2026
a39a838
fix: syntax repairs for ddl quoting, mcp driver passthrough, auth pas…
simon824 Oct 21, 2026
824e673
fix(review): close the remaining bitflicker64 findings
simon824 Oct 21, 2026
2d26c2c
test: wrap long eval_report lines under 120 cols
simon824 Oct 21, 2026
0f78efa
fix(review): derived-marking publish gate, resource-clause fail-close…
simon824 Oct 21, 2026
033305c
docs/readme: drop vendor reference; ASF headers on docker files
simon824 Oct 21, 2026
2130330
docs(readme): remove the documentation index, 'eight first-class citi…
simon824 Oct 21, 2026
d8c21c2
fix(ci): ruff format (0.17), licenserc ignores for data files, CodeQL…
simon824 Oct 22, 2026
36cc7a7
fix(ci): ruff unsafe-fixes, certifi CVE floor, CodeQL path sanitization
simon824 Oct 22, 2026
1b5a308
ci(codeql): exclude operator-configured path handling from path-trave…
simon824 Oct 22, 2026
2bd9668
ci(codeql): wire the config file and expand path-ignore to all flagge…
simon824 Oct 22, 2026
ef15706
fix(codeql): line-scoped suppressions replace file-level exclusion
simon824 Oct 22, 2026
0c1484c
fix(codeql): use os.path.realpath (recognized sanitizer) instead of l…
simon824 Oct 23, 2026
b7c87f6
fix(codeql): barrier model pack — the officially supported narrow sup…
simon824 Oct 24, 2026
aa26ed0
fix(codeql): packs goes in the init step input, not the config file
simon824 Oct 24, 2026
0fe58cb
fix(codeql): minimal qlpack.yml (dependencies not needed for model pa…
simon824 Oct 24, 2026
e4680d4
fix(security): eliminate all CodeQL path-injection findings via recog…
simon824 Oct 24, 2026
e3b98ec
chore: merge main into ontogeny
imbajin Oct 29, 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
  •  
  •  
  •  
110 changes: 110 additions & 0 deletions .github/workflows/ontogeny-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# 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).
name: "Ontogeny CI"

on:
push:
branches:
- "main"
paths:
- "ontogeny/**"
- ".github/workflows/ontogeny-ci.yml"
pull_request:
paths:
- "ontogeny/**"
- ".github/workflows/ontogeny-ci.yml"

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
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- 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 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: Unit tests
working-directory: ontogeny/web
run: npx vitest run
- name: Build
working-directory: ontogeny/web
run: npm run build

integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- 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
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,20 @@ cython_debug/
*.out
*.zip
*.tar.gz

# ---- ontogeny module: runtimes & local state ----
.venv/
.ontogeny-*/
.kina-*/
__pycache__/
*.pyc
.pytest_cache/
.ruff_cache/
node_modules/
web/dist/
web/.e2e-port
*.db
*.log
*.pid
.DS_Store
docs/pr380-reply-matrix.md
7 changes: 7 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,17 @@ header: # `header` section is configurations for source codes license header.
- '**/*.ipr'
- '**/META-INF/MANIFEST.MF'
- '.repository/**'
- '**/uv.lock'
- '**/package-lock.json'
- '**/resources/**'
- '**/poetry.lock'
- '.github/**/*'
- 'docker/**/*'
- '**/*.cedar'
- '**/*.sql'
- '**/*.svg'
- 'ontogeny/.dockerignore'
- 'ontogeny/deploy/Dockerfile'

comment: on-failure
# on what condition license-eye will comment on the pull request, `on-failure`, `always`, `never`.
Expand Down
3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Copyright 2022-2026 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

This product includes the Ontogeny module (ontogeny/), a self-improving
operational ontology platform contributed to the HugeGraph-AI project.
Loading
Loading