Repository navigation
Mount one spec registry on all six transports, after a sweep of the spec line - #173
Merged
Merged
Conversation
…pec line Sweep onto django-service-specs 0.40.0, django-spec-mcp 0.19.0, django-spec-html 0.18.0, django-spec-cli 0.9.0, django-spec-tasks 0.3.0 and django-spec-agents 0.32.0, declaring django-spec-html and django-spec-cli, which the new test imports. board/portable_specs.py declares a FormValidator write and a LIST selector with a label-marked output, kernel permission checks and flat scalars. tests/test_spec_portability.py mounts that registry unchanged on MCP, the agent spec toolset, a SpecCommand, a TaskBinding on Django Tasks' immediate backend, the REST views and the HTML views, asserting each transport's presented payload, then one variant per shape each release now serves: a SpecSource and an object question on MCP, the label fallback and shapes on HTML, a JSON option on the CLI, a file result and a file parameter on tasks, the schema fragment and row links on agents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each list test now has one of the user's own events its search leaves out, so a transport that loses the read fails; the agent's list call names its search through a FunctionModel, since TestModel sends no optional argument. The two file specs get a binding each, built on first use with a fixed name, so each fails on its own refusal. The agents floor rests on row links, the one change the test sees; the schema test sits with the plain agent calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sweep. The lock and PyPI agree on these versions:
Each floor is raised to that release.
django-spec-htmlanddjango-spec-cliare newly declared because the new test imports them, andtest_dependencies_are_declaredenforces that.The conformance test.
backend/board/portable_specs.pydeclares two specs once:FormValidatorwrite;FieldMarking.label()field.Both use a kernel
PermissionCheckand flat scalars.backend/tests/test_spec_portability.pymounts that registry unchanged on all six transports. Each test asserts the payload the transport presents:register_toolspluscall_tool.SpecToolsetunderTestModel(call_tools=[...]), withget_user.SpecCommandrun throughcall_command --json.TaskBindingplusenqueueunderdjango_capture_on_commit_callbacks(execute=True)on Django Tasks' immediate backend, ending inSUCCEEDED.ServiceCreateViewandSelectorListView.SpecFormViewanswers 302 andSpecSelectorViewanswers 200.Every list test has one of the user's own events that its search leaves out. A transport that dropped the read would fail the test.
One variant per gap the releases closed:
SpecSourcetool, and an object question answeredinput_requiredwith its schema.A further agents test checks that a spec's
json_schemafragment reaches what the tool advertises. It is a plain conformance check: agents 0.31.0 already advertised the fragment.Evidence
Each variant fails on the release before. Each old release was installed with
uv pip install --no-deps, thenuv syncrestored the lock. Only the matching variants failed, each on its own refusal or assertion:A mutant that ignores the search fails the list test on every transport.
Suites:
.github/.pnpm buildpasses in react, vue, svelte and angular.Review:
reviewer: fix first, with 3 blocking findings. All three are fixed in the second commit.reviewer-delta: ready to merge.🤖 Generated with Claude Code