@OptimalAnt
The challenge library

Read the rules.
Make them your own.

The functions behind the 14-day challenge, written down. Inspect a specification, save it here, or download an editable draft.

These functions use fixed rules and templates. Following saves a bookmark on this browser; forking creates a local draft.

Function specifications

Version 1.0.0 · Fixed rules

Daily check-in

Save today's entries, decide whether the day counts, and update the streak.

How it runs

  1. Resolve the member, round, protein target, and effective training schedule on the server.
  2. Validate entries and calculate completion from the day's requirements.
  3. Upsert the single daily entry; incomplete entries may also be saved.
  4. Award the one-time free next round when a seven-day streak is earned.
  5. Return the saved day, current streak, tier, deadline, and reward state.
View complete specification
{
  "id": "check-in",
  "version": "1.0.0",
  "name": "Daily check-in",
  "execution": "deterministic",
  "summary": "Save today's entries, decide whether the day counts, and update the streak.",
  "inputs": {
    "member": "Authenticated member and active round",
    "day": "Server date in America/New_York",
    "protein": "Whole grams, 0–1,000",
    "movement": "8,000 steps confirmed OR at least 30 moderate-cardio minutes",
    "sleep": "7 hours confirmed",
    "strength": "Optional progress toward the weekly strength goal"
  },
  "steps": [
    "Resolve the member, round, protein target, and effective training schedule on the server.",
    "Validate entries and calculate completion from the day's requirements.",
    "Upsert the single daily entry; incomplete entries may also be saved.",
    "Award the one-time free next round when a seven-day streak is earned.",
    "Return the saved day, current streak, tier, deadline, and reward state."
  ],
  "outputs": {
    "checkin": "Persisted daily entries and actual completion",
    "streak": "Consistency progress with completed and grace days reported separately",
    "card": "Member-safe card data",
    "reward": "Earned free-round status"
  },
  "boundaries": [
    "No backdating or client-selected member identity.",
    "Strength is a weekly goal and never blocks daily completion.",
    "Allow up to two grace days per 14-day round without calling them completed days.",
    "Preserve historical completion records and already-earned rewards.",
    "No model call or medical recommendation."
  ]
}

The product, in writing

Check-in specification

Inputs, completion, schedules, and midnight Eastern.

The 14-day loop

The member journey and a practical testing and posting playbook.

Join-to-card graph

How attribution, access, check-ins, cards, and sharing connect.

Product and data policy

Public and private information, consent, rewards, and scope.

Regimen library

The base challenge and available training variations.

The base challenge

See the plan behind the daily check-in.

Read the 14-day consistency plan and the home or gym guidance. Protein, movement, and sleep count daily. Strength is tracked across the week.

The application repository is private. This library shares product rules and editable specifications; it does not expose accounts, personal data, or application source.

Explore the regimen