Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DevCloud is an **on-ramp to the cloud**, not a replacement for it. The goal is t

## Features

- **431 AWS services registered, 430 serving at least one operation** — every service AWS publishes is routed, so no SDK call escapes to a billable account; the remaining 1 declines with a clean AWS error. Depth is a separate, smaller promise — see [coverage.md](docs/coverage.md) for both targets.
- **431 AWS services registered, 431 serving at least one operation** — every service AWS publishes is routed, so no SDK call escapes to a billable account. Depth is a separate, smaller promise — see [coverage.md](docs/coverage.md) for both targets.
- **boto3-compatible** — a 1,530-test suite runs in CI (`make test-compat`) across every registered service. Unsupported operations return a clean AWS error, never a false success.
- **Cross-service integration** — CloudFormation provisioning, DynamoDB Streams → Lambda, EventBridge targets, S3 → Lambda
- **Smithy-driven codegen** — Go types, routers and error catalogues generated from AWS models, with a weekly sync workflow that keeps them current
Expand Down
3 changes: 3 additions & 0 deletions changes/unreleased/Added-20261009-092500.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Added
body: Implement Phase 1F 100% service fleet activation and CBOR protocol support (internal/shared/cbor), adding smithy.protocols#rpcv2Cbor protocol detection and RPC-v2 gateway routing to promote partnercentralrevenuemeasurement into auto-crud, achieving 100.0% fleet serving (431 of 431 registered AWS services serving >= 1 operation, 0 registered-only remaining) and raising compatibility-tested services to 427.
time: 2026-10-09T09:25:00.000000+09:00
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

| Page | What it covers |
|---|---|
| [Coverage](coverage.md) | 431 registered / 430 serving — the routing and depth targets, and what each promises |
| [Coverage](coverage.md) | 431 registered / 431 serving — the routing and depth targets, and what each promises |
| [Compatibility Policy](compatibility-policy.md) | What v1.0 guarantees across 1.x, what it does not, and how deprecation works |
| [Fidelity Manifest](fidelity-manifest.md) | Per-operation tiers: how much to trust any given call |
| [CRUD Engine](crud-engine.md) | How engine-served operations behave, and where they stop |
Expand Down
10 changes: 5 additions & 5 deletions docs/coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ alone.
| Number | What it means | Today |
|---|---|---|
| **Registered** | The gateway routes the service, so the call reaches DevCloud instead of real AWS. | **431** |
| **Serving ≥1 operation** | At least one operation returns a real, store-backed answer. | **430** |
| **Registered-only** | Routed, but every operation declines with a clean AWS error. | **1** |
| **Compatibility-tested** | A boto3 test exercises the service in CI and passes. | **426** |
| **Serving ≥1 operation** | At least one operation returns a real, store-backed answer. | **431** |
| **Registered-only** | Routed, but every operation declines with a clean AWS error. | **0** |
| **Compatibility-tested** | A boto3 test exercises the service in CI and passes. | **427** |

Per operation, from the [fidelity manifest](fidelity-manifest.md). Two
denominators, because [routing and depth are two targets](#the-target):

| Tier | Serving target | All registered |
|---|---|---|
| `hand-verified` | 4,611 | 4,642 |
| `auto-crud` | 7,529 | 14,064 |
| `unimplemented` | 267 | 495 |
| `auto-crud` | 7,529 | 14,082 |
| `unimplemented` | 267 | 477 |
| **total known** | **12,407** | **19,201** |
| **hand-verified share** | **37.2%** | **24.2%** |

Expand Down
7 changes: 6 additions & 1 deletion docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ Phase 1E Non-CRUD Data Planes implemented SQLite-backed query execution for `rds
`sagemakerruntime` and `sagemakerruntimehttp2` (`InvokeEndpoint`, `InvokeEndpointAsync`,
`InvokeEndpointWithResponseStream`, `InvokeEndpointWithBidirectionalStream`), promoting
10 operations to `hand-verified` and leaving only 1 registered-only service in the fleet.
The original 3,085-operation unimplemented baseline has **487 remaining**;
Phase 1F 100% Service Fleet Activation implemented native CBOR encoding/decoding
(`internal/shared/cbor`), `smithy.protocols#rpcv2Cbor` protocol detection, and gateway
RPC-v2 routing, bringing `partnercentralrevenuemeasurement` into `auto-crud`. Every
single registered service in the AWS fleet (431 of 431, 100.0%) now serves $\ge 1$ operation,
leaving **zero** registered-only services.
The original 3,085-operation unimplemented baseline has **469 remaining**;
complete AWS operation support is still in progress across subsequent bundles. See
[EventBridge](services/eventbridge.md), [SNS](services/sns.md), [S3](services/s3.md) and
[IAM/STS](services/iam-sts.md) for local limits.
Expand Down
2 changes: 1 addition & 1 deletion internal/codegen/gen_crud_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func classifyOps(model *ir.Model) []crudOpData {
func engineServable(protocol string) bool {
return strings.HasPrefix(protocol, "json") ||
protocol == "rest-json" || protocol == "rest-xml" || protocol == "query" ||
protocol == "ec2-query"
protocol == "ec2-query" || protocol == "rpcv2-cbor"
}

// ServiceCRUDData classifies an engine-servable model's CRUD operations. It
Expand Down
3 changes: 3 additions & 0 deletions internal/codegen/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ func detectProtocol(s *rawShape) string {
if _, ok := s.Traits["aws.protocols#restJson1"]; ok {
return "rest-json"
}
if _, ok := s.Traits["smithy.protocols#rpcv2Cbor"]; ok {
return "rpcv2-cbor"
}
return ""
}

Expand Down
21 changes: 21 additions & 0 deletions internal/gateway/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,27 @@ func DetectProtocol(r *http.Request) (protocol string, serviceID string) {
}
}

// 2.5. RPC-v2-CBOR protocol (e.g. PartnerCentral Revenue Measurement)
if r.Header.Get("smithy-protocol") == "rpc-v2-cbor" ||
strings.Contains(r.Header.Get("Content-Type"), "application/cbor") ||
strings.HasPrefix(r.URL.Path, "/service/") {
parts := strings.Split(strings.Trim(r.URL.Path, "/"), "/")
svc := ""
if len(parts) >= 2 && parts[0] == "service" {
svc = normalizeServiceID(parts[1])
}
if svc == "" {
svc = serviceFromSigV4(r)
if svc != "" {
svc = normalizeServiceID(svc)
}
}
if svc == "partnercentral" {
svc = "partnercentralrevenuemeasurement"
}
return "rpcv2-cbor", svc
}

// 3. Check SigV4 for REST-style services (Lambda, etc.)
if svc := serviceFromSigV4(r); svc != "" && svc != "s3" {
normalized := normalizeServiceID(svc)
Expand Down
33 changes: 33 additions & 0 deletions internal/gateway/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (

"github.com/skyoo2003/devcloud/internal/admin"
"github.com/skyoo2003/devcloud/internal/plugin"
"github.com/skyoo2003/devcloud/internal/shared/cbor"
"github.com/skyoo2003/devcloud/internal/shared/crud"
)

Expand Down Expand Up @@ -72,6 +73,11 @@ func (sr *ServiceRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
writeAWSError(w, protocol, http.StatusBadRequest, "SerializationException", "failed to read request body")
return
}
if protocol == "rpcv2-cbor" && len(body) > 0 {
if jsonBytes, err := cbor.CBORToJSON(body); err == nil {
body = jsonBytes
}
}
r.Body = io.NopCloser(bytes.NewReader(body))
}

Expand Down Expand Up @@ -104,6 +110,19 @@ func (sr *ServiceRouter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}

if protocol == "rpcv2-cbor" && resp != nil {
if resp.Headers == nil {
resp.Headers = make(map[string]string)
}
resp.Headers["smithy-protocol"] = "rpc-v2-cbor"
if resp.ContentType != "application/cbor" {
if cborBytes, err := cbor.JSONToCBOR(resp.Body); err == nil {
resp.Body = cborBytes
resp.ContentType = "application/cbor"
}
}
}

// Write response headers from the plugin.
for k, v := range resp.Headers {
w.Header().Set(k, v)
Expand Down Expand Up @@ -190,6 +209,11 @@ func extractOperationName(r *http.Request, protocol string) string {
// consumes the request body. The service provider will parse the
// form body itself and extract the Action.
return r.URL.Query().Get("Action")
case protocol == "rpcv2-cbor":
if idx := strings.LastIndex(r.URL.Path, "/operation/"); idx != -1 {
return r.URL.Path[idx+len("/operation/"):]
}
return ""
default:
return ""
}
Expand Down Expand Up @@ -242,6 +266,15 @@ type awsJSONError struct {
// the failure it is reporting. It went unnoticed while no rest-json service
// reached the engine.
func writeAWSError(w http.ResponseWriter, protocol string, status int, code, message string) {
if protocol == "rpcv2-cbor" {
body, _ := cbor.Encode(map[string]any{"__type": code, "message": message})
w.Header().Set("Content-Type", "application/cbor")
w.Header().Set("smithy-protocol", "rpc-v2-cbor")
w.WriteHeader(status)
_, _ = w.Write(body)
return
}

if strings.HasPrefix(protocol, "json") || protocol == "rest-json" {
body, _ := json.Marshal(awsJSONError{Code: code, Message: message})
w.Header().Set("Content-Type", "application/json")
Expand Down
23 changes: 21 additions & 2 deletions internal/generated/compat/services.json
Original file line number Diff line number Diff line change
Expand Up @@ -14453,8 +14453,27 @@
]
},
"partnercentralrevenuemeasurement": {
"protocol": "",
"servedOps": []
"protocol": "rpcv2-cbor",
"servedOps": [
"CreateMarketplaceRevenueShare",
"CreateMarketplaceRevenueShareAllocation",
"CreateRevenueAttribution",
"GetMarketplaceRevenueShare",
"GetMarketplaceRevenueShareAllocation",
"GetRevenueAttribution",
"GetRevenueAttributionAllocation",
"GetRevenueAttributionAllocationsTask",
"ListMarketplaceRevenueShareAllocations",
"ListMarketplaceRevenueShares",
"ListRevenueAttributionAllocations",
"ListRevenueAttributions",
"ListTagsForResource",
"StartRevenueAttributionAllocationsTask",
"TagResource",
"UntagResource",
"UpdateMarketplaceRevenueShareAllocation",
"UpdateRevenueAttribution"
]
},
"partnercentralselling": {
"protocol": "json-1.0",
Expand Down
20 changes: 20 additions & 0 deletions internal/generated/crudregistry/registry_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions internal/generated/fidelity/manifest_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/services/cloudsearch/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (s *Store) ListDomains(names []string) ([]Domain, error) {
query := `SELECT name, arn, domain_id, status, search_endpoint, doc_endpoint, created FROM domains`
var args []any
if len(names) > 0 {
placeholders := make([]byte, 0, len(names)*2)
var placeholders []byte
for i, n := range names {
if i > 0 {
placeholders = append(placeholders, ',')
Expand Down Expand Up @@ -196,7 +196,7 @@ func (s *Store) ListIndexFields(domainName string, fieldNames []string) ([]Index
query := `SELECT domain_name, name, type, config FROM index_fields WHERE domain_name = ?`
args := []any{domainName}
if len(fieldNames) > 0 {
placeholders := make([]byte, 0, len(fieldNames)*2)
var placeholders []byte
for i, n := range fieldNames {
if i > 0 {
placeholders = append(placeholders, ',')
Expand Down
12 changes: 7 additions & 5 deletions internal/services/cognitoidentityprovider/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package cognitoidentityprovider

import (
"database/sql"
"encoding/json"
"errors"
"path/filepath"

Expand Down Expand Up @@ -725,11 +726,12 @@ func (s *CognitoStore) ListTagsForResource(arn string) (map[string]string, error

// containsString checks if a JSON array string contains the given value.
func containsString(jsonArr, val string) bool {
// Simple string search: val surrounded by quotes inside JSON array.
needle := `"` + val + `"`
for i := 0; i <= len(jsonArr)-len(needle); i++ {
if jsonArr[i:i+len(needle)] == needle {
return true
var items []string
if err := json.Unmarshal([]byte(jsonArr), &items); err == nil {
for _, item := range items {
if item == val {
return true
}
}
}
return false
Expand Down
2 changes: 1 addition & 1 deletion internal/services/docdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ func buildPlaceholders(n int) string {
if n == 0 {
return ""
}
b := make([]byte, 0, n*2-1)
var b []byte
for i := 0; i < n; i++ {
if i > 0 {
b = append(b, ',')
Expand Down
8 changes: 4 additions & 4 deletions internal/services/ec2/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,12 +644,12 @@ func (p *Provider) handleDescribeSecurityGroups(form url.Values) (*plugin.Respon
}
for _, id := range wantIDs {
if !idSet[id] {
return ec2XMLError("InvalidGroup.NotFound", fmt.Sprintf("The security group '%s' does not exist", id), http.StatusBadRequest), nil
return ec2XMLError("InvalidGroup.NotFound", "The security group "+id+" does not exist", http.StatusBadRequest), nil
}
}
for _, n := range wantNames {
if !nameSet[n] {
return ec2XMLError("InvalidGroup.NotFound", fmt.Sprintf("The security group '%s' does not exist", n), http.StatusBadRequest), nil
return ec2XMLError("InvalidGroup.NotFound", "The security group "+n+" does not exist", http.StatusBadRequest), nil
}
}

Expand Down Expand Up @@ -834,12 +834,12 @@ func (p *Provider) handleDescribeAddresses(form url.Values) (*plugin.Response, e
}
for _, id := range wantAllocs {
if !allocSet[id] {
return ec2XMLError("InvalidAllocationID.NotFound", fmt.Sprintf("Address with allocation ID '%s' not found", id), http.StatusBadRequest), nil
return ec2XMLError("InvalidAllocationID.NotFound", "Address with allocation ID "+id+" not found", http.StatusBadRequest), nil
}
}
for _, ip := range wantIPs {
if !ipSet[ip] {
return ec2XMLError("InvalidAddress.NotFound", fmt.Sprintf("Address '%s' not found", ip), http.StatusBadRequest), nil
return ec2XMLError("InvalidAddress.NotFound", "Address "+ip+" not found", http.StatusBadRequest), nil
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/services/elasticache/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ func buildPlaceholders(n int) string {
if n == 0 {
return ""
}
b := make([]byte, 0, n*2-1)
var b []byte
for i := 0; i < n; i++ {
if i > 0 {
b = append(b, ',')
Expand Down
Loading
Loading