wenjin272 opened a new issue, #1458:
URL: https://github.com/apache/flink-agents/issues/1458

   ## Description
   
   Track implementation of the [API Stability and Compatibility 
Policy](https://github.com/apache/flink-agents/discussions/1449). Before 1.0, 
establish API identification and lifecycle markers, classify existing 
interfaces, and add basic CI checks. Build cross-version compatibility and 
lifecycle tooling after 1.0.
   
   The scope covers Java/Python APIs, YAML fields and aliases, framework 
configuration, and built-in integration initialization parameters. State and 
ActionState access APIs are included; persisted state and checkpoint/savepoint 
recovery compatibility are separate work. Java binary compatibility is not 
guaranteed.
   
   ## Step 1: Implement the foundations
   
   These two tracks can proceed in parallel after agreeing on shared lifecycle 
metadata semantics.
   
   - [ ] API identification and lifecycle markers: add `API.md`, reference it 
from `AGENTS.md`, and implement Java/Python markers, classification 
inheritance, `since`, `in_progress`, and separate deprecation information.
   - [ ] Configuration and integration parameter declarations:
     - [ ] Extend Java/Python `ConfigOption` with descriptions, requiredness, 
value constraints, and lifecycle information.
     - [ ] Introduce `ResourceOption` on top of `ConfigOption`, including 
Resource ownership and parameter parsing.
   
   ## Step 2: Validate representative interfaces and start basic CI
   
   Use one corresponding Java/Python API, one YAML model and alias, and one 
built-in integration to validate the foundations before migrating all modules. 
These examples should demonstrate marker inheritance, explicit overrides, 
schema generation, and parameter parsing.
   
   - [ ] Validate the representative examples and use them as migration 
references.
   - [ ] Implement basic CI checks:
     - Identify interfaces according to `API.md` and check explicit or 
inherited classifications and required lifecycle metadata.
     - Regenerate `docs/yaml-schema.json` and fail when it differs from the 
committed file.
   
   Start these checks once declaration formats and the schema generation 
approach are established. Cross-version comparison and lifecycle deadline 
calculations are later work.
   
   ## Step 3: Roll out across modules in parallel
   
   After the representative examples work, the following tracks can proceed in 
parallel with expanding basic CI coverage:
   
   - [ ] Classify and mark Java/Python APIs, including extension points, 
State/ActionState access interfaces, and `ResourceName` constants.
   - [ ] Mark YAML fields and aliases, export lifecycle metadata from the 
Python definitions to JSON Schema, and migrate framework configuration 
declarations.
   - [ ] Migrate built-in integration parameters to `ResourceOption` and align 
parsing with their declarations. Split this work by integration.
   - [ ] Document marker requirements for new interfaces in the contribution 
guide.
   
   ## Step 4: Verify readiness for 1.0
   
   - [ ] Complete classifications and markers throughout the covered scope; 
pass the full basic CI checks.
   - [ ] Review interfaces classified as `Stable` and confirm consistency 
across applicable Java/Python/YAML interfaces.
   - [ ] Confirm configuration and integration parameter declarations match 
their actual parsing behavior.
   - [ ] Publish the compatibility policy in the official documentation.
   
   This establishes the first compatibility commitment. It does not require 
retrospective compatibility with 0.x releases or completed promotion/removal 
deadline tooling.
   
   ## Follow-up after 1.0
   
   - [ ] Prioritize cross-version declaration comparison and integrate it into 
PR and release CI, starting from the published 1.0 interfaces. Reviewers cover 
checks not yet automated.
   - [ ] Establish lifecycle review for subsequent minor/major releases, then 
automate release-date lookup, deadline calculation, and review lists.
   - [ ] Generate configuration and integration parameter reference 
documentation from declarations; this can proceed in parallel with 
compatibility tooling.
   - [ ] Implement the default-implementation retirement Validator before 
starting the first such retirement window.
   - [ ] Design the migration Skill separately. Maintain breaking changes and 
migration instructions in `migration/<target-version>.md` as they occur.
   


-- 
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]

Reply via email to