Repository cards, contracts and reports

Override a repository card's fields, confirm inferred API contracts, and resolve the problems users report.

Repository cards

Each repository has a card: its purpose, domain, technology stack, public APIs, entry points, maturity signals, license, owners and status. Synaxis writes it from the repository's summaries and files. A curator can override any field; the override survives every regeneration and is shown as curated.

  1. Open Curation and go to Repository card.
  2. Choose the Repository and the Field: purpose, domain, status, stack, entryPoints, publicApis, maturity, license, owners, structure, gateway or notes.
  3. Enter the Value. For a list, JSON is accepted (["Payments", "Billing"]).
  4. Select Save. The console answers The card field is set.

To go back to the generated value, choose the repository and field and select Clear (The card field is cleared.). "A curator's value replaces the generated one until it is cleared."

Beside its fields, a card names the packages the repository's default branch publishes: NuGet projects with a PackageId or IsPackable, package.json files that are not private, Maven projects with distributionManagement, Cargo packages without publish = false, and named Python projects not marked Private :: Do Not Upload. Synaxis finds them with the API contracts, so they are not a field to override; change the project files instead. CodeWrightAI's New Product from Prompt uses such a repository's code as its package and refuses a copy of it.

API contracts

Synaxis finds the API contracts each repository declares (OpenAPI 2.0 and 3.x, protobuf services, GraphQL schemas). For ASP.NET Core repositories without one, it infers an OpenAPI 3.1 document from the code, with a confidence and the evidence (file and line) for each operation. An inferred contract stays low-confidence until a curator confirms it or the repository adds a declared one.

Inferred contracts to confirm (n) lists each inferred contract with its API and version, the Repository, its Confidence and the Source it was inferred from. Check the contract against the code, then select Confirm. The console answers The contract is confirmed., and answers show it as "inferred, confirmed".

Contracts are versioned per repository, API and ref. A client project can register as a consumer of a contract version; when a newer version changes or removes an operation it uses, its registrants are told. Each person sees the consumers they registered in Me under APIs I consume, with any Drift, and can Forget one.

Reports from users

People report wrong or missing knowledge from CodeWrightAI. Reports from users (n) lists each with its Kind, what it is About, the person's Note and When. Fix what it points to (a card field, a capability, a contract), then select Resolve (The report is resolved.).

See also