Skip to content

roadmap: end-to-end API contract and lifecycle safety #36

Closed

Description

@mojtaba-arvin

Product objective

Make Django API Versioning more than a URL registration helper: give Django/DRF teams one reliable workflow for evolving APIs without accidentally breaking existing clients.

The product should remain composable with Django and DRF rather than replacing their internals or bundling competing schema/tooling ecosystems.

Product pillars

1. Deterministic versioned implementation routing

  • First-class DRF ViewSet router using DRF's own route generation.
  • Per-route inheritance: changed list/detail/actions are replaced independently; unchanged routes continue to inherit.
  • Correct exact-version reversal, custom actions, hyperlink fields, namespaces, and callback introspection.
  • A DRF adapter that exposes the route-selected version as request.version.
  • Keep Django-native function/class views and existing decorators backward-compatible.

Tracking: Issue #32 and PRs #33/#35.

2. API contract visibility and compatibility guardrails

  • Optional, tested integration with drf-spectacular; do not write a competing OpenAPI generator.
  • Generate one schema per supported API version, including inherited routes.
  • Document a CI workflow that compares released schema snapshots with candidate schemas using oasdiff breaking (optional external tool, not a runtime dependency).
  • Provide actionable route/schema drift reports and clear baselines.
  • Distinguish route existence checks from semantic request/response compatibility; never claim the former proves the latter.

3. Version lifecycle and safe migrations

  • Preserve the existing deprecation, sunset, and lifecycle headers.
  • Make lifecycle checks work with the selected route version, not brittle path parsing.
  • Extend migration tooling only where it can produce deterministic dry-run plans, safe diffs, and explicit destructive-change warnings.
  • Document a consumer migration workflow and a policy for retired versions.

4. Version negotiation and tenant policy (research gate)

  • Evaluate path, Accept-header, and query negotiation against actual DRF behavior and production caching/CDN constraints.
  • Do not activate API_VERSIONING_CHANNELS or API_EFFECTIVE_VERSION_RESOLVER merely to remove warnings.
  • Header/query support must select the matching implementation, set Vary correctly, preserve URL reversal, and define invalid/conflicting-version behavior.
  • Tenant-specific versions require a trusted identity source and a design that does not bypass DRF authentication/permissions or create cross-tenant cache leakage.
  • Ship only if real use cases justify the added complexity; otherwise keep path-only routing explicit.

5. Production quality and adoption

  • Maintain a supported Python/Django/DRF compatibility matrix with upstream-compatible constraints.
  • Test the built wheel, optional dependency boundaries, Windows/macOS, URL namespaces, and schema tooling.
  • Keep README examples executable and all claims backed by integration tests.
  • Add migration guides, architecture docs, troubleshooting, and a small end-to-end sample project.
  • Track security advisories and framework support windows; don't present EOL Django as a recommended new deployment target.

Delivery principles

  1. Research user pain and competitor behavior before introducing public settings.
  2. Write a decision record and failing acceptance tests before runtime implementation.
  3. Deliver in small PRs that can be independently reviewed and reverted.
  4. Do not expose incomplete capabilities in README/PyPI metadata.
  5. Use patch/minor/major versioning according to actual compatibility impact; release only after CI, wheel-install smoke tests, changelog, and docs are complete.
  6. Keep optional integrations optional and avoid runtime dependencies on schema diff tools.

Initial priority

Finish the ViewSet router and its DRF adapter first. In parallel, specify the schema/contract workflow and lifecycle integration tests. Keep negotiation and tenant policy in research until evidence supports a safe, useful design.

This issue is the umbrella product roadmap; implementation details remain in focused issues and PRs.

Activity

  1. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Negotiation research checkpoint

    DRF already supplies URLPathVersioning, NamespaceVersioning, AcceptHeaderVersioning, QueryParameterVersioning, and HostNameVersioning. We should not recreate their parsers.

    The new VersionedRouter remains path-based because Django resolves the URL callback before DRF negotiates a request version. Header/query dispatch is a separate runtime-dispatch problem: it must choose the matching ViewSet after the version is determined, preserve authentication/permissions/throttling and action metadata, and define reverse/hyperlink behavior. Accept-header mode also needs correct cache variation; tenant policy must not trust an unverified tenant header or leak cached responses across tenants.

    Decision: ship and validate the path-based router first. Keep API_VERSIONING_CHANNELS and API_EFFECTIVE_VERSION_RESOLVER reserved until a complete dispatcher contract and real use cases justify their complexity. If that evidence does not emerge, keep path-based dispatch as the explicit supported contract rather than shipping a partial negotiation API.

  2. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Roadmap status update (2026-11-18): PR #37 implements the first-class SimpleRouter-based ViewSet integration and is awaiting the full compatibility gate. PR #40 adds the design decision for version-specific OpenAPI contract generation and semantic CI diffs. The route-matrix, schema, and runtime-behavior checks remain separate by design. Negotiation/tenant routing remains a research gate; endpoint-level removal is tracked in #39. No package release is being made from these in-flight changes.

  3. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Additional negotiation research note (2026-11-18): tenant-specific version routing has a stricter ordering constraint than path/header/query routing. Django URL resolution chooses a callback before DRF's APIView initialization runs authentication and permissions. A resolver that reads request.user at that point may see an unauthenticated Django request, while moving tenant selection into middleware can duplicate or bypass the application's authentication model. Therefore API_EFFECTIVE_VERSION_RESOLVER must not be activated as a generic pre-dispatch callback. A future tenant policy must define a trusted identity source available before dispatch (or a post-auth dispatch wrapper that safely delegates to the selected implementation), fail closed for missing/ambiguous tenant identity, and include cross-tenant cache isolation tests. Header negotiation must also define Vary: Accept (and correct cache behavior at reverse proxies); query-string versions are naturally part of the URL cache key but still need explicit precedence/conflict rules. Until these contracts and real user cases are demonstrated, path-only routing remains the safer default.

  4. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Cross-cutting research findings from the OpenAPI and removal work:

    • GitHub's real REST contract treats operation removal and request/response shape changes as breaking, retains old API versions for a published support window, and uses Deprecation/Sunset before returning 410 for a retired API version: https://docs.github.com/en/rest/about-the-rest-api/api-versions
    • Stripe's current release process separates breaking major API releases from monthly additive updates and publishes version-specific migration guidance: https://stripe.com/blog/introducing-stripes-new-api-release-process
    • This supports keeping our concerns separate: (a) route implementation inheritance, (b) per-version OpenAPI contracts, and (c) version-wide retirement. It does not justify automatically returning 410 for an individual route omitted from a later router declaration.
    • drf-spectacular's documented contract is explicit: versioned endpoints may be absent from the default schema; generate with --api-version or SpectacularAPIView.as_view(api_version=...). Its schema introspection depends heavily on queryset, serializer_class, and get_serializer_class(); warnings should be treated as a signal, not hidden: https://drf-spectacular.readthedocs.io/en/latest/faq.html and https://drf-spectacular.readthedocs.io/en/latest/customization.html
    • oasdiff is the appropriate separate semantic OpenAPI diff gate; it supports breaking-change reports in CI and should remain a development/CI tool, not a runtime dependency: https://github.com/oasdiff/oasdiff

    Implementation order: complete a consumer sample and versioned schema tests first; make route tombstones consume the same logical operation identity and schema visibility contract; only then revisit header/query/tenant negotiation. This keeps the core path-only runtime small while making compatibility guarantees measurable.

  5. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Fresh protocol research for the deferred negotiation work (no runtime negotiation is being enabled):

    1. DRF's own documentation distinguishes the wire contracts:

      • NamespaceVersioning and URLPathVersioning use URL path/namespace selection.
      • AcceptHeaderVersioning reads the media-type parameter from Accept (for example, application/json; version=2), not a dedicated Accept-Version header.
      • DRF explicitly leaves the application responsible for changing behavior based on request.version.
        Source: https://www.django-rest-framework.org/api-guide/versioning/
    2. HTTP cache correctness is a hard protocol requirement, not an optional optimization:

      • RFC 9111 §4.1 requires a cache to match request header fields named by Vary before reusing a stored response.
      • Therefore any response selected by a dedicated version header must vary on that header. If the design instead uses DRF AcceptHeaderVersioning, Vary: Accept is the relevant dimension.
        Source: https://www.rfc-editor.org/rfc/rfc9111.html
    3. CDN configuration is not automatically solved by emitting Vary:

      • Cloudflare documents that Vary controls whether the request header is included in cache selection, but cache rules/configuration determine which request properties are actually part of its cache key.
      • We must test the origin response header and document the CDN cache-key requirement; merely adding Vary does not prove the CDN is configured safely.
        Source: https://developers.cloudflare.com/cache/concepts/vary/
    4. Authentication ordering is confirmed by DRF:

      • Authentication runs at the start of the view, before permissions and throttling, but version determination occurs earlier in APIView.initial() in the current implementation.
      • A generic pre-dispatch version resolver cannot safely depend on DRF token-authenticated request.user. It may use trusted request attributes populated by upstream middleware, or require a different dispatch architecture.
        Source: https://www.django-rest-framework.org/api-guide/authentication/

    Updated engineering decision:

    • Keep current path routing as the only supported dispatcher.
    • Do not enable the reserved channel-list as a precedence/fallback chain.
    • If non-path support is ever justified, select one explicit scheme per deployment. For dedicated header mode, the cache contract is Vary: Accept-Version; for DRF media-type versioning, it is Vary: Accept.
    • Tenant-pinned versions require a trusted tenant context before view dispatch plus tenant-aware cache keys; never trust a client header as tenant authorization.
    • Add integration tests with two versions against the same URI, two tenant identities, shared-cache simulation, missing/invalid/conflicting values, and reversal. Without these tests the feature remains deferred.

    This confirms that the next sensible adoption work after the OpenAPI contract is consumer migration/onboarding and an explicit cache/security test harness—not enabling additional negotiation transports prematurely.

  6. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Roadmap update (2026-11-18):

    Completed:

    In progress:

    Release:

    • GitHub tag and Release v1.1.0 exist; the repository main pyproject version is 1.1.0. PyPI publication still needs independent confirmation and should not be inferred from the GitHub release alone.

    Next parallel tracks after #44:

    1. Complete tombstone semantics and prove schema exclusion in the consumer example.
    2. Build a real consumer migration sample (v1 -> v2 -> v3) with route matrix, schema snapshots, lifecycle and rollback documentation.
    3. Evaluate oasdiff v1.39.0 against the currently pinned v1.38.0 using nullability and composition fixtures before changing the pin.
    4. Continue negotiation research only; keep path-only as the runtime default until Vary/cache behavior, conflict semantics, reversal and trusted tenant identity are fully designed.

    Do not treat a passing route matrix as proof of semantic compatibility, or a schema diff as proof of business-level compatibility.

  7. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Research gate resolved and recorded in the accepted request-version-resolution decision.

    Decision:

    • Keep URL-path routing as the only implemented route-selection mode in 1.x. Do not activate the reserved API_VERSIONING_CHANNELS or API_EFFECTIVE_VERSION_RESOLVER settings.
    • If non-path negotiation is implemented later, a deployment selects one transport (path, dedicated Accept-Version header, or query parameter); this is not a fallback chain.
    • The effective version must select the actual registered callback and drive request.version/request.api_version, lifecycle policy, diagnostics, and reversal. No fallback to a different implementation when the requested endpoint is absent.
    • Tenant policy must use trusted server-side context. DRF version determination runs before DRF authentication, so the resolver must not assume token-authenticated request.user is already available.
    • Cache requirements are explicit: Vary: Accept-Version plus CDN cache-key configuration for header mode; include version in query-mode cache keys; tenant-aware cache isolation or private/bypass caching for tenant-specific responses.
    • Missing, malformed, unsupported, denied, and endpoint-unregistered versions have separate outcomes. The package does not become a serializer transformation or authentication framework.

    This is a finalized research/contract decision, not a claim that header, query, hostname, or tenant routing has shipped. Implementation remains gated on real use cases and end-to-end routing, lifecycle, reversal, cache-isolation, and compatibility tests.

  8. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    A focused follow-up is now tracked in #45 / PR #45: migrate_endpoints --diff produces a deterministic unified diff, and --write now uses same-directory atomic replacement, preserves permission bits, and cleans temporary files on failure. The command remains limited to supported legacy decorator syntax; it is not a database migration.

    On head 24c47139cc2ea9099a54748a918015f30b624a65, unit/integration tests, package build and wheel smoke, website example verification and static site builds, lint, CodeQL, Windows, and the configured Python/Django tox environments have passed. The macOS smoke job is still queued, so the PR gate is not yet complete. PR #45 remains draft and unmerged.

  9. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Cross-PR audit — findings before further implementation (2026-11-18)

    I reviewed the merged routing/OpenAPI work (#37, #40, #42), the endpoint-removal draft (#44), and the migration-tooling draft (#45) against umbrella acceptance criteria #36 and the endpoint-removal contract in #39. These are review findings, not claims that the affected features have shipped.

    Blocking correctness / integration gaps

    1. Lifecycle version selection is not actually resolver-first in normal Django requests. In django_api_versioning/lifecycle.py:57, LifecycleMiddleware.__call__() calls _extract_version() before get_response(). Django resolves the URL and assigns request.resolver_match inside its inner _get_response(), after request middleware has already run; DRF assigns its Request.version during APIView.initial(), later still. Consequently, the current middleware normally falls through to regex parsing of request.path; unit tests that manually attach request.version or resolver_match do not prove the real middleware/DRF path. In addition, re.search() chooses the first matching API_BASE_PATH segment, so a parent mount containing the same pattern can cause the middleware to apply the parent version's 410/headers to a child router serving another version. Design and add full Django-client integration tests before changing this code. Django handler source: https://github.com/django/django/blob/main/django/core/handlers/base.py ; DRF dispatch order: https://github.com/encode/django-rest-framework/blob/main/rest_framework/views.py

    2. The OpenAPI contract workflow can be skipped for core routing changes. .github/workflows/openapi-contract.yml currently watches routers.py, the example, and its design doc, but not registry.py or decorators.py (and the OpenAPI workflow is not a job in pull-request-gate.yml). A future change to the registry/decorator behavior that changes schema-visible routes can therefore pass the central gate without running the consumer contract. Make the trigger cover every runtime file that can alter route/schema selection, or make it an explicit required gate.

    3. PR improvement: make endpoint migration previews diffable and writes atomic #45 contains a documentation dependency on unmerged PR feat: add explicit endpoint removal and tombstones #44. PR improvement: make endpoint migration previews diffable and writes atomic #45 is based on main and does not contain the tombstone implementation, while docs/README.md:58 on its branch says explicit endpoint removal and its runtime 404 behavior are implemented. PR feat: add explicit endpoint removal and tombstones #44 remains open/draft. If improvement: make endpoint migration previews diffable and writes atomic #45 merged first, the docs would claim behavior absent from main. Move that sentence/update to feat: add explicit endpoint removal and tombstones #44, or keep improvement: make endpoint migration previews diffable and writes atomic #45's docs limited to already-merged behavior.

    4. The OpenAPI removal proof does not exercise the DRF action-removal API. The feat: add explicit endpoint removal and tombstones #44 consumer example's removed legacy/export path is decorator-registered; the DRF router.remove() action is covered by runtime tests, but not by the schema contract. feature: explicit route removal and endpoint-level lifecycle #39 explicitly requires schema exclusion for removed routes. Add a DRF custom action removed with VersionedRouter.remove(), then assert runtime 404, absence from the affected version's generated schema, and preservation in the earlier version.

    Important follow-ups / policy gaps

    1. oasdiff version backlog needs correcting and expanding. As of 18 Nov 2026, the current release is v1.38.0; v1.39.0 is not available yet. The current pin is therefore not stale. v1.38.0 includes recent nullability corrections through oneOf, anyOf, and allOf, but verify_oasdiff.py currently tests only an optional response field and a removed operation. Add focused request/response nullability and composition fixtures before concluding that the pinned detector is adequate. Also make the existing ERR-only policy explicit: oasdiff reports WARN findings too, but --fail-on ERR does not fail on them; docs: define version-specific OpenAPI contract workflow #40 left the review-vs-fail policy open. Sources: https://www.oasdiff.com/whats-new and https://github.com/oasdiff/oasdiff/blob/main/docs/BREAKING-CHANGES.md

    2. The OpenAPI sample is not fully dependency-locked. examples/openapi_contract/requirements.txt uses version ranges for Django and DRF while the guide emphasizes reproducible, byte-stable generation. Pin exact versions or add a lock with hashes so an upstream patch release cannot unexpectedly change schema output.

    3. Migration preview does not report skipped legacy forms. improvement: make endpoint migration previews diffable and writes atomic #45's acceptance item 5 asks that unsupported/dynamic forms and comments remain unchanged and be visibly distinguished where practical. The AST rewriter safely leaves them alone, but the command only prints successful rewrites; a user can mistake a partial migration for a complete one. Add a deterministic skipped-file/decorator report with reasons and tests.

    4. Atomicity in improvement: make endpoint migration previews diffable and writes atomic #45 is per file, not across the entire directory. The loop replaces files one at a time. If file B fails after file A was replaced, A stays changed. That is consistent with the current per-file acceptance criterion, but the docs should explicitly say the overall command is not transactional and can leave partial progress; test a multi-file failure and report which files were already applied.

    Verification state

    Do not mark #36 complete or treat #44/#45 as release-ready until the blocking items above are resolved or explicitly accepted with documented rationale.

  10. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    One additional roadmap gap from the repository tree review: the only committed runnable consumer example is examples/openapi_contract. There is not yet a separate end-to-end consumer migration example that walks through V1 → V2 → V3, including replacement/inheritance, explicit route removal, deprecation headers, sunset/410 behavior, schema baseline updates, and a client migration/rollback path. The OpenAPI sample proves schema generation, not an operational migration. Keep this as an adoption deliverable rather than treating the OpenAPI example as satisfying it.

  11. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Audit correction (2026-11-18): the DRF custom-action schema-removal gap originally identified under #48 is now implemented on PR #44's branch. The OpenAPI example calls VersionedRouter.remove("products", "product-legacy-export", from_version=2), verifies V1 runtime 200 / V2 runtime 404, and verifies the legacy operation exists in V1 schema but not V2. PR #54 separately closes the central-gate and path-classifier gaps. The remaining work is final CI and integration of those PRs, not another action-removal fixture.

  12. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Consolidated execution status — 2026-11-18

    Implementation and verification

    • PR feat: add explicit endpoint removal and tombstones #44 — endpoint removal/tombstones: latest observed head 7666fbba71545e3146428cac329106f8ca29f18d; PR gate, OpenAPI contract (including V1/V2 DRF action removal), and CodeQL passed. Draft, unmerged.
    • PR ci: enforce OpenAPI consumer contract in the central PR gate #54 — central OpenAPI gate: head 64ed4b21769dea07fecdc631e3f1dc3f6277ba71; central gate, reusable OpenAPI contract, classifier tests, and workflow policy validation passed. Draft, unmerged.
    • PR improvement: make endpoint migration previews diffable and writes atomic #45 — migration tooling: head aab322b0c3aaac1667b03c9d1fa64c1c2075fdc5; unit/integration, Windows/macOS, package build, website verification, and several tox environments passed. Remaining lint and Python/Django matrix jobs were still running at last check. The temporary Black diagnostic change was reverted; only the command, tests, and Reference docs remain changed. Draft, unmerged.
    • PR fix: resolve lifecycle policy from Django's matched route #55 — resolver-aware lifecycle: head 6ebe78a83ce8e469b4affe2346a49c001f5d7675; unit/integration, lint, package build, website verification, tox validation, Windows, and all completed Python/Django jobs passed; CodeQL passed. Only macOS remained queued. Draft, unmerged.

    Cross-PR risk controls

    Remaining work

    1. Wait for the exact-head CI runs on improvement: make endpoint migration previews diffable and writes atomic #45 and fix: resolve lifecycle policy from Django's matched route #55 to finish; fix any remaining failures before considering either review-ready.
    2. Reconcile the combined PR workflow/registry changes before merging; no PR has been merged or marked ready.
    3. Then implement the isolated oasdiff nullability/WARN fixtures in test: validate oasdiff nullability and warning policy against current release #51 against the actual pinned v1.38.0 binary.
    4. Build the consumer migration/rollback example in docs: add an end-to-end consumer API migration and rollback example #52 only after the lifecycle and removal contracts are stable.

    All status statements above are tied to the listed SHAs; earlier successful runs are not being reused as evidence for later commits.

  13. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Verification refresh: PR #45 now has a complete green pull-request gate and CodeQL on exact head aab322b0c3aaac1667b03c9d1fa64c1c2075fdc5. PR #55 remains green across unit/integration, lint, package, website, Windows, and all completed tox environments, with CodeQL passed; its only remaining job is the queued macOS compatibility run. PR #44 and #54 remain independently green on their recorded heads. All four PRs remain Draft/unmerged.

  14. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Product execution update: PR #55 is now fully green on exact head 82d9ac6b43fa6008d934ef75ab9fd8e7b7dccfea, including the final macOS job. I created Draft integration PR #58 to test #44 + #55 together because both touch registry.py and the canonical reference. The combined tree's OpenAPI contract, path classifier, workflow policy, tox verification, package build, and macOS compatibility have passed; unit/integration, Windows, website and remaining smoke jobs are still running. PR #57 now contains the oasdiff nullability/WARN work stacked on #54; its normal CI is deferred until #54 is integrated because the gate is filtered to PRs targeting main.

  15. mojtaba-arvin commented on Nov 18, 2026

    @mojtaba-arvin
    OwnerAuthor

    Milestone completed: a combined integration candidate (#58) now verifies #44 endpoint removal + #55 route-aware lifecycle in one tree. Exact head a6d24cbf16862373ccb6a6cec8ee8e520c3638d0 passed the full PR gate, OpenAPI contract, CodeQL, unit/integration, lint, package, website, tox/workflow validation, Windows/macOS and PR smoke matrix. This closes the cross-PR registry/reference integration risk. Next critical path is central OpenAPI gate + strict oasdiff policy (#54/#57), then the runnable V1→V2→V3 consumer migration example (#52). All implementation PRs remain unmerged/Draft.

  16. 17 remaining items

  17. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Agent-engineering guardrails have now been standardized and merged via PR #87 (7b66c224). The change encodes the recurring history lessons in the canonical root policy, package-engineering/manual-testing/agent-maintenance skills, the model-agnostic evaluation scenarios, and a local pre-commit hook for agent-configuration validation. It also requires final-tree lint after the last Python edit and tests to prove they reach the intended negative-validation branch. The agent-tooling PR gate passed. The coverage/OpenAPI change is being revalidated against the updated main in PR #88; its exact-head PR gate is still running. No release/tag/PyPI action.

  18. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Milestone update (2026-11-19):

    Next roadmap focus: review the merged lifecycle and router behavior against the public API/docs, then complete the release-readiness audit (changelog, README/install flow, wheel/sdist verification, compatibility evidence). Do not bump version, create a tag, or publish until separately authorized.

  19. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Roadmap progress — 2026-11-19

    Merged and verified on main:

    A documentation-only PR #89 corrects the canonical reference's stale claim that route removal is still tracked in #39. The ViewSet article still has outdated prose about removal and OpenAPI being planned; it is intentionally not edited in this change because article-source edits require explicit approval.

    Remaining roadmap work should now be prioritized from evidence and user demand: research-gated header/query/tenant negotiation remains unimplemented by design; do not activate reserved settings without a full dispatcher, cache/Vary/reversal contract, and security design. Release preparation remains separate and no version bump, tag, or PyPI publication has been authorized.

  20. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Roadmap execution update — 2026-11-19

    Completed on main

    Historical/agent lessons now enforced

    • One coherent change per PR and squash merge; avoid per-file formatting commits and no-op CI-trigger commits.
    • Run the final full lint suite after the last Python edit; the pre-push hook adds a local guard, while CI remains authoritative.
    • Negative tests must pass earlier preconditions and assert the intended branch/error, not merely any exception.
    • Keep one canonical skill body, thin client adapters, versioned evaluation scenarios, and deterministic repository policy checks. Do not claim model-quality gains without actually running and scoring the same scenarios.

    Documentation audit

    The design/ADR documents remain useful architecture records and were retained; stale implementation status/provenance was corrected rather than deleting history. Article 025 still contains stale claims that endpoint removal and the OpenAPI integration are planned. It is deliberately outside PR #91 and needs a complete A–MM editorial review before any article change; no article or publication was changed here.

    Next execution order

    1. Complete the full A–MM review and corrected draft for article 025, checking every code sample and claim against current source, executable tests, and the canonical routing contract. Keep static inspection distinct from actually executed examples.
    2. Finish the release-readiness audit: reconcile the Unreleased public APIs, README/reference/articles, migration guidance, supported-version claims, and package metadata; build wheel/sdist, inspect contents, install the wheel in isolation, and smoke-test core plus optional DRF/OpenAPI paths on the exact candidate commit.
    3. Classify the actual public API delta and prepare a release-candidate PR only after all gates pass. The additions currently under Unreleased appear additive and point toward the next minor line (candidate 1.2.0), subject to the final compatibility audit.
    4. Do not create a tag, bump the published version, or publish to PyPI without explicit authorization for the specific version.

    Header/query/tenant negotiation remains research-gated; no runtime support is planned without a consumer-backed use case and a decision record covering dispatch, caching/Vary, reversal, and trusted tenant identity.

  21. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Post-merge verification (2026-11-19): PR #91 is on main as 9e5e53fb3c004731aa5fecfab8c3875e2f0ed5c5. Its exact-head PR gate passed (run #44465044350). The main-push GitHub Pages workflow then automatically built and deployed the verified static site successfully (run #44465197758). This was the repository's automatic push workflow; no PyPI package publication or release tag was triggered.

  22. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Documentation and release-boundary follow-up — 2026-11-19

    • PR docs: clarify unreleased API availability #93 is merged as e16e5e4be68fb748f347d8a59bf70691b857e1e9. The README, canonical routing contract, and Reference page now distinguish the published PyPI baseline from post-release APIs on main. The main-push website deployment and package-artifact verification both passed.
    • The published 1.1.0 artifact is real and was released on 2026-11-18 (Trusted Publishing provenance points to 66bb4da557b9df4081be3ee65b9ad01db5030f2a). Correcting this boundary was important because the current main source contains remove_endpoint(), VersionedRouter.remove(), endpoint lifecycle declarations, and EndpointLifecycleAutoSchema that are listed under Unreleased and are not present in that published artifact.
    • PR docs: refresh DRF ViewSet integration articles #92 was closed as stale-base/superseded; no changes were merged from it. PR docs: refresh DRF ViewSet integration articles #94 carries the same four-article corpus refresh on a branch based on the current main. It is awaiting its exact-head website/PR gate.
    • The article refresh covers articles 013, 014, 016, and 025, so the ViewSet support claims are consistent across the DRF content rather than corrected in only one article.

    Next

    1. Merge PR docs: refresh DRF ViewSet integration articles #94 only after the exact-head PR gate succeeds.
    2. Continue the release-readiness audit of the Unreleased APIs: public signatures, examples, migration notes, changelog, optional dependencies, compatibility matrix, wheel/sdist contents, and isolated installed-wheel smoke tests.
    3. Determine the release impact from actual public API changes. A next minor version is plausible, but no version has been selected or prepared.
    4. Do not bump pyproject.toml, tag, or publish to PyPI without explicit authorization for a specific version.
  23. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Article corpus refresh completed on main (2026-11-19).

    • PR docs: refresh DRF ViewSet integration articles #94 merged as 762cb31887f0893ee0717c4a8b1dfb62a60a66f7.
    • Articles 013, 014, 016, and 025 now consistently describe the supported VersionedRouter integration, distinguish it from direct @endpoint(ModelViewSet) decoration, and preserve the plain DRF SimpleRouter alternative.
    • Article 025 distinguishes features in the published PyPI artifact from endpoint removal, endpoint-level lifecycle, and EndpointLifecycleAutoSchema currently available only on repository main.
    • Static checks confirmed front-matter lengths, title/H1 equality, five-keyword limits, balanced code fences, and consistent Markdown table columns.
    • The exact-head PR gate passed, including package-backed evidence verification, website tests, type-check, and root/project-subpath static artifact checks. Main-push static build and GitHub Pages deployment are running.

    Remaining roadmap

    1. Release-readiness audit of the Unreleased public APIs, signatures, validation, compatibility, optional dependency behavior, and docs.
    2. Reconcile migration guidance and public API reference against the next-release candidate.
    3. Build and inspect wheel/sdist and smoke-test an installed artifact from an isolated environment on the exact candidate commit.
    4. Decide major/minor/patch impact from actual public API compatibility. A minor release is plausible but not selected.
    5. Prepare a release PR only after all checks pass. Version bump, tag, GitHub Release, and PyPI publication remain gated on explicit authorization for a specific version.

    No article was removed; obsolete claims were corrected while preserving useful architecture and comparison content.

  24. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Execution update — 2026-11-19 (current main)

    Merged changes

    All of the above PRs were squash-merged after their exact-head required gate succeeded. The latest main push (commit f240ed7d4d9baad2afd42ad8cd48de8f743dd1f9) is currently running the website static build/distribution checks and GitHub Pages deployment.

    Release boundary now verified against the actual tag

    • PyPI 1.1.0 corresponds to tag commit 66bb4da557b9df4081be3ee65b9ad01db5030f2a.
    • VersionedRouter is in the published release.
    • Endpoint removal, endpoint-level lifecycle, and EndpointLifecycleAutoSchema are current-main additions under Unreleased, not in the published 1.1.0 artifact.
    • The OpenAPI consumer project and oasdiff workflow are post-release repository tooling, not package runtime code or part of the 1.1.0 wheel.
    • The release workflow at the v1.1.0 tag did not contain the OpenAPI gate; current main does.

    Remaining release-readiness work

    1. Draft and review an upgrade note from 1.1.0 for the next release, especially the fail-closed duplicate VersionedRouter route-pattern behavior. Existing articles 019/020 are API versioning tutorials, not a package-upgrade guide.
    2. Finish the source/API compatibility review of all Unreleased additions and the optional DRF/OpenAPI paths.
    3. Complete final security/dependency review and confirm wheel/sdist contents plus isolated installed-wheel smoke tests on the exact release candidate.
    4. Decide the next version from the verified public API delta. A minor release is plausible, but no version is selected.
    5. Keep tag creation, GitHub Release, and PyPI publication blocked until explicit approval for a specific version.

    No release tag or PyPI publication has been created.

  25. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Post-merge verification for the latest main commit f240ed7d4d9baad2afd42ad8cd48de8f743dd1f9 is complete:

    • Website static build, package-backed example/evidence checks, type-check, root-hosted artifact, and GitHub Pages project-site artifact passed (run #44469801746).
    • GitHub Pages deployment succeeded (run #44469801760).
      The documentation changes from PR docs(articles): clarify endpoint lifecycle in Sunset guide #102 are now live on the repository site.
  26. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Progress checkpoint — 2026-11-19

    Completed on main since the v1.1.0 release

    Release assessment

    • Proposed next version: 1.2.0. The changes since v1.1.0 add public APIs and optional integration without an identified breaking change, so a minor release is appropriate. Cross-router collision rejection is a fail-fast validation of ambiguous duplicate registrations.
    • No version bump, tag, or PyPI publication has been made.

    Remaining sequence

    1. Complete exact-head checks and merge PR docs: prepare 1.2.0 release documentation #103.
    2. Finish the all-documentation and published-artifact provenance audit.
    3. Prepare the 1.2.0 version bump and dated changelog on a temporary release branch after explicit release authorization.
    4. Require the exact-head PR gate, full compatibility matrix, unit/integration tests, OpenAPI contract, wheel/sdist build and installed-wheel smoke test.
    5. Tag only the merged main commit; verify the tag-triggered publish workflow and the version-specific PyPI endpoint before reporting publication.

    Header/query/tenant-based negotiation remains a research-gated, separate product decision; this release does not imply that those channels are supported.

  27. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Documentation milestone completed: PR #103 merged to main as f14b2194317ede88987d43d6491c04aba8c64bee on 2026-11-19. The exact-head PR gate and both CodeQL analyses passed. Website build/static checks and wheel/sdist validation passed on the PR head; post-merge Pages deployment and main-branch artifact workflows are now running. The package version remains 1.1.0; no tag or PyPI release was created.

  28. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Post-merge verification for f14b2194317ede88987d43d6491c04aba8c64bee is complete:

    • GitHub Pages static build and deployment: PASS (run 44480467451).
    • Python package artifact build: PASS (run 44480467441).
    • Website static build/distribution checks: PASS (run 44480467439).
    • CodeQL Python and JavaScript/TypeScript: PASS (run 44480467422).

    The website documentation updates are deployed. These main-branch workflows validate the documentation/site and distribution build; they do not replace the full release-tag compatibility matrix and publication workflow. The package remains version 1.1.0, with no release tag or PyPI publication.

  29. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    1.2.0 release preparation merged

    • Release PR release: prepare django-api-versioning 1.2.0 #104 merged into main using squash merge.
    • Merge commit: db93163f79ae47ecd6e222e2c7a22a5dc0e03e9b.
    • Full compatibility workflow run 44492870612 completed successfully: all 16 configured Python/Django tox environments passed, along with the workflow/tox consistency verification and Windows/macOS smoke jobs. The PR-smoke-only job was skipped by design in this full-matrix dispatch.
    • Exact-head PR gate and CodeQL had already passed on head 892939b09f3866ccdd35f3d61a409fec07ec1c62.
    • Confirmed main now declares version 1.2.0 and contains the dated changelog entry.

    Remaining release gate: create the annotated v1.2.0 tag on the merge commit. The tag-triggered workflow must complete successfully and PyPI publication must be verified before 1.2.0 is described as released.

  30. mojtaba-arvin commented on Nov 19, 2026

    @mojtaba-arvin
    OwnerAuthor

    Roadmap completed — 2026-11-19

    The roadmap's committed product goals have been delivered and verified on main and in the published 1.2.0 release.

    Delivered

    Explicitly outside the completed roadmap

    Header-, query-, host-, and tenant-based version negotiation are not part of the supported routing contract. The package remains path-versioned. These alternative negotiation channels are intentionally research-gated, not unfinished release work: they require a concrete consumer use case and a separate design decision covering dispatch semantics, cache/CDN behavior and Vary, URL reversal, and trusted tenant identity.

    If such a use case emerges, it should be proposed in a new, narrowly scoped issue with its own acceptance criteria and architecture decision. It does not keep this roadmap open.

    Closing this umbrella issue as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions