PolicyEngine / PolicyEngine/policyengine-app-v2

Result session persistence: results evaporate between browser sessions

Open
#1,091 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1
Forks
3
Avg merge
1d 50m
Merged PRs (30d)
39

Description

The problem

At a working meeting, a researcher described running a simulation on policyengine.org, coming back to it later, and finding it wasn't there — the result had evaporated between browser sessions. That's a reproducibility problem: the work was done, but there was no stable way to get back to it.

Why this is distinct from provenance/citation work

#940 (resolved model/data provenance) covers the long-tail answer: permalinks that resolve forever for citing published results. This issue is about the more everyday case — a researcher opens a result, navigates away, comes back, and can't recover the same numbers from that session. The fix may be simpler than full TRACE-style permalinks (e.g., a stable URL or persisted session state), and shouldn't need to wait on that larger workstream.

Likely areas to investigate

  • Result/report state that doesn't survive a browser restart or session expiry.
  • Whether the report URL scheme fully pins reform/baseline/dataset/period so a reload reproduces the same result.
  • Client-side persistence (e.g., local storage) that isn't written or restored correctly.

Scope

Filing without a fix proposal — the first step is a concrete reproduction (the exact URL/workflow and what was expected vs. seen on return).

Migrated from policyengine-app#2833.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported workflow on policyengine.org: record the exact result URL, then navigate away, restart the browser, and compare the returned result with what was expected. Inspect the report URL scheme and client-side persistence for whether reform, baseline, dataset, and period are preserved and restored. Done means the same result can be recovered after a browser restart or session expiry.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.