openloops.closer#

The one module that writes to GitHub: a manual task closes on its passing check.

ADR-015 §4. Everything else in openloops reads. This module may, for one issue at a time, post one comment, close the issue, and add or remove the attempted label, and only when all five conditions hold (refusal()):

  1. the issue is open;

  2. it carries the manual-task label;

  3. its repository’s owner is one the person configured as trusted (closer.owners in the config file, close_settings(); OPENLOOPS_CLOSE_OWNERS overrides it for one run; neither set means the gh login alone);

  4. it was filed under the person’s own gh login;

  5. its repository is not shared: it has no outside collaborators (a client’s or a team’s repository inside a trusted organisation), unless the person listed it under closer.shared_repos. When the collaborators cannot be read, it counts as shared.

A close needs a passing check: a read-only command (write_effect finds nothing) whose exit status is 0. The check is the issue’s **Verify:** field, or one the owner approved with a run plan (ADR-018). A report alone (“I ran it”) never closes; a model’s reading of an output never closes. With no check, nothing is closed: only the person’s own tap does that. A run with no check is still reported in one comment.

Every comment ends with a hidden marker carrying the attempt id, so a retry never posts twice. Comments say what ran and what the check returned; they never carry command output, and their text goes through openloops.egress.scrub() first (an issue in a public repository is public).

Nothing in the core imports this module: import openloops still reaches no network and writes nothing. Its callers are the run-plan executor (openloops.runbook_run) and, later, ol do (ADR-015 §2).

Two seams (ADR-015’s table): gh= reads, (args, *, input=None) -> (status, stdout); deliver= writes, a Deliver (default GhDeliver, the gh CLI the person already authenticated; a spool or the board store can take its place).

Outcomes use the run vocabulary: done (it ran as expected), failed (it ran and did not), check-only (nothing ran). ADR-015 §1’s blocked and needs-owner are reports that close nothing; a caller maps them to failed with its own note.

Functions

close_settings(*[, environ, path])

The closer's settings: the closer section of config_path(), e.g. {"closer": {"owners": ["me", "my-org"], "shared_repos": ["my-org/a-shared-repo"]}}.

config_path(*[, environ])

The person's openloops settings file: OPENLOOPS_CONFIG, else $XDG_CONFIG_HOME/openloops/config.json (~/.config/openloops/config.json).

read_issue(ref, *[, gh])

The issue's state, labels, author and body, plus its comments' last lines.

refusal(issue, *, owners, login[, shared_repos])

Why this module must not write to issue, or "".

report(ref, *, attempt[, ran, ran_label, ...])

Report an outcome for one manual task; close it only if its check passes.

trusted_owners(*[, gh, environ, settings])

Whose trackers this module may write to: the configured owners, else the login.

who(*[, gh, settings])

(trusted owners, login, shared repos allowed), resolved once per run.

Classes

CloseSettings([owners, shared_repos])

Where the closer may write.

Deliver(*args, **kwargs)

Where this module's writes go.

GhDeliver([gh])

The default Deliver: the gh CLI, one call per write.

class openloops.closer.CloseSettings(owners=(), shared_repos=())[source]#

Bases: object

Where the closer may write. owners empty means the gh login alone.

shared_repos (owner/name) are repositories with outside collaborators that the person still lets it close issues in; every other shared repository is refused.

class openloops.closer.Deliver(*args, **kwargs)[source]#

Bases: Protocol

Where this module’s writes go. Each returns (ok, detail).

class openloops.closer.GhDeliver(gh=<function _gh_cli>)[source]#

Bases: object

The default Deliver: the gh CLI, one call per write.

openloops.closer.close_settings(*, environ=environ({'SHELL': '/bin/bash', 'SELENIUM_JAR_PATH': '/usr/share/java/selenium-server.jar', 'GITHUB_WORKSPACE': '/home/runner/work/openloops/openloops', 'JAVA_HOME_11_X64': '/usr/lib/jvm/temurin-11-jdk-amd64', 'JAVA_HOME_25_X64': '/usr/lib/jvm/temurin-25-jdk-amd64', 'PROJECT_NAME': 'openloops', 'PKG_CONFIG_PATH': '/opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig', 'GITHUB_PATH': '/home/runner/work/_temp/_runner_file_commands/add_path_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_ACTION': '__i2mint_epythet', 'JAVA_HOME': '/usr/lib/jvm/temurin-25-jdk-amd64', 'GITHUB_RUN_NUMBER': '353', 'RUNNER_NAME': 'GitHub Actions 1000004762', 'GRADLE_HOME': '/usr/share/gradle-9.9.3', 'GITHUB_REPOSITORY_OWNER_ID': '159425785', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'XDG_CONFIG_HOME': '/home/runner/.config', 'Python_ROOT_DIR': '/opt/hostedtoolcache/Python/3.12.16/x64', 'MEMORY_PRESSURE_WRITE': 'c29tZSAyMDAwMDAgMjAwMDAwMAA=', 'DOTNET_SKIP_FIRST_TIME_EXPERIENCE': '1', 'ANT_HOME': '/usr/share/ant', 'GITHUB_TRIGGERING_ACTOR': 'thorwhalen', 'pythonLocation': '/opt/hostedtoolcache/Python/3.12.16/x64', 'GITHUB_REF_TYPE': 'branch', 'HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS': '3650', 'ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED': '1', 'ANDROID_NDK': '/usr/local/lib/android/sdk/ndk/27.3.13750724', 'BOOTSTRAP_HASKELL_NONINTERACTIVE': '1', 'PWD': '/home/runner/work/openloops/openloops', 'PIPX_BIN_DIR': '/opt/pipx_bin', 'LOGNAME': 'runner', 'GITHUB_ARTIFACTS_LIST': '/home/runner/work/_temp/_runner_file_commands/artifacts_list_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_REPOSITORY_ID': '1346350581', 'GITHUB_ACTIONS': 'true', 'USE_BAZEL_FALLBACK_VERSION': 'silent:', 'ANDROID_NDK_LATEST_HOME': '/usr/local/lib/android/sdk/ndk/30.0.16248370', 'SYSTEMD_EXEC_PID': '2153', 'GITHUB_SHA': '9bd66390e112947c9241b3e2908ab0dda2173703', 'GITHUB_WORKFLOW_REF': 'addaix/openloops/.github/workflows/ci.yml@refs/heads/main', 'POWERSHELL_DISTRIBUTION_CHANNEL': 'GitHub-Actions-Linux', 'RUNNER_ENVIRONMENT': 'github-hosted', 'DOTNET_MULTILEVEL_LOOKUP': '0', 'GOROOT_1_27_X64': '/opt/hostedtoolcache/go/1.27.4/x64', 'GITHUB_REF': 'refs/heads/main', 'RUNNER_OS': 'Linux', 'GITHUB_REF_PROTECTED': 'false', 'HOME': '/home/runner', 'GITHUB_API_URL': 'https://api.github.com', 'LANG': 'C.UTF-8', 'GOROOT_1_25_X64': '/opt/hostedtoolcache/go/1.25.14/x64', 'RUNNER_TRACKING_ID': 'github_d9e82dac-9ed8-476b-98ec-5be564bcae08', 'RUNNER_ARCH': 'X64', 'MEMORY_PRESSURE_WATCH': '/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure', 'RUNNER_TEMP': '/home/runner/work/_temp', 'GITHUB_STATE': '/home/runner/work/_temp/_runner_file_commands/save_state_d26455fb-372c-4670-899e-a670aadab12f', 'EDGEWEBDRIVER': '/usr/local/share/edge_driver', 'JAVA_HOME_21_X64': '/usr/lib/jvm/temurin-21-jdk-amd64', 'GITHUB_ENV': '/home/runner/work/_temp/_runner_file_commands/set_env_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_EVENT_PATH': '/home/runner/work/_temp/_github_workflow/event.json', 'INVOCATION_ID': 'f2e4fc20649d403d8534d6c314f76312', 'GITHUB_EVENT_NAME': 'push', 'GITHUB_RUN_ID': '47549397045', 'JAVA_HOME_17_X64': '/usr/lib/jvm/temurin-17-jdk-amd64', 'ANDROID_NDK_HOME': '/usr/local/lib/android/sdk/ndk/27.3.13750724', 'GITHUB_STEP_SUMMARY': '/home/runner/work/_temp/_runner_file_commands/step_summary_d26455fb-372c-4670-899e-a670aadab12f', 'HOMEBREW_NO_AUTO_UPDATE': '1', 'GITHUB_ACTOR': 'thorwhalen', 'NVM_DIR': '/home/runner/.nvm', 'SGX_AESM_ADDR': '1', 'GITHUB_RUN_ATTEMPT': '1', 'ANDROID_HOME': '/usr/local/lib/android/sdk', 'GITHUB_GRAPHQL_URL': 'https://api.github.com/graphql', 'ACCEPT_EULA': 'Y', 'USER': 'runner', 'PSModulePath': '/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1', 'GITHUB_ACTION_PATH': '/home/runner/work/_actions/i2mint/epythet/master/actions/publish-github-pages', 'GITHUB_SERVER_URL': 'https://github.com', 'PIPX_HOME': '/opt/pipx', 'GECKOWEBDRIVER': '/usr/local/share/gecko_driver', 'CHROMEWEBDRIVER': '/usr/local/share/chromedriver-linux64', 'SHLVL': '1', 'ANDROID_SDK_ROOT': '/usr/local/lib/android/sdk', 'VCPKG_INSTALLATION_ROOT': '/usr/local/share/vcpkg', 'GITHUB_ACTOR_ID': '1906276', 'ACTIONS_ORCHESTRATION_ID': 'b4a8399a-e2dd-813b-b879-38dd06e1f012.ci.github-pages.__default', 'RUNNER_TOOL_CACHE': '/opt/hostedtoolcache', 'ImageVersion': '20261129.15.1', 'Python3_ROOT_DIR': '/opt/hostedtoolcache/Python/3.12.16/x64', 'DOTNET_NOLOGO': '1', 'GITHUB_ARTIFACTS': '/home/runner/work/_temp/_runner_file_commands/artifacts_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_WORKFLOW_SHA': '9bd66390e112947c9241b3e2908ab0dda2173703', 'GITHUB_REF_NAME': 'main', 'GITHUB_JOB': 'github-pages', 'LD_LIBRARY_PATH': '/opt/hostedtoolcache/Python/3.12.16/x64/lib', 'XDG_RUNTIME_DIR': '/run/user/1001', 'AZURE_EXTENSION_DIR': '/opt/az/azcliextensions', 'GOROOT_1_26_X64': '/opt/hostedtoolcache/go/1.26.11/x64', 'GITHUB_REPOSITORY': 'addaix/openloops', 'Python2_ROOT_DIR': '/opt/hostedtoolcache/Python/3.12.16/x64', 'CHROME_BIN': '/usr/bin/google-chrome', 'ANDROID_NDK_ROOT': '/usr/local/lib/android/sdk/ndk/27.3.13750724', 'GITHUB_RETENTION_DAYS': '90', 'JOURNAL_STREAM': '10:15580', 'RUNNER_WORKSPACE': '/home/runner/work/openloops', 'GITHUB_ACTION_REPOSITORY': '', 'HCA_CLOUD_PROVIDER': 'azure', 'PATH': '/opt/hostedtoolcache/Python/3.12.16/x64/bin:/opt/hostedtoolcache/Python/3.12.16/x64:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'GITHUB_BASE_REF': '', 'GHCUP_INSTALL_BASE_PREFIX': '/usr/local', 'CI': 'true', 'SWIFT_PATH': '/usr/share/swift/usr/bin', 'ImageOS': 'ubuntu26', 'GITHUB_REPOSITORY_OWNER': 'addaix', 'GITHUB_HEAD_REF': '', 'GITHUB_ACTION_REF': '', 'ENABLE_RUNNER_TRACING': 'true', 'GITHUB_WORKFLOW': 'Continuous Integration', 'DEBIAN_FRONTEND': 'noninteractive', 'GITHUB_OUTPUT': '/home/runner/work/_temp/_runner_file_commands/set_output_d26455fb-372c-4670-899e-a670aadab12f', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', '_': '/opt/hostedtoolcache/Python/3.12.16/x64/bin/epythet', 'EPYTHET_PROJECT_DIR': '/home/runner/work/openloops/openloops', 'EPYTHET_OVERRIDES': '{"api_generator": "autosummary", "ignore": ["tests/", "scrap/", "examples/"]}', 'EPYTHET_BUILD_INFO': '{"schema_version": 1, "built_at": "2026-12-05T17:44:35Z", "package": {"name": "openloops", "version": "0.1.84", "display_name": "openloops", "source": "pyproject.toml"}, "git": {"available": true, "commit": "9bd66390e112947c9241b3e2908ab0dda2173703", "short_commit": "9bd6639", "branch": "main", "tags": [], "dirty": false, "remote_url": "https://github.com/addaix/openloops", "commit_url": "https://github.com/addaix/openloops/commit/9bd66390e112947c9241b3e2908ab0dda2173703", "error": null}, "ci": {"provider": "github", "repository": "addaix/openloops", "sha": "9bd66390e112947c9241b3e2908ab0dda2173703", "sha_in_history": true, "ref": "refs/heads/main", "ref_name": "main", "run_id": "47549397045", "run_url": "https://github.com/addaix/openloops/actions/runs/47549397045", "server_url": "https://github.com"}, "tools": {"epythet": "0.2.26", "sphinx": "9.1.1", "docutils": "0.22.4", "python": "3.12.16"}, "config": {"theme": "auto", "html_theme": "pydata_sphinx_theme", "accent": "#006d67", "mode": "auto", "api_generator": "autosummary", "ignore": ["tests/", "scrap/", "examples/"], "agent_outputs": true, "aggregates": ["md"], "ai_artifacts": true, "provenance": true, "docs_dir": "docsrc"}, "site": {"modules_documented": null, "objects_documented": null}, "pypi": {"checked": true, "latest": "0.1.84", "relation": "same", "error": null}, "reproduce": "git clone https://github.com/addaix/openloops && cd openloops\\ngit checkout 9bd66390e112947c9241b3e2908ab0dda2173703\\npip install \\"epythet==0.2.26\\"\\nepythet quickstart . --ignore tests/ scrap/ examples/", "warnings": [], "alignment": {"aligned": true, "notes": []}}', 'DOCUTILSCONFIG': '/home/runner/work/openloops/openloops/docsrc/docutils.conf'}), path=None)[source]#

The closer’s settings: the closer section of config_path(), e.g. {"closer": {"owners": ["me", "my-org"], "shared_repos": ["my-org/a-shared-repo"]}}.

OPENLOOPS_CLOSE_OWNERS (comma-separated), when set, replaces owners for one run. A missing file means no settings; an unreadable one is an error, never a silent default.

>>> close_settings(environ={'OPENLOOPS_CLOSE_OWNERS': 'acme, widgets'},
...                path=Path('/nonexistent/c.json'))
CloseSettings(owners=('acme', 'widgets'), shared_repos=())
Return type:

CloseSettings

openloops.closer.config_path(*, environ=None)[source]#

The person’s openloops settings file: OPENLOOPS_CONFIG, else $XDG_CONFIG_HOME/openloops/config.json (~/.config/openloops/config.json).

>>> config_path(environ={'OPENLOOPS_CONFIG': '/x/c.json'}).as_posix()
'/x/c.json'
>>> config_path(environ={'XDG_CONFIG_HOME': '/cfg'}).as_posix()
'/cfg/openloops/config.json'
Return type:

Path

openloops.closer.read_issue(ref, *, gh=<function _gh_cli>)[source]#

The issue’s state, labels, author and body, plus its comments’ last lines.

Only each comment’s last line is read (where the marker lives), never whole comments: they are other people’s text.

Return type:

dict[str, Any]

openloops.closer.refusal(issue, *, owners, login, shared_repos=())[source]#

Why this module must not write to issue, or "". The five conditions.

>>> ok = {'ref': 'me/r#1', 'state': 'OPEN', 'labels': [{'name': 'manual-task'}],
...       'author': {'login': 'me'}}
>>> refusal(ok, owners=('me',), login='me')
''
>>> refusal({**ok, 'state': 'CLOSED'}, owners=('me',), login='me')
'the issue is not open'
>>> refusal(ok, owners=('client',), login='me')
"owner 'me' is not one this module may write to (closer.owners)"
>>> refusal({**ok, 'author': {'login': 'someone'}}, owners=('me',), login='me')
"filed by 'someone', not by the person's own login 'me'"
>>> refusal({**ok, 'outside_collaborators': 2}, owners=('me',), login='me')
'me/r is shared (2 outside collaborators): add it to closer.shared_repos to allow'
>>> refusal({**ok, 'outside_collaborators': 2}, owners=('me',), login='me',
...         shared_repos=('me/r',))
''
Return type:

str

openloops.closer.report(ref, *, attempt, ran='', ran_label='', outcome='done', check=None, check_source='', gh=<function _gh_cli>, deliver=None, run_check=<function default_run_check>, owners=None, login=None, shared_repos=None, dry_run=False)[source]#

Report an outcome for one manual task; close it only if its check passes.

outcome is done, failed or check-only (nothing ran; the check is run to see whether it is already done). ran is a one-line description of what ran (it is scrubbed before it is posted); ran_label names it without its text ("step s3 of run plan p (ab12cd34)"), and is what a comment on a repository that is not private says instead of the command and the check. check overrides the issue’s own **Verify:** command; check_source says where it came from ("run plan <hash8>").

Returns {ref, action, reason, check, check_status, commented} where action is one of closed, attempted, open (nothing ran and the check fails: nothing written), no-check (reported in a comment when something ran; never closed) or refused (a condition failed: nothing written). dry_run decides as usual and writes nothing.

Return type:

dict[str, Any]

openloops.closer.trusted_owners(*, gh=<function _gh_cli>, environ=environ({'SHELL': '/bin/bash', 'SELENIUM_JAR_PATH': '/usr/share/java/selenium-server.jar', 'GITHUB_WORKSPACE': '/home/runner/work/openloops/openloops', 'JAVA_HOME_11_X64': '/usr/lib/jvm/temurin-11-jdk-amd64', 'JAVA_HOME_25_X64': '/usr/lib/jvm/temurin-25-jdk-amd64', 'PROJECT_NAME': 'openloops', 'PKG_CONFIG_PATH': '/opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig', 'GITHUB_PATH': '/home/runner/work/_temp/_runner_file_commands/add_path_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_ACTION': '__i2mint_epythet', 'JAVA_HOME': '/usr/lib/jvm/temurin-25-jdk-amd64', 'GITHUB_RUN_NUMBER': '353', 'RUNNER_NAME': 'GitHub Actions 1000004762', 'GRADLE_HOME': '/usr/share/gradle-9.9.3', 'GITHUB_REPOSITORY_OWNER_ID': '159425785', 'ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE': '/opt/actionarchivecache', 'XDG_CONFIG_HOME': '/home/runner/.config', 'Python_ROOT_DIR': '/opt/hostedtoolcache/Python/3.12.16/x64', 'MEMORY_PRESSURE_WRITE': 'c29tZSAyMDAwMDAgMjAwMDAwMAA=', 'DOTNET_SKIP_FIRST_TIME_EXPERIENCE': '1', 'ANT_HOME': '/usr/share/ant', 'GITHUB_TRIGGERING_ACTOR': 'thorwhalen', 'pythonLocation': '/opt/hostedtoolcache/Python/3.12.16/x64', 'GITHUB_REF_TYPE': 'branch', 'HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS': '3650', 'ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED': '1', 'ANDROID_NDK': '/usr/local/lib/android/sdk/ndk/27.3.13750724', 'BOOTSTRAP_HASKELL_NONINTERACTIVE': '1', 'PWD': '/home/runner/work/openloops/openloops', 'PIPX_BIN_DIR': '/opt/pipx_bin', 'LOGNAME': 'runner', 'GITHUB_ARTIFACTS_LIST': '/home/runner/work/_temp/_runner_file_commands/artifacts_list_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_REPOSITORY_ID': '1346350581', 'GITHUB_ACTIONS': 'true', 'USE_BAZEL_FALLBACK_VERSION': 'silent:', 'ANDROID_NDK_LATEST_HOME': '/usr/local/lib/android/sdk/ndk/30.0.16248370', 'SYSTEMD_EXEC_PID': '2153', 'GITHUB_SHA': '9bd66390e112947c9241b3e2908ab0dda2173703', 'GITHUB_WORKFLOW_REF': 'addaix/openloops/.github/workflows/ci.yml@refs/heads/main', 'POWERSHELL_DISTRIBUTION_CHANNEL': 'GitHub-Actions-Linux', 'RUNNER_ENVIRONMENT': 'github-hosted', 'DOTNET_MULTILEVEL_LOOKUP': '0', 'GOROOT_1_27_X64': '/opt/hostedtoolcache/go/1.27.4/x64', 'GITHUB_REF': 'refs/heads/main', 'RUNNER_OS': 'Linux', 'GITHUB_REF_PROTECTED': 'false', 'HOME': '/home/runner', 'GITHUB_API_URL': 'https://api.github.com', 'LANG': 'C.UTF-8', 'GOROOT_1_25_X64': '/opt/hostedtoolcache/go/1.25.14/x64', 'RUNNER_TRACKING_ID': 'github_d9e82dac-9ed8-476b-98ec-5be564bcae08', 'RUNNER_ARCH': 'X64', 'MEMORY_PRESSURE_WATCH': '/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure', 'RUNNER_TEMP': '/home/runner/work/_temp', 'GITHUB_STATE': '/home/runner/work/_temp/_runner_file_commands/save_state_d26455fb-372c-4670-899e-a670aadab12f', 'EDGEWEBDRIVER': '/usr/local/share/edge_driver', 'JAVA_HOME_21_X64': '/usr/lib/jvm/temurin-21-jdk-amd64', 'GITHUB_ENV': '/home/runner/work/_temp/_runner_file_commands/set_env_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_EVENT_PATH': '/home/runner/work/_temp/_github_workflow/event.json', 'INVOCATION_ID': 'f2e4fc20649d403d8534d6c314f76312', 'GITHUB_EVENT_NAME': 'push', 'GITHUB_RUN_ID': '47549397045', 'JAVA_HOME_17_X64': '/usr/lib/jvm/temurin-17-jdk-amd64', 'ANDROID_NDK_HOME': '/usr/local/lib/android/sdk/ndk/27.3.13750724', 'GITHUB_STEP_SUMMARY': '/home/runner/work/_temp/_runner_file_commands/step_summary_d26455fb-372c-4670-899e-a670aadab12f', 'HOMEBREW_NO_AUTO_UPDATE': '1', 'GITHUB_ACTOR': 'thorwhalen', 'NVM_DIR': '/home/runner/.nvm', 'SGX_AESM_ADDR': '1', 'GITHUB_RUN_ATTEMPT': '1', 'ANDROID_HOME': '/usr/local/lib/android/sdk', 'GITHUB_GRAPHQL_URL': 'https://api.github.com/graphql', 'ACCEPT_EULA': 'Y', 'USER': 'runner', 'PSModulePath': '/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1', 'GITHUB_ACTION_PATH': '/home/runner/work/_actions/i2mint/epythet/master/actions/publish-github-pages', 'GITHUB_SERVER_URL': 'https://github.com', 'PIPX_HOME': '/opt/pipx', 'GECKOWEBDRIVER': '/usr/local/share/gecko_driver', 'CHROMEWEBDRIVER': '/usr/local/share/chromedriver-linux64', 'SHLVL': '1', 'ANDROID_SDK_ROOT': '/usr/local/lib/android/sdk', 'VCPKG_INSTALLATION_ROOT': '/usr/local/share/vcpkg', 'GITHUB_ACTOR_ID': '1906276', 'ACTIONS_ORCHESTRATION_ID': 'b4a8399a-e2dd-813b-b879-38dd06e1f012.ci.github-pages.__default', 'RUNNER_TOOL_CACHE': '/opt/hostedtoolcache', 'ImageVersion': '20261129.15.1', 'Python3_ROOT_DIR': '/opt/hostedtoolcache/Python/3.12.16/x64', 'DOTNET_NOLOGO': '1', 'GITHUB_ARTIFACTS': '/home/runner/work/_temp/_runner_file_commands/artifacts_d26455fb-372c-4670-899e-a670aadab12f', 'GITHUB_WORKFLOW_SHA': '9bd66390e112947c9241b3e2908ab0dda2173703', 'GITHUB_REF_NAME': 'main', 'GITHUB_JOB': 'github-pages', 'LD_LIBRARY_PATH': '/opt/hostedtoolcache/Python/3.12.16/x64/lib', 'XDG_RUNTIME_DIR': '/run/user/1001', 'AZURE_EXTENSION_DIR': '/opt/az/azcliextensions', 'GOROOT_1_26_X64': '/opt/hostedtoolcache/go/1.26.11/x64', 'GITHUB_REPOSITORY': 'addaix/openloops', 'Python2_ROOT_DIR': '/opt/hostedtoolcache/Python/3.12.16/x64', 'CHROME_BIN': '/usr/bin/google-chrome', 'ANDROID_NDK_ROOT': '/usr/local/lib/android/sdk/ndk/27.3.13750724', 'GITHUB_RETENTION_DAYS': '90', 'JOURNAL_STREAM': '10:15580', 'RUNNER_WORKSPACE': '/home/runner/work/openloops', 'GITHUB_ACTION_REPOSITORY': '', 'HCA_CLOUD_PROVIDER': 'azure', 'PATH': '/opt/hostedtoolcache/Python/3.12.16/x64/bin:/opt/hostedtoolcache/Python/3.12.16/x64:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'GITHUB_BASE_REF': '', 'GHCUP_INSTALL_BASE_PREFIX': '/usr/local', 'CI': 'true', 'SWIFT_PATH': '/usr/share/swift/usr/bin', 'ImageOS': 'ubuntu26', 'GITHUB_REPOSITORY_OWNER': 'addaix', 'GITHUB_HEAD_REF': '', 'GITHUB_ACTION_REF': '', 'ENABLE_RUNNER_TRACING': 'true', 'GITHUB_WORKFLOW': 'Continuous Integration', 'DEBIAN_FRONTEND': 'noninteractive', 'GITHUB_OUTPUT': '/home/runner/work/_temp/_runner_file_commands/set_output_d26455fb-372c-4670-899e-a670aadab12f', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', '_': '/opt/hostedtoolcache/Python/3.12.16/x64/bin/epythet', 'EPYTHET_PROJECT_DIR': '/home/runner/work/openloops/openloops', 'EPYTHET_OVERRIDES': '{"api_generator": "autosummary", "ignore": ["tests/", "scrap/", "examples/"]}', 'EPYTHET_BUILD_INFO': '{"schema_version": 1, "built_at": "2026-12-05T17:44:35Z", "package": {"name": "openloops", "version": "0.1.84", "display_name": "openloops", "source": "pyproject.toml"}, "git": {"available": true, "commit": "9bd66390e112947c9241b3e2908ab0dda2173703", "short_commit": "9bd6639", "branch": "main", "tags": [], "dirty": false, "remote_url": "https://github.com/addaix/openloops", "commit_url": "https://github.com/addaix/openloops/commit/9bd66390e112947c9241b3e2908ab0dda2173703", "error": null}, "ci": {"provider": "github", "repository": "addaix/openloops", "sha": "9bd66390e112947c9241b3e2908ab0dda2173703", "sha_in_history": true, "ref": "refs/heads/main", "ref_name": "main", "run_id": "47549397045", "run_url": "https://github.com/addaix/openloops/actions/runs/47549397045", "server_url": "https://github.com"}, "tools": {"epythet": "0.2.26", "sphinx": "9.1.1", "docutils": "0.22.4", "python": "3.12.16"}, "config": {"theme": "auto", "html_theme": "pydata_sphinx_theme", "accent": "#006d67", "mode": "auto", "api_generator": "autosummary", "ignore": ["tests/", "scrap/", "examples/"], "agent_outputs": true, "aggregates": ["md"], "ai_artifacts": true, "provenance": true, "docs_dir": "docsrc"}, "site": {"modules_documented": null, "objects_documented": null}, "pypi": {"checked": true, "latest": "0.1.84", "relation": "same", "error": null}, "reproduce": "git clone https://github.com/addaix/openloops && cd openloops\\ngit checkout 9bd66390e112947c9241b3e2908ab0dda2173703\\npip install \\"epythet==0.2.26\\"\\nepythet quickstart . --ignore tests/ scrap/ examples/", "warnings": [], "alignment": {"aligned": true, "notes": []}}', 'DOCUTILSCONFIG': '/home/runner/work/openloops/openloops/docsrc/docutils.conf'}), settings=None)[source]#

Whose trackers this module may write to: the configured owners, else the login.

>>> trusted_owners(settings=CloseSettings(owners=('acme', 'widgets')))
('acme', 'widgets')
>>> trusted_owners(gh=lambda args, **kw: (0, 'me\n'), settings=CloseSettings())
('me',)
Return type:

tuple[str, ...]

openloops.closer.who(*, gh=<function _gh_cli>, settings=None)[source]#

(trusted owners, login, shared repos allowed), resolved once per run.

Return type:

tuple[tuple[str, ...], str, tuple[str, ...]]