Files
commandkit/docs/roadmap/integration-dependency-alignment.md

259 lines
14 KiB
Markdown
Raw Normal View History

2026-11-04 03:37:44 +00:00
# Integration dependency alignment and vanity-path migration
2026-11-04 03:28:25 +00:00
Status: proposed release-preparation roadmap. This pass adds documentation only;
dependency changes and publication remain future work.
## Purpose and authority
Align the independently released integrations with the core APIs their current
2026-11-04 03:37:44 +00:00
source already uses, and migrate all three CommandKit modules to the supplied
vanity paths. Publish compatible module versions in dependency order so each
integration builds and validates against its declared, downloaded dependencies
with workspace discovery off.
2026-11-04 03:28:25 +00:00
The [release procedure](../release.md) owns publication commands and release
order. The [release policy](../policy/release.md),
[agent policy](../policy/agents.md), [testing policy](../policy/testing.md),
[documentation policy](../policy/documentation.md), and
[OSS policy](../policy/oss.md) govern the work. This roadmap selects the target
and release-preparation scope; it does not change those policies.
## Baseline and investigation evidence
Reviewed baseline: `289a171e97699ad9aa57ee2cc40bdad1c0b680a9`.
2026-11-04 03:37:44 +00:00
Vanity-path review baseline: `d7cbaed3ed18bc2909c8144f308e2dfd58ade7ec`.
Module declarations and library source were unchanged between these revisions.
2026-11-04 03:28:25 +00:00
- Both integration module declarations require core v0.2.0. The
[ckprompt declaration](../../integrations/ckprompt/go.mod) also requires
ckconfig v0.1.0; the [ckconfig declaration](../../integrations/ckconfig/go.mod)
has no dependency on ckprompt.
- Current integration source uses newer core APIs including `CompletionHint`,
`Explanation`, and `Reporter`. Both independent Go 1.26.8 suites fail to
compile with `GOWORK=off` and their existing read-only module graphs.
- Updating core alone is insufficient for ckprompt: published ckconfig v0.1.0
still uses removed core APIs, including `Invocation.Streams`,
`Outcome.Diagnostics`, and `SeverityError`, plus the old `Failure(error)`
call shape.
- The authoritative `origin` tag listing contains core v0.1.0 and v0.2.0, and
the two integration v0.1.0 tags. The proposed next versions below were unused
at review. Remote `main` was `230187296fae5253cb1773f16c2f1d1a39499ed0`;
the reviewed local changes still need normal publication to the authoritative
branch as part of candidate preparation.
- A checked-in [core v0.3.0 draft](../releases/v0.3.0.md) already describes the
reporting and alias migration. It is an unpublished draft, not proof that
the module version can be downloaded.
The investigation used disposable alternate module files, Go 1.26.8,
`GOWORK=off`, and read-only offline tests. Only temporary dependency selections
changed; the real module declarations, sums, and source remained unchanged.
| Current source under test | Temporary dependency selection | Result |
| --- | --- | --- |
| ckconfig | Current core source | Module suite and maintained example passed. |
| ckprompt | Current core source, published ckconfig v0.1.0 | Compilation failed in the old ckconfig implementation. |
| ckprompt | Current core and current ckconfig source | Module suite and maintained example passed. |
The successful cases retained ConfigKit v0.8.0 and PromptKit v0.16.0. These
results isolate the CommandKit dependency alignment needed here; they do not
prove that future published versions or their downloaded sums already exist.
2026-11-04 03:37:44 +00:00
### Verified vanity discovery
The core endpoint at `https://go.maximumdirect.net/commandkit?go-get=1` serves
the mapping to `https://forge.maximumdirect.net/base-layer/commandkit`. Go direct
discovery finds the existing core v0.1.0 and v0.2.0 tags. Fetching v0.2.0 through
the vanity path reaches its source but reports a module-path mismatch because
that release declares `gitea.maximumdirect.net/eric/CommandKit`.
Both integration endpoints now return HTTP 200 with these `go-import` contents:
| Vanity path | VCS | Repository URL | Subdirectory field |
| --- | --- | --- | --- |
| `go.maximumdirect.net/ckconfig` | `git` | `https://forge.maximumdirect.net/base-layer/commandkit` | `integrations/ckconfig` |
| `go.maximumdirect.net/ckprompt` | `git` | `https://forge.maximumdirect.net/base-layer/commandkit` | `integrations/ckprompt` |
Go 1.26.8 direct discovery finds each integration's v0.1.0 tag. Disposable
consumer fetches reach the correct nested `go.mod` and report its old declared
module path, confirming subdirectory routing. Discovery is working; the
existing tags have not migrated. The optional fourth metadata field is
supported from Go 1.25, within the existing Go 1.26.0 consumer minimum; see the
[Go discovery reference](https://go.dev/ref/mod#vcs-find).
2026-11-04 03:28:25 +00:00
## Targeted end state
### Compatible independently released modules
Use the following proposed next versions, subject to the existing fresh-version
publication guards:
2026-11-04 03:37:44 +00:00
| Module path | Physical module directory | Next release | Required CommandKit dependencies | Full tag |
| --- | --- | --- | --- | --- |
| `go.maximumdirect.net/commandkit` | `.` | v0.3.0 | None | `v0.3.0` |
| `go.maximumdirect.net/ckconfig` | `integrations/ckconfig` | v0.2.0 | `go.maximumdirect.net/commandkit v0.3.0` | `integrations/ckconfig/v0.2.0` |
| `go.maximumdirect.net/ckprompt` | `integrations/ckprompt` | v0.2.0 | `go.maximumdirect.net/commandkit v0.3.0` and `go.maximumdirect.net/ckconfig v0.2.0` | `integrations/ckprompt/v0.2.0` |
2026-11-04 03:28:25 +00:00
Minor integration releases fit the existing pre-1.0 compatibility policy: the
reporting migration changes consumer-facing behavior and adopts a core version
2026-11-04 03:37:44 +00:00
with incompatible API changes. The vanity migration also deliberately changes
Go module and import identities. Migration notes explain the new imports and
dependency set, provider results, invocation reporting, and application changes.
2026-11-04 03:28:25 +00:00
The three modules retain independent versions and source tags. Their candidates
may identify successive commits: core publication need not wait for integration
metadata that depends on that newly published core. Each selected module's
final release suite runs against its actual declared dependencies.
2026-11-04 03:37:44 +00:00
### Module and import identity
Change each module declaration and all CommandKit-owned imports to the matching
new path. Core self-imports, including its `internal` packages, use
`go.maximumdirect.net/commandkit/...`; integration self-imports use
`go.maximumdirect.net/ckconfig/...` or `go.maximumdirect.net/ckprompt/...`.
Cross-module imports and requirements use the complete new paths in the table,
including ckprompt's ckconfig dependency.
Update production files, tests, maintained examples, and any import-path-based
test expectations together. A declared vanity module that still imports the
old core path would select a different Go package identity and can violate
`internal` import rules. The matched new releases compose through one core
identity rather than mixing old-path and new-path CommandKit types.
Keep physical directories, repository URLs, and Git tag prefixes as shown. The
Go subdirectory metadata makes the short integration vanity paths resolve to
the existing layout. The existing release profiles select physical directories;
the migration does not rename those directories or flatten integration tags.
Published old-path versions remain immutable. This scope selects the new paths
for new releases and updates consumer guidance; it makes no new promise of
type interoperability between the two identities and adds no old-path forwarding
module or compatibility layer.
2026-11-04 03:28:25 +00:00
### Retained architecture and scope
2026-11-04 03:37:44 +00:00
Preserve exported declaration shapes and runtime behavior while deliberately
changing module/import identities. Retain the integration adapters, Go 1.26.0
consumer minimum, Go 1.26.8 maintainer toolchain, and root-selected ReleaseKit
v0.9.0. The earlier successful diagnostic suites establish the dependency fix
before renaming; the migrated source still needs its own validation. This work
selects no API rollback or shim for old reporting APIs.
2026-11-04 03:28:25 +00:00
Retain ConfigKit v0.8.0, PromptKit v0.16.0, and other dependency selections
unless ordinary tidy changes the resolved graph as a consequence of the
CommandKit updates. Inspect and explain the resulting graph rather than
bundling unrelated upgrades. In particular, transitive tools with different
module paths may coexist; attribution must reflect the actual selection.
Preserve the existing launchers, three release profiles, generic validators,
credential handling, and separate source-publication and hosted-delivery
outcomes. Development workspaces remain useful and ignored. Diagnostic local
replacements and the earlier temporary Go shim remain development evidence;
release validation uses normal downloaded dependencies without that redirection.
## Work needed
2026-11-04 03:37:44 +00:00
### Prepare the module-path migration
Migrate the three module declarations and their owned source/test/example
imports using the mapping above. Update CommandKit dependency keys to the
vanity paths as each published predecessor becomes available. Preserve package
names and aliases unless an actual import-resolution change requires an edit.
Update current installation examples, module-selection guidance, package links,
and dependency descriptions in the README, consumer/developer guidance, and
affected GoDoc. Adjust import-path-aware tests to the new identities while
preserving their existing boundary assertions. Retain repository/source and
license URLs as source-hosting links; they are distinct from Go import paths.
Keep historical release records and review evidence accurate instead of doing a
repository-wide textual replacement of the old names.
Ignored development workspaces or disposable module files can support validation
before predecessor releases are downloadable. Keep that evidence separate from
the independent release graph. The migration may be prepared across all three
modules locally, while source publication and final dependency preparation
still follow core, ckconfig, then ckprompt order.
2026-11-04 03:28:25 +00:00
### Prepare and release core
Review the v0.3.0 draft against changes since the published v0.2.0 tag, including
completion, invocation reporting, aliases, and release-tool maintenance. Bring
2026-11-04 03:37:44 +00:00
its summary, vanity import migration, compatibility guidance, and immutable
source/licensing links into line with the final candidate and current release
procedure. Keep published notes and tags unchanged.
2026-11-04 03:28:25 +00:00
2026-11-04 03:37:44 +00:00
Prepare and commit the core candidate declaring `go.maximumdirect.net/commandkit`
on `main`, then use the existing source-publication workflow to publish v0.3.0.
Preserve the procedure's required candidate-commit publication before tag
publication. The root suite covers the root module; still-pending integration
alignment is separate work.
2026-11-04 03:28:25 +00:00
### Align and release ckconfig
2026-11-04 03:37:44 +00:00
After core v0.3.0 is published under its new path, prepare ckconfig declaring
`go.maximumdirect.net/ckconfig` and requiring
`go.maximumdirect.net/commandkit v0.3.0`. Remove the superseded old core
requirement, prepare dependencies with workspace discovery off, and tidy the
module metadata. Retain authentic sums from actual downloads. No future
checksum or local replacement substitutes for the published dependency.
2026-11-04 03:28:25 +00:00
Prepare `integrations/ckconfig/docs/releases/v0.2.0.md`, documenting the new core
2026-11-04 03:37:44 +00:00
requirement, vanity import migration, and reporting/completion behavior. Update
2026-11-04 03:28:25 +00:00
affected current guidance and module-local attribution from the actual resolved
graph, including immutable notice links. Validate and publish the selected
ckconfig candidate through the ordinary module release workflow.
### Align and release ckprompt
2026-11-04 03:37:44 +00:00
After ckconfig v0.2.0 is published under its new path, prepare ckprompt declaring
`go.maximumdirect.net/ckprompt` and requiring
`go.maximumdirect.net/commandkit v0.3.0` and
`go.maximumdirect.net/ckconfig v0.2.0` together. Remove the superseded old
CommandKit dependency keys. Prepare downloaded dependencies and tidy with
workspace discovery off. Retain real sums and inspect indirect changes.
2026-11-04 03:28:25 +00:00
Prepare `integrations/ckprompt/docs/releases/v0.2.0.md`, covering the compatible
2026-11-04 03:37:44 +00:00
dependency set, vanity imports, and consumer migration. Align current guidance
and module-local attribution with that selection. Validate and publish its
candidate through the ordinary module release workflow.
2026-11-04 03:28:25 +00:00
### Record the aligned result
2026-11-04 03:37:44 +00:00
Record the selected module paths and versions, candidate revisions, validation
outcomes, and source-publication outcomes separately for all three modules.
Update current dependency-readiness statements that still describe this mismatch
as unresolved; preserve historical baseline failures in completed review and
implementation records. Link future implementation tracking here without
restarting the completed ReleaseKit adoption or remediation work.
2026-11-04 03:28:25 +00:00
## Validation and completion boundaries
2026-11-04 03:37:44 +00:00
Review current CommandKit-owned source and dependency selections for stale
self-imports or old direct dependency keys. Historical notes, source URLs, and
unrelated upstream module identities are outside that mechanical rename.
Confirm release identity still pairs each new module path with its existing
physical directory and tag prefix. The verified redirects are preparation
evidence; publishing the renamed modules is needed for real consumers to use
them through those paths.
2026-11-04 03:28:25 +00:00
Use the selected module's ordinary deterministic offline suite with
`GOWORK=off` and read-only metadata after dependency preparation. Its maintained
consumer compiles and runs with that suite. ReleaseKit's publication command
owns the final candidate suite and selected file checks; validation-only checks
remain optional diagnostics. Reuse successful evidence for unchanged candidates
instead of adding a required check-then-publish repetition.
Retrieving a newly published dependency is preparation for the next module's
release. It does not turn proxy availability or consumer installation into a
completion gate for the preceding source release. Continue to resolve failed
or ambiguous publication using the existing policy and upstream recovery flow.
Hosted Gitea delivery keeps its separate outcome; this roadmap adds no CI
polling, live provider calls, or additional publication gate.
2026-11-04 03:37:44 +00:00
Alignment is complete when the matched source versions are published under all
three vanity module paths, owned imports and examples use the new identities,
each integration declares the compatible vanity-path versions with authentic
downloaded sums, each final selected-module suite passes without workspace or
replacement redirection, and current documentation and attribution agree with
that graph. Temporary local-source success alone does not establish that end
state.