Repository navigation
RES-647: Repair scientific contracts and qualify native longitudinal research - #4
Conversation
…led reports Individual investigations are versioned rows of the existing investigations table inside the persistent workspace; runs record their cohort/individual scope against the exact data revision. Adds the descriptive METH-U-INDIVIDUAL trajectory method, scope-aware eligibility, protocol timelines that separate observational tracking from N-of-1 designs, HYPOTHETICAL scenarios that stay NOT QUALIFIED without a qualified forecasting model, cohort comparison and combined reports with separate frozen sections. No schema or numerical routine changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Research context bar (workspace, revision, scope, investigation), searchable Individuals explorer, Individual Research tab with data, analysis, results, protocol, scenarios and cohort comparison, scope-aware export, combined report and history. Persisted context is restored on reopen; stale and cross-participant completions are discarded. Deterministic 12-participant, six-occasion study tests the complete backend and native workflow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Full regression 294 passed. Source-native Windows journeys at 100%, 125% and 150% cover the 14 acceptance steps, including a separate-process restart; receipts, screenshots and exported reports are retained. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rules are defined by the user: their own categories (e.g. In danger, Doing great), tone, AND/OR conditions over any measured metric using latest value, % vs baseline or previous test, squad SD, rolling mean, acute:chronic ratio or missed tests. Each hit carries the evidence that fired it. Simulations project best/expected/worst user assumptions (outcome trend, driver changes and their assumed effects) from each athlete's latest observation, labeled HYPOTHETICAL, and report which athletes would cross the user's rules. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ations Squad is now a full-window perspective and the workspace home: every athlete as a tile grouped by the researcher's own flag categories, trend or roster attribute, with Flag rules and Simulate squad editors. Tapping an athlete opens their page (key metrics, the rules that fired with their values, own trajectory vs squad mean) with individual research as branches on the right. Replaces the toolbar scope pickers and the separate Individuals dialog; the research workbench returns to its five workspaces. Co-Authored-By: Claude Opus 5.5 <[email protected]>
New ATHLETE_MONITORING import family: training load (sRPE/AU), sleep duration and quality, wellness, fatigue, soreness, stress and mood, with a required date/day/week axis (ISO dates only; never assumed) and a position roster attribute for any family. Admission QC checks identity, the time axis, duplicate athlete-day records and plausible ranges. Workspaces gain a Link mode: a different measurement kind joins the current revision as its own table for the same confirmed participants (never pooled), and later monitoring batches append with overlap protection while every existing table is carried forward. Flag rules, simulations and the squad board work across all linked measures, with a metric picker, position grouping and a readable date axis. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Events is a main screen beside Squad. It lists, newest first, each data revision, every athlete entering or leaving one of the researcher's flag categories (current rules re-read across consecutive revisions, with the values that fired), saved analyses and saved simulations. Athletes in a concern category without a follow-up branch are pinned under Needs attention with Open athlete and Start follow-up, which creates the branch and opens it on the athlete page. Rules on measures a revision does not hold are skipped for that revision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Compact-mode screens now open at their top instead of a stale scroll position, simulation results get their own tab so they are never pushed off a small screen, and rule pickers are compact with full names on hover. Adds the scaling script, receipts and screenshots; all windows and dialogs fit 1093x576 and 911x480 work areas. Full regression 300 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
RES-647 independent review — stacked draft PR #4 (2026-11-12)Disposition: keep draft and unmerged. GitHub PR #3 (RES-644) is independently open/mergeable into main, eight commits; PR #4 is an eight-commit draft stacked on #3. No CI checks are configured. PR #4 has 300 passing reported local source tests and screenshots, but no packaged application qualification, while its walkthrough script still drives the superseded first UI. Priority scientific consistency finding: Research-first UX: The new full-window Squad home/tile groups/"In danger" flags and Events are useful for triage but shift the interface toward practitioner monitoring; inspect how researchers access the core Direction E analysis, repeat-measure timeline, uncertainty and versioned investigations. The categorical concern flag is researcher-defined, not a validated physiological or injury-risk classification; enforce visible metric/threshold/revision provenance and avoid alarm-like definitive language. Time-axis/flag semantics: Engineering readiness: Refresh the native walkthrough to exercise the current Squad, athlete branch, Events, flags, and simulation UI. Independently verify history/identity isolation, old-run immutability, compact 125/150% navigation and accessibility. Build and exercise a source-matched portable Qt app; establish CI/regression checks or equivalent exact-head gates. Do not merge or close RES-647 based on 300 local tests alone. No changes requested to RES-644 branch within this review. Audit PR #3 separately and merge it only after owner approval; preserve stacked PR #4 as a draft and keep it separate from RES-619/590 scientific qualification. |
# Conflicts: # services/science/dynamis_science/researchstore.py
|
Independent qualification is complete for the repaired source and tested native workflows. Delivery head:
Complete review, atomic commits, screenshots, numerical receipts and limitations. No numerical forecasting model or risk classification was qualified. Defined scenarios remain hypothetical and non-evidence. Existing legacy runs cannot retrospectively acquire missing execution-time investigation metadata; new runs capture it. An abrupt OS kill may leave an unreferenced derived directory. The owner manifest and operational DB/WAL/SHM hashes are preserved; SQLite read-only copying refreshed the SHM timestamp only. PR #4 remains draft and stacked on PR #3. Neither PR has been merged; owner scientific/design acceptance and merge authorization remain separate. |
Research-first longitudinal workstation
Repairs the existing Squad/athlete implementation within one persistent research workspace, preserving Direction E and the Python-native scientific engine. Stacked on RES-644 / PR #3; keep this PR draft and unmerged.
Verified evidence
314 passed, 0 failed, 0 skipped in 396.75 s in the clean final Python/Qt/scientific suite, including existing R-reference comparisons. A concurrent run's two legacy Qt failures and successful isolated/serial reruns are retained rather than counted as passes. Windows PR CI is now configured for fixtures, static hygiene, migration/integration/Qt/scientific regression and JUnit evidence.
Current native and portable walkthroughs pass at 100/125/150%, including imports, cohort/individual analysis, protocols, hypothetical scenarios, Events, comparisons, three report exports and true external process restarts. Each retains one workspace, two revisions and five runs. Independent numerical checks match 15 packaged runs, 63 session/cohort points and nine trial-noise estimates. The trial-noise SE is not total longitudinal uncertainty or an individual response threshold.
Qualified application source:
e748962a8a0c3fc264959549cb10dc967e779c25; application tree47e9b7f82fde12395207f5dee0ce89da7c0b3b74. Delivery head46c9d0cc4fcb4d42391905deba718b5f4e101b79adds evidence only. Embedded code for 54 modules plus the entry point matches checkout source.Portable EXE SHA-256:
e43bb87faa0f0b70c5bee3b7461172cfe1c6fd4ecdfc58a05d066105ff7db9ce.Complete independent review, atomic commits, limitations, screenshots and receipts.
Protected file contents are unchanged. Read-only source-copy tests refreshed only the operational SQLite SHM timestamp; its hash, the DB/WAL hashes and the owner manifest hash remain identical. No owner installation was replaced. Legacy runs without captured investigation versions cannot retrospectively prove execution-time protocol context; new runs capture it. RES-619/590 forecasting gates and owner acceptance remain separate. No merge authorized or performed.