Skip to content

Feature/license headers and fixes - #169

Merged
valoryyaa-byte merged 4 commits into
RWA-ToolKit:mainfrom
Saboleee:feature/license-headers-and-fixes
Jul 28, 2026
Merged

Feature/license headers and fixes#169
valoryyaa-byte merged 4 commits into
RWA-ToolKit:mainfrom
Saboleee:feature/license-headers-and-fixes

Conversation

@Saboleee

Copy link
Copy Markdown
Contributor

Summary

This PR addresses four issues: SPDX license headers, JSON-RPC error test coverage, startup availability signaling, and release documentation synchronization.

Changes

#116 — Add SPDX license headers to source files

  • Added SPDX-License-Identifier: Apache-2.0 to all Rust source files in api/src/
  • Ensures compliance with per-file license header requirements

#109 — Add tests for JSON-RPC error paths

  • Extracted RPC response processing into process_rpc_envelope() function
  • Added unit tests for envelope-level error (resp.error)
  • Added unit tests for simulation-level error (result.error)
  • Both error branches now map to IndexError::Rpc as designed

#115 — Return 503 with Retry-After until first refresh succeeds

  • Added initialization tracking to AppState via atomic flag
  • Snapshot marked initialized only after first successful refresh
  • Clients requesting data before initialization receive 503 Service Unavailable with Retry-After header
  • Allows clients to distinguish "no data yet" from "genuinely empty"

#110 — Add release checklist to sync CHANGELOG and docs

  • Added "Release checklist" section to CONTRIBUTING.md
  • Documents steps to ensure API/contract changes sync between CHANGELOG and docs
  • Provides maintainers with a clear workflow for version releases

Closes #109, Closes #110, Closes #115, Closes #116

@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Saboleee Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@valoryyaa-byte
valoryyaa-byte merged commit 943a50b into RWA-ToolKit:main Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment