Jinal-Sarvaiya opened a new pull request, #208:
URL: https://github.com/apache/camel-kit/pull/208
## Summary
Fixes #111 and #160 by adding explicit interface contract discovery to
greenfield interviews, clarifying whether contracts are supplied, pending, or
need to be designed.
## Changes
### Core Skills & Interview Logic (#111)
**`greenfield-interview.md`** - Added Question 7b after transformations:
- Asks separately about source and destination contracts
- For existing contracts: requests artifact (file path, URL, or inline),
contract type, and compatibility constraints
- For pending contracts: records dependency and keeps design decisions open
- For new contracts: proposes definition for approval (only for
user-controlled systems)
- Handles mixed cases (e.g., existing source OpenAPI + pending destination
schema)
**`discovery-completeness.md`** - Updated shared discovery semantics:
- Explicitly added "interface contracts (existing, pending, or newly
designed)" to required coverage
- Added guidance: read supplied artifacts first, record pending contracts as
dependencies without placeholders
- Clarified that new contracts are proposed only for user-controlled
endpoints
### Documentation (#160)
**`greenfield.adoc`** - Updated greenfield workflow page:
- Added interface contracts to per-flow questions description
- Added explanation paragraph covering all three scenarios
- Added example exchange showing mixed case:
Agent: Do you have an interface definition for the source or destination?
You: The source has an existing OpenAPI spec. The destination event
schema
hasn't been finalized yet — it will be provided by the downstream
team.
Agent: Please provide the OpenAPI spec for the source.
You: [provides openapi.yaml file]
Agent: Noted. The destination contract is pending. Detailed field-level
design
decisions will remain open until you provide that schema.
**`camel-brainstorm.adoc`** - Updated brainstorm skill page:
- Added interface contracts to per-flow questions list
- Added detailed "Interface contracts" topic under interview coverage
- Included mixed source/target example
## Supported Contract Artifacts
- OpenAPI (REST APIs)
- AsyncAPI (async/event-driven APIs)
- WSDL (SOAP services)
- JSON Schema
- XSD (XML schemas)
- Documented message contracts
## Acceptance Criteria Met
**#111 - Behavior Implementation:**
- [x] Greenfield discovery explicitly covers existing, pending, and newly
designed contracts
- [x] Mixed source/target cases are supported
- [x] Shared discovery guidance remains consistent for standalone
Brainstorm and Ship
- [x] Relevant guides updated
**#160 - Documentation:**
- [x] Documented in `greenfield.adoc` and `camel-brainstorm.adoc`
- [x] Covered which artifacts users can provide
- [x] Included example with existing source + pending destination
- [x] Explained inspection-before-questions behavior
- [x] Clarified pending contracts remain dependencies
- [x] Documented approval workflow for new contracts
- [x] Wording matches implemented behavior
## Testing
- [x] All tests pass: `ShippedAssetStructureTest`
- [x] No formatting issues
- [x] Documentation ready for Antora build
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]