Skip to content

feat(forward): add typed schedule tool scope and prepare 0.5.0 - #21

Open
xiejiabo wants to merge 1 commit into
QoderAI:mainfrom
xiejiabo:codex/release-0.5.0
Open

xiejiabo wants to merge 1 commit into
QoderAI:mainfrom
xiejiabo:codex/release-0.5.0

Conversation

@xiejiabo

@xiejiabo xiejiabo commented Dec 3, 2026

Copy link
Copy Markdown

Change

  • Add Java's typed ManagedToolConfig.schedule(...) / ScheduleToolConfig.accessScope(...) for Identity- or Template-scoped Schedule management tools. Reuse the existing Template create/update/response paths; no new HTTP route or transport behavior is introduced.
  • Preserve omitted/null configuration, unknown fields and future scope strings, immutable builder snapshots, and whole-object replacement of managed_tool_config. Scope does not enable tools by itself: callers must still include the intended enabled_tools selectors.
  • Add offline model/wire contracts for all four call styles and independent packaged-JAR consumer checks.
  • Document direct Managed SA Key Bearer authentication using the existing client builder, separately from optional SAT exchange and Forward PAT/SAT authentication. Add direct-Key and rejection/no-fallback contracts without changing shared authentication logic.
  • Prepare version 0.5.0 from 0.4.0: update both POMs, the examples' SDK dependency, installation/maintenance guidance and changelog. Reconcile the Forward inventory to 147 operations, including the A2A Agent Card route already present in 0.4.0.

This is an additive Java SDK contract/model and documentation alignment. Go, Python and TypeScript repositories are unchanged. No incompatible API removal or migration is introduced; existing generic JSON field configuration remains available. The documented replacement semantics are the service contract, not a new client-side merge policy. Version 0.5.0 is prepared, not published by this PR.

Contract sources

Reviewed on 2026-12-03:

Coverage references: the existing Template create/retrieve/update operations and the Schedule scope section in docs/templates.md; docs/forward-api-coverage.md records that this field addition adds no route.

Validation

  • SDK build, tests and Javadoc pass.
  • Independent examples consume the installed JAR and pass.
  • Java 8 package check passes; changed runtime behavior is checked on the relevant JDKs. Package check passed; actual Java 8/11/21/25 runtime checks remain for CI.
  • Documentation and changelog reflect public behavior changes.
  • make quality passes on JDK 17+ (format, versions, changelog and local links). Partial local checks passed; environment limitations are listed below.
  • Any version change updates both POMs and the matching changelog entry.

Actual local environment and results

Windows, JetBrains JBR/JDK 17.0.11, bundled Maven 3.9.6, Python 3.14.5, Git 2.22.0.windows.1. The pinned Maven Wrapper 3.9.12 was not used successfully in this environment.

  • SDK: bundled Maven -B -ntp clean install rebuilt the final worktree and ran 1,288 tests: 0 failures, 0 errors, 0 skipped. That first build subsequently failed while downloading the jar plugin's file-management:3.1.0 dependency with a connection reset. Retrying -B -ntp -U install reran the same 1,288 tests successfully, generated main/sources/Javadoc JARs and completed the local install. This was not a first-attempt fully green build.
  • Independent consumer: bundled Maven -B -ntp -f examples/pom.xml clean verify passed 80 tests: 0 failures, 0 errors, 0 skipped, consuming the installed 0.5.0 SDK JAR rather than SDK source directories.
  • python -X utf8 .github/scripts/check_package.py: passed for 0.5.0, 1,255 class files, Java 8 class-major version 52, license/embedded version, sources and public Javadoc attachments.
  • python -X utf8 .github/scripts/check_repository.py: passed, version 0.5.0 and 132 local links.
  • Pinned google-java-format 1.25.2 dry-run passed for the six changed Java files; this was a scoped check, not the repository-wide formatter entry point.
  • git diff --check and staged whitespace checks passed.
  • python -X utf8 -m unittest discover -s .github/scripts -p 'test_*.py': 37 of 38 passed, with one error in test_release_requires_current_main_version_and_notes because this Git version does not support git init -b main. The maintenance tests' release-related output is mocked; no publication occurred.

Environment limitations / untested scope

  • Windows Maven Wrapper startup is blocked by PowerShell ConstrainedLanguage (Scriptblock.Create); bundled Maven was used instead.
  • The repository-wide formatter script exceeds Windows process argument length (WinError 206); no checks were removed or weakened to work around it.
  • Actual JDK 8, 11, 21 and 25 runs, complete make quality, and Central bundle-signing rehearsal were not completed locally. The existing CI matrix is unchanged and must supply those results before merge.
  • All new behavior checks use synthetic credentials and loopback servers. Live Schedule permission enforcement, real Managed SA Key account/region/workspace access, internal integration, human QA approval and public-package verification were not run.

Source / local artifact provenance

  • Source commit: 69fda8a592fc8afb5595620c713f92e3494eba4c on codex/release-0.5.0.
  • Upstream parent: 57ed8a13a99ec0d0b705ed6da4d588d407aebda3 (0.4.0).
  • Local SDK JAR SHA-256: 420c551d886f9e23a7d33f8233051a4ab4eb99387dabd56008b452f804f351a1.
  • Local package metadata/checksums are under target/package-check.json and target/SHA256SUMS; these are development build evidence, not an uploaded QA candidate or a published Central package.

No merge, tag, release, remote package publication or internal promotion is part of this request.

@xiejiabo
xiejiabo requested a review from moonyue-w as a code owner December 3, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant