Repository navigation
feat(runs): give each import source a folder and an identity of its own - #405
Merged
harenome merged 10 commits intoNov 25, 2026
Merged
Conversation
harenome
force-pushed
the
feat/import-source-identity
branch
from
November 25, 2026 14:12
9343456 to
de6c9b5
Compare
Two ATIF or OpenTelemetry sources of one basename were converted into one imported/<format>__<basename> folder, each conversion pruning the other's trials, and shared one derived identity. A source's first conversion now gives it an id, written in the job's config.json as nullius.source with its absolute path, and kept on every reconversion. Its folder is the one recording it; a new source takes the default name, or <default>-2, -3... when that belongs to another source. The job's identity is declared from the id. A folder converted before ids is reused for its own source, never rewritten to gain one, and keeps its derived identity. Refs ThinkFlowLab#400
A random id gave one tree a new identity in each workspace that imported
it, so its judgements stayed behind. nullius.source is now a uuid5 over
the format and the tree's real path ("v": 1), still written at the first
conversion and read back on reconversion, so a copied job keeps it. A tree
moved or renamed on disk is a new source.
Refs ThinkFlowLab#400
…named folder and convert one at a time A path converted in another format no longer takes over the first format's folder and id. A --job-name that names another source's folder, recorded or from before ids, is refused before anything is written. Conversions into one folder hold a lock from choosing the folder through the write. The source is resolved to its real path once, so a relative root or a link records one spelling. An import from before ids derives its identity from its recorded source path as well as its folder.
…t and source are shown A folder converted before source ids is reused only when it stored the same format and names this source: by the absolute path it recorded, or else by where each of its trials says its document was read. A folder that cannot be tied to the source (another format, no recorded path, a relative one, an unreadable config) is never written into: a named job is refused and an automatic name takes a folder of its own.
…ugh reconversion A reconversion into a folder converted before source ids keeps the command (ATIF) or export path (OpenTelemetry) it recorded, as typed: that string is what the folder's derived uid was made from, so rewriting it as a real path would give the job another identity.
… the bytes parsed A conversion reads its source again once it holds the lock, so one that read an older source never publishes it over trials a later conversion published meanwhile; a refused tree is still refused before anything is written. An ATIF document is read once: its trial's copy and digest are the bytes parsed.
…rded source A job cached before an import's id took in its recorded source path kept its older id once read back, while a fresh parse of the same folder gave another.
… its trials are named from A folder converted from a relative path was reused for any tree holding every document its trials were read from: converting a parent into it added the parent's documents under the child's identity. The folder is now the source's only when the source is the one tree that names its trials as they are and ends with the path recorded. Otherwise a named conversion is refused and an automatic one takes a folder of its own.
…t keeps its source A conversion rewrote config.json in place: a refresh stopped mid-write left it truncated, and with it the source the job was converted from. Each file is now written beside the old one and renamed over it.
… longer name of colliding paths Two paths that flatten to one name (a/b.json, a__b.json) each take that name with a digest of their path. A folder converted before ids with such trials was never shown to be its own tree's, so its source got a new folder and identity. Those names now count as named from the tree too.
harenome
force-pushed
the
feat/import-source-identity
branch
from
November 25, 2026 14:29
de6c9b5 to
4d2ebfb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #400
What
imported/<format>__<basename>: each pruned the other's trials; both had one identity (Give every job an identity that survives a copy or a move, apart from its folder name #399).uuid5of both, so every workspace importing it agrees.config.json(nullius.source,nullius.source_path); a copy keeps it.<format>__<basename>, else-2.--job-nameis refused; an automatic name takes-2.parse.SCHEMAis 21: cached jobs are parsed again.Verified
team-a/run, thenteam-b/run, thenteam-a/runagain.Main:
Here:
Risk
.nullius-import.lockstays in the imports folder.Agents