Analyze the most recent water test results already logged in Symbiont and produce a safe multi-day dosing plan. Use after entering test results in the Measurements page.
Start by calling get_agent_context to load the tank profile, livestock, target parameters, and persona settings.
Load context — call get_agent_context. Note the net volume (gallons), any active alert rule thresholds that reveal target parameters, and the preferred dosing product line.
Fetch stored measurements — call get_measurements to retrieve the logged water chemistry results. Look for the most recent reading of each parameter:
If any key parameter has no recent reading (older than 7 days), ask the user whether they have a fresh value to add via add_measurement before proceeding.
Confirm the numbers — briefly summarize the most recent values and their test dates so the user can confirm they're working from the right data before you do any analysis.
Compare to targets — use thresholds from the user's alert rules when available. Fall back to typical SPS reef targets:
Safety checks before dosing:
Produce a day-by-day dosing plan showing:
Log the analysis — call add_journal_entry (category: maintenance, sentiment: neutral) to record which parameters were analyzed, their values, and the planned action. This creates a record alongside the measurements already stored.