35 Commits

Author SHA1 Message Date
salvacybersec
45ee2f8f53 test(05-03): add failing tests for VerifyAll worker pool
- TestVerifyAll_MultipleFindings: 5 findings via 3-worker pool
- TestVerifyAll_MissingProvider: unknown provider yields StatusUnknown
- TestVerifyAll_ContextCancellation: cancellation closes channel early
- Add providers.NewRegistryFromProviders test helper
2026-04-05 15:48:46 +03:00
salvacybersec
6a94ce5903 test(05-04): guardrail tests for Tier 1 verify spec completeness
- TestTier1VerifySpecs_Complete asserts 11 Tier 1 providers have HTTPS
  verify URLs and non-empty effective success codes
- TestInflection_NoVerifyEndpoint documents the intentional empty URL
- Prevents future regressions when editing provider YAMLs
2026-04-05 15:46:57 +03:00
salvacybersec
f3ae8f0b09 feat(05-04): extend Tier 1 provider verify specs
- 12 Tier 1 providers now carry success_codes, failure_codes, rate_limit_codes
- {{KEY}} template in headers or URL (double-brace canonical form)
- metadata_paths added where provider APIs return useful metadata
- Anthropic switched to POST /v1/messages with minimal body
- Perplexity gains JSON body, content-type header
- Inflection verify URL left empty (no public endpoint)
- Dual-location sync preserved: providers/ mirrors pkg/providers/definitions/
2026-04-05 15:46:30 +03:00
salvacybersec
30c0e9871b feat(05-01): extend VerifySpec and Finding, add gjson dep
- VerifySpec: add SuccessCodes, FailureCodes, RateLimitCodes, MetadataPaths, Body
- Preserve legacy ValidStatus/InvalidStatus for backward compat
- Add EffectiveSuccessCodes/FailureCodes/RateLimitCodes fallback helpers
- Add ExtractMetadata helper using gjson (skeleton for Plan 05-03)
- Finding: add Verified, VerifyStatus, VerifyHTTPCode, VerifyMetadata, VerifyError
- Add github.com/tidwall/gjson v1.18.0 as direct dependency
2026-04-05 15:41:13 +03:00
salvacybersec
499f5d5025 test(05-01): add failing tests for extended VerifySpec
- New canonical fields: SuccessCodes, FailureCodes, RateLimitCodes, MetadataPaths, Body
- EffectiveSuccessCodes/FailureCodes/RateLimitCodes fallback logic
- Legacy ValidStatus/InvalidStatus still parse
2026-04-05 15:39:35 +03:00
salvacybersec
1aea496a17 test(03-08): add Tier 3-9 guardrail tests locking 108 total providers
- Add tier39_test.go with per-tier count assertions (T3=12, T4=16, T5=11, T6=15, T7=10, T8=10, T9=8)
- Lock all 82 Tier 3-9 provider names against drift via expectedTier3..expectedTier9 slices
- Assert total registry provider count == 108
- Existing TestAllPatternsCompile and TestAllProvidersHaveKeywords transitively cover Tier 3-9 regex compilation and keyword presence
- Satisfies PROV-03..PROV-09
2026-04-05 14:45:41 +03:00
salvacybersec
bad80b0d8a Merge branch 'worktree-agent-a090b6ec' 2026-04-05 14:44:26 +03:00
salvacybersec
a019ba9a3d feat(03-01): add 8 Tier 4 providers (Baichuan, StepFun, SenseTime, iFlytek, Tencent, SiliconFlow, 360AI, Kuaishou)
- SiliconFlow uses documented sk- prefix
- Other 7 keyword-only (no documented key format, avoids false positives)
- Completes PROV-04: 16 Tier 4 Chinese/regional providers
2026-04-05 14:42:46 +03:00
salvacybersec
a73cea361b feat(03-07): add LangSmith and 6 vector DB providers
- LangSmith with lsv2_(pt|sk) high-confidence regex
- Pinecone with pcsk_ high-confidence regex
- Weaviate, Qdrant, Chroma, Milvus/Zilliz, Neon (keyword-only)
- Completes 15 Tier 6 emerging/niche providers (PROV-06)
2026-04-05 14:42:36 +03:00
salvacybersec
440daab2a2 feat(03-06): add Databricks, Snowflake, Oracle GenAI, HPE GreenLake Tier 9 providers
- Databricks dapi-prefixed high-confidence regex pattern
- Snowflake/Oracle/HPE keyword-only detection
- Completes PROV-09 (8 Tier 9 enterprise providers)
2026-04-05 14:42:19 +03:00
salvacybersec
367cfedb6f feat(03-05): add GPT4All, text-gen-webui, TensorRT-LLM, Triton, Jan AI provider YAMLs
- 5 more Tier 8 self-hosted runtime definitions (keyword-only)
- Completes 10 Tier 8 providers, satisfying PROV-08
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:42:04 +03:00
salvacybersec
0ac12e52de feat(03-02): add voice and image/video Tier 3 providers
- Deepgram (hex40, low confidence)
- ElevenLabs (hex32, XI_API_KEY header)
- Stability AI (sk- prefix, medium confidence)
- Runway (keyword-only)
- Midjourney (keyword-only, no official API)

Completes PROV-03: 12 Tier 3 Specialized providers (with pre-existing huggingface).
2026-04-05 14:42:02 +03:00
salvacybersec
fbbb54b7a6 feat(03-04): add CodeWhisperer, Replit AI, Codestral, watsonx, Oracle AI providers
- Codestral with low-confidence 32-char generic pattern + high entropy
- watsonx with IBM IAM token endpoint for verification
- CodeWhisperer, Replit AI, Oracle AI as keyword-only
- Completes PROV-07 (10 Tier 7 code/dev tools providers)
2026-04-05 14:41:56 +03:00
salvacybersec
fbe9e8b0dc feat(03-07): add 8 emerging labs, writing tools, observability providers
- Reka, Aleph Alpha, Lamini (emerging LLM labs)
- Writer, Jasper, Typeface (writing tools)
- Comet ML/Opik, Weights & Biases (observability)
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:41:56 +03:00
salvacybersec
c8d326c34d feat(03-03): add Martian, Kong, BricksAI, Aether, Not Diamond gateways
- Keyword-only detection (no documented public key formats)
- Completes 11 Tier 5 infrastructure/gateway providers for PROV-05
2026-04-05 14:41:55 +03:00
salvacybersec
35dbbc71f1 feat(03-01): add 8 Tier 4 Chinese providers (DeepSeek, Zhipu, Moonshot, Qwen, Baidu, ByteDance, 01.AI, MiniMax)
- DeepSeek, Moonshot, Qwen use documented sk- prefix patterns
- Zhipu, Baidu, ByteDance use keyword-only detection (no documented key format)
- All dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:41:50 +03:00
salvacybersec
469ed0c0dd feat(03-06): add Salesforce, ServiceNow, SAP, Palantir Tier 9 providers
- Keyword-only detection; strong env var anchors
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:41:42 +03:00
salvacybersec
370dca0cbb feat(03-05): add Ollama, vLLM, LocalAI, LM Studio, llama.cpp provider YAMLs
- 5 Tier 8 self-hosted runtime provider definitions (keyword-only)
- Localhost endpoints and env var anchors for OSINT correlation
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:41:35 +03:00
salvacybersec
7ad9588212 feat(03-02): add search and embeddings Tier 3 providers
- Perplexity (pplx- prefix, high confidence)
- You.com (keyword-only)
- Voyage AI (pa- prefix, medium confidence)
- Jina AI (jina_ prefix, high confidence)
- Unstructured.io (keyword-only)
- AssemblyAI (hex32, low confidence)
2026-04-05 14:41:33 +03:00
salvacybersec
a9ee75eb45 feat(03-03): add OpenRouter, LiteLLM, Cloudflare, Vercel, Portkey, Helicone gateways
- sk-or-v1- and sk-helicone- high-confidence prefix regex
- LiteLLM low-confidence sk- pattern with master key keyword
- Cloudflare, Vercel, Portkey keyword-anchored detection
2026-04-05 14:41:30 +03:00
salvacybersec
9f10357f91 feat(03-04): add GitHub Copilot, Cursor, Tabnine, Codeium, Sourcegraph providers
- GitHub Copilot with ghu_/gho_ token patterns
- Sourcegraph Cody with documented sgp_ high-confidence pattern
- Cursor, Tabnine, Codeium as keyword-only (no documented formats)
2026-04-05 14:41:27 +03:00
salvacybersec
58f302b67d test(02-05): add tier1/tier2 provider guardrail test
- TestTier1Count asserts exactly 12 Tier 1 providers loaded
- TestTier2Count asserts exactly 14 Tier 2 providers loaded
- TestAllPatternsCompile verifies every regex compiles under RE2
- TestAllProvidersHaveKeywords guards Aho-Corasick pre-filter
- TestTier1/Tier2ProviderNames lock in expected provider names

Locks Phase 2 coverage against silent regressions in Phase 3+.
Addresses PROV-01, PROV-02.
2026-04-05 14:15:00 +03:00
salvacybersec
d74200b5ef feat(02-01): add Google AI, Vertex AI, AWS Bedrock, xAI providers
- google-ai: AIzaSy pattern for Gemini
- vertex-ai: AIzaSy + Bearer verify on aiplatform endpoint
- aws-bedrock: ABSK long-token and AKIA medium patterns
- xai: xai- 80-char token pattern
- All dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:12:03 +03:00
salvacybersec
5b5a47d3cc feat(02-04): add SambaNova, OctoAI, Friendli provider YAMLs
- SambaNova with live verify endpoint (api.sambanova.ai/v1/models)
- OctoAI generic-format with keyword anchors
- Friendli with flp_ prefix pattern (medium confidence)
- Dual-located in providers/ and pkg/providers/definitions/
- Completes PROV-02: all 14 Tier 2 providers defined
2026-04-05 14:12:02 +03:00
salvacybersec
5e36f24a4f feat(02-03): add Together, Fireworks, Baseten, DeepInfra provider YAMLs
- Together AI: keyword-anchored, 64-hex generic pattern
- Fireworks AI: fw_ prefix (medium) + generic (low)
- Baseten: keyword + Api-Key header auth
- DeepInfra: keyword-anchored generic pattern
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:11:59 +03:00
salvacybersec
adad602ec9 feat(02-02): add Mistral, Inflection, AI21 provider YAMLs
- 3 Tier 1 low-confidence providers with keyword anchoring
- Dual-located in providers/ and pkg/providers/definitions/
- Tier 1 total now at 12/12 providers
2026-04-05 14:11:51 +03:00
salvacybersec
622eabed74 feat(02-04): add Lepton, Modal, Cerebrium, Novita provider YAMLs
- Lepton AI generic-format with keyword anchors
- Modal dual token (token_id ak-, token_secret as-) medium confidence
- Cerebrium generic-format with keyword anchors
- NovitaAI with live verify endpoint (api.novita.ai/v3/openai/models)
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:11:36 +03:00
salvacybersec
a1f0b2dd3e feat(02-03): add Groq, Replicate, Anyscale provider YAMLs
- Groq: gsk_ prefix, 52 chars (high confidence)
- Replicate: r8_ prefix, 37 chars (high confidence)
- Anyscale: esecret_ prefix (high confidence)
- Dual-located in providers/ and pkg/providers/definitions/
2026-04-05 14:11:27 +03:00
salvacybersec
bca842271e feat(02-02): add Azure OpenAI, Meta AI, Cohere provider YAMLs
- 3 Tier 1 medium/low-confidence providers with keyword anchoring
- Dual-located in providers/ and pkg/providers/definitions/
- Registry test passes
2026-04-05 14:11:19 +03:00
salvacybersec
c0d3add7e1 feat(02-01): upgrade OpenAI and Anthropic provider YAMLs
- OpenAI: add sk-svcacct- and legacy T3BlbkFJ patterns
- Anthropic: add api03 AA suffix and sk-ant-admin01- pattern
- Sync both to pkg/providers/definitions/ for go:embed
2026-04-05 14:11:12 +03:00
salvacybersec
1e3f112d79 merge: plan 01-02 provider registry 2026-04-05 00:14:05 +03:00
salvacybersec
a9859b3384 feat(01-02): embed loader, registry with Aho-Corasick, and filled test stubs
- loader.go with go:embed definitions/*.yaml for compile-time embedding
- registry.go with List(), Get(), Stats(), AC() methods
- Aho-Corasick automaton built from all provider keywords at NewRegistry()
- pkg/providers/definitions/ with 3 YAML files for embed
- All 5 provider tests pass: load, get, stats, AC, schema validation
2026-04-05 00:10:56 +03:00
salvacybersec
58259cb9d3 feat(01-01): create main.go, test scaffolding, and testdata fixtures
- main.go entry point (7 lines) delegates to cmd.Execute()
- cmd/root.go stub so go build ./... compiles (Plan 05 replaces)
- pkg/providers, pkg/storage, pkg/engine package stubs
- Test stubs with t.Skip() for providers, storage, engine packages
- testdata/samples: openai_key.txt, anthropic_key.txt, multiple_keys.txt, no_keys.txt
- go build ./... and go test ./... -short both exit 0
2026-04-05 00:04:42 +03:00
salvacybersec
4fcdc42c70 feat(01-02): provider YAML schema structs with validation and reference YAML files
- Provider, Pattern, VerifySpec, RegistryStats structs in schema.go
- UnmarshalYAML validates format_version >= 1 and last_verified non-empty
- Three reference YAML files: openai, anthropic, huggingface
2026-04-05 00:04:29 +03:00
salvacybersec
ebaf7d7c2d test(01-02): add failing tests for provider schema validation and registry 2026-04-05 00:03:55 +03:00