- harness/es.py: append-only event store + проекции (образец — кооп-портал) - harness/levels.py: уровни 1с/1м/1ч/1д, контекст ∝ масштабу - harness/scheduler.py: уровневые потоки, идемпотентные тики, absorbed-стабы - harness/isolated_runner.py + _llm_worker.py: LLM-тик в сабпроцессе (глобальный asyncio-рантайм Strands не переживает 2+ create_harness) - cli.py: init/task/tasks/status/events + requeue (написан самим минутным агентом) - 9router: отдельный ключ sk-simbiot, модель auto (glm-5.3 первым)
29 lines
617 B
Python
29 lines
617 B
Python
"""
|
|
Some (initially private) typing helpers for jsonschema's types.
|
|
"""
|
|
from collections.abc import Callable, Iterable
|
|
from typing import Any, Protocol
|
|
|
|
import referencing.jsonschema
|
|
|
|
from jsonschema.protocols import Validator
|
|
|
|
|
|
class SchemaKeywordValidator(Protocol):
|
|
def __call__(
|
|
self,
|
|
validator: Validator,
|
|
value: Any,
|
|
instance: Any,
|
|
schema: referencing.jsonschema.Schema,
|
|
) -> None:
|
|
...
|
|
|
|
|
|
id_of = Callable[[referencing.jsonschema.Schema], str | None]
|
|
|
|
|
|
ApplicableValidators = Callable[
|
|
[referencing.jsonschema.Schema],
|
|
Iterable[tuple[str, Any]],
|
|
]
|