Skip to content

fix(aeoess-aps): enforce exact int max_age_seconds/clock_skew_seconds and datetime reference_time in verify_aps_action_receipt (#376) - #381

Open
drk-ram wants to merge 1 commit into
agentrust-io:mainfrom
drk-ram:drk-ram-fix-aeoess-aps-376
Open

drk-ram wants to merge 1 commit into
agentrust-io:mainfrom
drk-ram:drk-ram-fix-aeoess-aps-376

Conversation

@drk-ram

@drk-ram drk-ram commented Oct 25, 2026

Copy link
Copy Markdown

Closes #376

Summary

  • Validate isinstance(reference_time, datetime) and type(max_age_seconds) is int and type(clock_skew_seconds) is int in verify_aps_action_receipt.
  • Guard isinstance(action, dict) and action.get("agent_id") before comparing against receipt["subject_agent"].
  • Add unit tests in integrations/aeoess-aps/tests/test_action_receipt.py.

Validation

  • pytest integrations/aeoess-aps/tests/test_action_receipt.py -q — passed

… and datetime reference_time in verify_aps_action_receipt (agentrust-io#376)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Raghuvar Durga <177662415+drk-ram@users.noreply.github.com>
@drk-ram
drk-ram requested review from a team, carloshvp and imran-siddique as code owners October 25, 2026 06:59
@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Contributor Check: MEDIUM

Check Result
Profile MEDIUM
Credential LOW
Overall MEDIUM

Automated check by AgenTrust Contributor Check.

@github-actions github-actions Bot added the needs-review:MEDIUM Contributor check flagged MEDIUM risk label Oct 25, 2026

@carloshvp carloshvp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head 9d50c964a1860bd32511d4dab6eb5c54a36debee in an isolated checkout.

Receipt verification now validates timezone-aware datetime inputs and exact non-negative integer age/skew settings before evaluating the receipt, with controlled handling of malformed action bindings. All 92 integration tests pass against the repository's fixed released-package lock, including signed receipt controls. The six focused window-boundary regressions fail when the actual baseline helper is restored in process. pip check, repository CI Ruff and diff whitespace checks pass. No blocking finding; hosted checks and maintainer policy remain separate.

Reviewed with OpenAI Codex.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review:MEDIUM Contributor check flagged MEDIUM risk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

integrations/aeoess-aps: verify_aps_action_receipt accepts boolean/float/non-finite max_age_seconds and clock_skew_seconds

2 participants