Skip to content

Write a measurement id into every file - #51

Open
micahjohnson150 wants to merge 3 commits into
masterfrom
measurement-id
Open

Write a measurement id into every file#51
micahjohnson150 wants to merge 3 commits into
masterfrom
measurement-id

Conversation

@micahjohnson150

Copy link
Copy Markdown
Member

Generated in write_probe_data rather than getProbeHeader, because it names one measurement rather than describing the probe, and getProbeHeader is called from places that are not writing a file.

The id is seeded first so it reads at the top of the header, but extra_meta is applied over the top. That ordering is what lets a caller rewriting an existing measurement pass the original id through and keep it -- renaming a file that has already been uploaded would make the copy on disk and the copy in the cloud stop being the same measurement.

Shares the key and the generator with study_lyte rather than restating them. Three clients write this format independently and the sync API keys on it, so there should be exactly one definition of how it is spelled.

micahjohnson150 and others added 3 commits August 20, 2026 11:00
Generated in write_probe_data rather than getProbeHeader, because it names one
measurement rather than describing the probe, and getProbeHeader is called
from places that are not writing a file.

The id is seeded first so it reads at the top of the header, but extra_meta is
applied over the top. That ordering is what lets a caller rewriting an
existing measurement pass the original id through and keep it -- renaming a
file that has already been uploaded would make the copy on disk and the copy
in the cloud stop being the same measurement.

Shares the key and the generator with study_lyte rather than restating them.
Three clients write this format independently and the sync API keys on it, so
there should be exactly one definition of how it is spelled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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