Skip to main content

Storage vertical

FR #1045 adds a resource family independent of Data Sources, Knowledge, Connected Services and provider transport. The API reference defines routes and contracts; ADR-0199 records ownership and authority decisions without changing accepted ADRs.

ProjectOwnsAllowed boundaries
Agentstration.Storage.ContractsStorageType/Storage resources, exact revision evidence, manual bindings, protected resolution and availability/usage portsResources, generic ResourceManagement, ConnectedServices.Contracts
Agentstration.StorageImmutable versions, lifecycle, validation, use/access authorization, reconciliation, resolutionContracts, Identity.Contracts, ResourceManagement.Contracts, bounded Schemas validation
Agentstration.Storage.ApiHTTP mapping, ETags, pagination, Problem DetailsStorage services and family-neutral API contracts
Agentstration.InfrastructureComposition, local metadata availability, builtin type provisioning, Bootstrap handlersExisting inward-facing ports and document store

There is no Storage-specific relational schema. ResourceManagement's existing document stores preserve exact scope, UID, governance and optimistic concurrency. The family never references EF, ASC, AEP, physical provider SDKs, Console, Data Sources or Knowledge. Extension materialization uses SynchronizeManagedAsync under exact trusted governance; #1040 owns the actual AEP mapping adapter.

The three authority layers remain separate:

  1. Connected Service owns connection options, Parameter/Secret references and typed exports. Its metadata inspector validates exports without resolving Secret values.
  2. Storage owns implementation selection, explicit requirement/export mappings, bounded configuration and a fixed envelope.
  3. Data Source/Knowledge own logical dataset or output rules and exact selected Storage revisions. They receive no ability to replace connection or envelope.

Resolution repeats current authorization and contract checks. For Storage and StorageType resources, the generic Use decision is the current usage authority; Tenant propagation, exact identities, revocations and scope boundaries are checked on each call. Embedded UsePolicy metadata does not impose a second Storage-family lock while #1078 is deferred. Connected Service inspection retains its own checks. Protected configuration does not serialize with the logical revision. Sharing physical placement or an extension never grants shared logical authority.

Reconciliation observes drift without rebinding. Accepting a new complete definition requires an explicit request and ETag; dependencies prevent destructive rebinding or deactivation. Missing providers leave stored resources and evidence unchanged. Read-time observations do not create writes or change ETags.

The Core local@1.0.0 type supports management/resolution and bounded content without a Connected Service. Before release, the maintainer retained a single functional initial version rather than intermediate compatibility contracts. #1040 supplies guarded default provisioning, separate UID-bound directories and protected ASC/AEP/Artifact adapters. Execution and deployment and ADR-0200 describe runtime authority, policy preservation, current capability limits and historical Artifact handling. #1046 supplies the Console; #1041/#1042 retain dataset and Snapshot ownership.

Fast tests exercise domain and authority invariants with deterministic ports. Integration tests cover real HTTP/Problem Details, Bootstrap, Secret non-resolution, SQLite restart and concurrency. Architecture tests enforce project direction and keep provider/transport implementations outside the family.

Validation evidence — 2026-11-08​

Verified with .NET SDK 10.0.300 against implementation commit 1610290 on feature/fr-1045-storage-api, based on integration/fr-1032 at 09de3fc.

CheckResult
Solution restorePassed; all projects restored
Release build without restorePassed; 0 warnings, 0 errors
Required Fast lane969 passed, 0 failed, 0 skipped
Required Integration lane1069 discovered: 1057 passed, 0 failed, 12 optional tests skipped
LikeC4 and ADR validationPassed; 3 model files and 197 unique ADRs
Production Docusaurus buildPassed
Isolated Development bootstrap/server smokeHealth 200, local fixture login 204, type catalog 200, Storage creation 201 and exact detail 200/ready

Required commands were run from the repository root:

dotnet restore Agentstration.slnx
dotnet build Agentstration.slnx --configuration Release --no-restore
dotnet test --solution Agentstration.Tests.Fast.slnx --configuration Release --no-build --minimum-expected-tests 777 --max-parallel-test-modules 4
dotnet test --solution Agentstration.Tests.Integration.slnx --configuration Release --no-build --minimum-expected-tests 954 --max-parallel-test-modules 2

The 12 skips are existing opt-in integrations: 2 PostgreSQL, 8 live Foundry, 1 llama.cpp and 1 LocalAI. No Storage test was skipped. The final Integration pass completed after an environment restart interrupted an earlier attempt. There is no Storage Console change or new browser journey in #1045.

The Console client and components reference only Storage.Contracts. The two existing composition roots register IStoragesClient over the product HTTP API. The UI preserves exact pins in drafts and separates metadata PUT, observation-only reconciliation and confirmed complete replacement. It never invokes ASC/AEP or Secret-resolution ports. Architecture checks explicitly permit this family contract while continuing to reject Storage services, API modules and concrete persistence from Console assemblies. This follows ADR-0199 and the existing Connected Service Console architecture; it introduces no new architectural decision or ADR.

StorageType administration (#1064)​

The existing family now exposes explicit immutable-version publication and a bounded discoverable-reference projection. Dependency checks cover type deletion and disablement even when the consumer cannot be disclosed. Console adds an independent catalogue, exact details, metadata editor and version-publication form through IStorageTypesClient, implemented by the existing HTTP client and registered in both Console composition roots. There is no new module or schema.

The shared Access panel reuses the canonical evaluator for saved generic Discover/Use decisions. Ordinary Storage overlays bind to exact resource UID, scope, namespace and kind rather than automatically pinning mutable generation. Explicit revision pins remain supported and fail closed in both store discovery and effective evaluation. Existing-overlay writes require the policy's own ETag; conflicts retain the Console draft and require explicit review of the current revision before retry. SQLite and PostgreSQL implement the same identity and concurrency rules. Managed-resource synchronization never writes these overlays.

These changes implement ADR-0172/ADR-0181 and the Storage family contract corrected by ADR-0200. Generic ResourceAccessPolicy.Use is the current Storage/StorageType usage authority; embedded UsePolicy adds no second gate while #1078 is deferred. Existing caller-authorization checks remain in place; new user-permission work is tracked by #1077. Accepted ADRs remain unchanged. #1040 owns ASC/AEP/Artifact/local execution and provisioning; #1041/#1042 retain consumer rules. #1065 remains blocked on explicit implemented-UX approval and implementation merge, independently of the required implementation smoke/regression checks.

Execution boundary​

Storage.Contracts owns content DTOs, restrictions and IStorageContentGateway. Storage still references no ASC/AEP implementation. Infrastructure composes the SDK adapters and the native local backend; the optional independent Asc.Aep library configures extension bindings without product-resource references.

Every content call reauthorizes exact resource/type/service/export pins plus the current execution permission. Pure local envelope validation participates in management through a narrow port, without Secret resolution or physical I/O. Remote configuration layers travel through authenticated bounded AEP exchange; content Tool arguments carry only logical target selection and business inputs.

Initialization target 3 reconciles existing Workspaces through the existing fenced startup mechanism. Provisioning writes no access grants or UsePolicy and preserves configuration, disablement and existing access decisions. Absent generic Use grants may block Workspace/Tenant defaults; a bounded result/operator warning reports that limitation while other provisioning continues. The Instance default is usable in its logical administrative context. #1077/#1078 retain new permission and policy work.

Authorized selected-Storage Artifact receipts pin their Storage UID/revision. The independent Artifact backend remains the builtin choice when no default can be selected in the Flow's Workspace context. A selected reference never falls back after disablement or revocation. Existing locations, receipts, leases and histories retain their original adapter. Receipt dependencies match exact UIDs; another resource at the same name does not inherit them.

FR #1040 scope correction and validation — 2026-11-08​

The maintainer confirmed that policy work remains out of #1040. Automatic grant initialization was removed, including type UsePolicy mutation, operational Storage UsePolicy grants, generic grant initialization and first-grant markers. Existing generic policy evaluation remains the authority. The maintainer then clarified that generic Use must authorize the complete Storage-family path, without a second unadministrable embedded UsePolicy lock. That extra Storage/StorageType gate was removed at the application boundary; no grants are synthesized. Workspace/Tenant defaults without generic authorization are reported as unavailable; existing Artifact functionality stays usable through its independent backend. No permission exception or scope approval is pending. #1077/#1078 retain their deferred requirements.

Validation was completed against application correction c90f80f, based on integration/fr-1032 at a27d3d7, with .NET SDK 10.0.300. Earlier candidate counts are superseded by these results.

CheckResult
Root restore and Release buildPassed; 0 warnings, 0 errors; audit/analyzers enabled
Required Fast lane999 passed, 0 failed, 0 skipped; minimum 777, maximum 4 parallel modules
Required Integration lane1,090 discovered: 1,078 passed, 0 failed, 12 existing optional skips; minimum 954, maximum 2 parallel modules
Focused Storage module31 passed
Focused HTTP/provisioning cases6 passed
Real SQLite sharing/revocation/restart scenarioPassed; native content and exact identities retained, foreign Tenant refused, synchronization/restarts preserve grants and revocation
ADR/LikeC4/full Docusaurus buildPassed; 198 unique ADRs
Actual standalone executableHealth 200, Development fixture login 204, Storage catalogue/list 200; builtin versions and Instance default verified
Real Docker remove/recreatePassed; two retained volumes preserve exact Storage/Workspace identities, protected content reference, Artifact receipt and historical content without grant initialization

No Storage test was skipped. The 12 skips are the existing optional PostgreSQL and live-model integrations. An initial lane attempt exposed an existing Git test's exact cancellation-type assertion; isolated test correction 4840c11 accepts valid derived .NET cancellation exceptions, and the complete required lane was rerun. The Git provider implementation is unchanged.

The AEP SDK and ASC/AEP package source are unchanged by the authorization correction; independent checks passed earlier (59 AEP tests and package README/license/notices). Docker uses the published production-composition probe in a locally assembled .NET 10.0.8 runtime image with networking disabled. The official mcr.microsoft.com/dotnet/aspnet:10.0 image pull was refused by the registry in this environment; its checked-in Dockerfile remains unverified here.

Cross-branch review of #1079 confirmed that its selector combines generic Use, enablement and version availability. Its former builtin test expecting a UsePolicy-related 403 must expect successful authorized creation, and must select an exact/preferred version rather than assuming the builtin has one version. Its Storage-specific help text also needs alignment with the current contract. An isolated test patch was prepared for that branch; no Console source was changed in #1080. Combined-branch/browser validation is not claimed by these backend checks. No new reusable UX scenario was added; #1033/#1065 retain their existing gates.

The #1064 integration applies those cross-branch adaptations and the subsequent maintainer decision to retain one functional pre-release local@1.0.0. The Storage-specific help, builtin version selection, authorized creation/revocation assertions and request-observation/selector regressions now follow ADR-0200. Combined validation and the isolated service-fixture correction are recorded in the Console reference and PR #1079. These checks do not approve the UX or authorize a merge.

OpenDAL extension — FR #1039​

The autonomous Agentstration.Extensions.OpenDal host consumes Apache.OpenDAL 0.3.1 through ASC.Server/ASC.Aep. It contributes executable opendal.fs, opendal.s3 and opendal.azblob version 1.0.0. One provider translates ASC operations to the same native Operator/Stream methods for every backend. Backend capabilities and typed connection requirements stay inside the extension; product modules remain provider-neutral. See the OpenDAL reference and ADR-0206.

FR #1085 supplies text/blob sessions and bounded replay receipts in the independent ASC SDK (ADR-0205). OpenDAL stores each logical key directly: there is no aggregate objects.json, custom content engine, persistent protocol receipt ledger, 128-object quota or 8 MiB store quota. Optional native conditions/metadata are gated, and native stream completion never acquires exact commit metadata by a later stat.

The required Integration lane and coverage shard B include the native extension suite. Offline tests execute real MCP and native filesystem calls, a 9 MiB stream, concurrent conditional creates, isolation and restart. S3/Azure tests use real native operators against synthetic local HTTP protocol peers and protected Secret grants; they do not claim a live cloud/emulator certification. Product integration tests exercise contributed types, manual exports, protected configuration, revocation and disablement. Native Linux/Windows distribution and restart checks run in the dedicated packaging workflow. These backend checks do not approve the deferred Console/Workplace UX gates owned by #1033/#1065.

Structured document extension​

#1150 adds bounded logical collections to Storage configuration and a provider-neutral document gateway. Storage-family projects retain their inward-only dependencies. Infrastructure composes ASC and AEP; the optional autonomous PostgreSQL extension references only the standalone protocol SDKs, optional OData grammar and Npgsql. Content operations and local defaults retain their existing contracts. Query relays fix exact Storage/collection/profile pins. Knowledge composes immutable document publications and canonical Artifact materializations with its existing Snapshot lifecycle. Data Sources can also pin a document collection for JSON-object acquisitions: each acquisition owns an immutable publication, exact Artifact evidence and producer-governed retention. Collection-schema validation follows the selected ASC profile through the existing Storage definition validator boundary; it does not alter generic Schema resources or the acquisition's declared output contract.

Structured documents specifies the capabilities, query subset, operator setup, Console/API behavior and deterministic verticals. ADR-0220 through ADR-0225 supplement the #1032 decisions. Memory #1156 and the reusable UX scenario #1158 remain deferred under their recorded conditions.