diff --git a/docs/shipped-workflow-sources.md b/docs/shipped-workflow-sources.md index 2992aed..1270e51 100644 --- a/docs/shipped-workflow-sources.md +++ b/docs/shipped-workflow-sources.md @@ -72,8 +72,8 @@ pack_workflow_bundle( ) ``` -Point `ABSTRACTGATEWAY_FLOWS_DIR` at that directory, or publish through the -Gateway API, to serve it alongside or instead of the shipped set. Keep your own +Start the gateway with `abstractgateway serve --flows-dir `, or +publish through the Gateway API, to serve it alongside or instead of the shipped set. Keep your own bundle id rather than reusing a shipped one — a version collision on an immutable id is refused. diff --git a/llms-full.txt b/llms-full.txt index 0e4b7e0..1111173 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -5928,8 +5928,8 @@ pack_workflow_bundle( ) ``` -Point `ABSTRACTGATEWAY_FLOWS_DIR` at that directory, or publish through the -Gateway API, to serve it alongside or instead of the shipped set. Keep your own +Start the gateway with `abstractgateway serve --flows-dir `, or +publish through the Gateway API, to serve it alongside or instead of the shipped set. Keep your own bundle id rather than reusing a shipped one — a version collision on an immutable id is refused. diff --git a/scripts/entity_life_loop_smoke.py b/scripts/entity_life_loop_smoke.py index 5a4327b..af8321a 100644 --- a/scripts/entity_life_loop_smoke.py +++ b/scripts/entity_life_loop_smoke.py @@ -65,7 +65,7 @@ def make_home(tmp: Path, slug: str = "lifeling") -> Path: db = home_dir / "memory.sqlite3" store = SQLiteTripleStore(db) journal = SQLiteJournal(db) - ms = MemorySystem(store=store, journal=journal) + ms = MemorySystem(store=store, journal=journal, task_queue=True) assert engram(ms, spark, owner_id=entity_id).created is True store.close() journal.close() @@ -123,6 +123,7 @@ def main() -> int: from abstractruntime.core.models import EffectType, RunStatus, WaitReason from abstractruntime.core.runtime import EffectOutcome from abstractruntime.identity.entity_runtime import open_entity_runtime + from abstractruntime.identity.lifecycle_fence import LifecycleFence from abstractruntime.scheduler.registry import WorkflowRegistry from abstractruntime.visualflow_compiler.compiler import compile_visualflow @@ -167,6 +168,7 @@ def scripted_llm(run, effect, default_next_node): home_dir = make_home(tmp) ert = open_entity_runtime( home_dir, + fence=LifecycleFence.admit(home_dir), extra_handlers={EffectType.LLM_CALL: scripted_llm}, workflow_registry=reg, ) diff --git a/scripts/entity_life_smoke.py b/scripts/entity_life_smoke.py index 21a030c..751896e 100644 --- a/scripts/entity_life_smoke.py +++ b/scripts/entity_life_smoke.py @@ -57,7 +57,7 @@ def make_home(tmp: Path, slug: str = "flowling") -> Path: db = home_dir / "memory.sqlite3" store = SQLiteTripleStore(db) journal = SQLiteJournal(db) - ms = MemorySystem(store=store, journal=journal) + ms = MemorySystem(store=store, journal=journal, task_queue=True) assert engram(ms, spark, owner_id=entity_id).created is True store.close() journal.close() @@ -90,6 +90,7 @@ def main() -> int: from abstractruntime.core.runtime import EffectOutcome from abstractruntime.identity.diary import DiaryEntry from abstractruntime.identity.entity_runtime import open_entity_runtime + from abstractruntime.identity.lifecycle_fence import LifecycleFence from abstractruntime.scheduler.registry import WorkflowRegistry from abstractruntime.visualflow_compiler.compiler import compile_visualflow @@ -123,6 +124,7 @@ def scripted_llm(run, effect, default_next_node): reg.register(fspec) ert = open_entity_runtime( home_dir, + fence=LifecycleFence.admit(home_dir), extra_handlers={EffectType.LLM_CALL: scripted_llm}, workflow_registry=reg, )