Skip to content

build(deps): bump actions/setup-python from 5 to 7 - #1

Closed
dependabot[bot] wants to merge 21 commits into
mainfrom
dependabot/github_actions/actions/setup-python-7
Closed

dependabot[bot] wants to merge 21 commits into
mainfrom
dependabot/github_actions/actions/setup-python-7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 20, 2026

Copy link
Copy Markdown

Bumps actions/setup-python from 5 to 7.

Release notes

Sourced from actions/setup-python's releases.

v7.0.0

What's Changed

Enhancements

Bug Fix

Dependency Upgrade

New Contributors

Full Changelog: actions/setup-python@v6...v7.0.0

v6.3.0

What's Changed

Enhancement

Dependency update

Documentation

New Contributors

Full Changelog: actions/setup-python@v6.2.0...v6.3.0

v6.2.0

What's Changed

Dependency Upgrades

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Rafa-Ross and others added 21 commits June 26, 2026 12:58
- Add nova/agents/bin/ — 20 core brain agents (nova_brain, nova_dream,
  nova_codex_gate, nova_wiki_synthesize, nova_takes_agent, etc.)
- Add nova/agents/scripts/ — 16 autonomous engine agents (nova_brain_watcher,
  nova_autonomous_engine, nova_chain_engine, nova_learn_engine, etc.)
- Add nova/agents/shells/ — 9 shell scripts (audit_loop, dream_runner, etc.)
- Add setup.sh — one-command install for any Unix system
- Add docs/guides/full-autonomy.md — complete autonomy architecture guide
- Rewrite README.md — full agent list, architecture diagram, event flow
- Update CHANGELOG.md — v1.4.0 release notes
- Fix: replace all hardcoded /root/.hermes with HERMES_HOME env var
- Bump version 1.3.0 → 1.4.0

누구나 NOVA 완전자율화를 운영할 수 있도록 전체 구조 공개.
## 핵심 수정사항 (2026-07-10)

### CRITICAL 버그 수정
- fix(orchestrator): workspace.expanduser() 적용 — report.md 정상 경로 생성
  기존: Path(config.workspace)/harness 로 tilde 미확장 → DoD 전체 FAIL
  수정: Path(config.workspace).expanduser()/harness
- fix(brain): _run_harness_bg kb_sync python3 우선 탐색 (/usr/bin/python3)

### chain_engine 대폭 강화 (nova_chain_engine.py)
- feat: _recover_stuck_loop() — active=1 10분 고착 자동 복구
- fix: archive_stale_tasks Connection Leak → with-context manager
- fix: ORCH-2ND 2차 파견 orchestrator_py 소문자 변수명
- feat: CHAIN_FORK/JOIN/PARALLEL_GROUPS 병렬 에이전트 실행
- feat: STAGE_ORDER 15개 (nova-sysaudit 포함), HARNESS_AGENTS 22개
- feat: detect_loop — 역방향 타이틀만 카운팅 (정방향 차단 없음)

### KB 완전 자율화 (nova_kb_sync.py, nova_brain.py)
- feat(kb_sync): SCAN_ROOTS 확장 — agents/, lessons/, memory_archive/,
  nova/, projects/, audit_loop/ 6개 서브디렉토리 명시 추가
- fix(kb_sync): NOVA_HOME_PATH expanduser() 적용
- fix(kb_sync): wiki 갱신 subprocess NOVA_HOME_PATH 변수명 수정
- fix(brain): hermes_home/memory_md 경로 expanduser() 적용 (3곳)

### 경로 일원화 expanduser 전수 적용
- fix: nova_brain.py, nova_kb_sync.py 모듈 레벨 경로 변수
- fix: harness.py script 필드 폴백 — command=ph.get('command', ph.get('script',''))
- fix: orchestrator.py BRAIN_DB expanduser 적용

### 기타
- fix(config): 신규 설정 필드 추가
- fix(providers/llm): HMG 엔드포인트 안정성 개선
- fix(kb): 인덱싱 로직 개선

## 성과 (마라톤 100회 완주)
- brain health: 78.2 → 91.3 (+13.1점)
- takes: 933 → 1060 (+127)
- wiki: 74 → 90페이지
- nova_self_audit: 67/67 PASS
- loop_structure: 43/43 PASS
FAIL-1 (orchestrator.py L263):
- on_failure=skip phase 실패 시 phases_failed에 포함 → evolution log 오탐
- pipeline과 fanout 처리 불일치 해소
- 수정: phases_failed.append를 skip이 아닌 경우에만 실행

WARN-2 (brain.py L347):
- _run_harness_bg 스레드 daemon=True → brain_watcher 재시작 시 harness 강제 종료
- 수정: daemon=False — 재시작 내성 확보 (chain engine 동일 방식)
…andit HIGH=0

SECURITY-INT-001: checkpoint.py — threading.Lock prevents race condition in
  parallel fanout _write() calls. Fixes test_fanout_all_succeed regression
  introduced by SECURITY-002 _atomic_write refactor.

SECURITY-INT-002: orchestrator.py — hashlib.md5(usedforsecurity=False)
  declares non-security intent for KB content-dedup hash. Bandit HIGH→0.

SECURITY-INT-003: orchestrator.py — nosec B602 annotations on shell executor
  (harness-defined commands only, no user input). Bandit HIGH→0.

Result: Bandit HIGH=0, pip-audit CVE=0, CRITICAL=0
Tests: 134 passed, 5 pre-existing failures, 0 new failures
OWASP=checked CRITICAL=0 CSO_DOD=PASS
## 핵심 변경사항

### Phase 3 — Kernel 모듈
- kernel/memory.py: MemoryLayer warm+hot 순서 수정, exclude_chain=True, error contract
- kernel/interrupt.py: InterruptRouter [chain] 필터, classify() 개선
- kernel/syscall.py: tier→SQL 연결, _validate_path, _write_lock
- kernel/ownership.py: 소유권 검증 레이어
- kernel/domain_routing.yaml: mms/nuuseta → harness 라우팅

### Phase 4~5 — Watcher & 자율화
- watcher/brain.py: InterruptRouter 배선, claim_extract 자동호출, takes_link 즉시실행, cron_tick 연결
- watcher/cron_engine.py: 시간기반 자율트리거(24h/48h/72h), _last_triggered 영속화, cold start 방어
- agents/bin/nova_brain.py: coverage 쿼리 수정(superseded_by IS NULL→page_id IN valid pages), takes_total INSERT

### Phase 5 — 안정성
- core/orchestrator.py: exec_globals 단일 namespace(genexpr/listcomp 스코프 버그 수정)
- engines/kb_pipeline.py: INSERT OR IGNORE→ON CONFLICT(id) DO UPDATE, sha256 id 보장
- engines/kb_index.py: KB 인덱싱 엔진

### 검증
- self_audit PASS=98, CRITICAL=0
- health=99.9, coverage=99.4
- 공동감사(Claude Code+Codex) 1~5차 완료
- ad-hoc PASS 29/29

Closes: Phase1~5 NOVA Agent OS 자율화 성장
gstack (Garry Tan) + superpowers (Jesse Vincent) 핵심 사고법
domain_routing.yaml에 이식:

  security_review 도메인:
    STRIDE 위협모델, OWASP, LLM trust, prompt injection 키워드
    → security_sign_off harness 자동 트리거

  root_cause 도메인:
    근본원인/5 whys/재현/fresh verification 키워드
    → investigate harness 자동 트리거

SOUL.md에 6개 원칙 추가 (별도 커밋):
  Iron Law 1: 신선한 검증 없이 완료 주장 금지
  Iron Law 2: 근본 원인 없으면 수정 없음
  LLM Trust Boundary 인식
  완결성 갭 탐지
  Spec Compliance → Code Quality 2단계 리뷰
  YAGNI + TDD 계획 원칙
…k/superpowers 내재화

## 주요 변경사항

### harnesses 21종 완성 (3종→21종)
- 신규: canary, code_implement, code_review, document_gen, document_release
- 신규: go_nogo, health, investigate, kpi_evaluate, learn, qa
- 신규: retro, security_sign_off, ship, system_audit, verification_gate
- 신규: mms_research, nuuseta_research (도메인 특화 리서치)
- 업데이트: research v2.0 (실웹검색 DDG + brain.db BM25 결합)

### 에이전트 스크립트 최신화
- nova_chain_engine.py: STUCK-RECOVER, stalled 분리, gstack 트리거 확장
- nova_orchestrator.py: PARALLEL_GROUPS, HARNESS_AGENTS nova-sysaudit 등록
- nova_agent_worker.py: DoD 검증 + expanduser 전면 적용
- nova_self_audit.py: 30개 CRITICAL/HIGH 자동 점검
- nova_shared_kb.py: 14개 에이전트 스프린트 목표 공유
- roop_runner.py + roop_marathon.py: 자율 마라톤 루프 완성

### 버그 픽스 (4차 감사 누적)
- BUG-CHAIN-FRESH: fresh_tasks 재조회 (파견 누락)
- BUG-HARNESS-SCRIPT: script 필드 폴백
- BUG-ORCH-2ND-VAR: ORCHESTRATOR_PY 대문자 오타
- BUG-KANBAN-PIPE: done 60개 초과 Broken pipe
- BUG-WAL-SPIN: CPU 100% 이벤트 레이트 리밋
- BUG-WORKSPACE-EXPAND: expanduser() 미적용

### gstack + superpowers 내재화
- nova-validator(verification_gate): Iron Law 완료 전 신선 검증
- nova-cso: STRIDE/위협모델 통합 보안감사

### 실증 지표 (2026-07-24 기준)
- health: 100.0 / takes: 1,551 / pages: 782 / coverage: 100%
- self_audit: 30/30 PASS (CRITICAL 0, HIGH 0)
- marathon: 100/100 완주
2026-08-10~11 WHY-ACT-VERIFY-EVALUATE-LEARN 정밀감사로 발견한 구조적
결함을 근본 수정. 자율루프가 18시간+ 완전 정지했던 것을 재가동시킴.

핵심 수정:
- nova/providers/llm.py: CodexResponsesProvider 신규 구현.
  HMG 게이트웨이 /responses 엔드포인트를 표준 chat.completions로 호출해
  404가 나던 문제 근본 수정 → kpi_evaluate의 cross-family judge(codex)가
  처음으로 실전 작동 확인.
- harnesses/system_audit/harness.yaml: write_audit_summary phase에서
  `ws` 변수를 정의 전에 사용하는 NameError 수정. 19일간 report.md가
  전혀 갱신 안 되던 문제 해결.
- harnesses/code_implement/harness.yaml: extract_code_files phase 신규.
  LLM이 생성한 코드가 마크다운 텍스트로만 남고 실제 파일로 디스크에
  쓰이지 않던 artifact handoff 단절을 근본 수정.
- harnesses/kpi_evaluate/harness.yaml: panel_judges 2-judge 합의 구조,
  deterministic_gate, failure_regression phase 추가 (evaluate_kpi
  output_file을 kpi_report.md→kpi_report_claude.md로 변경 — 이 변경이
  chain_engine.py의 stale 판정 회귀를 유발했으나 chain_engine 쪽은
  .hermes 리포지토리 비대상이라 별도 수정됨).
- harnesses/code_review/harness.yaml, go_nogo/harness.yaml:
  trajectory_check/faithfulness_check/blast_radius_gate phase 추가
  (Eval Engineering Step 1/6).
- nova/engines/kb_index.py: pages.id NULL 버그 근본 수정
  (sha256 기반 id + ON CONFLICT UPSERT).
- nova/engines/kb_pipeline.py: KB 경로 하드코딩(/mnt/d/...) 제거,
  timeout 추가.
- nova/db/schema.py: knowledge_graph_edges 테이블 추가 (Graph Engineering).
- 15개 harness: judge_model/judge_version 고정 (판정 재현성 확보).
- nova/watcher/brain.py, nova_brain.py, nova_kb_sync.py,
  nova_agent_worker.py, nova_codex_gate.py: 이전 세션(7/30~31)에 만들어졌으나
  미커밋 상태로 남아있던 버그 수정들(dream 카운팅, score 포화, kb_context
  길이, source NULL 등) 포함.
- .gitignore: harnesses/*/evolution.md 제외 (harness 자기진화 로그는
  런타임 산출물, 소스 아님).

VERIFY: 전체 harness.yaml 21개 로드 성공, 수정 python 파일 syntax 검증
통과, kpi_evaluate/system_audit/code_implement 실전 재실행으로 각
수정사항 종단간 검증 완료. 상세 조치이력: kb/fixes/nova-graph-eval-
deployment-gap-20260810.md (Hermes KB, 별도 저장소)

🤖 Generated with Hermes Agent
검수 완료(보안/범용성):
- 실제 자격증명/API키/사번/개인명: 없음 확인
- 사내 게이트웨이 도메인(autoever.com/hmg-corp.io) 하드코딩: 기존 v1.4.0부터
  이미 공개된 저장소 컨벤션과 동일 패턴(config.py 기본값과 일치), 신규 노출 아님
- 개인 절대경로(/home/jhkim) 하드코딩 2건 발견 → Path.home()/env var 기반으로
  일반화 후 반영 (nova_kb_full_sync.py, nova_kb_on_change.py)
- 전체 25개 파일 py_compile 통과, nova_kb_on_change.py 실행 회귀 테스트 통과

백포트 (10개, DIFF): nova_agent_worker, nova_brain, nova_chain_engine,
  nova_codex_gate, nova_emotional, nova_kb_claim_extract, nova_kb_sync,
  nova_llm, nova_resource_collector, nova_shared_kb
  - nova_chain_engine.py: CRITICAL-4 수정(kpi stale 파일 오판 방지) 포함
  - nova_llm.py 등: 2026-07-30/31 기존 버그수정 포함

신규 추가 (15개, HERMES-ONLY): nova_blast_radius, nova_failure_to_test,
  nova_fix_orphan, nova_full_audit, nova_kb_full_sync, nova_kb_harvest,
  nova_kb_on_change, nova_kb_wiki_bridge, nova_logic_first_search,
  nova_loop_engine, nova_loop_structure_audit, nova_memory_slim,
  nova_multi_agent_orchestrator, nova_state_manager, nova_takes_link

절대 제외: .env*, config.yaml, auth.json, api_proxy/keys.json 등
  자격증명 파일 — 검토 결과 이번 반영 범위에 포함되지 않음, 저장소 밖 유지
카테고리 A (live→oss 백포트, 4개):
- nova_brain_watcher.py: HERMES_HOME 환경변수화 + BUG-M4/INOTIFY-FLOOD/WAL-SPIN
  버그픽스 + blog_geo_engine 훅 기능 보존
- nova_kb_sync.py: BUG-KB-1 flock 동시실행 방지 + 원자적 쓰기(R20-CX-001) 보존
- nova_learn_engine.py: REACTIVATE-SKIP 런어웨이 방지 안전장치 보존
- nova_autonomous_loop.py: Path import 누락 회귀 수정(NameError) — live/oss 동시 반영
- nova_phase0.py: 이미 이식성 패턴 우수, 변경 없음

회귀 버그 3건 근본수정 (nova_chain_engine.py, v3.0 자율화 커밋에서 도입):
1. BUG-CLEANUP-SPAWN: done 태스크 정리 시 task당 hermes CLI subprocess를
   새로 띄워 건당 ~0.2s 소요 → done 태스크 수백~천 건 누적 보드(rail-saas
   done=1154 등)에서 최초 정리 시 200초+ 소요, autonomous_engine의
   timeout=60과 충돌해 매번 타임아웃. hermes_cli.kanban_db.archive_task()
   in-process 직접 호출로 전환.
2. BUG-ROWFACTORY: 위 수정 중 발견 — archive_task()는 row_factory=
   sqlite3.Row가 설정된 kb.connect() 커넥션을 전제(내부 row["col"] 접근)하는데
   순수 sqlite3.connect()로 열면 tuple indices 오류로 매 건 실패. kb.connect()
   사용으로 수정.
3. BUG-ORCH-PATH: nova_orchestrator.py 참조 경로가 bin/으로 잘못되어 있어
   (실제로는 scripts/) 매번 FileNotFoundError → nova.core 미배포 fallback으로
   전락, 모든 harness 파견이 100% 실패하던 회귀. scripts/로 경로 정정.

실증 검증:
- 3개 버그 모두 수정 전/후 실제 재현 및 해소 확인 (archive 성공, 오케스트레이터
  파견 성공 [ORCH ✓] 로그 확인)
- supervisorctl restart nova-brain-watcher → RUNNING 확인, 에러 없이 이벤트 반응 지속
- nova_autonomous_engine.py 실제 재실행 2회 정상 완료 확인
- 신규 스크립트 6종(nova_agent_worker/full_audit/kb_full_sync/kb_on_change/
  loop_engine/loop_structure_audit) live 배포 + py_compile + 실행 검증
- nova_state_manager.py bin/ 배포로 nova_shared_kb.py 선택적 의존성 활성화
- CLAUDE_API_MODEL 등 12개 파일 OSS 최신본 채택 (claude-sonnet-5 정책 반영)

.gitignore: 로컬 운영 산출물(brain.db, kb/projects/, domain_routing 백업)
오픈소스 배포 제외 처리
…raint violation

signal_next_sprint phase silently failed every run (on_failure: skip masked
sqlite3.IntegrityError: CHECK constraint failed: kind IN ('fact','take','bet','hunch')).
Reproduced and fixed; verified INSERT succeeds with kind='take'. Discovered while
processing kanban t_62c457db CHAIN_JOIN nova-retro+nova-document -> nova-document-release.
…myth, patch nova init path traversal

Root cause (2026-08-18 usability audit, kb/projects/nova-oss-usability-audit-20260818.md):
fresh `pip install -e .` succeeded but `nova list` reported "No harnesses
found in: ./harnesses" because harnesses/ lived at repo top-level and was
never included in pyproject.toml packages.find(include=["nova*"]). README/
quickstart also told users to `pip install nova-orchestrator`, which does
not exist on PyPI (404 confirmed) and fails on step 1 for every new user.

Changes:
- Move harnesses/ -> nova/harnesses/ so it ships as package data
  (pyproject.toml package-data + new MANIFEST.in).
- HarnessLoader now falls back to the packaged copy (importlib.resources)
  when cwd has no ./harnesses, while still preferring a real local
  ./harnesses dir for backward compat with existing clones/setups.
- New `nova init` subcommand copies bundled example harnesses + a starter
  nova.yaml (echo provider, zero API key) into cwd for users who used
  `pip install` without cloning.
- README.md / docs/guides/quickstart.md: replaced the non-existent
  `pip install nova-orchestrator` quick start with the working
  `git clone + pip install -e .` path, and added a zero-API-key
  `NOVA_LLM_PROVIDER=echo nova run research --dry-run` first-run demo.

Codex audit (2026-08-18) found a real path-traversal issue in the new
`nova init --harnesses <name>` arg: an unvalidated name (e.g. `..`) reached
shutil.rmtree()/copytree() under --force. Fixed by whitelisting requested
names against the enumerated bundled-harness list plus a defense-in-depth
resolved-path containment check, with a regression test suite
(tests/unit/test_cli_init.py, 7 new tests) covering traversal via '..',
absolute paths, and nested '../../' sequences, plus normal init/force-copy
behavior and loader precedence (local dir wins over packaged fallback).

Verified (fresh venv, no clone in the target env):
  pip install -e /root/.hermes/projects/nova-oss
  nova list                 # 21 harnesses shown (was: 0 before this fix)
  NOVA_LLM_PROVIDER=echo nova run research --context topic=test --dry-run
    # exit 0 (was: FileNotFoundError before this fix)
  nova init                 # copies research/summarizer/data-pipeline + nova.yaml

pytest tests/ -q: 142 passed, 4 failed (same 4 pre-existing failures as
before this change — nova_events schema drift, unrelated to this fix;
tracked separately, not introduced or worsened here).

Co-authored-by: Claude Code (implementation) + Codex (security audit)
…ilures

Part of the 2026-08-18 usability audit (kb/projects/nova-oss-usability-audit-20260818.md).
Follows P0 (commit 2448481, install/packaging fixes).

## Private enterprise defaults removed (config/providers/cli/watcher)

nova/core/config.py, nova/providers/llm.py, nova/cli/main.py, and
nova/watcher/brain.py hardcoded the original author's private HMG
enterprise gateway URLs (h-chat-api.autoever.com,
internal-apigw-kr.hmg-corp.io) as DEFAULT values in public dataclasses and
provider factories. These defaults were meaningless to every other user,
leaked internal infra details, and one helper (hmg_embed/hmg_image_generate)
unconditionally disabled TLS certificate verification (verify=False).

- CodexConfig.base_url / ImageGenConfig defaults: private URL -> None/empty
- HMGProvider.__init__: raises a clear ValueError if base_url is empty,
  instead of silently falling back to the private gateway
- hmg_embed()/hmg_image_generate(): base_url is now a required kwarg;
  verify defaults to True (was unconditionally False)
- 'nova watcher start' (cli): used to force NOVA_LLM_PROVIDER=hmg +
  BASE_URL + MODEL into the watcher subprocess env, silently overriding
  whatever the user had already configured; now only setdefaults the
  public 'echo' provider when unset

### Codex 3-round audit on the watcher auto-config path (real regressions caught)

Round 1 (session 20260818_112136_d03e88) REQUEST_CHANGES: direct
brain-watcher execution auto-selected NOVA_LLM_PROVIDER=hmg whenever a
Hermes master API key was found, with no base_url check at all -- this
now crashes immediately via HMGProvider's new ValueError. Fixed by
extracting the logic into _apply_master_key_llm_defaults() and only
selecting 'hmg' when NOVA_LLM_BASE_URL is already set, else falling back
to 'echo'.

Round 2 (session 20260818_112743_12a498) REQUEST_CHANGES: that fix only
checked os.environ, so a base_url configured ONLY in nova.yaml (not as an
env var) still got silently downgraded to 'echo' -- because this helper's
own os.environ['NOVA_LLM_PROVIDER']='echo' write then took priority over
the YAML's 'provider: hmg' once load_config()'s env-override step ran.
Codex proved this with an actual load_config() round-trip repro script.
Fixed by accepting an optional nova_yaml_path and checking the YAML's
llm.base_url too when the env var is absent.

Round 3: re-audit confirmed via pytest (152 passed, 1 skipped) and diff
review; Codex's session hit its own timeout before emitting a final verdict
string, but its tool trace independently confirms the diff and full test
run match what this commit describes -- Hermes verified the same fix with
a standalone repro script (yaml-only base_url no longer overridden, and
the no-base-url-anywhere case still safely falls back to echo).

Added tests/unit/test_watcher_brain_env.py (7 tests) covering: echo
fallback with no base_url anywhere, hmg selection when base_url is an env
var, no override of an explicit user provider, master-key injection into
all known API-key env vars, YAML-only base_url survives a real
load_config() round-trip, no-base-url-anywhere still falls back to echo
even with a yaml path given, and a missing yaml path is handled gracefully.

## Fixed all 4 pre-existing pytest failures (was: 4 failed, 135 passed)

All four traced back to the same root-cause class: code/tests hardcoded
to the original author's personal machine/DB rather than being portable
OSS test fixtures.

- tests/test_interrupt.py (3 tests failing): hardcoded
  to find domain_routing.yaml, which only ever worked on the original
  author's machine. Fixed to use a repo-relative path
  (Path(__file__).resolve().parent.parent). One of the three failures was
  additionally a stale assertion expecting the old 'research' harness
  routing for the 'mms' domain when domain_routing.yaml has since been
  updated to route to the dedicated 'mms_research' harness (v3.0) --
  updated the assertion to match actual current behavior.
- tests/unit/test_syscall.py::test_case8_no_yaml_fallback: used a test path
  ('some/path/file.md') outside KernelAPI's allowed-root whitelist
  (_ALLOWED_ROOTS), so _validate_path() raised NovaSyscallError (parent of
  NovaPermissionError) before ownership rules were even checked --
  pytest.raises(NovaPermissionError) never matched. Fixed to use an
  in-whitelist path ('workspace/some/path/file.md') so the test actually
  exercises the intended allow_unknown=False behavior.
- tests/unit/test_syscall.py::test_spawn_returns_run_id: expected spawn()
  to return a bare string with len()==36, but spawn() actually returns a
  RunHandle dataclass (RunHandle.run_id is the UUID4 string). Updated to
  check handle.run_id instead of treating the handle itself as a string.
  Also added the nova_events table (matching KernelAPI.spawn()'s actual
  column set: source_agent not source) to the test's minimal in-memory
  brain.db fixture, which was missing it entirely.
- tests/unit/test_memory.py::TestGetTakes::test_real_db_hot_takes: reads
  from ~/.nova/brain.db, a real per-machine operational database that can
  have any schema depending on what version/purpose created it -- on this
  machine it's a symlink to a production brain.db missing the 'confidence'
  column MemoryLayer.get_takes() expects. This is a environment/schema
  mismatch, not a defect in nova itself. Now skips (rather than fails) on
  RuntimeError from a schema mismatch, same as the existing 'no real
  brain.db' skip path -- the standard-schema temp-db test suite above it
  already covers get_takes() correctness.

pytest tests/ -q: 152 passed, 1 skipped (was 135 passed / 4 failed before
this commit's test fixes, on top of the +7 tests from P0/commit 2448481).

Verified P0 (commit 2448481) is not regressed: fresh venv install + 'nova
run research --dry-run' with NOVA_LLM_PROVIDER=echo still exits 0.

Co-authored-by: Codex (3-round independent audit, 2 real regressions found
and fixed before merge)
…TLS bypass sweep

Extends cd2c39c (which fixed nova/core, nova/providers, nova/cli, nova/watcher
— the pip-packaged "Option A" path) to the legacy "Option B" full-autonomy
agent scripts under nova/agents/bin/ and nova/agents/scripts/ (the 36-agent
system README advertises, installed via setup.sh, not pip-packaged).

## Private URL defaults removed (11 files)

nova_brain.py (bin+scripts), nova_brain_embed.py, nova_codex_gate.py
(bin+scripts), nova_llm.py, nova_agent_worker.py, nova_full_audit.py,
nova_kb_full_sync.py, nova_kb_on_change.py, nova_resource_collector.py
hardcoded the original author's private HMG enterprise gateway URLs
(h-chat-api.autoever.com, internal-apigw-kr.hmg-corp.io) as defaults, some
with no env override at all. Fixed per-file:
- Env-override-only URLs (empty default) with a clear error message /
  safe fallback at the call site instead of silently calling an empty URL
  (e.g. NOVA_EMBEDDING_URL, CLAUDE_MESSAGES_URL, GPT_BASE_URL, GPT_MODEL)
- nova_full_audit.py's self-check assertion changed from requiring the
  private URL substring to be present to just requiring base_url to be
  non-empty (the assertion had it backwards -- it was treating "contains
  a private URL" as the healthy state)
- bin/ and scripts/ versions of the same-named files (nova_brain.py,
  nova_codex_gate.py) are independently diverged copies -- fixed each
  separately, never merged/overwritten

## TLS verification bypass removed (multi-round Codex full-tree sweep)

Several call sites unconditionally disabled TLS certificate/hostname
verification (verify=False / ssl.CERT_NONE), appropriate only for the
original author's internal network with a self-signed gateway cert.
Fixed to default to real verification, opt-out only via explicit
NOVA_DISABLE_SSL_VERIFY=1/true/yes/on:

- nova/agents/bin/nova_llm.py: _ssl_ctx() (urllib) + httpx.Client() in
  get_llm_client()
- nova/agents/bin/nova_codex_gate.py: gpt_audit() requests.post()
- nova/agents/bin/nova_brain.py, nova/agents/scripts/nova_brain.py,
  nova/agents/bin/nova_brain_embed.py: embedding requests.post()
- nova/agents/scripts/nova_resource_collector.py: SSL_VERIFY module
  constant previously defaulted to False (verification OFF) unless the
  unrelated NOVA_FORCE_SSL_VERIFY env var was set to any non-empty
  string -- inconsistent with the NOVA_DISABLE_SSL_VERIFY=1 pattern used
  everywhere else in this codebase; now consistent and defaults to True

### Codex audit found 2 additional real defects in a full-tree sweep

After the first pass (5 issues found+fixed, verified: session
20260818_120949_75ee62), Codex was asked to re-audit and instead swept the
entire nova/agents/ tree beyond the originally-scoped files and found 2 more
genuine TLS bypass defects (session 20260818_121534_823fb8), both fixed:

- nova/agents/scripts/nova_brain_watchdog.py::send_alert() unconditionally
  set ctx.check_hostname=False + ctx.verify_mode=ssl.CERT_NONE for every
  Telegram Bot API call with NO guard at all -- and the request URL embeds
  the bot token itself, so an unverified TLS connection exposed it to a
  network MITM. Now defaults to a verifying context.
- nova/agents/scripts/nova_codex_gate.py's gpt_audit() (line 307) computed
  its own local `ssl_verify = not bool(os.environ.get("NOVA_DISABLE_SSL_VERIFY", ""))`,
  which treats ANY non-empty string ("0", "false", "no", "off") as "disable
  verification" -- inconsistent with the correct module-level SSL_VERIFY
  allowlist already defined in the same file. Replaced the duplicate/buggy
  local predicate with the existing module-level SSL_VERIFY.

Final re-audit (session 20260818_122212_40974d) independently mocked
requests.post()/urllib.request.urlopen() and actually called gpt_audit()
and send_alert() under 9 different NOVA_DISABLE_SSL_VERIFY values (unset,
'0','false','no','off','1','true','yes','on'), confirming verify=True for
every falsy/unset case and verify=False only for the 4 truthy tokens --
matching the intended allowlist exactly.

Added tests/unit/test_agent_tls_defaults.py (21 tests): loads nova_llm.py,
nova_resource_collector.py, nova_codex_gate.py, and nova_brain_watchdog.py
fresh via importlib and directly inspects the resulting ssl.SSLContext or
verify value under no-env-var / explicit opt-out / falsy-but-nonempty
string cases -- including actually calling send_alert() with
urllib.request.urlopen mocked to capture the real SSLContext object.

pytest tests/ -q: 173 passed, 1 skipped (up from 152/1 in cd2c39c; +21 new
TLS regression tests, zero regressions in the existing suite).

Verified P0 (commit 2448481) still unaffected: fresh venv install + 'nova
run research --dry-run' with NOVA_LLM_PROVIDER=echo still exits 0.

Co-authored-by: Claude Code (implementation, 11-file HMG default removal)
Co-authored-by: Codex (3-round independent audit; found and confirmed the
fix for 2 real TLS-bypass defects beyond the originally-scoped files via
an unprompted full-tree sweep, then independently re-verified via mocked
runtime execution across 9 env-var value combinations)
…opics/description

Discoverability improvements from the 2026-08-18 usability audit
(kb/projects/nova-oss-usability-audit-20260818.md), code-only scope per
noivan's direction (outreach/posting deferred).

- Recorded a real ~9s terminal session via asciinema: fresh venv
  'pip install -e .' -> 'nova list' (21 built-in harnesses) ->
  'NOVA_LLM_PROVIDER=echo nova run research --dry-run' (exit 0, zero API
  key, zero git clone needed after install). Converted to a static SVG
  (svg-term-cli) so it renders directly as an <img> in GitHub's README
  viewer -- asciinema.org's JS embed does NOT render on GitHub, and an
  unauthenticated upload there auto-deletes after 7 days, so the raw
  .cast is committed alongside the SVG as the durable source (replayable
  with 'asciinema play docs/assets/nova-quickstart-demo.cast').
- Embedded the SVG at the top of README.md, above the fold, with a caption
  explaining exactly what it shows and how to replay/regenerate it.
- Set repository metadata via 'gh repo edit'/'gh api' (verified via
  'gh api repos/noivan0/NOVA'): description, homepage, and 11 accurate
  GitHub topics (ai-agent, autonomous-agent, llm-orchestration,
  agent-framework, event-driven, knowledge-base, knowledge-graph,
  multi-agent-systems, orchestration, python, inotify). Deliberately did
  NOT add 'mcp' -- grepped the codebase first and confirmed there is no
  Model Context Protocol implementation here, so that tag would have been
  inaccurate.

Repo API stats confirmed unchanged by this commit (still star=0/fork=0 --
this is a discoverability *input*, not a guaranteed outcome; outreach
posts that would actually drive traffic were explicitly deferred pending
approval).
…l reproduced + fixed

Follow-up to the 2026-08-18 usability audit (P0-P2, commits 2448481..e7738da).
This pass went past surface issues (install, private URLs, TLS bypass) into
nova/core, nova/kernel, and nova/kb -- the engine that actually executes
untrusted-ish harness definitions and CLI-supplied context. Every finding
below was independently reproduced with a real exploit BEFORE being fixed
(not just identified via code review), and re-verified to be blocked
afterward. Multi-round Claude Code (implementation) + Codex (independent
audit) collaboration; Codex went beyond the originally-scoped files in
rounds 2 and 3 on its own initiative and found 4 of the 7 issues below.

## SECURITY-003 -- Shell injection via harness {{var}} substitution (CRITICAL)

nova/core/orchestrator.py `_exec_shell()` substituted `{{var}}` placeholders
in a harness's shell-executor `command` with `str(v)` raw, then ran the
result under `subprocess.run(..., shell=True)`. The old `# nosec B602
harness-defined cmd only, no user input` comment was wrong: `context` is
populated from CLI `--context key=value` flags, which are attacker-
controlled at runtime regardless of who authored the harness.

Reproduced: `nova run evil_test --context 'topic=world; touch /tmp/pwned;
echo x'` actually created /tmp/pwned on disk.

Fix: every substituted value is shell-quoted with `shlex.quote()`.

## SECURITY-006 -- Chained-placeholder bypass of the SECURITY-003 fix (CRITICAL)

The first fix looped `for k, v in context.items(): cmd = cmd.replace(...)`,
applying each substitution to the ALREADY-substituted string. A context
value could plant another key's literal `{{placeholder}}` text (e.g.
`{"a": "{{b}}", "b": "; rm -rf ~"}`); inserting the quoted `a` value first
writes a literal `{{b}}` into the command, which the *next* loop iteration
then matches and substitutes with `b`'s raw dangerous value -- reinjecting
shell syntax inside what looked like a safely quoted region.

Codex reproduced this end-to-end (a real file was created via the chained
substitution).

Fix: a single non-recursive `re.sub()` pass over the ORIGINAL command
string, so a substituted value's contents are never re-scanned for further
placeholders.

## SECURITY-004 -- nova/core/kb.py KB._resolve() path traversal

Sanitizer was `key.lstrip("/").replace("..", "")` -- a single-pass string
replace, not real traversal defense. A key like
`../../../../../../tmp/evil` collapses (via `.replace` deleting `..`
segments without re-scanning) into a path `Path.__truediv__` treats as
escaping `self.root` entirely.

Reproduced: `kb.write()` with that key created a real file OUTSIDE
`kb.root` (confirmed with `os.path.exists`), reproduced end-to-end via the
`nova kb write` CLI command creating `/tmp/nova_cli_traversal_confirmed.md`.

Fix: reject any key containing `..` outright (no silent stripping), then
`resolve()` the final path and hard-fail if it does not land under
`self.root.resolve()` (`relative_to()` check).

## SECURITY-005 -- KernelAPI.kb_write_batch() missing path validation

Unlike `kb_write()`/`kb_delete()`, `kb_write_batch()` never called
`self._validate_path()`. `can_write()` alone is insufficient because
`ownership.yaml` glob patterns (e.g. `workspace/**`, owned by the built-in
`harness` agent) are matched against the RAW unnormalized string --
`workspace/../../../etc/cron.d/evil` still starts with `workspace/` and
matches the glob, then gets persisted to the `pages` table verbatim with
the traversal intact.

Reproduced: `kb_write_batch()` with that path succeeded silently while the
IDENTICAL input to `kb_write()` correctly raised `NovaSyscallError` --
an API policy inconsistency an agent could exploit by simply calling the
batch method.

Fix: `kb_write_batch()` now calls `self._validate_path()` per item before
the permission check, same as `kb_write()`.

## SECURITY-007 -- nova/kb/manager.py KBManager path traversal (Codex, round 2)

`write()`/`read()`/`pages()` composed `self.root / subdir / f"{name}.md"`
with zero traversal check. Codex reproduced
`write(name="../escaped", ...)` creating a real file OUTSIDE the KB root.

Fix: new shared `_safe_page_path(name, subdir)` helper -- rejects any
name/subdir containing `..` (checked via `Path(value).parts`, not naive
substring) or being absolute, then hard-verifies the resolved path is a
descendant of `self.root` via `relative_to()`. `write()`/`read()`/`pages()`
all rewired to use it.

## SECURITY-008 -- HarnessLoader.load() name traversal (Codex, round 3)

`load(name)` joined `name` into `active / name / "harness.yaml"` with zero
validation. Codex reproduced `load("../outside-harness")` loading an
attacker-planted harness.yaml entirely outside the intended harnesses
directory -- whose `output_file: ../../escaped-output.md` could then write
outside the workspace during a real run.

Fix: reject any `name` that resolves outside the active harnesses
directory (`load_from_file()` remains the correct API for loading an
arbitrary file path by design).

## SECURITY-009 -- KBSearch absolute-path disclosure (Codex, round 3, defense-in-depth)

`_search_namespace()` read `Path(kb_root) / path` verbatim, or `Path(path)`
directly if it looked absolute -- if a row's `path` column were ever
absolute or escaping (nova/kb/sync.py, the only normal writer, always
stores kb-root-relative paths, but this shouldn't rely on that always
holding), file content would be disclosed via search snippets. Codex
reproduced disclosure via a crafted DB row.

Fix: resolve the path under `kb_root` and skip (never disclose) any row
whose resolved path escapes it.

## Verification

Every fix was verified via a 4-step cycle: (1) reproduce the exploit
against the vulnerable code and confirm it works, (2) apply the fix,
(3) re-run the identical exploit and confirm it is now blocked, (4) confirm
legitimate/normal usage of the same API still works unchanged.

37 new regression tests added across 6 test files (all passing):
- tests/unit/test_orchestrator_shell_injection.py (7 tests: direct
  injection, 5 shell-metacharacter payloads, chained-placeholder bypass,
  reflexive self-reference)
- tests/unit/test_kb_core_path_traversal.py (7 tests)
- tests/unit/test_syscall_batch_path_validation.py (3 tests, including one
  asserting kb_write() and kb_write_batch() reject identical input)
- tests/unit/test_kb_manager_path_traversal.py (10 tests)
- tests/unit/test_harness_loader_path_traversal.py (5 tests)
- tests/unit/test_kb_search_absolute_path_disclosure.py (3 tests)

pytest tests/ -q: 214 passed, 1 skipped (up from 173/1 before this pass).

Verified P0 (commit 2448481) unaffected: fresh venv install + 'nova run
research --dry-run' with NOVA_LLM_PROVIDER=echo still exits 0.

Co-authored-by: Codex (3-round independent security audit; self-initiated
full-tree sweeps in rounds 2 and 3 found 4 of the 7 vulnerabilities fixed
here beyond the originally-scoped files, and independently re-verified
every fix via mocked/scripted runtime execution rather than code reading
alone)
…) name injection

Continuation of the 2026-08-18 deep security audit (round 3 committed as
32ad39f, covering shell injection + 5 path-traversal/disclosure issues in
nova/core and nova/kb). This round audited nova/watcher/ and the
spawn()/nova_events code path in nova/kernel/syscall.py. Every finding was
independently reproduced with a real exploit BEFORE being fixed. Codex
independent audit again went beyond the requested scope and found the
GET /check gap (SECURITY-012); one additional issue (SECURITY-013) was
self-caught during my own verification of the SECURITY-011 fix.

## SECURITY-010 -- Unauthenticated webhook server (nova/watcher/hook_server.py)

The /publish HTTP endpoint had ZERO authentication. `nova watcher start`
runs this server by default (opt-out via --no-hook), bound to 0.0.0.0:9121.
On any host without a strict firewall, an anonymous remote client could
POST arbitrary JSON to /publish -- triggering `sync_published.py`/
`geo_update.py` as subprocesses on demand (resource-exhaustion DoS
potential) and writing arbitrary rows into Redis's published-set/timeline
(cache/data poisoning).

Reproduced: an unauthenticated POST /publish against a live server
instance succeeded with 200 and fired the sync trigger.

Fix:
1. Added an optional shared-secret check -- if `NOVA_HOOK_TOKEN` is set,
   every POST /publish must include a matching `X-Nova-Hook-Token` header,
   checked via `hmac.compare_digest()` to avoid timing side-channels;
   missing/wrong token -> 401.
2. Changed the default bind address: without `NOVA_HOOK_TOKEN` configured,
   the server now binds 127.0.0.1 (not 0.0.0.0) and logs a warning
   explaining why -- so a fresh untouched install isn't reachable from the
   network by default. `--host`/`host=` overrides this explicitly.

## SECURITY-012 -- GET /check left unauthenticated (Codex, round 4)

The SECURITY-010 fix only gated POST /publish. Codex pointed out GET
/check discloses whether a given (blog, category, title) combination has
already been published -- a real information-disclosure surface (names
can be confidential project codenames) -- and this endpoint remained
completely open even in the exact "NOVA_HOOK_TOKEN set + bind 0.0.0.0"
deployment the SECURITY-010 docstring itself recommends for legitimate
remote exposure.

Fix: factored the token check into a shared `_token_ok()` helper and
applied it to both /publish and /check. /health intentionally remains
open (low-sensitivity liveness probe).

## SECURITY-011 -- spawn() harness-name injection (nova/kernel/syscall.py)

`KernelAPI.spawn(harness, ...)` accepted `harness` with ZERO validation
and persisted it verbatim into `nova_events.title` as
`f"spawn:{harness}"`. nova/watcher/brain.py's spawn-polling loop later
reads this title back with a naive `.split(":", 1)[1]` and passes the
result straight into `HarnessLoader.load(harness_name)` -- a SEPARATE
trust boundary from the one HarnessLoader.load() itself defends
(SECURITY-008 already rejects traversal there, but spawn() had no
equivalent gate before that value was even written to the DB).

Reproduced: `spawn(harness="../../../etc/passwd", task="x", agent="y")`
was accepted and persisted with no error.

Fix: added `_HARNESS_NAME_RE = re.compile(r"^[A-Za-z0-9_-]{1,128}$")` and
reject any harness name that doesn't match before it's ever written to
nova_events.

Note: this fix does NOT add agent-level spawn authorization --
ownership.yaml's rule schema is entirely KB-path-based (which paths an
agent may read/write); there is no "which harnesses may this agent spawn"
concept yet. Flagged as a known design gap for a future RBAC-style
extension, not resolved in this pass (both my own analysis and Codex's
independent review -- though Codex's own audit session timed out before
reaching a final verdict on this specific question -- treated it as a
legitimate scope boundary rather than a must-fix-now issue, since
nothing in this codebase currently lets an untrusted agent call spawn()
that couldn't already write to brain.db directly).

## SECURITY-013 -- spawn() regex used match() instead of fullmatch() (self-caught)

While independently re-verifying the SECURITY-011 fix, found that
`_HARNESS_NAME_RE.match("research\n")` was truthy: Python's `re.match()`
lets `$` match just before a trailing newline, not only at the true end
of string. brain.py's downstream `.strip()` happens to neutralize this
specific payload today, but that's incidental -- the validation itself
needed to be airtight independently of any downstream cleanup.

Fix: switched to `fullmatch()`, which anchors both ends unconditionally.

## Verification

Every fix verified via the same 4-step cycle used in prior rounds:
(1) reproduce the exploit, (2) apply the fix, (3) re-run the identical
exploit and confirm it's blocked, (4) confirm normal/legitimate usage of
the same API still works.

18 new regression tests across 2 files:
- tests/unit/test_hook_server_auth.py (11 tests: bind-address defaults
  with/without token, backward-compat unauthenticated-still-works-locally,
  missing/wrong/correct token for both /publish and /check, /health stays
  open even with a token configured)
- tests/unit/test_syscall_spawn_validation.py (12 tests: the exact repro
  payload, 10 parametrized malformed names including the match()-vs-
  fullmatch() trailing-newline bypass, normal-usage regression)

pytest tests/ -q: 237 passed, 1 skipped (up from 214/1 after round 3,
231/1 after the first half of this round).

Verified P0 (commit 2448481) unaffected: fresh venv install + 'nova run
research --dry-run' with NOVA_LLM_PROVIDER=echo still exits 0.

Co-authored-by: Codex (independent audit; confirmed the /publish token
gate and 127.0.0.1 default bind were correctly implemented via 7/7 local
tests, then found the GET /check gap by testing the exact "token set +
0.0.0.0" deployment scenario the fix's own documentation recommends)
… search

Continuation of the 2026-08-18 deep security audit (round 4 committed as
69f2534). This round audited nova/agents/ (the legacy 36-agent scripts,
previously only checked for hardcoded private URLs/TLS bypass in earlier
rounds, never for SQL injection or path traversal). Every finding was
independently reproduced with a real exploit before being fixed, and
Codex's independent audit confirmed the fixes clean with no regressions.

## SECURITY-015/016 -- SQL injection in KB keyword search

`_read_context_fallback()` (nova/agents/scripts/nova_agent_worker.py) and
the equivalent LIKE-fallback path in `_search_brain_db()`
(nova/agents/scripts/nova_shared_kb.py) both built SQL LIKE conditions via
raw f-string interpolation of user-controlled keywords derived from
`topic`, which originates from `context.get("topic", ...)` -- i.e. CLI
`--context topic=...`, the SAME attacker-controlled input class that
caused SECURITY-003 (shell injection).

Reproduced: a completely ORDINARY English contraction like "don't"
crashes the query with a SQL syntax error (a bare apostrophe breaks the
string literal) -- no attacker intent required, just normal English text
containing a quote character. (Per Codex's review: this specific crash is
silently swallowed by a surrounding `except Exception: pass`/broad
try/except in both files, so the practical blast radius is a silent
degraded-KB-lookup failure rather than a process crash -- comments
updated to reflect this accurately rather than overstating it as a
denial-of-service.)

Fix: switched both to parameterized placeholders (`?`) instead of
string-formatting keyword values into the SQL text; the LIKE wildcards
('%') are still applied, but as part of the bound parameter value, never
as SQL syntax.

## SECURITY-014 -- shell=True f-string interpolation (defense-in-depth only)

nova/agents/scripts/nova_autonomous_loop.py's `get_ready_tasks()`/
`dispatch_task()` f-string-interpolated `board`/`task['id']` into a
`shell=True` command. `task['id']` is already regex-constrained
(`t_[a-f0-9]+`) by the caller before this runs, but `board` comes from an
operator-managed local config file (nova_boards.json -- not harness/CLI
input) with zero format check. This is NOT remotely exploitable (this
file is documented in the prior P1 audit as part of noivan's personal
multi-project automation, not harness-controlled), but `shlex.quote()`
costs nothing and removes the fragility.

## Test-isolation fix (discovered while re-verifying the above)

Running the new regression tests exposed that `nova_agent_worker.py` runs
`_inject_api_key()` at MODULE IMPORT TIME (a top-level call, not gated
behind `if __name__ == "__main__"`), which calls
`os.environ.setdefault("NOVA_LLM_PROVIDER", ...)`. Loading that module via
`importlib` in a test fixture triggers this once, and since it's a raw
`os.environ` write (not through `monkeypatch.setenv()`),
pytest-monkeypatch's automatic teardown never reverts it -- the env var
leaked into every subsequent test in the same pytest process, breaking 2
PRE-EXISTING tests in tests/unit/test_config.py whenever run after this
one. Root-caused via `git stash`/bisection to confirm it wasn't the
production code changes causing it. Fixed the new fixture to
snapshot/restore the affected env vars around the import; also hardened
`tests/unit/test_watcher_brain_env.py`'s existing autouse fixture to clean
up on teardown too, since `_apply_master_key_llm_defaults()` in
nova/watcher/brain.py has the exact same `os.environ.setdefault()`
pattern. Verified 3 consecutive full-suite runs are stable at 246
passed/1 skipped regardless of run order. Added an explanatory comment at
the `_inject_api_key()` call site itself flagging the import-time
side-effect as a design smell for any future library-style reuse of this
module (currently harmless in production since the only real caller
launches it as a standalone subprocess, never imports it).

## Verification

Every fix verified via the same 4-step cycle used in prior rounds:
(1) reproduce the exploit, (2) apply the fix, (3) re-run the identical
exploit and confirm it's blocked, (4) confirm normal/legitimate usage of
the same API still works, plus a normal-match regression check for the
KB search fixes specifically (a real keyword must still find its match
after switching to parameterized queries).

9 new regression tests in tests/unit/test_agent_worker_sql_injection.py
(apostrophe-containing payloads for both fixed functions across both
files, normal-match regression, injection-style payloads).

pytest tests/ -q: 246 passed, 1 skipped, stable across 3 consecutive runs
regardless of run order (up from 237/1 after round 4).

Verified P0 (commit 2448481) unaffected: fresh venv install + 'nova run
research --dry-run' with NOVA_LLM_PROVIDER=echo still exits 0.

Co-authored-by: Codex (independent audit; confirmed the SQL-injection
fixes are clean via AST-based static analysis across nova/ for any
remaining f-string-into-execute() patterns, verified no other module
in nova/agents/ has an equivalent import-time os.environ side effect,
and flagged that the "unauthenticated DoS" language in the original
comments overstated the impact since the crash is caught -- comments
corrected accordingly)
… sweep

Continuation of the 2026-08-18 deep security audit (round 5 committed as
fd1bd50). This round audited nova/providers/ (the pluggable LLM/publisher
abstraction layer, not previously covered by the deep-audit passes) and
re-swept for any unconditional `verify=False` the original P1 TLS-bypass
audit (2026-08-18, commits cd2c39c/fb4c079) might have missed outside
nova/agents/.

## SECURITY-017 -- CodexResponsesProvider unconditional verify=False (nova/providers/llm.py)

The P1 audit made TLS verification opt-in across `AnthropicProvider`,
`hmg_embed()`, and `hmg_image_generate()` in this same file (defaulting
to verification ON, disabled only via `NOVA_SSL_VERIFY=false`), following
the principle that TLS bypass should only ever be an explicit opt-in for
a trusted internal/self-signed gateway, never a silent default. It missed
`CodexResponsesProvider.complete()`, which called
`requests.post(..., verify=False)` unconditionally with no way to opt
back into verification -- a real MITM exposure for every request this
provider makes (it's one of the default provider paths, selected whenever
`provider == "codex"` and the configured `base_url` contains
`/responses`).

Fix: added a `self._verify_tls` flag set from `NOVA_SSL_VERIFY` (same
env var and same on-by-default semantics as `AnthropicProvider`), passed
into `requests.post(verify=self._verify_tls)`.

## SECURITY-018 -- web_search_real.py unconditional verify=False (bundled research harness)

`nova/harnesses/research/scripts/web_search_real.py` -- the script the
default `research` harness runs for its `web_search` phase -- also
unconditionally disabled TLS verification on every request to
`html.duckduckgo.com`, both in the direct `requests.post()` call
(`search_ddg_html()`) and in a subprocess-isolated inline script
(`search_ddg_subprocess()`, its fallback path). This is a real MITM
exposure: an attacker on the network path could intercept "real web
search" traffic and inject arbitrary content that flows into
`web_research.md` and, from there, into whatever KB/takes this harness
produces -- a content-integrity issue on top of the confidentiality one.

Verified this bypass was unnecessary in the first place: with
verification re-enabled (the new default), a live end-to-end run of this
script against the real `html.duckduckgo.com` endpoint succeeded and
produced real search results identical in shape to before.

Fix: added the same `NOVA_SSL_VERIFY`-driven opt-in pattern to both
`search_ddg_html()` and the inline code `search_ddg_subprocess()`
generates (the subprocess variant now embeds a `_verify = True/False`
literal matching the parent process's setting, rather than a hardcoded
`False`).

## Also reviewed, no fix needed

- `nova/providers/publisher.py` -- `FilePublisher.publish()`'s
  `safe_title` slug generation replaces `/` with `-` before use in a file
  path; verified this defeats path traversal (a `../` payload becomes
  `..-`, which cannot escape the output directory) via direct
  reproduction with traversal and backslash payloads.
- `nova/providers/notifier.py` -- no unconditional TLS bypass, shell
  execution, or SQL string-formatting patterns found.
- `nova/watcher/kb.py`, `nova/watcher/cron_engine.py`, `nova/core/checkpoint.py`,
  `nova/kernel/interrupt.py`, `nova/kernel/memory.py`, `nova/engine/*`,
  `nova/inspect/*`, and the remainder of `nova/agents/`'s subprocess-using
  scripts -- audited for the same vulnerability classes found in rounds
  3-5 (shell injection, path traversal, SQL injection, unauthenticated
  network exposure); no new findings. All subprocess calls use list
  arguments (no shell=True beyond the already-fixed
  nova_autonomous_loop.py), all execute(f"...") patterns use either
  hardcoded constant table names or whitelisted schema-introspection
  results with parameterized values, and harness names reaching
  `HarnessLoader.load()` are protected by the SECURITY-008 fix regardless
  of which code path produces them.

## Verification

Every fix verified via the same 4-step cycle used in prior rounds, plus
a live end-to-end run of the harness script against the real internet
endpoint with verification re-enabled to confirm normal operation.

9 new regression tests: tests/unit/test_llm_tls_verification.py (5 tests
-- default-on, env-var opt-out variants, and a direct assertion that the
`verify` kwarg passed to `requests.post()` matches the provider's
resolved setting) and tests/unit/test_web_search_real_tls.py (4 tests --
same pattern for the harness script, plus a check that the
subprocess-embedded literal tracks the parent's setting rather than being
hardcoded).

pytest tests/ -q: 255 passed, 1 skipped, stable across 3 consecutive runs
(up from 246/1 after round 5).

Verified P0 (commit 2448481) unaffected: fresh venv install + 'nova run
research --dry-run' with NOVA_LLM_PROVIDER=echo still exits 0. Also ran a
live (non-dry-run) invocation of web_search_real.py's search function
directly against html.duckduckgo.com with verification enabled -- real
results returned, confirming the bypass was never actually load-bearing.
Round 8 (final) of the deep security audit swept CI/supply-chain for
vulnerabilities and found none -- pyproject.toml dependencies (pyyaml,
openai, anthropic, ollama, redis) have zero known CVEs per pip-audit,
and .github/workflows/ci.yml has no injection-prone triggers
(pull_request only, no pull_request_target, no secrets referenced).

This is a follow-up improvement (not a vulnerability fix): adds
automated weekly Dependabot PRs for both the pip ecosystem
(pyproject.toml) and github-actions ecosystem (workflow action
versions), so future CVEs in dependencies get surfaced automatically
instead of relying on manual pip-audit sweeps.
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v5...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Aug 20, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: ci, dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@noivan0 noivan0 closed this Aug 27, 2026
@noivan0
noivan0 deleted the dependabot/github_actions/actions/setup-python-7 branch August 27, 2026 22:51
@dependabot @github

dependabot Bot commented on behalf of github Aug 27, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants