feat(okf): one bundle-id rule, reconciled against the mount and origin-marked
[skip-docs] — the invariant row for this plan lands in Step 13, where the mutations that force it have been measured. Documenting a seam before its measurement is the claim-without-evidence class this repo writes rows against. Co-Authored-By: Claude <claude-opus-5>
This commit is contained in:
parent
60e51ab76c
commit
842c51401d
5 changed files with 388 additions and 4 deletions
|
|
@ -859,7 +859,12 @@ def navigator_tools(bundle_dirs: Sequence[str]) -> list[FunctionTool]:
|
|||
description="Open ONE knowledge base by id and read its navigated context.",
|
||||
)
|
||||
def read_bundle(bundle_id: str) -> str:
|
||||
return okf.bundle_context(okf.navigate_bundle(_resolve_bundle(index, bundle_id)))
|
||||
bundle_dir = _resolve_bundle(index, bundle_id)
|
||||
# The base is OPENED here, so this is where it is reconciled against its mount (Step 10).
|
||||
# ``_bundle_index`` above stays PURE — it does no file I/O, and must not: two of its own
|
||||
# arms configure directories that do not exist and expect an id error, not an I/O one.
|
||||
okf.reconcile_bundle_id(bundle_dir)
|
||||
return okf.bundle_context(okf.navigate_bundle(bundle_dir))
|
||||
|
||||
@tool(
|
||||
name="read_file",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue