wenjin272 opened a new issue, #1460: URL: https://github.com/apache/flink-agents/issues/1460
## Description The Java and Python `ConfigOption` implementations currently describe a key, type, and default value. Extend them to support the configuration contracts and lifecycle information in section 5.1 of the [API Stability and Compatibility Policy](https://github.com/apache/flink-agents/discussions/1449). Parent: https://github.com/apache/flink-agents/issues/1458 ## Scope - Add a description for an option's meaning, units, and usage notes. - Add explicit requiredness and applicable structured value constraints, such as allowed values and numeric bounds, alongside the existing type and default. - Support lifecycle information using the shared marker semantics: Java annotations on option declarations, and Python option metadata for `stability`, `since`, `in_progress`, `deprecated_since`, and an optional `replacement`. - Keep deprecation information separate from the original stability metadata. Support the proposal's inheritance and explicit-override rules for option declarations. - Keep Java/Python semantics aligned. Use Flink Agents' own configuration classes; the Python implementation must not depend on a Java Gateway. - Provide representative declarations and focused tests for the extended option metadata and requiredness/constraint semantics. Changing a default or narrowing accepted values affects compatibility, so this information must be available in structured declarations. Dynamic defaults and complex constraints remain in parsing logic and user documentation. ## Starting points - `api/src/main/java/org/apache/flink/agents/api/configuration/ConfigOption.java` - `python/flink_agents/api/configuration.py` ## Dependencies and follow-up Coordinate lifecycle metadata with https://github.com/apache/flink-agents/issues/1459. Description, requiredness, and constraint support can proceed in parallel with that work. This issue covers the `ConfigOption` extension only. `ResourceOption`, integration configuration classes and parsing, bulk migration of existing options, documentation generation, and compatibility CI are separate umbrella tasks. -- 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]
