CRITICAL: The mandatory multi-file AGENTS.md preflight in ../../AGENTS.md applies here too. Before changing anything under src/core/, you must have read this file, the repo root AGENTS.md, and every other AGENTS.md on the directory paths you will touch. Do not skip any of them.
To see all AGENTS.md files in the IsaacTeleop repo, use the find command (or **/AGENTS.md glob) documented in the repo root AGENTS.md—do not rely on a hand-maintained list in this file.
If work under src/core/ went wrong—user correction, pre-commit/CI failure, or repeated same-class mistakes—you must follow the repo root AGENTS.md Mandatory learning loop: distill a short rule and update the nearest relevant AGENTS.md (this file or a package file) or source comments in the same session (including delta vs main scope).
- Async retargeting pacing behavior belongs on the pacing config objects; keep the worker focused on scheduling mechanics and avoid adding concrete pacing-mode or subclass branches there.
- Prefer coarse-grained async boundaries around an existing synchronous step before splitting DeviceIO/source polling away from graph execution; split internals only when a measured correctness or performance need justifies the extra thread-safety surface.
- In pipelined
TeleopSession,last_contextfollows the returned completed frame; reset/control-transition events travel with that frame and must not force exact-current-frame waits. Use sync mode for exact current-frame behavior. - Keep async retargeting comments short and local to invariants; user-facing pacing tuning guidance belongs in docs rather than long code docstrings.
- When changing
TeleopSessionretargeting execution defaults, update config, docs, and default-behavior tests together so opt-in vs. default semantics stay aligned. - Preserve existing
TeleopSessionlifecycle flag semantics unless changing the public/context-manager contract intentionally; use tests to lock down cleanup details before altering them. - After Python test or session-manager edits, let
ruff format/pre-commit own wrapping and rerun the hook when it modifies files. IDeviceIOSourceleaves are only discovered when reachable from a declared graph root — thepipelinecombiner's outputs, theteleop_control_pipeline, or a subgraph registered inTeleopSessionConfig(sinks=[...]).TeleopSession._discover_sourcesunions the leaves of all three. An input source whose only purpose is a side effect (e.g. message-channel send) must therefore expose at least one output (a heartbeat boolean is the established pattern) and be reachable from one of those roots; silent no-discovery is the recurring footgun. OutputIDeviceIOSinknodes are different: they are registered viaTeleopSessionConfig(sinks=[...])and the session runs and flushes them explicitly each frame, so a sink needs no heartbeat output and noOutputCombinerreachability.- All C++ diagnostics go through
isaaccapture::Logger(log_bridge/cpp/inc/log_bridge/logger.hpp), neverstd::cout/std::cerr/printf, and the logger name is alwaysisaaccapture.<module>.<ClassName>. The env-var contract and wire format are shared with the Python half, so a change to either must land in both — seelog_bridge/AGENTS.mdbefore touching the logging machinery, and the repo rootAGENTS.md"Logging" section for the rules that apply to every call site. - Run
clang-formaton touched C++ before pushing — CI rejects unformatted C++ and pre-commit does not catch it. See the formatting instructions in the repo rootAGENTS.md("Pre-commit — match CI before you stop") for the exact commands; the source of truth lives there, not here. - Authored
.pyundersrc/python/isaaccapture/carries no build-system registration. TheCONFIGURE_DEPENDSglob insrc/python/CMakeLists.txtstages every.pythere and[tool.setuptools.packages.find]discovers the packages, so a subpackage is a directory with an__init__.pyand nothing else — no packages list, noDEPENDSentry. Targets that produce files in the staging tree (pybind.so/.pyd,isaacteleop_pythoncopies,stage_generated_tracker_exports,viz_py, vendored runtimes, …) must be dependencies ofpython_package(DEPENDS/add_dependencies(python_package …)insrc/core/python/CMakeLists.txt), not the other way around — otherwise Windows ninja races the wheel build and setuptools fails witherror: package directory 'isaaccapture\\<name>' does not exist.python_packagewaits forviz_pywhenBUILD_VIZ=ON(.pydlink race). Central stubgen insrc/core/python/CMakeLists.txt(not aviz_pyPOST_BUILD) DEPENDS onpython_package, sostage_generated_tracker_exportsmust stay onpython_package's DEPENDS — otherwise stubbingisaaccapture.viz._viz(or any module that loadsisaaccapture/__init__.py) fails on the missing export. Forpip install -e .(scikit-build-core),_generated_tracker_exports.pymust also beinstall(FILES ...)underisaacteleop_wheel— the directory install excludes*.pyso authored sources stay redirect-resolved, but that module is not undersrc/python/. - Editing a
.fbsunderschema/fbs/can make every recording already on disk unreadable. Recorded MCAP embeds the schema it was written under;schema_testscompares the current schemas againstschema/golden/andMcapTrackerViewersre-checks at replay time. Readschema/AGENTS.mdandschema/README.mdbefore changing one. - Schema-based tracker sources exist only in a configured build tree. They are generated at CMake configure time from
deviceio_trackers/trackers.tomlinto${CMAKE_BINARY_DIR}/generated/trackers/, so greppingsrc/for a tracker such asSe3Trackerfinds the manifest entry and the generator, not a.cpp. Searching, debugging, and clangd all needcmake -B buildto have run first (already true for theflatcoutput). Seedeviceio_trackers/AGENTS.mdandcodegen/AGENTS.mdbefore adding or editing a tracker. OpenXRSessionwaits for the headset by default (wait_for_system = true).xrGetSystemanswersXR_ERROR_FORM_FACTOR_UNAVAILABLE(-35) until a system exists, and the retry loop is unbounded, holds the GIL for the whole wait (the pybind constructor releases nothing), and defersCtrl-Cuntil a headset turns up. Anything that constructs a session where no client will ever connect — CI, a headless smoke test — must impose its own timeout;deps/cloudxr/docker-compose.test.yamlwraps the CloudXR GPU tests in one for that reason.- CloudXR join-main (Orin): after the native service is up, do not start additional Python threads (including a
sigwaithelper). That re-triggers_PyGILState_NoteThreadState: Couldn't create autoTSSkey mapping. Keepnv_cxr_service_joinon the main thread only; rely on the launcher process teardown for shutdown while join blocks.