Repository navigation
fix: bind artifact access to producing lease #5278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
thymikee
wants to merge
35
commits into
fix/daybreak-daemon-boundaries
from
fix/lease-artifact-owner-admission
+2,059
−446
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
76af116
fix: bind retained artifacts and uploads to lease ownership
thymikee 11218ff
fix: preserve retained recording ownership checks
thymikee 5ed6cfa
fix: admit upload and artifact reads through lease ownership
thymikee 2a473b8
fix: forward lease scope for retained artifact reads
thymikee c066be4
fix: prune retained lease owners and guide artifact scope
thymikee 1f2dc7a
fix: require run scope for leased uploads
thymikee a85d6aa
fix: align artifact docs and focused tests with repo guards
thymikee 16637a3
fix: distinguish missing artifact run from ownership refusal
thymikee 8215e4f
fix: document artifact reasons and expect missing-run refusal
thymikee ee18219
fix: align artifact lease admission and protocol boundary
thymikee afbd8e2
fix: align protocol fixtures and generated reasons
thymikee 6b702ac
fix: canonicalize lease IDs across artifact owners
thymikee d132b4a
fix: admit artifact uploads for scoped proxy leases
thymikee 73e4c1b
fix: load lease normalization only for materialized paths
thymikee 66838f9
fix: close lease artifact ownership review gaps
thymikee 229bccd
fix: keep lease regressions within test gates
thymikee f8b5b23
style: format lease artifact review fixes
thymikee 81c9003
test: assert leased recording access in tenant capture fixture
thymikee 4c1a01a
fix(daemon): reuse the effective lease for source installs
thymikee 9a4e60c
fix(daemon): preserve lease scope through artifact delivery and release
thymikee f9e6d8f
fix: align lease artifact admission and upload scope
thymikee 93251c2
test(daemon): align lease and recording fixtures with their contracts
thymikee 9ddbd09
fix(daemon): normalize empty tenant for unleased recording recovery
thymikee b2f9ffe
fix(daemon): require a tenant owner before leased recording
thymikee b020619
fix(daemon): validate recording ownership at start admission
thymikee 1d90912
fix(artifacts): normalize recording owner and document historical lookup
thymikee d29aea5
test(artifacts): use a mutable daemon response fixture
thymikee 6a00dd9
fix(leases): prune retained artifact owners during expiry sweeps
thymikee 71aede7
fix(artifacts): preserve explicit lookup scope and empty lease absence
thymikee 422c807
fix: keep artifact scope within CLI and test limits
thymikee f8a376b
test(cli): expect artifacts in command dispatch checks
thymikee dba25f7
fix(cli): preserve operator scope for historical artifacts
thymikee bfdf5ce
test(cli): follow artifact command check into option resolution
thymikee 8d5cf14
fix(cli): restore provider artifact scope for named connections
thymikee 46a98d5
refactor(cli): separate artifact run scope resolution
thymikee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import assert from 'node:assert/strict'; | ||
| import { test } from 'vitest'; | ||
| import { artifactsCommandFacet } from './artifacts.ts'; | ||
| import type { CliFlags } from '@agent-device/contracts/command'; | ||
| import { createTestHostEnvironment } from '@agent-device/test-kit'; | ||
|
|
||
| test('artifacts CLI passes an explicit lease and run through to the daemon command', async () => { | ||
| const input = artifactsCommandFacet.cliReader([], { | ||
|
thymikee marked this conversation as resolved.
Resolved
|
||
| leaseId: 'lease-a', | ||
| runId: 'run-a', | ||
| } as CliFlags); | ||
| assert.equal(input.leaseId, 'lease-a'); | ||
| assert.equal(input.runId, 'run-a'); | ||
| const request = await artifactsCommandFacet.daemonWriter(input, createTestHostEnvironment()); | ||
| assert.equal(request.options.leaseId, 'lease-a'); | ||
| assert.equal(request.options.runId, 'run-a'); | ||
| assert.deepEqual(artifactsCommandFacet.cliSchema.allowedFlags, [ | ||
| 'provider', | ||
| 'providerSessionId', | ||
| 'leaseId', | ||
| 'runId', | ||
| ]); | ||
| }); | ||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.