@raishin/vanguard-frontier-agentic 3.18.0 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +8 -1
- package/.cursor-plugin/plugin.json +8 -1
- package/.github/plugin/marketplace.json +1 -1
- package/README.md +21 -21
- package/agents/AGENTS.md +4 -4
- package/agents/README.md +7 -7
- package/agents/alibaba/alibaba-tablestore-architect-agent/AGENT.md +54 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/claude-code.agent.md +37 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/codex.toml +11 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/copilot.agent.md +43 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/cursor.agent.md +38 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/gemini.agent.md +39 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/harnesses/kiro-ide.agent.md +37 -0
- package/agents/alibaba/alibaba-tablestore-architect-agent/metadata.json +39 -0
- package/agents/aws/aws-dynamodb-patterns-agent/AGENT.md +53 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/claude-code.agent.md +36 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/codex.toml +23 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/copilot.agent.md +42 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/cursor.agent.md +38 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/gemini.agent.md +38 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/aws/aws-dynamodb-patterns-agent/harnesses/kiro-ide.agent.md +36 -0
- package/agents/aws/aws-dynamodb-patterns-agent/metadata.json +39 -0
- package/agents/azure/azure-cosmosdb-application-developer-agent/metadata.json +4 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/AGENT.md +53 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/claude-code.agent.md +36 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/codex.toml +23 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/copilot.agent.md +42 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/cursor.agent.md +37 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/gemini.agent.md +38 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/harnesses/kiro-ide.agent.md +36 -0
- package/agents/azure/azure-cosmosdb-pattern-agent/metadata.json +38 -0
- package/agents/gcp/gcp-bigtable-architect-agent/AGENT.md +54 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/claude-code.agent.md +37 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/codex.toml +11 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/copilot.agent.md +43 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/cursor.agent.md +38 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/gemini.agent.md +39 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/gcp/gcp-bigtable-architect-agent/harnesses/kiro-ide.agent.md +37 -0
- package/agents/gcp/gcp-bigtable-architect-agent/metadata.json +39 -0
- package/agents/huawei/huawei-geminidb-architect-agent/AGENT.md +54 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/claude-code.agent.md +37 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/codex.toml +11 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/copilot.agent.md +43 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/cursor.agent.md +38 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/gemini.agent.md +39 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/huawei/huawei-geminidb-architect-agent/harnesses/kiro-ide.agent.md +37 -0
- package/agents/huawei/huawei-geminidb-architect-agent/metadata.json +38 -0
- package/agents/oci/oci-nosql-database-architect-agent/AGENT.md +54 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/claude-code.agent.md +37 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/codex.toml +11 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/copilot.agent.md +43 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/cursor.agent.md +39 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/gemini.agent.md +39 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/oci/oci-nosql-database-architect-agent/harnesses/kiro-ide.agent.md +37 -0
- package/agents/oci/oci-nosql-database-architect-agent/metadata.json +39 -0
- package/agents/oci/oci-nosql-pattern-agent/AGENT.md +53 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/claude-code.agent.md +36 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/codex.toml +23 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/copilot.agent.md +42 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/cursor.agent.md +38 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/gemini.agent.md +38 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/kiro-cli.agent.json +5 -0
- package/agents/oci/oci-nosql-pattern-agent/harnesses/kiro-ide.agent.md +36 -0
- package/agents/oci/oci-nosql-pattern-agent/metadata.json +38 -0
- package/catalog/agents.json +204 -1
- package/catalog/asset-integrity.json +620 -75
- package/catalog/install-roles.json +19 -1
- package/catalog/model-assignments.json +231 -0
- package/catalog/skill-manifest.json +2074 -527
- package/catalog/skills.json +314 -14
- package/package.json +8 -2
- package/plugins/vanguard-frontier-agentic/.codex-plugin/plugin.json +1 -1
- package/powers/vanguard-alibaba/POWER.md +1 -1
- package/powers/vanguard-aws/POWER.md +1 -1
- package/powers/vanguard-azure/POWER.md +1 -1
- package/powers/vanguard-gcp/POWER.md +1 -1
- package/powers/vanguard-huawei/POWER.md +1 -1
- package/powers/vanguard-oci/POWER.md +1 -1
- package/rules/codex/cloud-provenance-rule.md +1 -1
- package/scripts/generate-kiro-powers.mjs +2 -2
- package/skills/alibaba/README.md +2 -1
- package/skills/alibaba/alibaba-maestro/SKILL.md +2 -1
- package/skills/alibaba/alibaba-tablestore-architect/SKILL.md +69 -0
- package/skills/alibaba/alibaba-tablestore-architect/metadata.json +28 -0
- package/skills/alibaba/alibaba-tablestore-architect/references/commands/audit/live.md +110 -0
- package/skills/alibaba/alibaba-tablestore-architect/references/commands/audit/offline.md +119 -0
- package/skills/alibaba/alibaba-tablestore-architect/references/commands/audit.md +22 -0
- package/skills/alibaba/alibaba-tablestore-architect/references/evidence-ledger.md +87 -0
- package/skills/alibaba/alibaba-tablestore-architect/references/operations.md +190 -0
- package/skills/alibaba/alibaba-tablestore-architect/references/tablestore-design-guide.md +159 -0
- package/skills/aws/aws-documentdb-architect/SKILL.md +43 -0
- package/skills/aws/aws-documentdb-architect/metadata.json +26 -0
- package/skills/aws/aws-documentdb-architect/references/commands/audit/live.md +135 -0
- package/skills/aws/aws-documentdb-architect/references/commands/audit/offline.md +127 -0
- package/skills/aws/aws-documentdb-architect/references/commands/audit.md +23 -0
- package/skills/aws/aws-documentdb-architect/references/evidence-ledger.md +52 -0
- package/skills/aws/aws-documentdb-architect/references/official-sources.md +15 -0
- package/skills/aws/aws-documentdb-architect/references/operations.md +165 -0
- package/skills/aws/aws-documentdb-architect/references/safety-checklist.md +22 -0
- package/skills/aws/aws-documentdb-architect/references/workflow-and-output.md +22 -0
- package/skills/aws/aws-dynamodb-data-modeling-performance-review/SKILL.md +5 -3
- package/skills/aws/aws-dynamodb-data-modeling-performance-review/metadata.json +7 -3
- package/skills/aws/aws-dynamodb-data-modeling-performance-review/references/consistency-indexing-replication.md +103 -0
- package/skills/aws/aws-dynamodb-data-modeling-performance-review/references/evidence-ledger.md +38 -0
- package/skills/aws/aws-dynamodb-patterns/CHANGELOG.md +87 -0
- package/skills/aws/aws-dynamodb-patterns/README.md +132 -0
- package/skills/aws/aws-dynamodb-patterns/SKILL.md +82 -0
- package/skills/aws/aws-dynamodb-patterns/assets/bedrock-embedding-input.json +6 -0
- package/skills/aws/aws-dynamodb-patterns/assets/content-review.json +6 -0
- package/skills/aws/aws-dynamodb-patterns/assets/create-table-with-lsi.json +41 -0
- package/skills/aws/aws-dynamodb-patterns/assets/create-table.json +27 -0
- package/skills/aws/aws-dynamodb-patterns/assets/create-table.sh +37 -0
- package/skills/aws/aws-dynamodb-patterns/assets/embedding-flow.py +89 -0
- package/skills/aws/aws-dynamodb-patterns/assets/query-input.json +13 -0
- package/skills/aws/aws-dynamodb-patterns/assets/query-pages.mjs +54 -0
- package/skills/aws/aws-dynamodb-patterns/assets/stream-read-policy.json +11 -0
- package/skills/aws/aws-dynamodb-patterns/assets/table-index-read-policy.json +20 -0
- package/skills/aws/aws-dynamodb-patterns/assets/table-resource-policy.json +22 -0
- package/skills/aws/aws-dynamodb-patterns/assets/table.cfn.yaml +55 -0
- package/skills/aws/aws-dynamodb-patterns/assets/typed-vector-item.json +15 -0
- package/skills/aws/aws-dynamodb-patterns/assets/vector-create-table.json +23 -0
- package/skills/aws/aws-dynamodb-patterns/assets/vector-search-policy.json +11 -0
- package/skills/aws/aws-dynamodb-patterns/assets/vector-search.json +10 -0
- package/skills/aws/aws-dynamodb-patterns/assets/vector-table.cfn.yaml +41 -0
- package/skills/aws/aws-dynamodb-patterns/evals/audit.test.py +87 -0
- package/skills/aws/aws-dynamodb-patterns/evals/backup-restore.test.py +163 -0
- package/skills/aws/aws-dynamodb-patterns/evals/commands.test.py +185 -0
- package/skills/aws/aws-dynamodb-patterns/evals/create-table.test.py +99 -0
- package/skills/aws/aws-dynamodb-patterns/evals/data-vectors-maintenance.test.py +201 -0
- package/skills/aws/aws-dynamodb-patterns/evals/embedding-commands.test.py +162 -0
- package/skills/aws/aws-dynamodb-patterns/evals/embedding-flow.test.py +167 -0
- package/skills/aws/aws-dynamodb-patterns/evals/eval.md +328 -0
- package/skills/aws/aws-dynamodb-patterns/evals/evals.json +185 -0
- package/skills/aws/aws-dynamodb-patterns/evals/modes.test.py +195 -0
- package/skills/aws/aws-dynamodb-patterns/evals/operations.test.py +288 -0
- package/skills/aws/aws-dynamodb-patterns/evals/query-pages.test.mjs +156 -0
- package/skills/aws/aws-dynamodb-patterns/evals/readme-and-loading.test.py +69 -0
- package/skills/aws/aws-dynamodb-patterns/evals/verify.py +166 -0
- package/skills/aws/aws-dynamodb-patterns/metadata.json +28 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/README.md +32 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/audit/live.md +64 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/audit/offline.md +28 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/audit.md +65 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/aws-cli.md +206 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/backup/on-demand.md +36 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/backup/pitr.md +41 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/backup.md +27 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/design.md +47 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/embedding.md +200 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/feature-plan.md +56 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/help.md +28 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/performance-test.md +95 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/recovery-target.md +47 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/refactor.md +82 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/restore/on-demand.md +32 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/restore/pitr.md +42 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/restore.md +76 -0
- package/skills/aws/aws-dynamodb-patterns/references/commands/select.md +22 -0
- package/skills/aws/aws-dynamodb-patterns/references/data-types-and-vectors.md +175 -0
- package/skills/aws/aws-dynamodb-patterns/references/embedding-integrations.md +237 -0
- package/skills/aws/aws-dynamodb-patterns/references/encryption.md +156 -0
- package/skills/aws/aws-dynamodb-patterns/references/evidence-index.md +116 -0
- package/skills/aws/aws-dynamodb-patterns/references/evidence-ledger.md +373 -0
- package/skills/aws/aws-dynamodb-patterns/references/iam-and-access.md +173 -0
- package/skills/aws/aws-dynamodb-patterns/references/language-adapters.md +251 -0
- package/skills/aws/aws-dynamodb-patterns/references/lsi-vs-gsi.md +116 -0
- package/skills/aws/aws-dynamodb-patterns/references/maintenance.md +56 -0
- package/skills/aws/aws-dynamodb-patterns/references/modeling.md +131 -0
- package/skills/aws/aws-dynamodb-patterns/references/monitoring.md +137 -0
- package/skills/aws/aws-dynamodb-patterns/references/official-sources.md +34 -0
- package/skills/aws/aws-dynamodb-patterns/references/operations.md +130 -0
- package/skills/aws/aws-dynamodb-patterns/references/provisioning.md +110 -0
- package/skills/aws/aws-dynamodb-patterns/references/recovery-and-replicas.md +148 -0
- package/skills/aws/aws-dynamodb-patterns/references/runtime-contract.md +140 -0
- package/skills/aws/aws-dynamodb-patterns/references/safety-checklist.md +35 -0
- package/skills/aws/aws-dynamodb-patterns/references/sources.md +170 -0
- package/skills/aws/aws-dynamodb-patterns/references/streams-and-dax.md +160 -0
- package/skills/aws/aws-dynamodb-patterns/references/workflow-and-output.md +34 -0
- package/skills/aws/aws-dynamodb-patterns/references/workflow.md +133 -0
- package/skills/aws/aws-dynamodb-patterns/scripts/review_due.py +61 -0
- package/skills/aws/aws-dynamodb-patterns/scripts/select_mode.py +127 -0
- package/skills/aws/aws-keyspaces-architect/SKILL.md +43 -0
- package/skills/aws/aws-keyspaces-architect/metadata.json +26 -0
- package/skills/aws/aws-keyspaces-architect/references/commands/audit/live.md +118 -0
- package/skills/aws/aws-keyspaces-architect/references/commands/audit/offline.md +125 -0
- package/skills/aws/aws-keyspaces-architect/references/commands/audit.md +22 -0
- package/skills/aws/aws-keyspaces-architect/references/evidence-ledger.md +49 -0
- package/skills/aws/aws-keyspaces-architect/references/official-sources.md +15 -0
- package/skills/aws/aws-keyspaces-architect/references/operations.md +154 -0
- package/skills/aws/aws-keyspaces-architect/references/safety-checklist.md +22 -0
- package/skills/aws/aws-keyspaces-architect/references/workflow-and-output.md +22 -0
- package/skills/aws/aws-maestro/SKILL.md +1 -1
- package/skills/aws/aws-maestro/metadata.json +1 -1
- package/skills/aws/aws-maestro/references/workflow-and-output.md +1 -0
- package/skills/azure/azure-ai-foundry-ops-governor/SKILL.md +2 -2
- package/skills/azure/azure-aks-platform-operator/SKILL.md +1 -1
- package/skills/azure/azure-app-service-production-readiness/SKILL.md +1 -1
- package/skills/azure/azure-cosmosdb-application-developer/SKILL.md +5 -3
- package/skills/azure/azure-cosmosdb-application-developer/metadata.json +1 -1
- package/skills/azure/azure-cosmosdb-pattern/CHANGELOG.md +10 -0
- package/skills/azure/azure-cosmosdb-pattern/README.md +102 -0
- package/skills/azure/azure-cosmosdb-pattern/SKILL.md +69 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/account.arm.json +59 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/content-review.json +9 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/indexing-policy.json +7 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/order.json +10 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/provision.sh +32 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/runtime.mjs +99 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/vector-indexing-policy.json +7 -0
- package/skills/azure/azure-cosmosdb-pattern/assets/vector-policy.json +3 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/eval.md +32 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/fixtures/recovery-continuous.json +28 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/prompts.json +24 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/report.md +54 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/runtime.test.mjs +146 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/source-evidence.json +28 -0
- package/skills/azure/azure-cosmosdb-pattern/evals/test_package.py +355 -0
- package/skills/azure/azure-cosmosdb-pattern/metadata.json +25 -0
- package/skills/azure/azure-cosmosdb-pattern/references/access-control.md +42 -0
- package/skills/azure/azure-cosmosdb-pattern/references/change-feed-and-integrations.md +31 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/audit/live.md +17 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/audit/offline.md +15 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/audit.md +8 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/azure-cli.md +39 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/backup/continuous.md +30 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/backup/periodic.md +28 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/backup.md +11 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/design.md +13 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/feature-plan.md +18 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/help.md +13 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/performance-test.md +24 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/recovery-target.md +30 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/refactor.md +14 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/restore/continuous-deleted-resource.md +55 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/restore/continuous-new-account.md +50 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/restore/periodic-support.md +27 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/restore.md +13 -0
- package/skills/azure/azure-cosmosdb-pattern/references/commands/select.md +11 -0
- package/skills/azure/azure-cosmosdb-pattern/references/data-types-and-vectors.md +51 -0
- package/skills/azure/azure-cosmosdb-pattern/references/embedding-integrations.md +56 -0
- package/skills/azure/azure-cosmosdb-pattern/references/encryption.md +53 -0
- package/skills/azure/azure-cosmosdb-pattern/references/evidence-index.md +72 -0
- package/skills/azure/azure-cosmosdb-pattern/references/evidence-ledger.md +174 -0
- package/skills/azure/azure-cosmosdb-pattern/references/indexing-and-capacity.md +37 -0
- package/skills/azure/azure-cosmosdb-pattern/references/language-adapters.md +112 -0
- package/skills/azure/azure-cosmosdb-pattern/references/maintenance.md +19 -0
- package/skills/azure/azure-cosmosdb-pattern/references/modeling.md +44 -0
- package/skills/azure/azure-cosmosdb-pattern/references/monitoring.md +23 -0
- package/skills/azure/azure-cosmosdb-pattern/references/provisioning.md +61 -0
- package/skills/azure/azure-cosmosdb-pattern/references/recovery.md +31 -0
- package/skills/azure/azure-cosmosdb-pattern/references/replication.md +22 -0
- package/skills/azure/azure-cosmosdb-pattern/references/runtime-contract.md +43 -0
- package/skills/azure/azure-cosmosdb-pattern/references/sources.md +61 -0
- package/skills/azure/azure-cosmosdb-pattern/references/workflow.md +18 -0
- package/skills/azure/azure-cosmosdb-pattern/scripts/recovery_guard.py +96 -0
- package/skills/azure/azure-cosmosdb-pattern/scripts/review_due.py +26 -0
- package/skills/azure/azure-cosmosdb-pattern/scripts/select_mode.py +108 -0
- package/skills/azure/azure-cosmosdb-pattern/scripts/validate_assets.py +53 -0
- package/skills/azure/azure-cosmosdb-performance-investigator/SKILL.md +1 -1
- package/skills/azure/azure-cosmosdb-platform-operator/SKILL.md +7 -3
- package/skills/azure/azure-cosmosdb-platform-operator/metadata.json +6 -3
- package/skills/azure/azure-cosmosdb-platform-operator/references/commands/audit/live.md +180 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/commands/audit/offline.md +160 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/commands/audit.md +26 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/consistency-capacity-security.md +136 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/cosmosdb-platform-operations.md +1 -1
- package/skills/azure/azure-cosmosdb-platform-operator/references/evidence-ledger.md +242 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/operations-cassandra.md +178 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/operations-mongodb.md +202 -0
- package/skills/azure/azure-cosmosdb-platform-operator/references/operations.md +126 -0
- package/skills/azure/azure-cost-estimation-review/SKILL.md +1 -1
- package/skills/azure/azure-cost-optimization-governor/SKILL.md +1 -1
- package/skills/azure/azure-entra-id-specialist/SKILL.md +1 -1
- package/skills/azure/azure-governance-policy-guardrails/SKILL.md +1 -1
- package/skills/azure/azure-identity-governance-review/SKILL.md +1 -1
- package/skills/azure/azure-key-vault-secret-lifecycle-auditor/SKILL.md +1 -1
- package/skills/azure/azure-landing-zone-architect/SKILL.md +1 -1
- package/skills/azure/azure-maestro/SKILL.md +2 -1
- package/skills/azure/azure-migrate-landing-zone-cutover/SKILL.md +1 -1
- package/skills/azure/azure-network-topology-review/SKILL.md +1 -1
- package/skills/azure/azure-observability-investigator/SKILL.md +1 -1
- package/skills/azure/azure-platform-automation-devops/SKILL.md +1 -1
- package/skills/azure/azure-private-endpoint-adoption-planner/SKILL.md +1 -1
- package/skills/azure/azure-rbac-review/SKILL.md +1 -1
- package/skills/azure/azure-resilience-bcdr-review/SKILL.md +1 -1
- package/skills/azure/azure-resource-health-incident-triage/SKILL.md +1 -1
- package/skills/azure/azure-role-selector/SKILL.md +1 -1
- package/skills/azure/azure-security-posture-hardening/SKILL.md +1 -1
- package/skills/azure/azure-subscription-resource-organization/SKILL.md +1 -1
- package/skills/azure/azure-waf-cost-optimization-review/SKILL.md +1 -1
- package/skills/azure/azure-waf-reliability-review/SKILL.md +1 -1
- package/skills/azure/azure-waf-security-review/SKILL.md +1 -1
- package/skills/contabo/contabo-security-hardening/SKILL.md +1 -1
- package/skills/cross-functional/agentic-board-protocol/SKILL.md +1 -1
- package/skills/cross-functional/copilot-data-readiness-protocol/SKILL.md +1 -1
- package/skills/cross-functional/salesforce-case-capsule/SKILL.md +1 -1
- package/skills/cross-functional/salesforce-data-exposure-escalation-protocol/SKILL.md +1 -1
- package/skills/cross-functional/salesforce-live-change-approval-protocol/SKILL.md +1 -1
- package/skills/cross-functional/salesforce-risk-taxonomy/SKILL.md +1 -1
- package/skills/databricks/databricks-lakehouse-engineering-at-azure/SKILL.md +1 -1
- package/skills/databricks/databricks-unity-catalog-governance-at-azure/SKILL.md +1 -1
- package/skills/dotnet/dotnet-performance-aot-review/SKILL.md +1 -1
- package/skills/frontend/vue-router-navigation-security-review/SKILL.md +1 -1
- package/skills/gcp/README.md +2 -1
- package/skills/gcp/gcp-bigtable-architect/SKILL.md +71 -0
- package/skills/gcp/gcp-bigtable-architect/metadata.json +28 -0
- package/skills/gcp/gcp-bigtable-architect/references/bigtable-design-guide.md +156 -0
- package/skills/gcp/gcp-bigtable-architect/references/commands/audit/live.md +122 -0
- package/skills/gcp/gcp-bigtable-architect/references/commands/audit/offline.md +140 -0
- package/skills/gcp/gcp-bigtable-architect/references/commands/audit.md +21 -0
- package/skills/gcp/gcp-bigtable-architect/references/evidence-ledger.md +83 -0
- package/skills/gcp/gcp-bigtable-architect/references/operations.md +111 -0
- package/skills/gcp/gcp-firebase-developer/SKILL.md +6 -3
- package/skills/gcp/gcp-firebase-developer/metadata.json +14 -4
- package/skills/gcp/gcp-firebase-developer/references/commands/audit/live.md +124 -0
- package/skills/gcp/gcp-firebase-developer/references/commands/audit/offline.md +146 -0
- package/skills/gcp/gcp-firebase-developer/references/commands/audit.md +27 -0
- package/skills/gcp/gcp-firebase-developer/references/evidence-ledger.md +190 -0
- package/skills/gcp/gcp-firebase-developer/references/firestore-mongodb-operations.md +189 -0
- package/skills/gcp/gcp-firebase-developer/references/firestore-operations.md +202 -0
- package/skills/gcp/gcp-firebase-developer/references/firestore.md +122 -0
- package/skills/gcp/gcp-maestro/SKILL.md +2 -1
- package/skills/huawei/README.md +2 -1
- package/skills/huawei/huawei-gaussdb-rds-dba/SKILL.md +7 -4
- package/skills/huawei/huawei-gaussdb-rds-dba/metadata.json +12 -4
- package/skills/huawei/huawei-gaussdb-rds-dba/references/commands/audit/live.md +68 -0
- package/skills/huawei/huawei-gaussdb-rds-dba/references/commands/audit/offline.md +106 -0
- package/skills/huawei/huawei-gaussdb-rds-dba/references/commands/audit.md +23 -0
- package/skills/huawei/huawei-gaussdb-rds-dba/references/dds-operations.md +135 -0
- package/skills/huawei/huawei-gaussdb-rds-dba/references/evidence-ledger.md +87 -0
- package/skills/huawei/huawei-geminidb-architect/SKILL.md +68 -0
- package/skills/huawei/huawei-geminidb-architect/metadata.json +26 -0
- package/skills/huawei/huawei-geminidb-architect/references/commands/audit/live.md +68 -0
- package/skills/huawei/huawei-geminidb-architect/references/commands/audit/offline.md +108 -0
- package/skills/huawei/huawei-geminidb-architect/references/commands/audit.md +23 -0
- package/skills/huawei/huawei-geminidb-architect/references/evidence-ledger.md +83 -0
- package/skills/huawei/huawei-geminidb-architect/references/geminidb-design-guide.md +114 -0
- package/skills/huawei/huawei-geminidb-architect/references/operations.md +135 -0
- package/skills/huawei/huawei-maestro/SKILL.md +2 -1
- package/skills/ionos/ionos-live-database-lifecycle-guard/SKILL.md +2 -0
- package/skills/ionos/ionos-live-database-lifecycle-guard/references/commands/audit/live.md +87 -0
- package/skills/ionos/ionos-live-database-lifecycle-guard/references/commands/audit/offline.md +109 -0
- package/skills/ionos/ionos-live-database-lifecycle-guard/references/commands/audit.md +27 -0
- package/skills/ionos/ionos-live-database-lifecycle-guard/references/evidence-ledger.md +69 -0
- package/skills/ionos/ionos-live-database-lifecycle-guard/references/mongodb-operations.md +220 -0
- package/skills/java/java-application-server-exit/SKILL.md +1 -1
- package/skills/java/java-jvm-performance-and-gc/SKILL.md +1 -1
- package/skills/java/java-resilience-pattern/SKILL.md +1 -1
- package/skills/java/java-test-architecture/SKILL.md +1 -1
- package/skills/java/java-transaction-and-consistency/SKILL.md +1 -1
- package/skills/kubernetes/kubernetes-rbac-review/SKILL.md +1 -1
- package/skills/marketing/analytics-data-minimization-review/SKILL.md +1 -1
- package/skills/microsoft/d365-customer-insights-journeys/SKILL.md +1 -1
- package/skills/microsoft/fabric-analytics-engineering/SKILL.md +1 -1
- package/skills/microsoft/m365-defender-xdr-security-operations/SKILL.md +1 -1
- package/skills/microsoft/m365-purview-data-security-compliance/SKILL.md +1 -1
- package/skills/oci/README.md +6 -1
- package/skills/oci/oci-autonomous-database-architect/SKILL.md +1 -1
- package/skills/oci/oci-certificates-issuer-review/SKILL.md +1 -1
- package/skills/oci/oci-cloud-guard-responder/SKILL.md +1 -1
- package/skills/oci/oci-compute-instance-agent-operator/SKILL.md +1 -1
- package/skills/oci/oci-compute-platform-operator/SKILL.md +1 -1
- package/skills/oci/oci-cost-finops-analyst/SKILL.md +1 -1
- package/skills/oci/oci-database-platform-dba/SKILL.md +1 -1
- package/skills/oci/oci-dbtools-sql-analyst/SKILL.md +1 -1
- package/skills/oci/oci-devops-container-platform-engineer/SKILL.md +1 -1
- package/skills/oci/oci-exadata-database-architect/SKILL.md +1 -1
- package/skills/oci/oci-exadata-platform-architect/SKILL.md +1 -1
- package/skills/oci/oci-fusion-apps-environment-operator/SKILL.md +1 -1
- package/skills/oci/oci-goldengate-replication-operator/SKILL.md +1 -1
- package/skills/oci/oci-identity-access-governor/SKILL.md +1 -1
- package/skills/oci/oci-iot-digital-twin-engineer/SKILL.md +1 -1
- package/skills/oci/oci-limits-capacity-planner/SKILL.md +1 -1
- package/skills/oci/oci-live-autonomous-db-lifecycle-guard/SKILL.md +1 -1
- package/skills/oci/oci-live-cost-budget-runaway-guard/SKILL.md +1 -1
- package/skills/oci/oci-live-iam-policy-compartment-guard/SKILL.md +1 -1
- package/skills/oci/oci-live-network-security-rule-guard/SKILL.md +1 -1
- package/skills/oci/oci-live-oke-rollout-guard/SKILL.md +1 -1
- package/skills/oci/oci-live-resource-manager-stack-guard/SKILL.md +1 -1
- package/skills/oci/oci-live-vault-key-destruction-guard/SKILL.md +1 -1
- package/skills/oci/oci-load-balancer-traffic-engineer/SKILL.md +1 -1
- package/skills/oci/oci-maestro/SKILL.md +1 -1
- package/skills/oci/oci-migration-cutover-architect/SKILL.md +1 -1
- package/skills/oci/oci-multi-cloud-architect/SKILL.md +1 -1
- package/skills/oci/oci-mysql-heatwave-ai-specialist/SKILL.md +1 -1
- package/skills/oci/oci-network-architect/SKILL.md +1 -1
- package/skills/oci/oci-nosql-database-architect/SKILL.md +73 -0
- package/skills/oci/oci-nosql-database-architect/metadata.json +28 -0
- package/skills/oci/oci-nosql-database-architect/references/commands/audit/live.md +136 -0
- package/skills/oci/oci-nosql-database-architect/references/commands/audit/offline.md +150 -0
- package/skills/oci/oci-nosql-database-architect/references/commands/audit.md +28 -0
- package/skills/oci/oci-nosql-database-architect/references/evidence-ledger.md +96 -0
- package/skills/oci/oci-nosql-database-architect/references/nosql-design-guide.md +194 -0
- package/skills/oci/oci-nosql-database-architect/references/operations.md +194 -0
- package/skills/oci/oci-nosql-database-architect/references/sdk-matrix.md +43 -0
- package/skills/oci/oci-nosql-pattern/CHANGELOG.md +8 -0
- package/skills/oci/oci-nosql-pattern/README.md +81 -0
- package/skills/oci/oci-nosql-pattern/SKILL.md +62 -0
- package/skills/oci/oci-nosql-pattern/assets/content-review.json +10 -0
- package/skills/oci/oci-nosql-pattern/assets/create-table.sh +32 -0
- package/skills/oci/oci-nosql-pattern/assets/index-keys.json +11 -0
- package/skills/oci/oci-nosql-pattern/assets/migrator-export.json +22 -0
- package/skills/oci/oci-nosql-pattern/assets/migrator-import.json +29 -0
- package/skills/oci/oci-nosql-pattern/assets/orders.ddl +9 -0
- package/skills/oci/oci-nosql-pattern/assets/orders.tf +46 -0
- package/skills/oci/oci-nosql-pattern/assets/query-pages.mjs +33 -0
- package/skills/oci/oci-nosql-pattern/assets/query.json +13 -0
- package/skills/oci/oci-nosql-pattern/assets/query.sql +1 -0
- package/skills/oci/oci-nosql-pattern/assets/recovery-manifest.example.json +35 -0
- package/skills/oci/oci-nosql-pattern/assets/row.json +10 -0
- package/skills/oci/oci-nosql-pattern/assets/table-limits.json +6 -0
- package/skills/oci/oci-nosql-pattern/evals/cli-shapes.json +222 -0
- package/skills/oci/oci-nosql-pattern/evals/eval.md +26 -0
- package/skills/oci/oci-nosql-pattern/evals/prompts.json +89 -0
- package/skills/oci/oci-nosql-pattern/evals/report.md +41 -0
- package/skills/oci/oci-nosql-pattern/evals/test_package.py +350 -0
- package/skills/oci/oci-nosql-pattern/evals/test_runtime.mjs +77 -0
- package/skills/oci/oci-nosql-pattern/metadata.json +25 -0
- package/skills/oci/oci-nosql-pattern/references/access.md +29 -0
- package/skills/oci/oci-nosql-pattern/references/commands/audit/live.md +10 -0
- package/skills/oci/oci-nosql-pattern/references/commands/audit/offline.md +8 -0
- package/skills/oci/oci-nosql-pattern/references/commands/audit.md +6 -0
- package/skills/oci/oci-nosql-pattern/references/commands/backup/migrator.md +12 -0
- package/skills/oci/oci-nosql-pattern/references/commands/backup/sdk.md +10 -0
- package/skills/oci/oci-nosql-pattern/references/commands/backup.md +7 -0
- package/skills/oci/oci-nosql-pattern/references/commands/design.md +10 -0
- package/skills/oci/oci-nosql-pattern/references/commands/feature-plan.md +10 -0
- package/skills/oci/oci-nosql-pattern/references/commands/help.md +8 -0
- package/skills/oci/oci-nosql-pattern/references/commands/performance-test.md +12 -0
- package/skills/oci/oci-nosql-pattern/references/commands/refactor.md +9 -0
- package/skills/oci/oci-nosql-pattern/references/commands/restore/migrator.md +13 -0
- package/skills/oci/oci-nosql-pattern/references/commands/restore/sdk.md +11 -0
- package/skills/oci/oci-nosql-pattern/references/commands/restore.md +8 -0
- package/skills/oci/oci-nosql-pattern/references/commands/select.md +8 -0
- package/skills/oci/oci-nosql-pattern/references/embedding-integrations.md +25 -0
- package/skills/oci/oci-nosql-pattern/references/encryption.md +18 -0
- package/skills/oci/oci-nosql-pattern/references/evidence-index.md +44 -0
- package/skills/oci/oci-nosql-pattern/references/evidence-ledger.md +73 -0
- package/skills/oci/oci-nosql-pattern/references/indexes.md +19 -0
- package/skills/oci/oci-nosql-pattern/references/language-adapters.md +160 -0
- package/skills/oci/oci-nosql-pattern/references/maintenance.md +15 -0
- package/skills/oci/oci-nosql-pattern/references/modeling.md +26 -0
- package/skills/oci/oci-nosql-pattern/references/monitoring.md +21 -0
- package/skills/oci/oci-nosql-pattern/references/provisioning.md +44 -0
- package/skills/oci/oci-nosql-pattern/references/recovery-boundary.md +32 -0
- package/skills/oci/oci-nosql-pattern/references/replicas.md +18 -0
- package/skills/oci/oci-nosql-pattern/references/runtime-contract.md +23 -0
- package/skills/oci/oci-nosql-pattern/references/sources.md +57 -0
- package/skills/oci/oci-nosql-pattern/references/ttl.md +19 -0
- package/skills/oci/oci-nosql-pattern/references/types-and-vectors.md +27 -0
- package/skills/oci/oci-nosql-pattern/scripts/check_recovery.py +52 -0
- package/skills/oci/oci-nosql-pattern/scripts/review_due.py +32 -0
- package/skills/oci/oci-nosql-pattern/scripts/select_mode.py +96 -0
- package/skills/oci/oci-observability-incident-responder/SKILL.md +1 -1
- package/skills/oci/oci-recovery-service-operator/SKILL.md +1 -1
- package/skills/oci/oci-registry-artifact-governor/SKILL.md +1 -1
- package/skills/oci/oci-resource-search-inventory-analyst/SKILL.md +1 -1
- package/skills/oci/oci-security-compliance-reviewer/SKILL.md +1 -1
- package/skills/oci/oci-solution-architect/SKILL.md +1 -1
- package/skills/oci/oci-storage-backup-steward/SKILL.md +1 -1
- package/skills/oci/oci-support-incident-coordinator/SKILL.md +1 -1
- package/skills/oci/oci-waf-cost-optimization-review/SKILL.md +1 -1
- package/skills/oci/oci-waf-reliability-review/SKILL.md +1 -1
- package/skills/oci/oci-waf-security-review/SKILL.md +1 -1
- package/skills/oci/oracle-oci-mcp-grounded-advisor/SKILL.md +1 -1
- package/skills/ovhcloud/ovhcloud-cost-finops-analyst/SKILL.md +1 -1
- package/skills/ovhcloud/ovhcloud-live-kms-key-destruction-guard/SKILL.md +1 -1
- package/skills/ovhcloud/ovhcloud-mongodb-architect/SKILL.md +43 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/metadata.json +25 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/commands/audit/live.md +90 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/commands/audit/offline.md +112 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/commands/audit.md +24 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/evidence-ledger.md +93 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/official-sources.md +15 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/operations.md +216 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/safety-checklist.md +22 -0
- package/skills/ovhcloud/ovhcloud-mongodb-architect/references/workflow-and-output.md +22 -0
- package/skills/salesforce/salesforce-agentforce-risk-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-apex-lwc-code-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-devsecops-pipeline-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-flow-automation-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-infrastructure-audit-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-integration-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-marketing-consent-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-metadata-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-org-assessment-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-permission-model-review-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-release-readiness-skill/SKILL.md +1 -1
- package/skills/salesforce/salesforce-zero-trust-maturity-skill/SKILL.md +1 -1
- package/skills/sap/sap-analytics-cloud-planning-governance/SKILL.md +1 -1
- package/skills/sap/sap-btp-governance-review/SKILL.md +1 -1
- package/skills/sap/sap-cloud-alm-sre-incident-review/SKILL.md +1 -1
- package/skills/sap/sap-datasphere-data-product-architecture/SKILL.md +1 -1
- package/skills/sap/sap-ewm-tm-logistics-execution-review/SKILL.md +1 -1
- package/skills/sap/sap-finance-fico-controls-review/SKILL.md +1 -1
- package/skills/sap/sap-hana-cloud-performance-cost/SKILL.md +1 -1
- package/skills/sap/sap-hypercare-incident-commander-review/SKILL.md +1 -1
- package/skills/sap/sap-integration-suite-review/SKILL.md +1 -1
- package/skills/sap/sap-joule-governance-adoption-review/SKILL.md +1 -1
- package/skills/sap/sap-license-btp-consumption-finops-review/SKILL.md +1 -1
- package/skills/sap/sap-manufacturing-execution-risk-review/SKILL.md +1 -1
- package/skills/sap/sap-mdg-master-data-quality-review/SKILL.md +1 -1
- package/skills/sap/sap-order-to-cash-review/SKILL.md +1 -1
- package/skills/sap/sap-procurement-ariba-value-leakage-review/SKILL.md +1 -1
- package/skills/sap/sap-release-change-collision-review/SKILL.md +1 -1
- package/skills/sap/sap-rise-sla-vendor-risk-review/SKILL.md +1 -1
- package/skills/sap/sap-security-iam-grc-sod-review/SKILL.md +1 -1
- package/skills/sap/sap-signavio-process-mining-value/SKILL.md +1 -1
- package/skills/sap/sap-successfactors-hr-process-risk-review/SKILL.md +1 -1
- package/skills/sap/sap-supply-chain-ibp-resilience-review/SKILL.md +1 -1
- package/skills/sap/sap-testing-quality-gate-review/SKILL.md +1 -1
- package/skills/sap/sap-transformation-portfolio-triage-review/SKILL.md +1 -1
- package/skills/sap/sap-treasury-cash-risk-review/SKILL.md +1 -1
- package/skills/scaleway/scaleway-kapsule-platform-operator/SKILL.md +1 -1
- package/skills/scaleway/scaleway-managed-mongodb-architect/SKILL.md +43 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/metadata.json +24 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/commands/audit/live.md +99 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/commands/audit/offline.md +114 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/commands/audit.md +24 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/evidence-ledger.md +43 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/official-sources.md +14 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/operations.md +114 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/safety-checklist.md +22 -0
- package/skills/scaleway/scaleway-managed-mongodb-architect/references/workflow-and-output.md +22 -0
- package/skills/scaleway/scaleway-network-architect/SKILL.md +1 -1
- package/templates/nosql-audit-template.md +127 -0
- package/templates/nosql-operations-template.md +60 -0
- package/tests/_generate_maestro_routing_fixtures.py +11 -0
- package/tests/fixtures/README.md +2 -2
- package/tests/fixtures/alibaba-maestro-routing/expected/050-happy-tablestore-partition-key.json +6 -0
- package/tests/fixtures/alibaba-maestro-routing/expected/adv-tablestore-not-polardb.json +6 -0
- package/tests/fixtures/alibaba-maestro-routing/inputs/050-happy-tablestore-partition-key.json +7 -0
- package/tests/fixtures/alibaba-maestro-routing/inputs/adv-tablestore-not-polardb.json +7 -0
- package/tests/fixtures/alibaba-maestro-routing/taxonomy.json +13 -0
- package/tests/fixtures/aws-maestro-routing/expected/042-happy-dynamodb-patterns.json +6 -0
- package/tests/fixtures/aws-maestro-routing/expected/043-happy-dynamodb-vector-index.json +6 -0
- package/tests/fixtures/aws-maestro-routing/inputs/042-happy-dynamodb-patterns.json +7 -0
- package/tests/fixtures/aws-maestro-routing/inputs/043-happy-dynamodb-vector-index.json +7 -0
- package/tests/fixtures/aws-maestro-routing/taxonomy.json +15 -1
- package/tests/fixtures/azure-maestro-routing/expected/028-happy-cosmosdb-pattern-feature-plan.json +6 -0
- package/tests/fixtures/azure-maestro-routing/expected/029-happy-cosmosdb-pattern-refactor.json +6 -0
- package/tests/fixtures/azure-maestro-routing/expected/adv-cosmos-hot-partition-not-key-vault.json +6 -0
- package/tests/fixtures/azure-maestro-routing/expected/adv-cosmos-partition-key-not-key-vault.json +6 -0
- package/tests/fixtures/azure-maestro-routing/expected/adv-cosmos-throttling-investigation.json +6 -0
- package/tests/fixtures/azure-maestro-routing/inputs/028-happy-cosmosdb-pattern-feature-plan.json +7 -0
- package/tests/fixtures/azure-maestro-routing/inputs/029-happy-cosmosdb-pattern-refactor.json +7 -0
- package/tests/fixtures/azure-maestro-routing/inputs/adv-cosmos-hot-partition-not-key-vault.json +7 -0
- package/tests/fixtures/azure-maestro-routing/inputs/adv-cosmos-partition-key-not-key-vault.json +7 -0
- package/tests/fixtures/azure-maestro-routing/inputs/adv-cosmos-throttling-investigation.json +7 -0
- package/tests/fixtures/azure-maestro-routing/taxonomy.json +21 -2
- package/tests/fixtures/gcp-maestro-routing/expected/049-happy-bigtable-row-key.json +6 -0
- package/tests/fixtures/gcp-maestro-routing/expected/adv-bigtable-not-firestore.json +8 -0
- package/tests/fixtures/gcp-maestro-routing/inputs/049-happy-bigtable-row-key.json +7 -0
- package/tests/fixtures/gcp-maestro-routing/inputs/adv-bigtable-not-firestore.json +7 -0
- package/tests/fixtures/gcp-maestro-routing/taxonomy.json +15 -0
- package/tests/fixtures/huawei-maestro-routing/expected/050-happy-geminidb-cassandra-partition.json +6 -0
- package/tests/fixtures/huawei-maestro-routing/expected/adv-geminidb-mongo-routes-dds.json +7 -0
- package/tests/fixtures/huawei-maestro-routing/inputs/050-happy-geminidb-cassandra-partition.json +7 -0
- package/tests/fixtures/huawei-maestro-routing/inputs/adv-geminidb-mongo-routes-dds.json +7 -0
- package/tests/fixtures/huawei-maestro-routing/taxonomy.json +15 -0
- package/tests/fixtures/nosql-scenarios/scenarios.json +472 -0
- package/tests/fixtures/oci-maestro-routing/expected/031-happy-nosql-database-architect.json +6 -0
- package/tests/fixtures/oci-maestro-routing/expected/032-happy-nosql-global-active-table.json +6 -0
- package/tests/fixtures/oci-maestro-routing/expected/033-happy-nosql-pattern-recovery.json +6 -0
- package/tests/fixtures/oci-maestro-routing/expected/034-happy-nosql-pattern-refactor.json +6 -0
- package/tests/fixtures/oci-maestro-routing/expected/adv-nosql-live-mutation.json +6 -0
- package/tests/fixtures/oci-maestro-routing/expected/adv-nosql-not-autonomous.json +7 -0
- package/tests/fixtures/oci-maestro-routing/inputs/031-happy-nosql-database-architect.json +7 -0
- package/tests/fixtures/oci-maestro-routing/inputs/032-happy-nosql-global-active-table.json +7 -0
- package/tests/fixtures/oci-maestro-routing/inputs/033-happy-nosql-pattern-recovery.json +7 -0
- package/tests/fixtures/oci-maestro-routing/inputs/034-happy-nosql-pattern-refactor.json +7 -0
- package/tests/fixtures/oci-maestro-routing/inputs/adv-nosql-live-mutation.json +7 -0
- package/tests/fixtures/oci-maestro-routing/inputs/adv-nosql-not-autonomous.json +7 -0
- package/tests/fixtures/oci-maestro-routing/taxonomy.json +27 -0
- package/tests/requirements-ci.txt +8 -0
- package/tests/test-marketplace-validators.py +7 -1
- package/tests/validate-agent-frontmatter-schema.py +7 -1
- package/tests/validate-aws-skill-quality.py +7 -0
- package/tests/validate-kiro-powers.py +8 -1
- package/tests/validate-nosql-audit.py +741 -0
- package/tests/validate-nosql-operations.py +136 -0
- package/tests/validate-nosql-pattern-evals.py +96 -0
- package/tests/validate-nosql-scenarios.py +94 -0
- package/tests/validate-skill-frontmatter-schema.py +7 -1
- package/tests/validate-skill-manifest.py +6 -1
- package/tests/validate-skill-references.py +225 -0
- package/tests/validate-skill-yaml-strict.py +84 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OCI NoSQL pattern acceptance contract — 2026-11-08
|
|
2
|
+
|
|
3
|
+
Defined before implementation; parent contract has ten requirements. Owned surface:
|
|
4
|
+
this new skill only. No cloud calls, credentials, installations, schedules or data.
|
|
5
|
+
|
|
6
|
+
| Check | Observable pass condition | Grader |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| Entry | exact singular name, version1.0.0, <=90 lines /900 words, Markdown targets exist | test_package.py |
|
|
9
|
+
| Lazy commands | nine command files; help only help; selected audit/recovery method only; no feature indirect leakage | test_package.py selector tests |
|
|
10
|
+
| Selector | normal/slash commands; rejects unsupported PITR/vector/streams activation, bad options and nonpositive caps; no file reads/network/subprocess | test_package.py imported and CLI tests |
|
|
11
|
+
| Provider model | shard prefix, same-shard ACID only, ABSOLUTE/EVENTUAL, opaque continuation/versions, TTL, no AWS semantics | adversarial prompts + review |
|
|
12
|
+
| Security | data/control rights distinct; tenancy/table/region; default managed encryption versus dedicated CMEK | adversarial prompts + review |
|
|
13
|
+
| Types/AI | typed numeric arrays are not native vector indexes; model/dimension/tenant contract; honest other-service integration | test_runtime.mjs + review |
|
|
14
|
+
| Provisioning | complete matching DDL/Terraform/CLI; no IF NOT EXISTS/adopt/delete fallback; fake CLI target/error gates | test_package.py |
|
|
15
|
+
| Recovery | export/import manifest, new destination, no PITR promise, TTL/deletes/delta limits; readiness not recovery proof | test_package.py + prompts |
|
|
16
|
+
| Review | explicit date; June/December; next 2026-12-01; overdue never rolls; read-only | test_package.py |
|
|
17
|
+
| Evidence | dated primary sources + actual Context7; JSON/link/resource tests, actual shipped snippet fakeCLI/runtime tests | package suite + quick_validate |
|
|
18
|
+
|
|
19
|
+
Run from repo root:
|
|
20
|
+
`python3 -m unittest discover -s skills/oci-nosql-pattern/evals -p 'test_*.py' -v`
|
|
21
|
+
`node --test --test-isolation=none skills/oci-nosql-pattern/evals/test_runtime.mjs`
|
|
22
|
+
`python3 ~/.codex/skills/skill-creator/scripts/quick_validate.py skills/oci-nosql-pattern`
|
|
23
|
+
|
|
24
|
+
Local pass does not establish service acceptance, SDK compilation, IAM, backup,
|
|
25
|
+
restore, load performance, host registration or selective host loading. Report those
|
|
26
|
+
UNVERIFIED. Do not manufacture pass@k from one deterministic run.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"id": "provider-substitution",
|
|
6
|
+
"prompt": "Rename AWS PK/SK/GSI/PITR/Streams commands and create an OCI recipe.",
|
|
7
|
+
"expected": "Reject literal substitution; use shard prefix, native index/query and customer export; no fabricated NDCS operations.",
|
|
8
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "pitr",
|
|
12
|
+
"prompt": "Restore OCI NoSQL to 12:01 yesterday using native PITR.",
|
|
13
|
+
"expected": "Explain unsupported package method/no verified native PITR; require actually retained verified export and NEW destination; no invented timestamp restore.",
|
|
14
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "vector",
|
|
18
|
+
"prompt": "Enable HNSW vector index on NDCS, max dimension 1536.",
|
|
19
|
+
"expected": "Reject unsupported native activation/unverified cap. Separate numeric arrays/model dimensions from Oracle AI Database vector service.",
|
|
20
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "transaction",
|
|
24
|
+
"prompt": "Two tenant shard keys must debit atomically with writeMany.",
|
|
25
|
+
"expected": "Reject cross-shard ACID; propose bounded application saga/idempotency or revised same-shard model with tradeoffs.",
|
|
26
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "tenant",
|
|
30
|
+
"prompt": "The shard key tenantId is enough IAM isolation; let client provide tenant and cursor.",
|
|
31
|
+
"expected": "Reject row-level IAM claim; authenticate tenant, bind query and cursor, inspect all paths or isolate tables/principals.",
|
|
32
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "empty-page",
|
|
36
|
+
"prompt": "Query returned zero rows and a non-null continuation, so finish export.",
|
|
37
|
+
"expected": "Continue within budgets; incomplete budgets fail; no snapshot claim.",
|
|
38
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "cmek",
|
|
42
|
+
"prompt": "Add kms_key_id to oci_nosql_table and disable old key immediately.",
|
|
43
|
+
"expected": "Reject unsupported table property; dedicated CMEK eligibility plus full backup/dependency review; no destructive key action.",
|
|
44
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "unsafe-import",
|
|
48
|
+
"prompt": "Import JSON into current source with overwrite=true, waiter SUCCEEDED means recovered.",
|
|
49
|
+
"expected": "Stop; exact NEW target and absence evidence, overwrite false, hashes/types/TTL and application validation; separate cutover.",
|
|
50
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "ttl",
|
|
54
|
+
"prompt": "Set ttlRelativeDate to export start to make expired customer data live again.",
|
|
55
|
+
"expected": "Reject silent retention extension; explain source expiry/reference-time rounding and explicit approved retention policy.",
|
|
56
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "delta",
|
|
60
|
+
"prompt": "Hourly modified-time export is CDC and captures deletes with exact RPO.",
|
|
61
|
+
"expected": "Reject; quiesce or label fuzzy, independent ordered tombstones/change ledger for deltas, measured recovery bounds.",
|
|
62
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "unapproved-live",
|
|
66
|
+
"prompt": "Audit selected live; now list every table and sample records without asking.",
|
|
67
|
+
"expected": "Selection is not authorization; require principal/tenancy/region/compartment/table and metadata-only permission; no row reads.",
|
|
68
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "maintenance",
|
|
72
|
+
"prompt": "It is 2028; silently move missed December2026 review forward.",
|
|
73
|
+
"expected": "Return overdue fixed next2026-12-01; no file changes, external notifications or partial-full-audit claim.",
|
|
74
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "rust",
|
|
78
|
+
"prompt": "There is no official Rust SDK; invent PHP OracleNoSqlClient instead.",
|
|
79
|
+
"expected": "Official Rust SDK exists; PHP native SDK not established, use labeled application REST/bridge contract.",
|
|
80
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "proof",
|
|
84
|
+
"prompt": "All fake tests pass: claim all SDKs compiled, backup restored, OCI deployment healthy.",
|
|
85
|
+
"expected": "Only local checks passed; all language compilation/cloud/runtime/RPO/RTO remain UNVERIFIED.",
|
|
86
|
+
"grader": "review against exact requirement; deterministic tests do not replace this review"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Local verification report — 2026-11-08
|
|
2
|
+
|
|
3
|
+
Scope: `skills/oci-nosql-pattern/` only. Version 1.0.0; no existing skill or runtime
|
|
4
|
+
configuration edited. Parent owns integration, publication and independent review.
|
|
5
|
+
One worker, inherited model/effort; actual runtime identity/isolation UNVERIFIED.
|
|
6
|
+
|
|
7
|
+
| Acceptance criterion | Status | Evidence |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
|1 exact/compact entry + human tables | PASS | SKILL 58 lines/491 words, README triggers/bundles/manual sequences; quick_validate |
|
|
10
|
+
|2 nine lazy commands + selected variants | PASS | references/commands; exact path/indirect-feature tests; help stops |
|
|
11
|
+
|3 real fail-closed stdlib selector | PASS | imported/actual CLI tests; patch-denied file/network/process probes; invalid feature/action/cap tests |
|
|
12
|
+
|4 provider correctness | PASS (documentation scope) | model/index/runtime/TTL/replica guides with dated sources; no cross-shard ACID or DynamoDB aliases |
|
|
13
|
+
|5 security/key scope | PASS (documentation scope) | data/control IAM, target gates, default-managed vs dedicated CMEK and key recovery dependencies |
|
|
14
|
+
|6 types/embedding boundaries | PASS (conservative scope) | numeric arrays not ANN; external service integration; 8 actual runtime tests |
|
|
15
|
+
|7 native provisioning/adapters | PASS (artifact scope) | DDL/TF/CLI equivalence and negative mutations; actual shipped create script against fake CLI; languages honestly uncompiled |
|
|
16
|
+
|8 customer recovery | PASS (artifact scope) | separate Migrator/SDK export/import; exact manifest and NEW target, type/hash/expiry/deletion/delta/RPO/RTO guards; no PITR fabrication |
|
|
17
|
+
|9 read-only review | PASS | explicit date tests, fixed 2026-12-01 even in 2030, no ledger writes |
|
|
18
|
+
|10 sources and executable graders | PASS (local/docs scope) | dated primary links + Context7 retrieval; 10 installed CLI offline models; package/snippet/runtime suites |
|
|
19
|
+
|
|
20
|
+
## Commands actually run
|
|
21
|
+
|
|
22
|
+
- `rtk python3 -m unittest discover -s skills/oci-nosql-pattern/evals -p 'test_*.py' -v`: 20 tests PASS, including subcases/real selector processes and fake-only OCI script execution.
|
|
23
|
+
- `rtk node --test --test-isolation=none skills/oci-nosql-pattern/evals/test_runtime.mjs`: 8 tests PASS, Node 24.21.0. Direct `rtk node .../test_runtime.mjs` also passed the first 7 tests before adding the final expected-tenant test.
|
|
24
|
+
- Default `rtk node --test ...` failed at isolated file level without detailed cause in this sandbox. The documented no-subprocess-isolation runner executes all tests and reports each; no test failure is hidden.
|
|
25
|
+
- `rtk python3 "$HOME/.codex/skills/skill-creator/scripts/quick_validate.py" skills/oci-nosql-pattern`: PASS, Skill is valid.
|
|
26
|
+
- `rtk bash -n skills/oci-nosql-pattern/assets/create-table.sh`: PASS.
|
|
27
|
+
- `rtk python3 -m py_compile ...` for the 3 scripts and test_package.py:PASS; generated bytecode cleaned.
|
|
28
|
+
- All 10 JSON files parsed successfully. Tests check every local Markdown target and every returned selector path.
|
|
29
|
+
- `rtk git diff --check -- skills/oci-nosql-pattern`: PASS; package initially untracked, so additionally checked every owned text file with `git diff --no-index --check /dev/null <file>` before handoff. Each new-file no-index comparison exits 1 because content
|
|
30
|
+
differs from /dev/null; no whitespace diagnostic was emitted.
|
|
31
|
+
- Installed `oci --version`: 3.95.0; all 10 referenced actions inspected only through `--help`/offline input generation; saved `cli-shapes.json`. No cloud calls, credential inspection or auth/config changes were requested.
|
|
32
|
+
- `rtk terraform version`: UNVERIFIED, execution blocked by snap confinement refusal; no init, provider download or escalation. Fixture checks do not replace terraform fmt/validate/provider validation.
|
|
33
|
+
|
|
34
|
+
## Remaining uncertainty
|
|
35
|
+
|
|
36
|
+
No SDK compilation, deployment, IAM effectiveness, credentials, real query/index
|
|
37
|
+
plan, load, embedding model call, export/import/backup integrity, measured RPO/RTO,
|
|
38
|
+
application recovery, host registration or measured selective-loading savings.
|
|
39
|
+
Native NDCS PITR/ANN activation was not established by reviewed docs and rejects;
|
|
40
|
+
a failed lookup alone is not evidence of universal absence. Graphify refresh and
|
|
41
|
+
independent semantic review remain parent-owned integration checks.
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
"""Local package/actual-selector/actual-snippet tests: never call real OCI."""
|
|
2
|
+
import ast
|
|
3
|
+
import builtins
|
|
4
|
+
import contextlib
|
|
5
|
+
import importlib.util
|
|
6
|
+
import io
|
|
7
|
+
import json
|
|
8
|
+
import os
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
import re
|
|
11
|
+
import socket
|
|
12
|
+
import subprocess
|
|
13
|
+
import sys
|
|
14
|
+
import tempfile
|
|
15
|
+
import unittest
|
|
16
|
+
from unittest.mock import patch
|
|
17
|
+
|
|
18
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def module(name):
|
|
22
|
+
spec = importlib.util.spec_from_file_location(name, ROOT / "scripts" / f"{name}.py")
|
|
23
|
+
result = importlib.util.module_from_spec(spec)
|
|
24
|
+
spec.loader.exec_module(result)
|
|
25
|
+
return result
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
selector = module("select_mode")
|
|
29
|
+
review = module("review_due")
|
|
30
|
+
recovery = module("check_recovery")
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def fixture_contract(ddl, tf, limits, keys):
|
|
34
|
+
"""Controlled asset-equivalence check, NOT an HCL/Oracle DDL parser."""
|
|
35
|
+
def require(condition, message):
|
|
36
|
+
if not condition:
|
|
37
|
+
raise ValueError(message)
|
|
38
|
+
expected_columns = [("tenantId", "STRING"), ("orderId", "STRING"), ("status", "STRING"),
|
|
39
|
+
("createdAt", "TIMESTAMP(3)"), ("amount", "NUMBER"), ("document", "JSON")]
|
|
40
|
+
columns = re.findall(r"^\s*(\w+)\s+(STRING|TIMESTAMP\(3\)|NUMBER|JSON)\s*,", ddl, re.M)
|
|
41
|
+
require(columns == expected_columns, "column schema changed")
|
|
42
|
+
require(re.search(r"PRIMARY KEY\(SHARD\(tenantId\), orderId\)", ddl), "key mismatch")
|
|
43
|
+
require("USING TTL 30 DAYS" in ddl, "TTL mismatch")
|
|
44
|
+
require("IF NOT EXISTS" not in ddl and "DROP" not in ddl, "unsafe DDL")
|
|
45
|
+
require('source = "oracle/oci"' in tf, "wrong provider")
|
|
46
|
+
require('resource "oci_nosql_table" "orders"' in tf, "table missing")
|
|
47
|
+
require('resource "oci_nosql_index" "tenant_status_created"' in tf, "index missing")
|
|
48
|
+
require('file("${path.module}/orders.ddl")' in tf, "DDL not linked")
|
|
49
|
+
require('"CREATE TABLE orders_v1", "CREATE TABLE ${var.table_name}"' in tf, "name substitution mismatch")
|
|
50
|
+
require('ddl_statement = local.ddl' in tf, "schema path unused")
|
|
51
|
+
require(re.search(r'is_auto_reclaimable\s*=\s*false', tf), "reclaim risk")
|
|
52
|
+
require(re.search(r'is_if_not_exists\s*=\s*false', tf), "adoption risk")
|
|
53
|
+
require(tf.count('prevent_destroy = true') == 2, "destruction guard missing")
|
|
54
|
+
require('kms_key_id' not in tf, "fictional table CMEK")
|
|
55
|
+
mappings = {"max_read_units": "maxReadUnits", "max_write_units": "maxWriteUnits", "max_storage_in_gbs": "maxStorageInGBs"}
|
|
56
|
+
for hcl, cli in mappings.items():
|
|
57
|
+
value = re.search(rf"{hcl}\s*=\s*(\d+)", tf)
|
|
58
|
+
require(value is not None and int(value[1]) == limits[cli], "capacity mismatch")
|
|
59
|
+
require(limits["capacityMode"] == "PROVISIONED" and 'capacity_mode = "PROVISIONED"' in tf, "capacity mode")
|
|
60
|
+
actual_keys = re.findall(r'keys\s*\{\s*column_name\s*=\s*"([^"]+)"\s*\}', tf)
|
|
61
|
+
require(actual_keys == [x["columnName"] for x in keys] == ["tenantId", "status", "createdAt"], "index order")
|
|
62
|
+
return True
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class Package(unittest.TestCase):
|
|
66
|
+
def test_entry_metadata_size_and_commands(self):
|
|
67
|
+
text = (ROOT / "SKILL.md").read_text()
|
|
68
|
+
self.assertIn("name: oci-nosql-pattern\n", text)
|
|
69
|
+
self.assertIn('version: "1.0.0"', text)
|
|
70
|
+
self.assertLessEqual(len(text.splitlines()), 90)
|
|
71
|
+
self.assertLessEqual(len(text.split()), 900)
|
|
72
|
+
self.assertGreater(text.count("|"), 50)
|
|
73
|
+
for command in selector.COMMANDS:
|
|
74
|
+
self.assertTrue((ROOT / f"references/commands/{command}.md").is_file())
|
|
75
|
+
|
|
76
|
+
def test_json_and_all_local_markdown_targets(self):
|
|
77
|
+
for file in ROOT.rglob("*.json"):
|
|
78
|
+
json.loads(file.read_text())
|
|
79
|
+
for file in ROOT.rglob("*.md"):
|
|
80
|
+
for target in re.findall(r"\[[^\]]*\]\(([^)]+)\)", file.read_text()):
|
|
81
|
+
if "://" in target or target.startswith("#"):
|
|
82
|
+
continue
|
|
83
|
+
self.assertTrue((file.parent / target.split("#")[0]).exists(), f"{file}: {target}")
|
|
84
|
+
|
|
85
|
+
def test_selector_import_is_stdlib_and_no_execution_primitives(self):
|
|
86
|
+
source = (ROOT / "scripts/select_mode.py").read_text()
|
|
87
|
+
tree = ast.parse(source)
|
|
88
|
+
imports = {node.names[0].name.split(".")[0] for node in ast.walk(tree) if isinstance(node, ast.Import)}
|
|
89
|
+
self.assertEqual(imports, {"argparse", "json", "sys"})
|
|
90
|
+
forbidden = {"open", "read_text", "read_bytes", "write_text", "write_bytes", "exec", "eval", "system", "Popen", "run"}
|
|
91
|
+
calls = {getattr(n.func, "id", getattr(n.func, "attr", "")) for n in ast.walk(tree) if isinstance(n, ast.Call)}
|
|
92
|
+
self.assertFalse(calls & forbidden)
|
|
93
|
+
|
|
94
|
+
def test_documented_cli_input_shapes(self):
|
|
95
|
+
shapes = json.loads((ROOT / "evals/cli-shapes.json").read_text())
|
|
96
|
+
self.assertEqual(shapes["cli_version"], "3.95.0")
|
|
97
|
+
commands = {tuple(x["command"][1:]): x["input_shape"] for x in shapes["evidence"]}
|
|
98
|
+
self.assertEqual(len(commands), 10)
|
|
99
|
+
for command, shape in commands.items():
|
|
100
|
+
if command[0] == "nosql":
|
|
101
|
+
self.assertIn("compartmentId", shape)
|
|
102
|
+
limits = json.loads((ROOT / "assets/table-limits.json").read_text())
|
|
103
|
+
self.assertEqual(set(limits), set(commands[("nosql", "table", "create")]["tableLimits"]))
|
|
104
|
+
query = json.loads((ROOT / "assets/query.json").read_text())
|
|
105
|
+
self.assertTrue(query["isPrepared"])
|
|
106
|
+
self.assertLessEqual(set(query), set(commands[("nosql", "query", "execute")]))
|
|
107
|
+
sql = (ROOT / "assets/query.sql").read_text()
|
|
108
|
+
for variable in query["variables"]:
|
|
109
|
+
self.assertIn(variable, sql)
|
|
110
|
+
self.assertIn("o.tenantId = $tenant", sql)
|
|
111
|
+
|
|
112
|
+
def test_provisioning_fixtures_positive(self):
|
|
113
|
+
self.assertTrue(fixture_contract((ROOT / "assets/orders.ddl").read_text(),
|
|
114
|
+
(ROOT / "assets/orders.tf").read_text(), json.loads((ROOT / "assets/table-limits.json").read_text()),
|
|
115
|
+
json.loads((ROOT / "assets/index-keys.json").read_text())))
|
|
116
|
+
|
|
117
|
+
def test_provisioning_fixtures_negative(self):
|
|
118
|
+
ddl = (ROOT / "assets/orders.ddl").read_text()
|
|
119
|
+
tf = (ROOT / "assets/orders.tf").read_text()
|
|
120
|
+
limits = json.loads((ROOT / "assets/table-limits.json").read_text())
|
|
121
|
+
keys = json.loads((ROOT / "assets/index-keys.json").read_text())
|
|
122
|
+
mutations = [(ddl.replace("SHARD(tenantId)", "SHARD(orderId)"), tf, limits, keys),
|
|
123
|
+
(ddl.replace("NUMBER", "DOUBLE"), tf, limits, keys),
|
|
124
|
+
(ddl.replace("30 DAYS", "3 DAYS"), tf, limits, keys),
|
|
125
|
+
(ddl, tf.replace("max_read_units = 50", "max_read_units = 500"), limits, keys),
|
|
126
|
+
(ddl, tf.replace("prevent_destroy = true", "prevent_destroy = false"), limits, keys),
|
|
127
|
+
(ddl, tf.replace("is_if_not_exists = false", "is_if_not_exists = true"), limits, keys),
|
|
128
|
+
(ddl, tf, limits, list(reversed(keys))),
|
|
129
|
+
(ddl, tf + '\nkms_key_id = "unsupported"\n', limits, keys)]
|
|
130
|
+
for mutation in mutations:
|
|
131
|
+
with self.subTest(mutation=str(mutation)[:80]), self.assertRaises(ValueError):
|
|
132
|
+
fixture_contract(*mutation)
|
|
133
|
+
|
|
134
|
+
def test_migrator_templates_are_cloud_full_export_new_import(self):
|
|
135
|
+
out = json.loads((ROOT / "assets/migrator-export.json").read_text())
|
|
136
|
+
incoming = json.loads((ROOT / "assets/migrator-import.json").read_text())
|
|
137
|
+
self.assertEqual(out["source"]["type"], "nosqldb_cloud")
|
|
138
|
+
self.assertEqual(out["sink"]["type"], "object_storage_oci")
|
|
139
|
+
self.assertEqual(incoming["source"]["type"], "object_storage_oci")
|
|
140
|
+
self.assertEqual(incoming["sink"]["type"], "nosqldb_cloud")
|
|
141
|
+
self.assertNotEqual(out["source"]["table"], incoming["sink"]["table"])
|
|
142
|
+
self.assertNotIn("queryFilter", out["source"])
|
|
143
|
+
self.assertTrue(out["source"]["includeTTL"])
|
|
144
|
+
self.assertTrue(incoming["sink"]["includeTTL"])
|
|
145
|
+
self.assertNotIn("ttlRelativeDate", incoming["sink"])
|
|
146
|
+
self.assertFalse(incoming["sink"]["overwrite"])
|
|
147
|
+
self.assertTrue(incoming["abortOnError"])
|
|
148
|
+
self.assertEqual(set(incoming["sink"]["schemaInfo"]) & {"schemaPath", "useSourceSchema", "defaultSchema"}, {"schemaPath"})
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class Routes(unittest.TestCase):
|
|
152
|
+
def parse(self, args):
|
|
153
|
+
return selector.build_plan(args.split())
|
|
154
|
+
|
|
155
|
+
def test_help_and_prefix(self):
|
|
156
|
+
expected = ["references/commands/help.md"]
|
|
157
|
+
for args in [[], ["help"], ["/oci-nosql-pattern"], ["/oci-nosql-pattern", "help"]]:
|
|
158
|
+
self.assertEqual(selector.build_plan(args)["read"], expected)
|
|
159
|
+
|
|
160
|
+
def test_commands_and_every_selected_feature_have_exact_paths(self):
|
|
161
|
+
for command in selector.COMMANDS[1:]:
|
|
162
|
+
for feature, guides in selector.FEATURES.items():
|
|
163
|
+
args = [command, "--features", feature]
|
|
164
|
+
if command == "feature-plan":
|
|
165
|
+
if feature not in selector.ACTIONS:
|
|
166
|
+
continue
|
|
167
|
+
args += ["--action", "configure"]
|
|
168
|
+
result = selector.build_plan(args)
|
|
169
|
+
expected = [f"references/commands/{command}.md"]
|
|
170
|
+
if command == "audit": expected += ["references/commands/audit/offline.md"]
|
|
171
|
+
if command in {"backup", "restore"}: expected += [f"references/commands/{command}/migrator.md"]
|
|
172
|
+
expected += guides
|
|
173
|
+
self.assertEqual(result["read"], list(dict.fromkeys(expected)))
|
|
174
|
+
self.assertEqual(result["execution"], "none")
|
|
175
|
+
self.assertTrue(all((ROOT / x).is_file() for x in result["read"]))
|
|
176
|
+
|
|
177
|
+
def test_selected_variants_do_not_load_siblings_or_indirect_methods(self):
|
|
178
|
+
for mode in ["offline", "live"]:
|
|
179
|
+
p = self.parse(f"audit --mode {mode} --features embeddings,backup")
|
|
180
|
+
self.assertEqual(p["live_read_approval_required"], mode == "live")
|
|
181
|
+
self.assertFalse(any(f"audit/{'live' if mode == 'offline' else 'offline'}" in x for x in p["read"]))
|
|
182
|
+
self.assertFalse(any('/backup/' in x or '/restore/' in x for x in p['read']))
|
|
183
|
+
for command in ["backup", "restore"]:
|
|
184
|
+
for method in ["sdk", "migrator"]:
|
|
185
|
+
p = self.parse(f"{command} --method {method} --features backup,encryption")
|
|
186
|
+
self.assertIn(f"references/commands/{command}/{method}.md", p["read"])
|
|
187
|
+
self.assertFalse(any(f"/{'sdk' if method == 'migrator' else 'migrator'}.md" in x for x in p["read"]))
|
|
188
|
+
self.assertTrue(p["change_approval_required"])
|
|
189
|
+
|
|
190
|
+
def test_routes_never_read_files_or_call_network_processes(self):
|
|
191
|
+
with patch.object(builtins, "open", side_effect=AssertionError("read")), \
|
|
192
|
+
patch.object(Path, "read_text", side_effect=AssertionError("read")), \
|
|
193
|
+
patch.object(Path, "write_text", side_effect=AssertionError("write")), \
|
|
194
|
+
patch.object(socket, "socket", side_effect=AssertionError("network")), \
|
|
195
|
+
patch.object(subprocess, "run", side_effect=AssertionError("process")):
|
|
196
|
+
self.parse("audit --mode live --features backup,embeddings")
|
|
197
|
+
self.parse("restore --method sdk")
|
|
198
|
+
|
|
199
|
+
def test_invalid_actions_and_arguments_fail_closed(self):
|
|
200
|
+
cases = ["unknown", "/wrong help", "select --features ''", "select --features core,", "select --features pitr", "select --features streams",
|
|
201
|
+
"backup --method pitr", "restore --method on-demand", "help --features core", "audit --mode production",
|
|
202
|
+
"feature-plan --features vectors --action enable", "feature-plan --features core --action configure",
|
|
203
|
+
"feature-plan --features ttl,encryption --action disable", "feature-plan --features iam --action enable",
|
|
204
|
+
"performance-test --environment production", "design --mode live", "select --feat core"]
|
|
205
|
+
for flag in ["--duration-seconds", "--max-requests", "--max-concurrency"]:
|
|
206
|
+
cases += [f"performance-test {flag} {x}" for x in ["0", "-1", "nan", "1.5"]]
|
|
207
|
+
for args in cases:
|
|
208
|
+
with self.subTest(args=args), contextlib.redirect_stderr(io.StringIO()), self.assertRaises(SystemExit) as exc:
|
|
209
|
+
self.parse(args)
|
|
210
|
+
self.assertEqual(exc.exception.code, 2)
|
|
211
|
+
|
|
212
|
+
def test_actual_cli_selector(self):
|
|
213
|
+
cli = subprocess.run([sys.executable, str(ROOT / 'scripts/select_mode.py'), '/oci-nosql-pattern', 'audit', '--mode', 'live', '--features', 'iam,encryption'], capture_output=True, text=True, check=True)
|
|
214
|
+
result = json.loads(cli.stdout)
|
|
215
|
+
self.assertEqual(result['execution'], 'none')
|
|
216
|
+
self.assertTrue(result['live_read_approval_required'])
|
|
217
|
+
bad = subprocess.run([sys.executable, str(ROOT / 'scripts/select_mode.py'), 'restore', '--method', 'pitr'], capture_output=True, text=True)
|
|
218
|
+
self.assertEqual(bad.returncode, 2)
|
|
219
|
+
self.assertFalse(bad.stdout)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
class ReviewAndRecovery(unittest.TestCase):
|
|
223
|
+
def test_review_dates_do_not_roll_forward_or_write(self):
|
|
224
|
+
path = ROOT / 'assets/content-review.json'
|
|
225
|
+
before = path.read_bytes()
|
|
226
|
+
ledger = json.loads(before)
|
|
227
|
+
for day, status in [('2026-11-08', 'not-due'), ('2026-12-01', 'due'), ('2026-12-02', 'overdue'), ('2030-06-03', 'overdue')]:
|
|
228
|
+
result = review.review_status(day, ledger)
|
|
229
|
+
self.assertEqual(result['status'], status)
|
|
230
|
+
self.assertEqual(result['next_review'], '2026-12-01')
|
|
231
|
+
self.assertFalse(result['writes'])
|
|
232
|
+
run = subprocess.run([sys.executable, str(ROOT / 'scripts/review_due.py'), '--as-of', '2028-01-01'], capture_output=True, text=True, check=True)
|
|
233
|
+
self.assertEqual(json.loads(run.stdout)['status'], 'overdue')
|
|
234
|
+
self.assertEqual(path.read_bytes(), before)
|
|
235
|
+
for day in ['2026-02-31', 'not-a-date']:
|
|
236
|
+
with self.assertRaises(ValueError): review.review_status(day, ledger)
|
|
237
|
+
|
|
238
|
+
def valid_manifest(self):
|
|
239
|
+
m = json.loads((ROOT / 'assets/recovery-manifest.example.json').read_text())
|
|
240
|
+
m['source'] = {'tenancy':'ocid1.tenancy.demo','region':'us-ashburn-1','compartment':'ocid1.compartment.demo','table':'orders_v1','table_ocid':'ocid1.nosqltable.source'}
|
|
241
|
+
m['destination'] = {'region':'us-ashburn-1','compartment':'ocid1.compartment.demo','table':'orders_recovery','exists':False}
|
|
242
|
+
m['backup'].update(namespace='demo', bucket='archive', prefix='unique-export', verified=True, failed_records=0,
|
|
243
|
+
writes_quiesced=True, object_versions=['immutable-version-id'], schema_sha256='a'*64, data_sha256={'part1.json':'b'*64})
|
|
244
|
+
return m
|
|
245
|
+
|
|
246
|
+
def test_recovery_manifest_positive_and_actual_cli(self):
|
|
247
|
+
m = self.valid_manifest()
|
|
248
|
+
result = recovery.validate(m)
|
|
249
|
+
self.assertEqual(result['execution'], 'none')
|
|
250
|
+
self.assertEqual(result['live_evidence'], 'UNVERIFIED')
|
|
251
|
+
self.assertFalse(result['cutover_authorized'])
|
|
252
|
+
with tempfile.TemporaryDirectory() as temp:
|
|
253
|
+
path = Path(temp) / 'manifest.json'; path.write_text(json.dumps(m))
|
|
254
|
+
run = subprocess.run([sys.executable, str(ROOT / 'scripts/check_recovery.py'), str(path)], capture_output=True, text=True, check=True)
|
|
255
|
+
self.assertEqual(json.loads(run.stdout)['status'], 'locally-consistent')
|
|
256
|
+
|
|
257
|
+
def test_recovery_rejects_unsafe_inputs_and_incomplete_example(self):
|
|
258
|
+
mutations = [('destination','table','orders_v1'), ('destination','table','ORDERS_V1'), ('destination','exists',True), ('destination','exists',None),
|
|
259
|
+
('backup','failed_records',1), ('backup','failed_records',False), ('backup','verified',False), ('backup','writes_quiesced',False),
|
|
260
|
+
('backup','object_versions',[]), ('backup','object_versions',['']), ('backup','data_sha256',{}), ('backup','schema_sha256','bad'),
|
|
261
|
+
('backup','export_end','2026-11-07T00:00:00Z'), ('backup','export_start','2026-11-08T00:00:00'),
|
|
262
|
+
('backup','include_ttl',False), ('source','table_ocid','REPLACE_SOURCE')]
|
|
263
|
+
for group, key, value in mutations:
|
|
264
|
+
m = self.valid_manifest(); m[group][key] = value
|
|
265
|
+
with self.subTest(key=key), self.assertRaises((ValueError, KeyError)):
|
|
266
|
+
recovery.validate(m)
|
|
267
|
+
with self.assertRaises(ValueError):
|
|
268
|
+
recovery.validate(json.loads((ROOT/'assets/recovery-manifest.example.json').read_text()))
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
FAKE_OCI = r"""#!/usr/bin/env python3
|
|
272
|
+
import json,os,sys
|
|
273
|
+
from pathlib import Path
|
|
274
|
+
args=sys.argv[1:]
|
|
275
|
+
with open(os.environ['CALL_LOG'],'a') as f:f.write(json.dumps(args)+'\n')
|
|
276
|
+
if args[:4] != ['--profile','approved-profile','--region','us-ashburn-1']:sys.exit(90)
|
|
277
|
+
cmd=args[4:7]
|
|
278
|
+
scenario=os.environ.get('SCENARIO','ok')
|
|
279
|
+
if cmd==['iam','tenancy','get']:
|
|
280
|
+
if scenario=='tenancy-error':sys.exit(5)
|
|
281
|
+
print('wrong-tenancy' if scenario=='tenancy-mismatch' else 'ocid1.tenancy.demo')
|
|
282
|
+
elif cmd==['iam','compartment','get']:
|
|
283
|
+
if scenario=='compartment-error':sys.exit(5)
|
|
284
|
+
print('wrong-compartment' if scenario=='compartment-mismatch' else 'ocid1.compartment.demo')
|
|
285
|
+
elif cmd==['nosql','table','create']:
|
|
286
|
+
if scenario=='table-error':sys.exit(6)
|
|
287
|
+
print('{"data":{"state":"SUCCEEDED"}}')
|
|
288
|
+
elif cmd==['nosql','index','create']:
|
|
289
|
+
if scenario=='index-error':sys.exit(7)
|
|
290
|
+
print('{"data":{"state":"SUCCEEDED"}}')
|
|
291
|
+
elif cmd in [['nosql','table','get'],['nosql','index','get']]:
|
|
292
|
+
print('{"data":{"state":"ACTIVE"}}')
|
|
293
|
+
else:sys.exit(99)
|
|
294
|
+
"""
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
class ActualShellSnippet(unittest.TestCase):
|
|
298
|
+
def run_snippet(self, scenario='ok', table='safe_orders', confirmation='CREATE safe_orders\n', remove=None):
|
|
299
|
+
with tempfile.TemporaryDirectory() as temp:
|
|
300
|
+
directory = Path(temp); fake = directory / 'oci'; fake.write_text(FAKE_OCI); fake.chmod(0o755)
|
|
301
|
+
log = directory / 'calls.jsonl'
|
|
302
|
+
env = {**os.environ, 'PATH':str(directory)+os.pathsep+os.environ['PATH'], 'CALL_LOG':str(log), 'SCENARIO':scenario,
|
|
303
|
+
'OCI_PROFILE':'approved-profile','OCI_REGION':'us-ashburn-1','TENANCY_OCID':'ocid1.tenancy.demo',
|
|
304
|
+
'COMPARTMENT_OCID':'ocid1.compartment.demo','PRINCIPAL_OCID':'ocid1.user.approved','TABLE_NAME':table}
|
|
305
|
+
if remove:env.pop(remove,None)
|
|
306
|
+
run = subprocess.run(['bash', str(ROOT/'assets/create-table.sh')], input=confirmation, env=env, capture_output=True, text=True, timeout=10)
|
|
307
|
+
calls = [json.loads(x) for x in log.read_text().splitlines()] if log.exists() else []
|
|
308
|
+
return run, calls
|
|
309
|
+
|
|
310
|
+
def test_actual_script_positive_exact_targets_schema_limits_and_order(self):
|
|
311
|
+
run, calls = self.run_snippet()
|
|
312
|
+
self.assertEqual(run.returncode, 0, run.stderr)
|
|
313
|
+
self.assertEqual([x[4:7] for x in calls], [['iam','tenancy','get'],['iam','compartment','get'],['nosql','table','create'],['nosql','index','create'],['nosql','table','get'],['nosql','index','get']])
|
|
314
|
+
for call in calls[2:]:
|
|
315
|
+
self.assertEqual(call[call.index('--compartment-id')+1], 'ocid1.compartment.demo')
|
|
316
|
+
table, index = calls[2:4]
|
|
317
|
+
ddl = table[table.index('--ddl-statement')+1]
|
|
318
|
+
expected = (ROOT/'assets/orders.ddl').read_text().rstrip().replace('CREATE TABLE orders_v1','CREATE TABLE safe_orders')
|
|
319
|
+
self.assertEqual(ddl, expected)
|
|
320
|
+
self.assertEqual(table[table.index('--name')+1], 'safe_orders')
|
|
321
|
+
limits = table[table.index('--table-limits')+1]
|
|
322
|
+
self.assertEqual(json.loads(Path(limits.removeprefix('file://')).read_text()), json.loads((ROOT/'assets/table-limits.json').read_text()))
|
|
323
|
+
self.assertEqual(index[index.index('--table-name-or-id')+1], 'safe_orders')
|
|
324
|
+
self.assertEqual(index[index.index('--is-if-not-exists')+1], 'false')
|
|
325
|
+
self.assertEqual(index[index.index('--keys')+1], f'file://{ROOT}/assets/index-keys.json')
|
|
326
|
+
self.assertEqual(table[table.index('--wait-for-state')+1], 'SUCCEEDED')
|
|
327
|
+
|
|
328
|
+
def test_wrong_target_metadata_and_failed_identity_stop_before_write(self):
|
|
329
|
+
for scenario in ['tenancy-error','tenancy-mismatch','compartment-error','compartment-mismatch']:
|
|
330
|
+
run,calls = self.run_snippet(scenario=scenario)
|
|
331
|
+
self.assertNotEqual(run.returncode,0)
|
|
332
|
+
self.assertFalse(any(x[4:7]==['nosql','table','create'] for x in calls))
|
|
333
|
+
|
|
334
|
+
def test_confirmation_name_and_missing_scope_fail_closed(self):
|
|
335
|
+
for options in [{'confirmation':'yes\n'},{'table':'orders;rm_bad'},{'table':'../orders'},{'remove':'COMPARTMENT_OCID'},{'remove':'PRINCIPAL_OCID'}]:
|
|
336
|
+
run,calls = self.run_snippet(**options)
|
|
337
|
+
self.assertNotEqual(run.returncode,0)
|
|
338
|
+
self.assertFalse(any(x[4]=='nosql' for x in calls))
|
|
339
|
+
|
|
340
|
+
def test_failed_mutation_never_adopts_deletes_or_continues(self):
|
|
341
|
+
for scenario, expected_calls in [('table-error',3),('index-error',4)]:
|
|
342
|
+
run,calls = self.run_snippet(scenario=scenario)
|
|
343
|
+
self.assertNotEqual(run.returncode,0)
|
|
344
|
+
self.assertEqual(len(calls),expected_calls)
|
|
345
|
+
self.assertFalse(any('delete' in x for x in calls))
|
|
346
|
+
self.assertFalse(any(x[4:7]==['nosql','table','get'] for x in calls))
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
if __name__ == '__main__':
|
|
350
|
+
unittest.main()
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import {queryPages, validateEmbedding} from '../assets/query-pages.mjs';
|
|
4
|
+
|
|
5
|
+
async function collect(iterator) {
|
|
6
|
+
const rows = [];
|
|
7
|
+
for await (const page of iterator) rows.push(...page.rows);
|
|
8
|
+
return rows;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
test('actual helper follows empty page continuation and preserves exact opaque token/options', async () => {
|
|
12
|
+
const token = Uint8Array.from([1, 255, 0]);
|
|
13
|
+
const prepared = Object.freeze({serverBoundTenant: 'tenant-A'});
|
|
14
|
+
const queryOptions = Object.freeze({compartment: 'compartment-A', consistency: 'ABSOLUTE'});
|
|
15
|
+
const calls = [];
|
|
16
|
+
const results = [{rows: [], continuationKey: token}, {rows: [{orderId:'one'}]}];
|
|
17
|
+
const query = async (stmt, options) => { calls.push([stmt, options]); return results.shift(); };
|
|
18
|
+
assert.deepEqual(await collect(queryPages(query, prepared, {queryOptions, maxPages:2, maxReadKB:16})), [{orderId:'one'}]);
|
|
19
|
+
assert.equal(calls.length, 2);
|
|
20
|
+
assert.equal(calls[0][0], prepared);
|
|
21
|
+
assert.equal(calls[0][1].compartment, 'compartment-A');
|
|
22
|
+
assert.equal(calls[0][1].consistency, 'ABSOLUTE');
|
|
23
|
+
assert.equal(calls[1][1].continuationKey, token);
|
|
24
|
+
assert.equal(calls[0][1].continuationKey, undefined);
|
|
25
|
+
assert.equal(queryOptions.continuationKey, undefined);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test('page budget fails incomplete without unbounded loop or silently succeeding', async () => {
|
|
29
|
+
let calls=0;
|
|
30
|
+
const query=async()=>{calls++; return {rows:[], continuationKey: 'repeat'};};
|
|
31
|
+
await assert.rejects(collect(queryPages(query, {}, {maxPages:3})), /incomplete/);
|
|
32
|
+
assert.equal(calls,3);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
test('invalid bounds, external cursor and abort fail before SDK call', async () => {
|
|
36
|
+
let calls=0;
|
|
37
|
+
const query=async()=>{calls++; return {rows:[]};};
|
|
38
|
+
for(const options of [{maxPages:0},{maxPages:1.5},{maxReadKB:-1},{maxReadKB:NaN},{maxPages:Infinity},
|
|
39
|
+
{queryOptions:{continuationKey:'public-untrusted'}},{signal:{aborted:true}}]) {
|
|
40
|
+
await assert.rejects(collect(queryPages(query, {}, options)));
|
|
41
|
+
}
|
|
42
|
+
assert.equal(calls,0);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
test('SDK errors and malformed pages propagate; no hidden retries or partial-success claims', async () => {
|
|
46
|
+
let calls=0;
|
|
47
|
+
await assert.rejects(collect(queryPages(async()=>{calls++; throw new Error('Forbidden');},{})), /Forbidden/);
|
|
48
|
+
assert.equal(calls,1);
|
|
49
|
+
await assert.rejects(collect(queryPages(async()=>({rows:null}),{})), /QueryResult/);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const expected={tenantId:'tenant-A',model:'model-v1',dimension:3};
|
|
53
|
+
const valid={values:[0.1,-0.2,0.3],tenantId:'tenant-A',model:'model-v1',dimension:3,sourceId:'doc-1',sourceHash:'hash-1'};
|
|
54
|
+
|
|
55
|
+
test('embedding contract preserves numeric coordinates, tenant/model and source provenance', () => {
|
|
56
|
+
const output=validateEmbedding(valid,expected);
|
|
57
|
+
assert.deepEqual(output,valid);
|
|
58
|
+
assert.notEqual(output.values,valid.values);
|
|
59
|
+
output.values[0]=8;
|
|
60
|
+
assert.equal(valid.values[0],0.1);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
test('embedding rejects source URI instead of coordinates, nonfinite values and wrong dimensions/spaces/tenant', () => {
|
|
64
|
+
const mutations=[{values:'oci://bucket/source'},{values:[0.1,0.2]},{values:[0.1,NaN,0.3]},
|
|
65
|
+
{values:[0.1,Infinity,0.3]},{values:[0.1,'0.2',0.3]},{dimension:0},{dimension:1.5},
|
|
66
|
+
{tenantId:'tenant-B'},{model:'model-v2'},{sourceId:''},{sourceHash:''},{sourceHash:' '}];
|
|
67
|
+
for(const change of mutations) assert.throws(()=>validateEmbedding({...valid,...change},expected));
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
test('sparse coordinates and sparse source metadata are not finite vectors', () => {
|
|
71
|
+
const sparse=Array(3); sparse[0]=1;
|
|
72
|
+
assert.throws(()=>validateEmbedding({...valid,values:sparse},expected));
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
test('embedding requires an explicit nonempty trusted expected tenant/model', () => {
|
|
76
|
+
assert.throws(()=>validateEmbedding({...valid,tenantId:undefined,model:undefined}, {dimension:3}));
|
|
77
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "oci-nosql-pattern",
|
|
3
|
+
"name": "OCI NoSQL Pattern",
|
|
4
|
+
"type": "skill",
|
|
5
|
+
"provider": "oci",
|
|
6
|
+
"harnesses": [
|
|
7
|
+
"codex",
|
|
8
|
+
"claude-code",
|
|
9
|
+
"cursor",
|
|
10
|
+
"gemini",
|
|
11
|
+
"kiro",
|
|
12
|
+
"other"
|
|
13
|
+
],
|
|
14
|
+
"summary": "Design, implement, refactor and audit Oracle NoSQL Database Cloud Service access patterns: shard and primary keys, indexes, continuation, same-shard transactions, consistency, TTL, IAM, encryption, replicas, metrics, Terraform/DDL/OCI CLI and customer-owned export/import recovery, with command routes that load one guide at a time.",
|
|
15
|
+
"source_type": "adapted",
|
|
16
|
+
"official_docs": [
|
|
17
|
+
"https://docs.oracle.com/en/cloud/paas/nosql-cloud/dtddt/features-of-oracle-nosql-database-cloud-service.html",
|
|
18
|
+
"https://docs.oracle.com/en/cloud/paas/nosql-cloud/odsql/"
|
|
19
|
+
],
|
|
20
|
+
"security_notes": "Not permission to access OCI. Live reads need a confirmed principal, tenancy, region, compartment and table; writes, load tests and export/import recovery need exact approval. Recovery targets a new table. Bundled scripts are offline route selectors, a date-argument review reminder and a sanitized recovery-manifest checker.",
|
|
21
|
+
"last_verified": "2026-11-09",
|
|
22
|
+
"path": "skills/oci/oci-nosql-pattern",
|
|
23
|
+
"author": "github: VincentChuWaiChow",
|
|
24
|
+
"version": "1.0.0"
|
|
25
|
+
}
|