Skip to content

The service and the core leave, and the root becomes the client - #751

Merged
FlexOr2 merged 14 commits into
mainfrom
claude/issue-749-ar-r3-the-service-and-the-core-leave-and
Nov 6, 2026
Merged

FlexOr2 merged 14 commits into
mainfrom
claude/issue-749-ar-r3-the-service-and-the-core-leave-and

Conversation

@FlexOr2

@FlexOr2 FlexOr2 commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Item #749 (AR-R3 folding AR-R4), the operator's ruling of 06.11.2026 on #697.

  • Deletes packages/service, src/agent_runtime and their tests.

  • Flattens the client to src/agent_runtime_client and tests/.

  • Rewrites the gates and docs.

  • Removes StreamEvent.correlation_id.

  • quality / verdict stays red with the eight declared loosenings naming The agent service and its CLI route retire #697. Only the operator's quality emergency-merge lands it.

  • docs/MIGRATING.md, docs/decisions/ and release.yml's migration notice are gone, with every link to them. The rules that still hold are stated in docs/ARCHITECTURE.md.

  • The client's pydantic floor rises to 2.12, the lowest release with a CPython 3.14 wheel.

Verification (tip 88380a4)

  • CI run 42228789019:
  • Explorative E2E on 88380a4: every cell of the head's 37-cell scenario matrix held.
    • one client wheel and sdist, with their METADATA and contents;
    • every client import of hal, hopin, presentator and songmaker, from the wheel and from a git install of the root without #subdirectory;
    • the extras;
    • the deleted paths;
    • 380 client test functions before and after;
    • correlation_id gone;
    • host vocabulary: 0 hits;
    • release.yml expects one wheel and keeps every refusal test;
    • lint-imports: 5 contracts kept;
    • quality hygiene clean;
    • no tracked link to or citation of a deleted file, apart from the routed wire.md links.
  • Reviews:
    • Opus 5.5 high review and Codex gpt-6-astra high gate: APPROVE on 88380a4, as delta re-checks since d194d9a.
    • By hand, a second reviewer (Codex gpt-6-astra high) and a second gate (Opus 5.5 high): both APPROVE on 39b0927..d194d9a.

Follow-ups routed to AR-R5 (#697 comments of 06.11.2026):

Routing: build sonnet/medium; review opus/high, plus a second reviewer codex gpt-6-astra/high by hand; gate codex gpt-6-astra/high, plus a second gate opus/high by hand; land the operator's quality emergency-merge. Blocking: dependency-floors red at the pydantic floor → fix (raised to 2.12); dead links to decision 0001 in wire.md and record citations in docstrings and the wheel description → fix; a ninth undeclared loosening (clone baseline) → E2E → fix, first declared (gate REVISE), then kept as an empty clones table; capability verification stated as mandatory for the person front → second reviewer → fix; a dated header in the new record → second reviewer → disputed, then moot when the operator's cut deleted the records; quality / verdict red with the declared loosenings → disputed, by design.

Work-Item: #749

Closes #749

🤖 Generated with Claude Code

FlexOr2 and others added 11 commits November 6, 2026 13:39
Item #749 (AR-R3 folding AR-R4), the operator's ruling of 06.11.2026 on #697:
agent-runtime ships only the client library. The service, the core under
src/agent_runtime, every core and service test, conftest.py, the client's
duplicate LICENSE and the operations and host guides go; the files stay
recoverable from git.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Item #749 (AR-R3 folding AR-R4): the client is the only distribution, so its
sources sit at src/agent_runtime_client and its tests in tests/ beside
tests/workflows. Moved with git mv; support imports now read tests.support.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Item #749 (AR-R3 folding AR-R4): the root takes the client's metadata, version,
dependencies and extras; dev holds the test and lint tools plus fastapi and
both client extras. The workspace, its sources, the api extra and the keycloak
marker go with the packages. uv.lock is regenerated.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Item #749 (AR-R3 folding AR-R4): only the core set or read the field, and the
core is gone. The turn_events docstring no longer speaks of the core or the
service. ruff now counts the repository root as first-party, so the moved
tests' tests.support imports sort beside the package imports.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Item #749 (AR-R3 folding AR-R4), the operator's ruling of 06.11.2026 on #697:
import-linter keeps the client's contracts and a client-only no-host and
no-web-framework pair; quality drops the keycloak job, the root and layout
allowances and every baseline entry (all pointed at deleted paths) and
declares eight loosenings naming #697; CI installs once, runs ruff,
lint-imports and pytest over src and tests and builds the one wheel; the
release builds and expects exactly the client wheel. dependency-floors stays,
the client has real floors.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Item #749 (AR-R3 folding AR-R4), the operator's ruling of 06.11.2026 on #697:
AGENTS.md, README.md and ARCHITECTURE.md describe the one client; MIGRATING
gains the 0.22.0 section; the 0001 record of the deleted service goes and
decision 0003 keeps what still holds of it (0002 was already taken by the
library and app-key record). The host-vocabulary allow file keeps only the
MIGRATING lines that still match. AGENTS.md drops the sentence on hal's image
pin and the lockstep.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… pydantic floor to 2.12

The lane deletes decision record 0001, so docs/wire.md, docstrings and the
wheel description now cite 0003, or drop the citation where the rule described
the service. pydantic 2.7 resolves pydantic-core 2.18, which has no CPython
3.14 wheel, so the declared floor was uninstallable on the required Python;
2.12 is the version the floors job resolved before. Unused imports in the CI
extras snippets and a stale step name go too.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… v0.21.0 docs and describe front-matter validation per field
The ten clone entries pointed into deleted code, so the baseline is empty; quality / verdict reports a missing baseline as an undeclared loosening unless config.toml declares it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ring a ninth loosening

The v0.9.2 verdict reports a removed clone baseline only when the table is absent; the generator writes an empty table for zero pairs, which is green and keeps clone enforcement on. Serves #749.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
FlexOr2 and others added 3 commits November 6, 2026 14:27
…erson front's gate; give the wheel-URL pin its digest
…that pointed at them

The operator ruled the radical doc cut into #749: docs/MIGRATING.md and docs/decisions/ go whole, release.yml no longer points a release page at a migration section, and every link or citation of them goes. The rules that still hold are stated in docs/ARCHITECTURE.md, their one owner. The host-vocabulary allow file loses the lines that only matched MIGRATING.md.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e true for the person front

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Nov 6, 2026

Copy link
Copy Markdown

@FlexOr2
FlexOr2 merged commit ed5394b into main Nov 6, 2026
16 of 18 checks passed
@FlexOr2

FlexOr2 commented Nov 6, 2026

Copy link
Copy Markdown
Member Author

Emergency door used by @FlexOr2 at 2026-11-06T14:02:27+00:00: declared loosening (#697 of 2026-11-06): mandatory job "keycloak-token-shapes" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; the agent service and its Keycloak token tests are deleted, so the job has nothing to run; declared loosening (#697 of 2026-11-06): import contract "agent_runtime and agent_runtime_client reach back into no host" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; replaced by a contract that names the client alone, because agent_runtime is deleted; declared loosening (#697 of 2026-11-06): import contract "agent_runtime_service builds on agent_runtime, which builds on agent_runtime_client, never the reverse" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; agent_runtime_service and agent_runtime are deleted, so no layers remain to order; declared loosening (#697 of 2026-11-06): import contract "agent_runtime_service reaches back into no host" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; agent_runtime_service is deleted, so the contract has no source module; declared loosening (#697 of 2026-11-06): import contract "inside the core, only the routers import a provider package; the machinery below them never does" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; agent_runtime is deleted, so its routers and the machinery below them are gone; declared loosening (#697 of 2026-11-06): import contract "only the service imports a web framework" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; replaced by a contract that keeps web frameworks out of the client, because the service is deleted; declared loosening (#697 of 2026-11-06): import contract "the core imports neither agent_runtime_client.mcp_server nor its extras" removed - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; agent_runtime is deleted, so the core has no imports to keep out; declared loosening (#697 of 2026-11-06): import-linter changes root_packages - reason: the operator's ruling of 06.11.2026 on #697 (AR-R3 folding AR-R4, #749): agent-runtime ships only the client; root_packages shrinks to agent_runtime_client because agent_runtime and agent_runtime_service are deleted; merges with a merge commit; quality_gate off → merge → on.

@FlexOr2
FlexOr2 deleted the claude/issue-749-ar-r3-the-service-and-the-core-leave-and branch November 6, 2026 14:02
FlexOr2 added a commit that referenced this pull request Nov 6, 2026
Raises the one version literal, `version` in `pyproject.toml`, from 0.21.0 to 0.22.0. `uv.lock`'s root entry follows, and nothing else in the lock moves. Release 0.22.0 ships the client alone, after AR-R3 (#751) and AR-R5 (#757), together with the gateway's refusal logging (#755).

After this lands, the operator dispatches `release.yml` at main's head.

Closes #758

Routing: build sonnet/medium; review sonnet/medium; gate none; land haiku/low. Blocking: none

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Work-Item: #758
FlexOr2 pushed a commit that referenced this pull request Nov 24, 2026
Bumps [pytest-randomly](https://github.com/pytest-dev/pytest-randomly) from 4.1.0 to 5.1.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pytest-dev/pytest-randomly/blob/main/CHANGELOG.rst">pytest-randomly's changelog</a>.</em></p>
<blockquote>
<h2>5.1.0 (2026-11-08)</h2>
<ul>
<li>
<p>Drop Python 3.10 support.</p>
</li>
<li>
<p>Fix <code>--randomly-seed=last</code> with pytest-xdist, where workers could each pick a different seed after <code>--cache-clear</code>, failing with “Different tests were collected”.
Workers now always use the seed resolved on the main process.</p>
<p>Thanks to Abhishek Verma in <code>PR [#755](pytest-dev/pytest-randomly#755) &lt;https://github.com/pytest-dev/pytest-randomly/pull/755&gt;</code>__.</p>
</li>
<li>
<p>Fix crash when test node IDs contain surrogate characters from undecodable filenames.</p>
<p>Thanks to Huanyi Xie in <code>PR [#751](pytest-dev/pytest-randomly#751) &lt;https://github.com/pytest-dev/pytest-randomly/pull/751&gt;</code>__.</p>
</li>
<li>
<p>Initialize the configured seed when the report header is disabled, including quiet output and runs without the terminal plugin.</p>
<p>Thanks to Rupayon Haldar in <code>PR [#753](pytest-dev/pytest-randomly#753) &lt;https://github.com/pytest-dev/pytest-randomly/pull/753&gt;</code>__.</p>
</li>
</ul>
<h2>5.0.0 (2026-09-01)</h2>
<ul>
<li>
<p>Support Python 3.15.</p>
</li>
<li>
<p>Shuffle tests in a wrapper around the <code>pytest_collection_modifyitems</code> hook, guaranteeing that the shuffle runs before all other plugins’ implementations of the hook.</p>
<p>Previously, pytest-randomly shuffled in a plain <code>tryfirst</code> hook implementation.
When another plugin also implemented the hook with <code>tryfirst</code>, as pytest-django does, whichever plugin pytest happened to register later ran first.
Registration order comes from package metadata on disk, which can differ between seemingly identical environments — even two containers built from the same <code>Dockerfile</code>, or the same virtual environment after reinstalling a package.
As a result, the same seed could yield different test orders in different environments.
Worse, in environments where pytest-randomly ended up shuffling last, it silently destroyed the other plugin’s ordering — for pytest-django, the grouping of database tests that mirrors Django’s test runner (non-transactional database tests, then transactional ones, then the rest).</p>
<p>Now the shuffle always runs first, and plugins that group tests with a stable sort apply their grouping on top of the shuffled order, so the final order is reproducible from the seed alone.
In environments that previously hit the reversed hook order, upgrading changes the test order for a given seed — restoring both reproducibility and other plugins’ grouping.</p>
<p><code>PR [#746](pytest-dev/pytest-randomly#746) &lt;https://github.com/pytest-dev/pytest-randomly/pull/746&gt;</code><strong>.
Thanks to milssky for the report in <code>Issue [#701](pytest-dev/pytest-randomly#701) &lt;https://github.com/pytest-dev/pytest-randomly/issues/701&gt;</code></strong>.</p>
</li>
<li>
<p>Require pytest 8+, the first version to require a version of pluggy that supports hook wrappers, as used by the above fix.</p>
<p><code>PR [#746](pytest-dev/pytest-randomly#746) &lt;https://github.com/pytest-dev/pytest-randomly/pull/746&gt;</code>__.</p>
</li>
<li>
<p>Reset <code>Polyfactory &lt;https://polyfactory.litestar.dev/&gt;</code>__\’s default random state at the start of every test, if it is installed.</p>
<p>Thanks to Rahul Kumar in <code>PR [#735](pytest-dev/pytest-randomly#735) &lt;https://github.com/pytest-dev/pytest-randomly/issues/735&gt;</code>__.</p>
</li>
<li>
<p>Switch package build backend from setuptools to <code>uv_build &lt;https://docs.astral.sh/uv/concepts/build-backend/&gt;</code>__.
This makes builds with uv about nine times faster, since uv runs the backend natively, without creating a build environment or spawning a Python process.
Additionally, source distributions no longer include test files, which setuptools previously included incompletely, missing the files needed to actually run them.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/40a2b2b5f7424b544236f5ae08d70bb2c6ae7cc4"><code>40a2b2b</code></a> Version 5.1.0</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/22c367f3ce608eb98e04314c03cc5ab32d901673"><code>22c367f</code></a> Initialize the random seed without requiring a report header (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/753">#753</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/93195522738a89381aeb4104d6396a901aae63f0"><code>9319552</code></a> Fix crash on surrogate characters in test node IDs (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/751">#751</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/54f22cf76770a4a557cac02501e047f41fcd23c7"><code>54f22cf</code></a> Fix --randomly-seed=last with pytest-xdist (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/755">#755</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/8f9e11adfc73860b65f987a066d0d0112e0d2afa"><code>8f9e11a</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/754">#754</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/c7549aeaba637b745bd829c861c1b55d8e91148f"><code>c7549ae</code></a> Upgrade dependencies (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/752">#752</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/99dc4cf0026b3cb65a240fb98680f01d920a99b8"><code>99dc4cf</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/750">#750</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/35dcf0a5df9f41d57a44cc01e1eec594af23ff89"><code>35dcf0a</code></a> Drop Python 3.10 support (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/749">#749</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/111dcc495860ba5397ecf6091383f5e172eafbf5"><code>111dcc4</code></a> Upgrade dependencies (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/748">#748</a>)</li>
<li><a href="https://github.com/pytest-dev/pytest-randomly/commit/444dc3c636950d46062cba94e745e6234c531fc8"><code>444dc3c</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/pytest-dev/pytest-randomly/issues/747">#747</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/pytest-dev/pytest-randomly/compare/4.1.0...5.1.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pytest-randomly&package-manager=uv&previous-version=4.1.0&new-version=5.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

No-Item: deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AR-R3: the service and the core leave, and the root becomes the client

1 participant