Buckets:
mvp-ai/skill-base / github.com /zxhwolfe-dev /aiworkstation-open-source-intelligence /schemas /tool_contracts.md
| # OSI 0.3 Tool Contracts | |
| Machine-readable contracts are authoritative: | |
| - `tool-manifest.json`: nine public tool names and input schemas; | |
| - `hosted-tool-manifest.json`: anonymous data-only Hosted surface; | |
| - `tool-result.schema.json`: `osi.tool-result.v2` output envelope. | |
| ## Inputs | |
| All tools reject undeclared fields. Discovery, alternatives and stack planning | |
| use typed constraints: | |
| ```json | |
| [{"id":"deployment","value":"self-hosted","polarity":"required"}] | |
| ``` | |
| `polarity` is `required`, `preferred`, or `excluded`. Unknown/unresolved | |
| conditions belong in result `unknowns`; they are not a polarity. `source_mode` | |
| was removed in 0.3 because it did not change provider behavior. | |
| The MCP runtime publishes the same `id` / `value` / `polarity` object schema as | |
| the manifest. Preferences are forwarded separately from hard requirements; | |
| they never become hard filters. Natural aliases such as `private_deployment`, | |
| `web-ui`, and `low-code` normalize to stable canonical IDs. | |
| Prefer `self_hosted`, `docker`, `web_ui`, `no_code`, `low_code`, `privacy`, | |
| `chinese`, `free`, `python`, `cloud_only` and `offline_only` with boolean values. | |
| Do not send both an alias and its canonical ID or add a logically implied | |
| constraint that the user did not state. Required `deployment` values are | |
| limited to `docker`, `self-hosted`, `self_hosted`, `local`, `on-prem` and | |
| `on_prem`; “Docker or Docker Compose” must be represented as `docker=true`. | |
| ## Successful results | |
| Every tool returns `osi.tool-result.v2` with `data`, `verified_facts`, | |
| `recommendations`, `unknowns`, `risks`, `execution`, `generated_at`, and | |
| `request_id`. A value in `data` is not automatically a verified fact. | |
| Requirement-based results additionally expose: | |
| - `interpreted_constraints`: canonical constraints with preserved polarity; | |
| - `constraint_evaluations`: per-project `verified-match`, | |
| `verified-conflict`, `partial`, or `unknown` status and direct evidence; | |
| - `near_matches`: candidates separated from formal matches with explicit | |
| `blocking_constraints`; | |
| - `directory_fallback`: deterministic discovery context when the selector had | |
| no useful recall. | |
| Formal matches are rechecked against hydrated project-detail evidence. A | |
| required or excluded constraint that is partial or unknown cannot be promoted | |
| to a formal match. | |
| `execution.business_data_write` is always false. Search, alternatives and stack | |
| planning may disclose `selector_task_create_or_cancel` as an ephemeral | |
| control-plane effect; no user or third-party business data is modified. | |
| ## Errors | |
| Every transport uses `osi.error.v2`: | |
| ```json | |
| {"schema_version":"osi.error.v2","error":{"code":"INVALID_INPUT","message":"...","retryable":false,"details":{}}} | |
| ``` | |
| Unsupported required constraint IDs or values are local request errors and | |
| return `INVALID_INPUT` with `unsupported_constraints`, | |
| `allowed_required_constraint_ids` and `allowed_deployment_values`. They are not | |
| reported as upstream contract failures because no upstream request was made. | |
| Transient capacity exhaustion uses `PROVIDER_OVERLOADED`, is retryable, and | |
| HTTP transports return 503 with `Retry-After`. Internal exceptions and secrets | |
| must not be exposed. | |
| ## Evidence boundary | |
| Verified facts require current public evidence or validated repository metadata. | |
| Editorial summaries, deployment claims, and compatibility remain analysis or | |
| unknown unless directly supported. License results are technical evidence, not | |
| legal advice. Tools never execute third-party repository code. | |
| Official README excerpts may verify narrow claims such as Docker setup, | |
| self-hosting, a browser-accessible UI, or explicitly described low/no-code | |
| workflow support. Negated or unsupported-capability statements never count as | |
| positive evidence. Broad suitability and real-language retrieval quality | |
| remain unknown until controlled evaluation. | |
| License output keeps a discovery-only `observed_license_label`, while `license` | |
| remains null unless a direct LICENSE/LICENCE/COPYING/NOTICE source is present. | |
| The preferred upstream contract is a dedicated `license_evidence` object with | |
| source URL/path, observation time, excerpt, and target ref; License evidence is | |
| not allowed to disappear merely because editorial transparency excerpts are | |
| capacity-limited. | |
| `freshness.response_observed_at` is the Radar response observation time. | |
| `freshness.evidence_source_updated_at` is the underlying public-source freshness | |
| when available. Neither is described as snapshot creation time. Same-snapshot | |
| listing/detail disagreements are reported as `SNAPSHOT_FIELD_MISMATCH`, and the | |
| disagreeing field is removed from verified facts. | |
Xet Storage Details
- Size:
- 4.61 kB
- Xet hash:
- 5edb9681265a8bb73f79a8e6c211db6eade7a5ed615fb266e3134a9614de9877
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.