Repository navigation
Pass strut's STRUT_RETENTION to repo2graph - #797
Merged
Merged
Conversation
Strut's fleet retention window (stakwork/strut#705, plans/retention.md): how long a finished run's log stays on the disk when its workflow sets no retain:. Passed from the host's .env when set, like STRUT_CHAT_MODEL. Takes effect once mcp's strut pin carries #705.
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.
Strut's retention sweep decides how long a finished run's log stays on the disk. Its fleet default is
STRUT_RETENTION, for every workflow that sets noretain:of its own (stakwork/strut#705,plans/retention.md). Strut runs inside repo2graph, and repo2graph's env is built here, so a swarm could not set that window: #794 passes the archive'sSTRUT_ARCHIVE_S3_*and nothing else. This passesSTRUT_RETENTIONfrom the host's.envto repo2graph when it is set, likeSTRUT_CHAT_MODEL.What a host sets
STRUT_RETENTIONSTRUT_ARCHIVE_S3_BUCKET); with no archive, nothing is evicted3d,12h(units s m h d w)20Past the window, with the archive on, a log is uploaded and then dropped from the disk, and a read brings it back. With no archive it is deleted, and the run's summary stays. A workflow's own
retain:wins. An invalid value is warned about by strut and ignored.Getting it onto a host and into repo2graph is the same as for the archive's vars (#794): the host
.env, then a stack restart and a repo2graph recreate (super's "Update Env" does both).When it takes effect
Only once a swarm's
stakgraph-mcpimage carries a strut that readsSTRUT_RETENTION: stakwork/strut#705 must merge and stakgraph must bump mcp's strut pin (it pinseb4beae6, stakwork/strut#693, which reads only the first name,STRUT_RUN_RETENTION, never passed here). Until then the var reaches the container and nothing reads it. Safe to merge first.Tests
cargo test --lib images::repo2graph(below). No new test: the othergetenvpassthroughs inrepo2graph(STRUT_CHAT_MODEL,STRUT_LLM_MODEL) have none, and one here would have to set the process env, which the archive tests avoid.