toolchain

module
v0.1.0-preview.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: Apache-2.0

README

Spice Toolchain

Unified documentation: spiceframework.dev/toolchain.

This repository contains Spice's compile-time developer toolchain: the compiler, generator, command-line interface, language server, scaffold support, and official annotation protocol executable. Runtime APIs, public annotation descriptors, and the annotation SDK live in github.com/spice-framework/spice.

The boundary is intentionally explicit:

  • github.com/spice-framework/spice owns public application-facing Go APIs.
  • github.com/spice-framework/toolchain owns compiler and executable code.
  • applications authorize cmd/spice, cmd/spice-annotation-core, and the optional cmd/spicestyle schema-two verifier with ordinary Go tool directives;
  • the official annotation process serves descriptors from the core module, but third-party descriptors and tools remain in the same resolved Go module;
  • generated application code imports public core packages and never imports the compiler or CLI.

Install in an application

With Go 1.26.5:

go get -tool github.com/spice-framework/toolchain/cmd/spice@<exact-version>
go get -tool github.com/spice-framework/toolchain/cmd/spice-annotation-core@<exact-version>
go get -tool github.com/spice-framework/toolchain/cmd/spicestyle@<exact-version>

Then run the complete package-oriented workflow:

go tool github.com/spice-framework/toolchain/cmd/spice verify ./...
go tool github.com/spice-framework/toolchain/cmd/spice generate ./...
go tool github.com/spice-framework/toolchain/cmd/spice build ./...

Ordinary generation remains package-oriented and does not read a style configuration. The selected application is loaded with syntax-complete same-Go-module dependencies. Exact local modules named by its @Module allowlist are then inventoried recursively, in stable order, solely to build a compiler-validated module and named-interface identity registry. Those identity-only loads cannot contribute applications, providers, configuration, or generated targets. Missing, external, malformed, or repository-escaping module identities remain errors, and all package loading stays offline. Plain validation commands, including spice verify, spice modules, and spice beans --explain, use the same identity registry without promoting application dependencies: their exact package patterns remain the complete selected composition, while recursively allowed same-module declarations are admitted only as module and named-interface identities.

Applications that want class-oriented source organization can enable the schema-two profile. spicestyle and spice verify --style both use the same strict decoder, exact build-selection executor, structural checks, and typed annotation/provider/module validation:

go tool github.com/spice-framework/toolchain/cmd/spicestyle --config=.spice/style.json ./...
go tool github.com/spice-framework/toolchain/cmd/spice verify --style=.spice/style.json ./...

The profile keeps valid Go while enforcing one primary named type per ordinary production file, initialism-aware filenames, receiver-method and constructor co-location, approved boundary files, context/error conventions, explicit managed-interface relationships, and the absence of loose behavior or mutable globals. doc.go, an exact package-main entrypoint, one typed *_bean.go provider, and one typed *_topic.go marker remain deliberate Go/Spice boundaries. The Spice core repository owns the normative CODE_STYLE.md contract at commit 0e79bc4f3b294cd0a429598c4921391f2e4d10e2, with reviewed SHA-256 09c014e2d7eb93bf2b395e24e4e6ff2466c05d164d4778a11cf7433164bffb76. Toolchain does not maintain a second schema-two policy copy.

Schema two is decoded once per verification request. Unknown fields, schema one, invalid or noncanonical roots, platforms, tags, and build-selection order fail closed. Every declared selection is loaded independently with only its exact GOOS, GOARCH, CGO_ENABLED, and declared tags. Ambient Go flags, architecture tuning, experiments, Go environment files, automatic toolchain selection, authentication, proxies, and checksum services are removed or forced offline; duplicate physical diagnostics retain the ordered selection names, and a handwritten file that no selection reaches is an error. For schema-two verification, configured source roots are authoritative; trailing CLI package patterns do not narrow away part of that reviewed universe. Authorized annotation-tool provenance, build, and startup remain a host operation: CLI, spicestyle, and LSP pin the running toolchain's native GOOS/GOARCH, disable CGO and ambient build flags, and stay offline without automatic toolchain downloads. Configured target values apply only to application analysis. Within each selection, the compiler derives every @Application package and compiler-validated spice_generate entrypoint, then validates each application composition independently. Identical configuration keys, environment names, providers, or routes in unrelated applications do not collide; duplicates within one composition still fail, and application-semantic source unreachable from every derived target is an error. Diagnostic relationships name both the build selections and application targets involved. Each scoped pass also promotes only transitively imported packages from the same Go module, so local @Module declarations remain visible without loading unrelated applications. Promoted packages are reloaded as exact roots so their syntax, file set, Go types, and type information are complete; packages outside configured source roots still fail the exact source-ownership check. Module and named-interface identities discovered across declared build selections form a compiler-derived registry: a dependency that is valid but inactive for one platform remains known, while nonexistent identities still fail and inactive modules never create packages or edges in that platform's graph.

Filename suffixes are selection-scoped rather than globally allowlisted. A primary type may use its canonical filename or the active GOOS, GOARCH, GOOS_GOARCH, Go platform alias, explicitly constrained unix family, or one whole positively required declared tag. Arbitrary role suffixes and suffixes from another selection fail closed. An @Application func main outside main.go is accepted only when its exact spice_generate constraint, generated package import, and os.Exit(generated.Main(os.Args[1:])) body are validated by the compiler. Generated-root membership and the standard generated header independently exclude generated code. Boundary, function, and variable exceptions match exact workspace-relative paths; variable types use full Go package identity. The typed phase enforces explicit managed scopes, private managed fields, exact module ownership/dependencies, and protected-or-reviewed- public route classification. The generated scaffold enables every schema-two family. LSP clients select the same contract with the spice.style setting (for example .spice/style.json); compiler-owned generation tags remain explicit and cannot reintroduce ambient build state.

Create a profile-shaped application and class-oriented declarations with:

go tool github.com/spice-framework/toolchain/cmd/spice init --module example.com/shop --profile=java-structured
go tool github.com/spice-framework/toolchain/cmd/spice new module orders
go tool github.com/spice-framework/toolchain/cmd/spice new service OrderService --directory internal/orders --package orders
go tool github.com/spice-framework/toolchain/cmd/spice new repository OrderRepository --directory internal/orders --package orders
go tool github.com/spice-framework/toolchain/cmd/spice new controller OrderController --directory internal/orders --package orders
go tool github.com/spice-framework/toolchain/cmd/spice new component PasswordHasher --directory internal/orders --package orders
go tool github.com/spice-framework/toolchain/cmd/spice new enum OrderStatus --directory internal/orders --package orders

spice init writes both tool declarations and independently pins the public core and toolchain module versions. Java-structured initialization places the application boundary in cmd/<application>/main.go, an assembly-module cmd/<application>/doc.go, and an initial internal/<application>/doc.go module root. Declaration scaffolds use deterministic filenames and exact New<Type> constructors. Neither command overwrites source, downloads modules, invokes Go, or initializes version control. The original spice new --module ... application form remains supported.

Service method policies

Interface-bound singleton services can declare @data.Transactional, @security.Authorize, @cache.Cacheable, @retry.Retryable, and @observability.Observed on exported methods whose first parameter is exact context.Context and whose final result is error. The compiler generates one direct-call decorator and injects only the explicitly declared @Implements interface. Injecting the raw concrete service is a compile-time error.

Policies have one stable nesting order: observation, authorization, cache, retry, transaction, then the concrete target call. Cache hits therefore skip retry and transaction; authorization guards cache access; each retry attempt owns its own transaction; observation covers the complete logical call. The generated implementation uses no reflection, runtime proxy, service locator, or package-global registry. ApplicationOptions owns retry, cache, authorization, and method observers per application instance.

Spice-native logging

@observability.Logging generates an instance-owned *logging.Logger, registers exact compiler-owned module/component scopes, and makes that logger injectable through the ordinary typed provider graph. An application @Bean returning the exact logger type replaces the generated fallback. Generated Application.Logger and Application.LoggingController accessors expose the selected capability without a registry or global slog state.

Generated configuration owns spice.logging.format, spice.logging.level, spice.logging.levels, and spice.logging.add-source. Embedded applications discard output unless ApplicationOptions.Logging supplies exactly one writer or handler; generated commands bind their caller-owned stderr. The deprecated *slog.Logger option remains a one-preview compatibility adapter and conflicts with the new option when both are set.

Logging adapters are ordered before application observers across lifecycle, HTTP, authorization, scheduling, async, retry, cache, events, transactions, and observed methods. management.Enable(expose=["loggers"], access="loopback") additionally generates method-specific GET/POST logger control routes and is rejected unless logging is enabled.

Develop

The repository requires exactly Go 1.26.5. Use:

make fast
make check
make benchmark
make verify

The verifier is implemented in Go, so its behavior is the same from PowerShell, Linux, and macOS. The definitive gate checks module and vendor reproducibility, builds every published tool, tests the compiler/CLI/LSP boundary, rejects stale monorepository imports, enforces pinned formatting, lint, nil-safety, security, race, fuzz, and 85% coverage gates, and generates a third-party SDK fixture twice from zero before compiling and executing it offline.

The definitive gate also enforces the versioned latency, allocation, and memory ceilings in benchmarks/budgets.json. Five samples per critical path are reduced to a median to limit scheduler noise. Run make benchmark for that focused contract without waiting for the full gate; the budgets remain mandatory in make verify and therefore in every release.

Before the offline fixture tests, the gate explicitly acquires and verifies the fixture's declared Go modules. Product analysis, generation, LSP operation, and the subsequent fixture workflow all run with network lookup disabled.

The third-party fixture under testdata/ is handwritten. Its generated output is deliberately untracked and recreated by verification.

Generator compatibility

The frozen v0.1.0-preview.7 generator contract is recorded in compatibility/generator.json: it writes ownership schema 6, accepts guarded migrations from schemas 1 through 6, uses Go formatting line 1.26, and fails closed on manual edits, stale owned files whose hashes changed, unsafe paths, or non-canonical contract drift. Source-built go tool binaries report the same exact generator identity; the release command rejects any tag that differs from it.

The existing v0.1.0-preview.1 and v0.1.0-preview.2 releases remain immutable history. Preview.1 records schema 5 and 0.1.0-dev; release run 31120527225 was cancelled. Preview.2 was published by successful release run 31403311626 from commit bab8bcaf. Preview.3 is an immutable tag-only attempt at commit 38ddce15; release run 31501018109 stopped before attestation and created no release. Preview.4 is an immutable published distribution: annotated tag object c56a53983f4e36259ac83a016fd80326023a730d resolves to commit 35cb1315bb30bc31b82fdd71c99c6313b4b4a923, and successful release run 31522099046 published its exact ten-asset prerelease. Preview.5 is also immutable published history at candidate commit 3ed984b56faed8972ed9964c672b7fc2d42a5150; successful release run 31557699706 published its exact ten-asset prerelease.

Release

RELEASING.md defines the current release contract. The preview.7 candidate first bootstraps only its five committed Go graphs through the public proxy and checksum database, then runs the complete release gate offline. Development authority 28831e2aa1170a61dc8642d0159c780153428930 produces six deterministic platform archives, canonical release metadata, an SPDX 2.3 SBOM, and checksums. Independent Toolchain authority e9dffae153316639121a65ca1fd6f178f7e7eb61 authenticates the tagged source and graph, reconstructs every byte, and copies exactly those nine subjects into a verifier-owned directory. Organization caller authority 8735307890ba974ff7d2d998ac805ff390ebacdf preserves that policy intersection. Linux and Windows then execute only the installed verified archive. Protected release-attestation approval mints keyless Sigstore provenance, its source and workflow identity are authenticated, and distinct release-publish approval is the only path to a ten-asset public prerelease. The caller passes no secrets and no earlier job has repository write authority.

The retained Ed25519 builder and its eleven-asset workflow describe the historical preview.2 release boundary. They remain available for verification and compatibility evidence, but they are not the preview.7 production authority.

Signed source-only starter releases use a separate trust boundary. The cmd/spice-library-release-verify Go tool authenticates the exact five-file artifact set with an externally trusted Ed25519 public key, then independently checks the source archive and SPDX 2.3 document against an exact commit in the trusted starter checkout. Callers must also provide the expected canonical HTTPS source URL and Go module path; repository-name coincidence alone is not a trust decision. It does not import the central development renderer, the retained starter builder, or this repository's binary-release builder. Starter workflows authorize an exact verifier version with an ordinary root go.mod tool directive and run it in vendor-only offline mode.

Generic go-module-v1 releases use the separate cmd/spice-go-release-verify boundary. It accepts only dependency-free spice@v0.1.0-preview.4, spice-agent@v0.1.0-preview.7, spice-agent-provider-openai@v0.1.0-preview.1, spice-agent-tools-coding@v0.1.0-preview.1, and spice-agent-tui@v0.1.0-preview.2. It rejects starters and distribution profiles, and independently binds repository, source, module, version, commit, committed release intent, required module selections, vendor selection, archive bytes, release metadata, checksums, and SPDX 2.3 contents. It runs only an archive-materialized copy of the exact Git tree: dependencies are downloaded into verifier-private caches through https://proxy.golang.org and sum.golang.org, the committed vendor tree is compared byte-for-byte and mode-for-mode with a fresh authenticated regeneration, and the isolated tree then passes offline vendor-only listing and a -trimpath build. Candidate go.mod and go.sum changes during authentication fail closed. Public graph authentication uses a private alternate modfile and sumfile inside the isolated workspace, so Go may complete checksum evidence without changing those tidy candidate files. CGO, credentials, private-module exceptions, workspace selection, and ambient Go configuration are disabled. One validated absolute Go executable and verifier-private Go path, caches, temporary storage, and disabled telemetry remain fixed across every command. Downloaded module-cache entries may be read-only by Go design. The verifier first attempts ordinary private-workspace removal, repairs only owner access inside that private tree when required, and retries removal without following symlinks. A persistent cleanup failure remains a verification error, so an apparently successful verification cannot silently leak temporary state. The Agent core preview.7 policy requires authenticated Spice preview.4 and the published Toolchain preview.2. Provider preview.1, coding-tools preview.1, and the spice-agent-coding preview.4 distribution retain the immutable Spice foundation v0.1.0-preview.2 and their exact historical Toolchain, Agent, and sibling selections. The separately authorized TUI preview.2 policy requires Spice preview.4 and the published Toolchain preview.4. The independent Toolchain distribution authority now permits preview.7 with the same Spice preview.4 requirement, one spice command, six targets, LICENSE, README, and two typed CLI identity symbols. TUI remains pinned to Toolchain preview.4; no Agent, provider, coding-tools, Coding, or historical selection moves with this authorization. Spice preview.3 is an immutable tag-only failed attempt that produced no authenticated release; it is rejected as a current foundation selection. This closed authority independently matches Development commit 28831e2aa1170a61dc8642d0159c780153428930; neither repository can expand it alone.

In the separate Toolchain distribution history, preview.1 release run 31120527225 was cancelled. Published preview.2 remains immutable at commit bab8bcaf through successful release run 31403311626. Preview.3 release run 31501018109 passed candidate validation, deterministic rendering, independent nine-subject verification, and Ubuntu installed-byte execution. Windows then rejected the runner's mixed-separator verified artifact directory before installed-byte execution, so attestation, provenance authentication, and publication were skipped. Preview.3 remains an immutable tag-only attempt with no GitHub Release or deployment. Preview.4 annotated tag object c56a53983f4e36259ac83a016fd80326023a730d resolves to commit 35cb1315bb30bc31b82fdd71c99c6313b4b4a923. Unique release run 31522099046, attempt 1, completed candidate validation, deterministic rendering and its reproducibility recheck, independent verification, Ubuntu and Windows installed-byte execution, keyless attestation, provenance authentication, and protected publication. Attestation deployment 5856387461 and publish deployment 5856422883 both succeeded. The resulting immutable ten-asset prerelease has module sum h1:mpHAsOdPSUQTSa2GE891VJg5bXmzML0T2N9c5QU4yJg= and go.mod sum h1:nezzFkAq9TDdavVL5sYJm2nOKNWAu1p9VTz3XFihgUg= from fresh public proxy and SumDB resolution. Preview.5 annotated tag object 50498dd91946ec9c049716c34807b4456f5abecd resolves to candidate commit 3ed984b56faed8972ed9964c672b7fc2d42a5150. Unique release run 31557699706, attempt 1, and protected deployments 5862354828 and 5862373810 published the immutable ten-asset prerelease. Fresh proxy and SumDB resolution yields module sum h1:FhCM7xedN+CJkIMLuUPjh709+LB54G802daP+Ko57/c= and go.mod sum h1:nezzFkAq9TDdavVL5sYJm2nOKNWAu1p9VTz3XFihgUg=. Preview.6 annotated tag object 8a8fc61aa7e713704135be75690d46017e047e1d resolves to candidate commit 8d1a1ed744d7ed77ed0b013318c8588e69f8177b. Unique release run 31632016018, attempt 1, and protected deployments 5876035930 and 5876071036 published the immutable ten-asset prerelease. Fresh proxy and SumDB resolution yields module sum h1:aChpRT/e2DH7SC+FzL06FPzJxqLQ/jYQDP+xpXWlctI= and go.mod sum h1:nezzFkAq9TDdavVL5sYJm2nOKNWAu1p9VTz3XFihgUg=. Preview.7 is a distinct candidate for the reviewed product line through core commit 73d2189ee512c4988f1a223aa0b6afdf10bfb260. Its candidate-owned generator, release intent, CLI, independently installed-byte gate, and release caller all agree on preview.7. The no-secrets caller pins organization authority 8735307890ba974ff7d2d998ac805ff390ebacdf, which fixes Development authority 28831e2aa1170a61dc8642d0159c780153428930 and Toolchain verifier authority e9dffae153316639121a65ca1fd6f178f7e7eb61. Candidate preparation does not create a tag, approve an environment, attest bytes, publish assets, or repin TUI preview.2 from Toolchain preview.4. Provider and coding-tools releases and all three Coding distribution sibling selections remain preview.1; TUI's own policy alone advances to preview.2. Provider, coding-tools, and distribution policies require spice-agent@v0.1.0-preview.4 and reject preview.1, preview.2, and preview.3; that dependency graph remains unchanged while the Agent module's own closed policy advances independently to preview.7. Successful release run 31428824060 published preview.6 as a non-draft prerelease with its authenticated five-asset module set. Preview.7 annotated tag object 251bd3b86c6c731cf2b8f20b57430130d31fde7e resolves to commit 831fbf259ff3896067a7c6d74d4f402310214805; unique release run 31519742953, attempt 1, and protected deployments 5855895060 and 5855923346 published the immutable five-asset prerelease. Fresh proxy and SumDB resolution yields module sum h1:BQS23GwLBm5BLaRqMB9vYu+0dcEnuP6ooG6tzyjDSjY= and go.mod sum h1:WKNPxU7+jt+aPdL8v1aXovw9D32PwTYq3hE4xPug1YE=. Preview.7 remains a distinct identity and does not move, replace, or reuse preview.5 or preview.6. Before creating an immutable tag, release operators can run spice-go-release-verify policy-check with the proposed repository, canonical source, module, version, and profile. This bounded, deterministic check reads only the verifier's compiled policy and performs no Git, filesystem, artifact, module, or network operation. Operators compare its exact authorization with the separately reviewed development plan through one tab-separated profile, repository, module, and version line. Toolchain validates the canonical source input before emitting that directly comparable tuple. Full post-tag verification remains mandatory. For Toolchain preview.7 the exact LF-terminated 83-byte tuple is go-distribution-v1\ttoolchain\tgithub.com/spice-framework/toolchain\tv0.1.0-preview.7\n; its SHA-256 is 8b335fcdbba2b099b1de707616662d10745bed2765e567302f49c07d09d119ad. The dependency-free Spice policy omits both go.sum and vendor. It rejects requirements, tools, replacements, excludes, ignores, partial graph metadata, and every vendor/ path, then independently proves the selected module and package graphs and builds with network disabled and -mod=readonly. The command imports neither the development catalog nor its renderer. The organization workflow must pin the development renderer and this verifier from separate immutable commits before keyless attestation. A successful invocation copies exactly the four verified artifact bytes into a required, previously absent verifier-owned output directory; attestation must never consume the renderer directory directly.

Binary distributions use the sibling cmd/spice-go-distribution-release-verify boundary. Its closed go-distribution-v1 policies authorize the unchanged spice-agent-coding surface and the separate Toolchain preview.7 surface. Each fixes its commands, six operating-system/architecture targets, committed payloads, required modules, and typed build-identity symbols. The verifier materializes the exact tagged Git tree, publicly authenticates and byte-compares regenerated vendor, performs network-disabled -trimpath builds for every target, proves the exact symbols with go tool nm, executes host binaries through --version, and independently reconstructs every archive, metadata document, SPDX SBOM, and checksum. The renderer output is never the attestation input; successful verification copies the exact validated artifact allowlist into a required absent verifier-owned directory.

The Toolchain candidate also owns an installed-byte gate for that verified allowlist. Set SPICE_DISTRIBUTION_VERIFIED_ARTIFACT_DIR to the canonical absolute verifier-owned output directory. Windows ephemeral runners must also set SPICE_DISTRIBUTION_EPHEMERAL_RUNNER=1; non-Windows runners must leave it unset. Then run:

make verify-release-artifacts

The gate accepts only the preview.7 Toolchain nine-subject set: checksums, release metadata, SPDX SBOM, and all six Linux/macOS/Windows amd64/arm64 archives. Every archive must contain exactly one spice binary plus the committed LICENSE and README with canonical paths, bytes, and permissions. The host archive is extracted into private scratch space and its binary is executed offline; it must report exactly spice 0.1.0-preview.7 (<40-character-commit>). Source builds report the honest development identity spice v0.1.0-preview.7 (development). Release builds set the exported internal/cli.Version and internal/cli.Commit data symbols directly; mixed, empty, noncanonical, or malformed linker identities fail closed. This candidate check consumes independently verified bytes and does not replace source authentication, independent reconstruction, provenance, or publication approval.

The separately explicit make release-acceptance proof is network-capable by design and is not part of make verify. It clones the central development signer and starter-oidc at repository-pinned commit IDs, creates a clean temporary checkout with the canonical HTTPS origin and an exact temporary tag, signs with a newly generated ephemeral Ed25519 key, and passes those artifacts to this repository's independent verifier with explicit source and module identity. Its hosted workflow runs on Linux and Windows. All Go builds remain vendor-only and offline; network access is limited to the two pinned Git fetches, and the temporary clones, artifacts, and private key are deleted when the proof finishes.

Extraction provenance

The repository retains the filtered history of the compiler/tooling boundary. Its public-core bridge is pinned to github.com/spice-framework/spice@v0.1.0-preview.2.0.20260811041952-0e79bc4f3b29 (commit 0e79bc4f3b294cd0a429598c4921391f2e4d10e2). The Apache-2.0 license and pinned quality-tool versions were carried from the extracted source history, then the module identities and standalone gate were adapted here. No migration script or machine-specific replacement is part of the published tree.

Extraction status

This initial standalone boundary intentionally runs cmd/spice through the handwritten CLI, exactly like cmd/spice-bootstrap. The former monorepository's stale generated self-hosted command was removed rather than published under the wrong module identity. Production self-hosting remains a follow-up integration milestone; this repository does not claim it yet. Performance budgets and the artifact build are guarded and reproducible as documented above.

License

Apache License 2.0. See LICENSE.

Directories

Path Synopsis
cmd
spice command
Command spice is the standalone Spice compiler and developer-tool entrypoint.
Command spice is the standalone Spice compiler and developer-tool entrypoint.
spice-bootstrap command
Command spice-bootstrap is the ordinary-Go stage-zero Spice compiler.
Command spice-bootstrap is the ordinary-Go stage-zero Spice compiler.
spice-go-distribution-release-verify command
Command spice-go-distribution-release-verify independently verifies a closed-policy Spice Go binary distribution against an exact trusted commit.
Command spice-go-distribution-release-verify independently verifies a closed-policy Spice Go binary distribution against an exact trusted commit.
spice-go-release-verify command
Command spice-go-release-verify independently verifies generic Spice Go module artifacts against compiled policy and an exact trusted checkout.
Command spice-go-release-verify independently verifies generic Spice Go module artifacts against compiled policy and an exact trusted checkout.
spice-library-release-verify command
Command spice-library-release-verify independently authenticates a signed Spice library release against an exact commit in a trusted checkout.
Command spice-library-release-verify independently authenticates a signed Spice library release against an exact commit in a trusted checkout.
spice-release command
Command spice-release builds deterministic, signed Spice release artifacts.
Command spice-release builds deterministic, signed Spice release artifacts.
spice-release-verify command
Command spice-release-verify independently authenticates and verifies a complete Spice release artifact directory.
Command spice-release-verify independently authenticates and verifies a complete Spice release artifact directory.
spicestyle command
Command spicestyle verifies the Spice java-structured source profile.
Command spicestyle verifies the Spice java-structured source profile.
Package compiler owns Spice's ordinary-Go analysis and generation pipeline.
Package compiler owns Spice's ordinary-Go analysis and generation pipeline.
annotationcatalog
Package annotationcatalog discovers statically declared annotation descriptors from the target application's existing offline Go module graph.
Package annotationcatalog discovers statically declared annotation descriptors from the target application's existing offline Go module graph.
annotationhost
Package annotationhost authorizes and hosts Go-native annotation tools.
Package annotationhost authorizes and hosts Go-native annotation tools.
annotationimport
Package annotationimport resolves explicit file-scoped annotation imports.
Package annotationimport resolves explicit file-scoped annotation imports.
annotationinstall
Package annotationinstall plans and applies hash-guarded Go module changes.
Package annotationinstall plans and applies hash-guarded Go module changes.
application
Package application assembles the immutable Spice application model from one resolved, type-aware compiler program.
Package application assembles the immutable Spice application model from one resolved, type-aware compiler program.
async
Package async compiles provider-owned asynchronous method annotations into deterministic metadata.
Package async compiles provider-owned asynchronous method annotations into deterministic metadata.
autoconfigure
Package autoconfigure discovers and statically decodes Go-native library auto-configuration.
Package autoconfigure discovers and statically decodes Go-native library auto-configuration.
bootstrap
Package bootstrap compiles qualified application-platform annotations into deterministic, immutable metadata for the Spice application IR.
Package bootstrap compiles qualified application-platform annotations into deterministic, immutable metadata for the Spice application IR.
cache
Package cache compiles explicit cacheable HTTP read boundaries into deterministic metadata.
Package cache compiles explicit cacheable HTTP read boundaries into deterministic metadata.
configuration
Package configuration validates reflection-free configuration declarations from the shared typed compiler program.
Package configuration validates reflection-free configuration declarations from the shared typed compiler program.
controller
Package controller validates generated net/http controller metadata from the shared typed compiler program.
Package controller validates generated net/http controller metadata from the shared typed compiler program.
descriptor
Package descriptor statically decodes annotation SDK descriptor functions from the compiler's single typed Go program.
Package descriptor statically decodes annotation SDK descriptor functions from the compiler's single typed Go program.
diagnostic
Package diagnostic defines the shared immutable diagnostic contract consumed by Spice command, development, and editor integrations.
Package diagnostic defines the shared immutable diagnostic contract consumed by Spice command, development, and editor integrations.
diagnostic/adapt
Package adapt converts existing compiler-stage diagnostics into the shared Spice diagnostic contract without changing stage-local metadata models.
Package adapt converts existing compiler-stage diagnostics into the shared Spice diagnostic contract without changing stage-local metadata models.
enum
Package enum validates closed, type-safe enum declarations from the shared typed compiler program.
Package enum validates closed, type-safe enum declarations from the shared typed compiler program.
event
Package event compiles type-owned event topics, compatible function topic markers, and provider-owned listeners into deterministic application metadata.
Package event compiles type-owned event topics, compatible function topic markers, and provider-owned listeners into deterministic application metadata.
generate
Package generate renders deterministic generated application plans from one validated Spice application model.
Package generate renders deterministic generated application plans from one validated Spice application model.
graph
Package graph validates exact-type provider dependencies and builds a deterministic dependency-first provider construction order.
Package graph validates exact-type provider dependencies and builds a deterministic dependency-first provider construction order.
lifecycle
Package lifecycle validates explicit lifecycle-hook metadata against the provider catalog.
Package lifecycle validates explicit lifecycle-hook metadata against the provider catalog.
load
Package load provides Spice's single type-aware Go package loading boundary.
Package load provides Spice's single type-aware Go package loading boundary.
modulith
Package modulith discovers and validates Spice application-module metadata from the shared typed compiler program.
Package modulith discovers and validates Spice application-module metadata from the shared typed compiler program.
parser
Package parser parses Spice annotations embedded in valid Go comments.
Package parser parses Spice annotations embedded in valid Go comments.
policy
Package policy compiles service-method annotations into one deterministic, ordered decorator model.
Package policy compiles service-method annotations into one deterministic, ordered decorator model.
provider
Package provider builds and validates the compile-time provider catalog.
Package provider builds and validates the compile-time provider catalog.
resolve
Package resolve associates parsed Spice annotations with declarations in an already loaded, type-checked Go program.
Package resolve associates parsed Spice annotations with declarations in an already loaded, type-checked Go program.
scan
Package scan discovers Spice annotations in Go source files.
Package scan discovers Spice annotations in Go source files.
schedule
Package schedule compiles provider-owned fixed-delay annotations into deterministic metadata.
Package schedule compiles provider-owned fixed-delay annotations into deterministic metadata.
service
Package service exposes Spice's typed compiler pipeline as an isolated, overlay-aware analysis service for commands and editor integrations.
Package service exposes Spice's typed compiler pipeline as an isolated, overlay-aware analysis service for commands and editor integrations.
signature
Package signature provides exact loaded-program signature identities shared by compiler feature analyzers.
Package signature provides exact loaded-program signature identities shared by compiler feature analyzers.
starter
Package starter adapts explicitly supplied public starter manifests into compiler annotation and application-bootstrap metadata.
Package starter adapts explicitly supplied public starter manifests into compiler annotation and application-bootstrap metadata.
style
Package style enforces optional source-organization profiles over the shared typed compiler program.
Package style enforces optional source-organization profiles over the shared typed compiler program.
targetid
Package targetid defines the stable generated-package identity shared by lexical entrypoint preparation and typed generation.
Package targetid defines the stable generated-package identity shared by lexical entrypoint preparation and typed generation.
transaction
Package transaction compiles explicit transactional HTTP boundaries into deterministic metadata.
Package transaction compiles explicit transactional HTTP boundaries into deterministic metadata.
validate
Package validate checks scanned annotations against typed definitions.
Package validate checks scanned annotations against typed definitions.
internal
annotationcore
Package annotationcore implements the official Go-native annotation tool.
Package annotationcore implements the official Go-native annotation tool.
boundarygate
Package boundarygate owns the focused, cross-platform verification contract for the standalone Spice toolchain repository.
Package boundarygate owns the focused, cross-platform verification contract for the standalone Spice toolchain repository.
boundarygate/cmd command
Command boundarygate runs the standalone repository's verification contract.
Command boundarygate runs the standalone repository's verification contract.
cli
Package cli implements the Spice command-line interface.
Package cli implements the Spice command-line interface.
devloop
Package devloop coordinates deterministic application rebuilds and restarts for development tools.
Package devloop coordinates deterministic application rebuilds and restarts for development tools.
genfs
Package genfs safely compares and applies deterministic generation plans.
Package genfs safely compares and applies deterministic generation plans.
gitenv
Package gitenv provides a fail-closed environment for read-only release Git operations.
Package gitenv provides a fail-closed environment for read-only release Git operations.
goreleaseverify
Package goreleaseverify independently verifies catalog-authorized generic Go module release artifacts.
Package goreleaseverify independently verifies catalog-authorized generic Go module release artifacts.
identity
Package identity owns the canonical module and executable identities that cross the public Spice core and toolchain boundary.
Package identity owns the canonical module and executable identities that cross the public Spice core and toolchain boundary.
libraryreleaseacceptance
Package libraryreleaseacceptance proves the real central library signer against the independent toolchain verifier using immutable external source.
Package libraryreleaseacceptance proves the real central library signer against the independent toolchain verifier using immutable external source.
libraryreleaseacceptance/cmd command
Command libraryreleaseacceptance runs the hosted cross-producer release proof.
Command libraryreleaseacceptance runs the hosted cross-producer release proof.
libraryreleaseverify
Package libraryreleaseverify independently authenticates and verifies a signed Spice library release against an exact commit in a trusted checkout.
Package libraryreleaseverify independently authenticates and verifies a signed Spice library release against an exact commit in a trusted checkout.
lsp
Package lsp implements Spice's editor-neutral Language Server Protocol transport over standard JSON-RPC streams.
Package lsp implements Spice's editor-neutral Language Server Protocol transport over standard JSON-RPC streams.
moduleenv
Package moduleenv derives fail-closed Go module execution settings.
Package moduleenv derives fail-closed Go module execution settings.
release
Package release builds deterministic, signed Spice release artifacts.
Package release builds deterministic, signed Spice release artifacts.
releaseinstallation
Package releaseinstallation validates and extracts independently verified Toolchain distribution subjects for candidate-owned installed-byte checks.
Package releaseinstallation validates and extracts independently verified Toolchain distribution subjects for candidate-owned installed-byte checks.
releaseverify
Package releaseverify independently verifies a complete Spice release.
Package releaseverify independently verifies a complete Spice release.
scaffold
Package scaffold creates minimal, valid-Go Spice applications without downloading dependencies or overwriting developer-owned files.
Package scaffold creates minimal, valid-Go Spice applications without downloading dependencies or overwriting developer-owned files.
style
Package style implements the standalone Spice java-structured source analyzer.
Package style implements the standalone Spice java-structured source analyzer.
testannotation
Package testannotation adapts raw parser fixtures to typed SDK semantics.
Package testannotation adapts raw parser fixtures to typed SDK semantics.
testsupport
Package testsupport owns portable module fixtures shared by toolchain tests.
Package testsupport owns portable module fixtures shared by toolchain tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL