Skip to content

Commit 50008ef

Browse files
refactor(okf): remove the OKF import, tier-1 ontology and concept sidecar -- code, tests, migrations, registrations
Owner ruling 2026-09-10 (ADR-0011 on main): OKF is not part of the solution and is removed entirely, leaving no remnant, in preparation for a semantic layer. Evidence in receipts/okf-removal-inventory-2026-09-10.md: no serving path read any of it, 0/2,033 imported concepts citation-bound, the ontology moved fused recall by +0.00, value gates never reached. agent-session-tools: 12 modules deleted (concept_cli, concept_live, concept_schema, concepts, okf_import, ontology, ontology_live, plus the sidecar-only authorization, projection, safe_fs, winddown and recall seams) and 18 test files; migrations v48/v49 and their registration removed, CURRENT_VERSION back to 47 (what main ships); the memory_winddown and memory_recall MCP tools removed so the tool set equals main's; live_ontology/live_concepts markers removed from both pyproject files. Ten files whose whole branch diff was OKF were restored to the MERGE BASE (not main's current version -- restoring to main would have imported main's newer work; caught and corrected during the lane's own audit). recall.py was memory_recall's engine (PR #18 drop-half, d573133): deleted rather than kept as a second session_search. studyloop: check_ontology_freshness and its doctor registration removed (_doctor.py and doctor/harness.py now match main); test_doctor_ontology.py deleted. scripts/b4_recall_acceptance.py deleted (existed only to run the v49 migration and import_okf); pin_poc_set.py docstring retargeted. Kept, because they are not OKF: the learning-memory package and its claims/evidence store; studyloop's learning tier (history/concepts.py, learning/concept_quality.py, get_concept_context -- identical on main). Gates on the worktree: ruff check clean, 727 files formatted, pyright 0/0/0; agent-session-tools 1,691 passed / 0 failed; studyloop reds equal the pinned environment set plus two expected on a branch that predates main's Stage 3 fix. Finish line: git grep for okf|ontolog|concept_sidecar|context_concept|memory_winddown|memory_recall over packages/ returns nothing.
1 parent 27842b7 commit 50008ef

57 files changed

Lines changed: 88 additions & 19300 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.secrets.baseline‎

Lines changed: 56 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data/b4-recall-live-evidence.json renamed to docs/architecture/session-memory/receipts/retired-okf-evidence/b4-recall-live-evidence.json

File renamed without changes.

docs/data/concept-sidecar-migration-v49-receipt.json renamed to docs/architecture/session-memory/receipts/retired-okf-evidence/concept-sidecar-migration-v49-receipt.json

File renamed without changes.

docs/data/ontology-migration-v48-receipt.json renamed to docs/architecture/session-memory/receipts/retired-okf-evidence/ontology-migration-v48-receipt.json

File renamed without changes.

docs/data/ontology-tier1-baseline-upstream.json renamed to docs/architecture/session-memory/receipts/retired-okf-evidence/ontology-tier1-baseline-upstream.json

File renamed without changes.

‎packages/agent-session-tools/pyproject.toml‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,15 @@ extraPaths = ["src"]
128128
[tool.pytest.ini_options]
129129
testpaths = ["tests"]
130130
pythonpath = ["src"]
131-
addopts = "-v --tb=short -m 'not integration and not live_ontology and not live_concepts'"
131+
addopts = "-v --tb=short"
132132
# Duplicated from the workspace-root pyproject.toml on purpose: pytest picks
133133
# its configfile from the rootdir it derives from the arguments, so a
134134
# path-scoped run under this package never reads the root settings. See the
135135
# matching comment in packages/studyloop/pyproject.toml.
136-
#
137-
# The -m exclusion MUST list every opt-in marker declared below (workspace
138-
# root convention). Without it, a package-scoped run silently executes the
139-
# live_concepts suites: two 1 GB Online Backups of the owner's real
140-
# sessions.db, a 140-second OKF import, and two committed evidence files
141-
# rewritten (B3 review round 1, Important #2). Pinned by
142-
# tests/test_package_pytest_config.py; opt back in with an explicit
143-
# -m live_concepts (a command-line -m overrides this addopts default).
144136
timeout = 60
145137
timeout_method = "signal"
146138
markers = [
147139
"integration: requires external infrastructure (tmux, real DB, network)",
148-
"live_ontology: opt-in ontology acceptance/migration checks against a SQLite Online Backup of the owner's real sessions.db (never mutated; opt in with -m live_ontology)",
149-
"live_concepts: opt-in concept-sidecar migration/replication/import checks against SQLite Online Backups of the owner's real sessions.db (never mutated; opt in with -m live_concepts)",
150140
]
151141

152142
[tool.coverage.run]

‎packages/agent-session-tools/src/agent_session_tools/context/authorization.py‎

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)