Skip to content

Activities guide: both inference request shapes, lift intensity, rest days, brick segments - #50

Merged
DrAlexHarrison merged 1 commit into
mainfrom
inferdocs
Sep 24, 2026
Merged

DrAlexHarrison merged 1 commit into
mainfrom
inferdocs

Conversation

@DrAlexHarrison

Copy link
Copy Markdown
Member

Companion to fuel-backend #954. It updates the Activities guide's inference section to match what the partner routes return once #954 is deployed:

  • Both request spellings work: activity_name or title, source_type or workout_type, plus device. The other structured fields the endpoint reads (tss_calculation_method, structure_summary) are listed.
  • Responses carry activity_type next to type. Brick answers carry ordered segments next to sub_types, and brick requests may send known segments.
  • Lift answers carry intensity 1-3. The guide says to pass it unchanged as intensity_level, because lift uses levels 1-3 of that field and rescaling onto 1-9 raises the carbohydrate ceiling from 75 to 90 g/h.
  • Rest-day entries come back with rest_day: true and type unknown (function change #950).
  • An unreachable inference service is a 502 that is not counted as usage. Thin evidence is still answered as unknown, not an error.

check-docs-drift.py against the #954 branch and check-engine-constants.py are clean.

Merge after #954 is deployed to partner-api prod, so the guide never describes fields the live API does not return.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X5MzUWe9V7E6etCRacGHCb

… brick segments

Matches fuel-backend #954: activity_name/source_type/device are accepted
alongside title/workout_type, responses carry activity_type and segments
next to type and sub_types, lift answers carry intensity (1-3, lift's levels
on the 1-9 scale), rest days come back rest_day true, and an unreachable
inference service is a 502 that is not counted as usage.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X5MzUWe9V7E6etCRacGHCb

Ci-From: linux
Ci-Session: 66b38ef5-cd79-4bf7-9ff3-846a159ee7bc
@DrAlexHarrison
DrAlexHarrison marked this pull request as ready for review September 24, 2026 22:09
@DrAlexHarrison
DrAlexHarrison merged commit 88ff3ff into main Sep 24, 2026
4 of 5 checks passed
@DrAlexHarrison
DrAlexHarrison deleted the inferdocs branch September 24, 2026 22:12
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