outerloop-science 0.1.0.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. outerloop/__init__.py +18 -0
  2. outerloop/__main__.py +3 -0
  3. outerloop/appauth.py +213 -0
  4. outerloop/appmanifest.py +198 -0
  5. outerloop/attempt.py +3481 -0
  6. outerloop/brief.py +515 -0
  7. outerloop/cli.py +439 -0
  8. outerloop/climbboard.py +1145 -0
  9. outerloop/compute.py +482 -0
  10. outerloop/contract.py +483 -0
  11. outerloop/contract_cli.py +63 -0
  12. outerloop/disk.py +164 -0
  13. outerloop/dispatch.py +586 -0
  14. outerloop/followup.py +2143 -0
  15. outerloop/github.py +1486 -0
  16. outerloop/harness.py +1449 -0
  17. outerloop/housekeeping.py +167 -0
  18. outerloop/init.py +313 -0
  19. outerloop/intake.py +129 -0
  20. outerloop/limits.py +80 -0
  21. outerloop/markers.py +48 -0
  22. outerloop/measure.py +523 -0
  23. outerloop/orchestrator.py +1901 -0
  24. outerloop/panel.py +188 -0
  25. outerloop/paths.py +27 -0
  26. outerloop/posting.py +160 -0
  27. outerloop/progress.py +170 -0
  28. outerloop/py.typed +0 -0
  29. outerloop/review.py +611 -0
  30. outerloop/review_agent.py +263 -0
  31. outerloop/review_agent_cli.py +209 -0
  32. outerloop/review_post_cli.py +162 -0
  33. outerloop/review_summarize_cli.py +163 -0
  34. outerloop/role_runner.py +229 -0
  35. outerloop/roles.py +247 -0
  36. outerloop/rolespec.py +89 -0
  37. outerloop/runstate.py +385 -0
  38. outerloop/steward.py +852 -0
  39. outerloop/style.py +12 -0
  40. outerloop/syscall.py +977 -0
  41. outerloop/syscall_cli.py +531 -0
  42. outerloop/tick.py +3166 -0
  43. outerloop/verifier.py +403 -0
  44. outerloop/verify_agent.py +149 -0
  45. outerloop/verify_agent_cli.py +95 -0
  46. outerloop/verify_post_cli.py +116 -0
  47. outerloop_science-0.1.0.dev0.dist-info/METADATA +145 -0
  48. outerloop_science-0.1.0.dev0.dist-info/RECORD +52 -0
  49. outerloop_science-0.1.0.dev0.dist-info/WHEEL +4 -0
  50. outerloop_science-0.1.0.dev0.dist-info/entry_points.txt +2 -0
  51. outerloop_science-0.1.0.dev0.dist-info/licenses/LICENSE +202 -0
  52. outerloop_science-0.1.0.dev0.dist-info/licenses/NOTICE +5 -0
@@ -0,0 +1,116 @@
1
+ """Posting half of the verifier's tokenless split (mirrors review_post_cli).
2
+
3
+ Reads the verdict envelope the session job emitted (`VERIFY_EMIT_FILE`),
4
+ re-validates it, and posts through the normal verification path. This job holds
5
+ the write token; NO model session runs next to it, so a shell judge in the
6
+ session job has no write credential to lift. The artifact crosses a job
7
+ boundary, so nothing in it is trusted: the envelope must name this PR, the
8
+ bot-only skip rule is re-checked here, and every string passes the same
9
+ sanitizing render as the single-job path. Exits 0 on every failure — the
10
+ verifier never fails the target repo's CI.
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ import json
16
+ import logging
17
+ import os
18
+ import sys
19
+ from pathlib import Path
20
+
21
+ from outerloop.github import EnvTokenProvider, GitHubClient
22
+ from outerloop.posting import EXPECTED_FAILURES, post_round, post_skip_stub
23
+ from outerloop.review_agent import _pull_request
24
+ from outerloop.verifier import (
25
+ VERIFY_MARKER,
26
+ format_verify_comment,
27
+ verify_result_from_data,
28
+ verify_skip_reason,
29
+ )
30
+
31
+ log = logging.getLogger(__name__)
32
+
33
+
34
+ def post_from_file(
35
+ client: GitHubClient, repo: str, number: int, bot_login: str, path: Path
36
+ ) -> str | None:
37
+ """Post the emitted verdict (or skip stub). Returns the round label, or
38
+ None when there was nothing to post or the envelope was refused."""
39
+ try:
40
+ envelope = json.loads(path.read_text())
41
+ except (OSError, json.JSONDecodeError) as exc:
42
+ log.warning("verdict file unreadable (%s); nothing posted", exc)
43
+ return None
44
+ if not isinstance(envelope, dict):
45
+ log.warning("verdict file is not an object; nothing posted")
46
+ return None
47
+ if envelope.get("repo") != repo or envelope.get("number") != number:
48
+ log.warning("verdict envelope names a different PR; refused")
49
+ return None
50
+ kind = envelope.get("kind")
51
+ if kind == "skip-clean":
52
+ log.info("session skipped cleanly (%s); nothing to post", envelope.get("detail", ""))
53
+ return None
54
+ if kind not in ("skip-stub", "findings"):
55
+ log.warning("unknown envelope kind %r; nothing posted", kind)
56
+ return None
57
+ try:
58
+ # the write authority re-checks the bot-only rule for EVERY kind: this
59
+ # side of the artifact boundary is the one that must never post on a
60
+ # non-bot PR — a forged envelope is still a post
61
+ pr, pr_data = _pull_request(client, repo, number)
62
+ skip = verify_skip_reason(pr, bot_login)
63
+ if skip is not None:
64
+ log.info("skipping post on %s#%s: %s", repo, number, skip)
65
+ return None
66
+ if kind == "skip-stub":
67
+ post_skip_stub(client, repo, number, "verification", RuntimeError("no verdict"))
68
+ return "skip-stub"
69
+ data = envelope.get("data")
70
+ result = verify_result_from_data(data if isinstance(data, dict) else {})
71
+ body = format_verify_comment(result)
72
+ if body is None:
73
+ log.info("nothing to post")
74
+ return None
75
+ round_label = post_round(
76
+ client,
77
+ repo,
78
+ number,
79
+ VERIFY_MARKER,
80
+ body,
81
+ pr_data,
82
+ reviewed_by=str(envelope.get("reviewed_by", "")),
83
+ )
84
+ log.info("posted verification (%s) on %s#%s", round_label, repo, number)
85
+ return round_label
86
+ except EXPECTED_FAILURES as exc: # advisory: never fail the target repo's CI
87
+ log.warning("posting did not complete: %s: %s", type(exc).__name__, exc)
88
+ return None
89
+
90
+
91
+ def main() -> int:
92
+ logging.basicConfig(level=logging.INFO, format="%(message)s")
93
+ repo = os.environ.get("PR_REPO", "").strip()
94
+ number_raw = os.environ.get("PR_NUMBER", "").strip()
95
+ if not repo or not number_raw.isdigit():
96
+ log.warning("PR_REPO/PR_NUMBER unset or invalid; skipping")
97
+ return 0
98
+ bot_login = os.environ.get("REVIEW_BOT_LOGIN", "").strip()
99
+ if not bot_login:
100
+ log.warning("REVIEW_BOT_LOGIN is unset; skipping (cannot re-check the bot rule)")
101
+ return 0
102
+ emit_file = os.environ.get("VERIFY_EMIT_FILE", "").strip()
103
+ if not emit_file:
104
+ log.warning("VERIFY_EMIT_FILE is unset; skipping")
105
+ return 0
106
+ path = Path(emit_file).resolve()
107
+ if not path.is_file():
108
+ log.info("no verdict file at %s (clean skip upstream); nothing to post", path)
109
+ return 0
110
+ client = GitHubClient(auth=EnvTokenProvider("GITHUB_TOKEN"))
111
+ post_from_file(client, repo, int(number_raw), bot_login, path)
112
+ return 0
113
+
114
+
115
+ if __name__ == "__main__":
116
+ sys.exit(main())
@@ -0,0 +1,145 @@
1
+ Metadata-Version: 2.5
2
+ Name: outerloop-science
3
+ Version: 0.1.0.dev0
4
+ Summary: Autonomous research agent that co-develops the lab's benchmark-bearing repos
5
+ Project-URL: Homepage, https://outerloop.science
6
+ Project-URL: Repository, https://github.com/outerloop-science/outerloop
7
+ Project-URL: Changelog, https://github.com/outerloop-science/outerloop/blob/main/CHANGELOG.md
8
+ Project-URL: Issues, https://github.com/outerloop-science/outerloop/issues
9
+ Author: Agentic Learning AI Lab, New York University
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Requires-Python: >=3.12
14
+ Requires-Dist: pydantic>=2
15
+ Requires-Dist: pyyaml>=6
16
+ Provides-Extra: app-auth
17
+ Requires-Dist: cryptography>=42; extra == 'app-auth'
18
+ Description-Content-Type: text/markdown
19
+
20
+ <picture>
21
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/outerloop-science/outerloop/main/docs/assets/icon-dark.svg">
22
+ <img alt="Outerloop" src="https://raw.githubusercontent.com/outerloop-science/outerloop/main/docs/assets/icon-light.svg" width="132">
23
+ </picture>
24
+
25
+ # Outerloop
26
+
27
+ [![ci](https://github.com/outerloop-science/outerloop/actions/workflows/ci.yml/badge.svg)](https://github.com/outerloop-science/outerloop/actions/workflows/ci.yml)
28
+
29
+ **Autoresearch agents that improve your benchmark.**
30
+
31
+ Outerloop runs AI agents on your own research code. An agent proposes a change,
32
+ runs the experiment on your cluster, and opens a pull request only when your
33
+ benchmark actually improves. Every attempt is written up, including the ones
34
+ that failed.
35
+
36
+ You run it yourself: your keys, your compute, your repos. Nothing reports back
37
+ to us. It is built and used every day by the
38
+ [Agentic Learning AI Lab](https://agenticlearning.ai) at NYU, where it
39
+ co-develops our research codebases.
40
+
41
+ ## How it works
42
+
43
+ 1. **Propose.** An agent picks a hypothesis and writes the code change.
44
+ 2. **Experiment.** It runs the training on your cluster and reads the results.
45
+ 3. **Measure.** Outerloop scores the change against the base tree at the same
46
+ seed. Noise does not count as an improvement.
47
+ 4. **Review.** Reviewers read the change and the claim. If both hold up, a
48
+ pull request opens.
49
+ 5. **Record.** Every attempt gets a short report: hypothesis, change, outcome,
50
+ next step. Negative results included.
51
+
52
+ Agents cannot touch the benchmark, the budgets, or your CI. Your branch
53
+ protection and required checks apply to them as to any contributor. By default
54
+ a pull request waits for a human; a repo can also let clean ones merge
55
+ themselves.
56
+
57
+ ## Get started
58
+
59
+ Three commands and two files: your model key and the contract. You need a repo
60
+ with a benchmark command, a model API key (Anthropic by default), and a Slurm
61
+ cluster or one machine with a GPU.
62
+
63
+ ```bash
64
+ pip install outerloop-science
65
+ outerloop init # where the loop runs, which repo, your GitHub bot; writes the config
66
+ ```
67
+
68
+ Put your Anthropic API key in `~/.config/outerloop/harness_key`: one line,
69
+ readable only by you (`chmod 600`). Then add one file, `.outerloop.yaml`, to
70
+ the repo you want improved:
71
+
72
+ ```yaml
73
+ benchmarks:
74
+ - name: my-benchmark
75
+ command: uv run python -m mypkg.eval --json # prints {"success_rate": 0.42}
76
+ metric: success_rate
77
+ direction: max
78
+ budgets:
79
+ gpu_hours_per_run: 8
80
+ runs_per_week: 10
81
+ scope:
82
+ allowed: [src/] # the only paths an agent may change
83
+ roadmap: docs/roadmap.md # what the agents read for direction; never written
84
+ ```
85
+
86
+ ```bash
87
+ outerloop start # on a Slurm login node this submits the loop; without Slurm it runs in the foreground
88
+ ```
89
+
90
+ Step by step, other model backends included:
91
+ [docs/install.md](https://github.com/outerloop-science/outerloop/blob/main/docs/install.md).
92
+ Everything the contract can say:
93
+ [docs/contract.md](https://github.com/outerloop-science/outerloop/blob/main/docs/contract.md).
94
+
95
+ ## Only want pull request reviews?
96
+
97
+ The reviewer works on its own. One workflow file and an API key, about five
98
+ minutes, no bot account and no cluster. It comments on pull requests with
99
+ concrete findings and never approves, blocks, or fails your build. See
100
+ [docs/reviewer.md](https://github.com/outerloop-science/outerloop/blob/main/docs/reviewer.md).
101
+
102
+ ## Where it runs
103
+
104
+ The first-class home is a Slurm cluster. There is no daemon: the loop is a
105
+ chain of short jobs that resubmit themselves, so nothing listens and no inbound
106
+ SSH is needed. Experiments and evaluations run inside your container image with
107
+ no credentials, and GPU-hours are metered against the contract's budget. A
108
+ single machine with a GPU works too, for cheap benchmarks. Details:
109
+ [docs/compute.md](https://github.com/outerloop-science/outerloop/blob/main/docs/compute.md).
110
+
111
+ ## Safety by design
112
+
113
+ - **Opt-in and contract-bound.** A repo takes part by granting the bot access
114
+ and committing a contract. The contract, your roadmap, and `.github/` are
115
+ never writable by an agent.
116
+ - **Nothing on trust.** Outerloop measures every claim itself, on committed
117
+ trees, and re-verifies before a pull request exists.
118
+ - **Untrusted input.** Pull request text, diffs, issues, web pages, and job
119
+ output are data, never instructions. Agents run without credentials.
120
+ - **Budgets in code.** Launches, GPU-hours, and runs per week are enforced by
121
+ the kernel, not left to the agent.
122
+ - **No model lock-in.** Claude Code, Codex, and hermes-agent are wired today;
123
+ backends are swappable.
124
+
125
+ Full design: [docs/design/architecture.md](https://github.com/outerloop-science/outerloop/blob/main/docs/design/architecture.md) ·
126
+ Roadmap: [docs/roadmap.md](https://github.com/outerloop-science/outerloop/blob/main/docs/roadmap.md)
127
+
128
+ ## Developing
129
+
130
+ ```bash
131
+ uv sync
132
+ uv run pre-commit install
133
+ uv run pytest
134
+ ```
135
+
136
+ | Path | Purpose |
137
+ | --- | --- |
138
+ | `src/outerloop/` | The kernel: contract, tick (the Slurm chain), attempt/orchestrator (the climb), measure/dispatch (evals as jobs), syscall (the author's tool), panel/verifier/review, github, harness backends |
139
+ | `tests/` | Tiers: unit (default), `slow`, `llm`, `slurm` markers |
140
+ | `scripts/` | Committed operational scripts (the tick chain, provisioning) |
141
+ | `docs/` | Install guide, architecture and design notes, roadmap |
142
+
143
+ ## License
144
+
145
+ Apache License 2.0 — see [LICENSE](https://github.com/outerloop-science/outerloop/blob/main/LICENSE) and [NOTICE](https://github.com/outerloop-science/outerloop/blob/main/NOTICE).
@@ -0,0 +1,52 @@
1
+ outerloop/__init__.py,sha256=VdBqNDaS-j7ck0kDi0meK4p0XwmpdqNEzKZv7clVJGI,681
2
+ outerloop/__main__.py,sha256=Fq2ADl3rjZ4i2m1svON_KO2kJqpwUnohLhdlacAnEpM,57
3
+ outerloop/appauth.py,sha256=leIxUcfdHKM_uzNyw96RRi0hOvFqq1k6nZVbnddZz48,8901
4
+ outerloop/appmanifest.py,sha256=qn-IaWHzhd2TRu_JGuFRM26MUiKYSsYIfv2JxkLu2D0,8119
5
+ outerloop/attempt.py,sha256=wrziCX_x3s0PVxAc0s88Y-1a6EGt0Y8NRpK4VLb5l4o,158071
6
+ outerloop/brief.py,sha256=f8QeMQRhsZvyNEh28sbM684FwWZCGU-rwPL0o8lqtrw,24156
7
+ outerloop/cli.py,sha256=9Mu79H1TO2H4VarqIZYMrGtRkKw1iYxAG_qc4r9lKJo,16829
8
+ outerloop/climbboard.py,sha256=IH0sAu2sZgY4D2DoIhvgb7e7ppXWViXKv8y0qs-QEDw,57015
9
+ outerloop/compute.py,sha256=cY_iXR_T4pz6NWIXmAnmmaDaGgC-N2ywA88JjRj6PEg,21087
10
+ outerloop/contract.py,sha256=_MYTqKJ6CYyuDWR1t3u1EY6dOTq4MBTEZjJXVI-wYvk,24463
11
+ outerloop/contract_cli.py,sha256=Pa-sJe7G8BuLGed5tqnlq6L75fTT1HHO4d-XWZPW8U8,1992
12
+ outerloop/disk.py,sha256=FAgR1FJVPTu1YCcfNxcJtUFxJsBFcOaenF8lYAVPL1Y,5853
13
+ outerloop/dispatch.py,sha256=70Of08UygVco9drBpq8Xfqi5tunMBvNk--tPYZjcpNI,27401
14
+ outerloop/followup.py,sha256=NhUnFhDAm4ryGcBdLeC7o01aPqin5dnMN7UbMG3Uf00,93827
15
+ outerloop/github.py,sha256=8SWJB2JB61X7tPwJqz0fG3RhjtPYorQvvJNL4sZX57g,65317
16
+ outerloop/harness.py,sha256=xldeTzupl_03jjUhvzB-BqCv46pEmDl4B__pnwI6BqM,66652
17
+ outerloop/housekeeping.py,sha256=nlyy9kWUwTPjW0FLizVwXI99xSTZj7JJDzIdzJzDfEk,6663
18
+ outerloop/init.py,sha256=7NL1odo2Pk7yQY_A0_ZSCZUVHxLR16JWliw3FXvwZ8g,13902
19
+ outerloop/intake.py,sha256=a3j1B6W7v3QpQv53CoJS0hh6vz7B3nLn_cV2G-nt6Uw,5424
20
+ outerloop/limits.py,sha256=GQdspxW4_x5dnFM-6nLJxFQ1z3tkRak75LLzzFQTClM,3388
21
+ outerloop/markers.py,sha256=Bi_hwWCICW6qPQ8_yB--0IrUaLLh9C3K24aDaCxHNAY,1739
22
+ outerloop/measure.py,sha256=aHAAj6SjVvxPfh9YTSlpUigpeozaa35FeD_ix4x2w20,22499
23
+ outerloop/orchestrator.py,sha256=Ljl9L7Jxl2DexiBejN0ujRlJ5A5-OOMRgFVatRZR77Y,84461
24
+ outerloop/panel.py,sha256=bSoQtuP2xqWbl7DBdeqihrGNyDz6-u5wWrV3nI-b0Js,7665
25
+ outerloop/paths.py,sha256=W8P5ucsOm8l8ynO3rwJBl1dcbxK1mMiqHtVfSF_JeU8,939
26
+ outerloop/posting.py,sha256=dUi7P46HzsQmVgs5BXy5GXGOkcTNjOZDO-x_y0yAaaU,6632
27
+ outerloop/progress.py,sha256=9vCKsO8_NGrw3-hhSif5QA6rLoqNOrQ8ICIpVBqD2VI,6133
28
+ outerloop/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ outerloop/review.py,sha256=bRGWrZkoeAqu5lF_cLhO5NtH-p3tAVyclv4XDaesz6c,27187
30
+ outerloop/review_agent.py,sha256=XxGrGVZb61pqd6F3I15lrFBQptduER7QNmxMmCaUNec,9961
31
+ outerloop/review_agent_cli.py,sha256=R9rZHvQ9LSttocSUuO0087fywLf3iHt-vldxo6Ygd7k,8355
32
+ outerloop/review_post_cli.py,sha256=XNw8BjxJMtEMzWRK4jKV-f_alOdIWeqJfwdndFCqTm8,6266
33
+ outerloop/review_summarize_cli.py,sha256=p_gmTGj_uEKik47EgVuHNDDtO18cw2dVznnvnm_9k3c,6791
34
+ outerloop/role_runner.py,sha256=4l4zw0TtiFrGDmzHW8T6vZ7OLq7vVD0cN4U4BoNbgUs,9681
35
+ outerloop/roles.py,sha256=hx8RrtJCBb0nsJGvxamHJ8Dk3j8lIFsTCapbOlQyKN0,10952
36
+ outerloop/rolespec.py,sha256=6VmrwTlLSsN17aQSDtLB2MvcEHYpbSOPIyPcY1uGny8,3915
37
+ outerloop/runstate.py,sha256=5bEczCz1KTbVI1cTwNvd4Oc2RXIX-9piWD5-g_S6tMo,17976
38
+ outerloop/steward.py,sha256=E7T7plC3HiVYGpLu6Ehpqd08ATA2ptku0Sg_yiZ0ht8,34400
39
+ outerloop/style.py,sha256=icZQNq0hOLjhoXStpH7rxZm24fsAh4uL8NMH72nz9S0,497
40
+ outerloop/syscall.py,sha256=VBewFVBv1pucByUx44-cKd2a1-k3YsdcP31JQ16X6tk,44542
41
+ outerloop/syscall_cli.py,sha256=e2Y_TQ9rAxAKjwLgSHHKgT93yMfu55SFO04k4s83OF4,22079
42
+ outerloop/tick.py,sha256=9JTVGU_E9SQXcg4ftVpy-FGwZBg8-Kcg3H8SEdvmheg,142849
43
+ outerloop/verifier.py,sha256=BeizeiAqXGiuL-pmGptedtFo_GWAxfguwZhoTdAn1qg,17793
44
+ outerloop/verify_agent.py,sha256=fzv5N_cm5g6ZcwMmIpd5S5UbqW3wAEXTQmPFWK_Zdi4,6482
45
+ outerloop/verify_agent_cli.py,sha256=3QCQTB7MSdtN-k9x9HovLPo8q988H9o9Uus8rmaR444,3908
46
+ outerloop/verify_post_cli.py,sha256=vw2WXzP10HlZW7inDDpt6k6Zq9sPQwFnmXrwvnpHjZg,4601
47
+ outerloop_science-0.1.0.dev0.dist-info/METADATA,sha256=FKw7IwXq3XYUOROexIGT50TG4Ygd0afDNyQs_QtrUFk,6326
48
+ outerloop_science-0.1.0.dev0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
49
+ outerloop_science-0.1.0.dev0.dist-info/entry_points.txt,sha256=mLYW8Dxv8FnrYdCkKV8ekwcV3TnfzPYkdbJOkYzF5xE,49
50
+ outerloop_science-0.1.0.dev0.dist-info/licenses/LICENSE,sha256=Kqt7czAsZdfZp9B6a3WoTt9CZuy7_0sjPNMW7KHckk8,11375
51
+ outerloop_science-0.1.0.dev0.dist-info/licenses/NOTICE,sha256=VTBNz2gnaoM68CoUkQe1G7VbrV-R0WfqKHrZhYYbuqI,193
52
+ outerloop_science-0.1.0.dev0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ outerloop = outerloop.cli:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Agentic Learning AI Lab, New York University
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ Outerloop
2
+ Copyright 2026 Agentic Learning AI Lab, New York University
3
+
4
+ This product includes software developed at the
5
+ Agentic Learning AI Lab, New York University (https://outerloop.science).