Repository navigation
Description
Problem or Motivation
devops-cli writes reports, sessions and studies only to local files. No command uploads them to the content store with keyring credentials and a local pending queue. No command gives a clear message when the store is down (owner requirement of 2026-11-11: fail gracefully).
Proposed Solution & Architectural Design
- Commands
devops store publish,sync,ls,get,url,presignanddoctor, on boto3 1.43.118. - One table of content kinds gives the bucket, the prefix, web or private, and immutable or not (for example the project review window, a study and a review session).
- Path-style SigV4 with the region of
store.region(defaultus-east-1). - Multipart parts of 64 MiB. Content-Type from Python
mimetypes. Asha256metadata value on each object. - A changed immutable path is refused without
--replace. - A local pending queue
.data/store/pending.jsonl. When the store does not answer,publishkeeps the file, writes one queue line and returns statuspending.syncuploads the queue later. A repeat upload with the same checksum counts as sent. index.htmlandindex.jsonat each kind root, written from ListObjectsV2 plus the keys that the command just wrote, because a listing through the other filer can lag a write.--dry-runsends no request.- Settings
store.s3_endpoint,store.web_base_urlandstore.region. Keyring keysstore.access_key_idandstore.secret_access_key. With no endpoint set, the command stops with an error that names the setting. No built-in default host. - Error codes, the gauge
devops_store_pending_uploads, adevops cleanuprule that keeps pending files, and README rows.
Target Subsystem
Workstation Caching & Valkey (src/devops_cli/store/, a new devops store command group).
Existing Tool Considered
boto3 (Apache-2.0) does the S3 part. No tool joins the keyring, the content kinds, the pending queue, the index pages and clear messages. Cost (estimate): about 400 lines plus tests with moto or the botocore Stubber, about 600k tokens and 5 hours to build, and about 50k tokens a quarter to keep. Rejected: the AWS CLI (no keyring, no queue, no index pages) and rclone (a second binary on each workstation for the same S3 calls).
Acceptance Criteria
- Against the live store:
publish,ls,get,urlandpresign(at most 7 days) work. doctorputs, lists, gets, presigns and deletes a canary through the cluster endpoint and throughs3.<domain>.- A 150 MB file uploads through
s3.<domain>. - The index page shows a new window right after its publish.
- With
store.s3_endpointunset, the command exits non-zero and names the setting. --dry-runmakes 0 network calls (socket guard test).- With the endpoint unreachable,
publishexits 0 with statuspendingand writes one queue line.syncthen uploads the file and empties the queue. A secondsyncof the same file makes no upload. devops cleanupkeeps a pending file.- At the merge, boto3 is pinned at the newest release that fixes the known security and bug issues and that passes the tests. No minimum release age applies.
Dependencies
- dan-petty/homelab#98 (the key
devops; feat(k8s): apply store buckets, keys and rules from git #4756 closed without the writer keys). - Child 3 of feat(k8s): track the cluster content store #4742: "feat(k8s): serve the report buckets on a files host" (#4759).
- Tracker: feat(k8s): track the cluster content store #4742 (child 4).
Source: #4742
Alternatives check of 2026-11-20: in-use.
The repository already uses this tool.
Tool: boto3 (https://pypi.org/project/boto3), Apache-2.0, last activity 2026-11-20, maintained.
Reason: Searches found boto3, the S3 SDK the issue already names, covering the S3 calls, signing, upload metadata and presigning; no tool joins keyring credentials, content kinds, the pending queue, index pages or graceful store-down handling.
Covers:
- S3 put, get, list, head and delete calls
- Path-style SigV4 signing with a configurable region
- Multipart uploads with metadata, Content-Type and presigned URLs
Lacks:
- Keyring credential lookup and required endpoint settings
- Content-kind table and immutable-path guard
- Pending queue, offline publish and sync drain
- Kind index pages, doctor canary and dry-run guard
Proposed design
Problem statement
devops-cli writes reports, sessions and studies only to local files. This change adds the devops store command group to publish and read them through boto3 with keyring credentials, a content-kind table over the platform buckets, a pending queue for a store that does not answer, kind index pages, a doctor canary, a pending-upload gauge and a devops workspace clean rule that keeps pending files. Live checks against the cluster store are deferred to a new issue that waits on dan-petty/homelab#98 and dan-petty/homelab#341.
Acceptance criteria
Requirement: Store command group
The CLI SHALL expose a devops store command group with the publish, sync, ls, get, url, presign and doctor subcommands.
Scenario: Help lists store subcommands
- WHEN A user runs
devops store --help. - THEN The output lists the seven subcommands and the command exits 0.
Requirement: Required store endpoint
The store commands MUST stop with a non-zero exit and an error that names store.s3_endpoint when the setting is unset.
Scenario: Unset endpoint
- WHEN A user runs
devops store publishwith nostore.s3_endpointvalue. - THEN The command exits non-zero, its error code is
CONFIGURATION_ERROR, and its text containsstore.s3_endpoint.
Requirement: Required web base URL
url MUST stop with a non-zero exit and an error that names store.web_base_url when the setting is unset.
Scenario: Unset web base URL
- WHEN A test runs
urlfor a web kind with nostore.web_base_urlvalue. - THEN The command exits non-zero, its error code is
CONFIGURATION_ERROR, and its text containsstore.web_base_url.
Requirement: Content kind mapping
The store module SHALL resolve each content kind to its bucket, prefix, web or private visibility and immutable flag from one named table.
Scenario: Kind lookup
- WHEN A test looks up the study kind.
- THEN The result holds bucket
reports-private, prefixstudies/, private visibility and an immutable flag.
Requirement: Path-style SigV4 and region
The S3 client MUST use path-style addressing and SigV4 with the region from store.region, defaulting to us-east-1.
Scenario: Client configuration
- WHEN A test builds the store client with
store.regionunset. - THEN The client config uses path-style addressing, SigV4 and region
us-east-1.
Requirement: Keyring credentials
The store client MUST read its access key id and secret access key from the OS keyring through the shared credential seam.
Scenario: Credentials from keyring
- WHEN A test sets
store.access_key_idandstore.secret_access_keyin the keyring fake and sets different values in the environment. - THEN The client uses the keyring values and reads no environment variable.
Requirement: Publish an object
publish MUST upload a local file to the bucket and prefix of its content kind.
Scenario: Publish a study file
- WHEN A test runs
publishfor a study file through the in-memory store fake. - THEN The fake records a PutObject for the study bucket and prefix and the command exits 0.
Requirement: Object Content-Type and checksum
Each uploaded object MUST carry a sha256 metadata value and a Content-Type from Python mimetypes.
Scenario: Upload a JSON file
- WHEN A test uploads a
.jsonfile through the real store client with a botocore Stubber. - THEN The PutObject request holds the file checksum in
sha256metadata andapplication/jsonas Content-Type.
Requirement: Multipart part size
An upload larger than the multipart threshold MUST use 64 MiB parts.
Scenario: Large upload
- WHEN A test uploads a file larger than the multipart threshold through the real store client with a botocore Stubber.
- THEN Each
UploadPartrequest declares a part size of 64 MiB, except the last part.
Requirement: Immutable path guard
A publish that changes an existing immutable path MUST fail unless the command receives --replace.
Scenario: Changed immutable object
- WHEN A test publishes a different checksum to an immutable path without
--replacethrough the in-memory store fake. - THEN The command exits non-zero with
STORE_IMMUTABLE_PATHbefore the fake records a PutObject request.
Requirement: Immutable replace override
A publish with --replace MUST overwrite an existing immutable path.
Scenario: Replace an immutable object
- WHEN A test publishes a different checksum to an immutable path with
--replacethrough the in-memory store fake. - THEN The fake records a PutObject request and the command exits 0.
Requirement: Pending queue on store failure
When the store does not answer, publish MUST keep the local file, append one line to the pending queue under the resolved data directory, and return status pending with exit 0.
Scenario: Unreachable store
- WHEN A test runs
publishthrough the in-memory store fake, which raises a connection error. - THEN The file remains, the pending queue has one new JSON line, and the command exits 0 with status
pending.
Requirement: Store answer is not pending
A store that answers with an error status MUST fail with STORE_ERROR and MUST NOT append a pending queue line.
Scenario: Store answers 500
- WHEN A test runs
publishthrough the in-memory store fake, which raises a 500 answer. - THEN The command exits non-zero with
STORE_ERROR, and the pending queue is empty.
Requirement: Sync drains pending queue
sync MUST upload each queued file and remove its queue line after a successful upload.
Scenario: Drain pending queue
- WHEN A test runs
syncwith one queued file through the in-memory store fake. - THEN The fake records the upload, the queue is empty, and the command exits 0.
Requirement: Repeat checksum skip
A repeat upload of the same checksum MUST count as sent and MUST make no PutObject request.
Scenario: Second sync of same checksum
- WHEN A test syncs a file, queues the same file and checksum again, and syncs it through the in-memory store fake.
- THEN The second sync records a HeadObject request, records no PutObject request, and exits 0.
Requirement: Kind index pages
publish MUST write index.html and index.json at the kind root from ListObjectsV2 plus the keys that the command just wrote.
Scenario: New window appears in index
- WHEN A test publishes a new review window through the in-memory store fake whose ListObjectsV2 answer omits the new key.
- THEN Both index objects contain the new key and the command exits 0.
Requirement: Dry-run network guard
Each store command MUST declare a request-plan dry-run class and MUST send no network request, read no keyring entry and write no queue line under --dry-run.
Scenario: Socket and keyring guard
- WHEN A test runs each store command with
--dry-rununderrefuse_requestsand a keyring fake that records reads. - THEN No socket connection opens, no keyring entry is read, no queue line is written, and each command exits 0.
Requirement: Presign expiry limit
presign MUST reject an expiry longer than 7 days.
Scenario: Eight-day expiry
- WHEN A test requests
presignwith an expiry of 8 days. - THEN The command exits non-zero and the fake records no request.
Requirement: Presign URL generation
presign MUST return a presigned URL for an expiry of at most 7 days.
Scenario: Seven-day expiry
- WHEN A test requests
presignwith an expiry of 7 days through the in-memory store fake. - THEN The command returns a URL and exits 0.
Requirement: Web URL command
url MUST return the web URL for a key from store.web_base_url and the kind prefix.
Scenario: URL for a web kind
- WHEN A test runs
urlfor a key in a web kind. - THEN The command returns the expected URL and exits 0.
Requirement: Private kind URL refused
url MUST refuse a key in a private kind with a non-zero exit and MUST NOT return a web URL.
Scenario: URL for a private kind
- WHEN A test runs
urlfor a key in a private kind. - THEN The command exits non-zero with a typed error and prints no URL.
Requirement: List kind objects
ls MUST list objects under the prefix of a content kind.
Scenario: List study objects
- WHEN A test runs
lsfor the study kind through the in-memory store fake. - THEN The output contains the stored key and the command exits 0.
Requirement: Download an object
get MUST download the named object to a local path.
Scenario: Get a stored file
- WHEN A test runs
getfor a stored key through the in-memory store fake. - THEN The local file holds the object bytes and the command exits 0.
Requirement: Doctor canary
doctor MUST put, list, get, presign and delete a canary through store.s3_endpoint and through each --endpoint given.
Scenario: Canary through two endpoints
- WHEN A test runs
doctor --endpoint https://s3.example.comthrough the in-memory store fake, which records the endpoint of each call. - THEN The fake records the five canary calls against both endpoints and the command exits 0.
Requirement: Pending upload gauge
The store module MUST set the devops_cli_store_pending_uploads gauge to the number of queued uploads.
Scenario: Gauge after queue change
- WHEN A test appends and drains one pending queue line.
- THEN The gauge reads 1 after the append and 0 after the drain.
Requirement: Cleanup keeps pending files
devops workspace clean MUST leave the store directory and the pending queue untouched.
Scenario: Cleanup with pending file
- WHEN A test writes a stale pending queue and a file it references under the resolved
store/directory and runsdevops workspace clean. - THEN Both files remain and the command exits 0.
Requirement: Store error codes
The store commands MUST return stable typed error codes for configuration, immutable-path and store-answer failures.
Scenario: Error code table
- WHEN A test triggers each configuration, immutable-path and store-answer failure through the in-memory store fake.
- THEN Each failure returns
CONFIGURATION_ERROR,STORE_IMMUTABLE_PATHorSTORE_ERRORwith a non-zero exit.
Requirement: Store command documentation
The generated CLI reference and docs/commands/store.md MUST list each devops store subcommand and its purpose.
Scenario: Generated docs
- WHEN A user runs
uv run devops ci docs. - THEN The docs check passes and the generated reference and
docs/commands/store.mdlist one row for each of the seven subcommands.
Requirement: boto3 pin
The project MUST pin boto3 to one exact version, resolve that version in the lockfile, and take the newest release that passes the tests with no minimum release age.
Scenario: Dependency pin
- WHEN A user runs
uv run devops ci lockfile,uv run devops ci depsanduv run devops ci outdated. - THEN The lockfile and dependency checks pass, and
ci outdatednames no newer boto3 release.
Existing Tool Considered
boto3 (https://pypi.org/project/boto3, Apache-2.0, maintained) covers the S3 API calls, path-style SigV4, object metadata, Content-Type and presigned URLs. The alternatives check of 2026-11-20 in the issue body records in-use, and its block lists what boto3 lacks; devops-cli builds that glue. Cost: about 400 lines plus tests through the store seam and the botocore Stubber, about 600k tokens and 5 hours to build, and about 50k tokens a quarter to keep.
Key questions
- Which open, maintained tool covers the S3 calls?: Use boto3 for the S3 API calls, path-style SigV4, object metadata, Content-Type and presigned URLs. Build the keyring, content-kind, queue, index, message, doctor, dry-run and cleanup glue in devops-cli. (best practice) [sources: https://github.com/boto/boto3, k8s/object-store/build-test/scripts.yaml:15, uv.lock:331]
- Chosen: boto3. Apache-2.0 and maintained; the project already uses it in the object-store build test, and the alternatives check of 2026-11-20 records
in-use. - Rejected: AWS CLI. No keyring lookup, pending queue or index pages; adds a second process per call.
- Rejected: rclone. A second binary on each workstation for the same S3 calls; no keyring, pending queue or index pages.
- Rejected: Custom S3 client. Reimplements maintained signing and multipart code that the project must keep.
- Chosen: boto3. Apache-2.0 and maintained; the project already uses it in the object-store build test, and the alternatives check of 2026-11-20 records
- Which boto3 release should the project pin?: Pin the newest boto3 release that fixes the known security and bug issues and passes the tests, with no minimum release age. The boto3 repository merged
release-1.44.9on 2026-11-21 (fetched 2026-11-22), newer than the 1.44.3 thatuv.lockresolves, so addboto3==1.44.9and update the lock. If the tests fail or a newer release appears at merge, pin that newest passing release. This replaces the issue's 1.43.118. (best practice) [sources: CONTRIBUTING.md:35, uv.lock:331, https://github.com/boto/boto3]- Chosen: Newest tested release (1.44.9 now). The owner rule of 2026-11-11 takes the newest release that passes the tests, and the boto3 repository shows
release-1.44.9merged on 2026-11-21. - Rejected: Keep the lock's 1.44.3. It is older than the 1.44.9 release branch and does not follow the newest-tested-release rule.
- Rejected: Keep 1.43.118. It is older than the lock's 1.44.3 and does not follow the rule.
- Rejected: Release at least 14 days old. The owner direction of 2026-11-11 removes a minimum release age for security and bug fixes.
- Chosen: Newest tested release (1.44.9 now). The owner rule of 2026-11-11 takes the newest release that passes the tests, and the boto3 repository shows
- How should the S3 client address and sign requests?: Use path-style addressing and SigV4. Take the region from
store.regionand default tous-east-1. (best practice) [sources: k8s/README.md:1195, k8s/README.md:1196, k8s/object-store/build-test/scripts.yaml:21, docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md:31]- Chosen: Path-style SigV4. The project's object-store build test signs with
aws:amz:us-east-1:s3and addresseshttp://localhost:8333/build-test/<key>, with the bucket in the path; the SeaweedFS gateway is one host. - Rejected: Virtual-hosted SigV4. It needs one DNS name per bucket and does not match the one gateway endpoint.
- Rejected: SigV2. Not the signing version that the store and the issue require.
- Chosen: Path-style SigV4. The project's object-store build test signs with
- How should the commands read credentials and the endpoint?: Declare
store.access_key_idandstore.secret_access_keyinCREDENTIALS; the shared resolver reads the OS keyring first, then Vault, the environment and configuration. Add aStoreConfigwiths3_endpoint,web_base_urlandregion(defaultus-east-1). Stop withConfigurationError(key="store.s3_endpoint")when the endpoint is unset, and withConfigurationError(key="store.web_base_url")whenurlhas no web base URL. Use no default host. (best practice) [sources: src/devops_cli/config/env.py:49, src/devops_cli/config/env.py:73, src/devops_cli/security/secrets.py:324, src/devops_cli/exceptions/config.py:13, docs/ERRORS.md:46]- Chosen: Shared credential seam and settings. The project resolves every managed credential through one provider chain, and the issue requires keyring credentials with explicit settings.
- Rejected: Environment variables only. The issue names the keyring, and environment-only secrets are visible to child processes.
- Rejected: Plain config file. Stores secrets in a file, against the project's keyring rule.
- How should the pending queue and store-down publish work?: Append one JSON object per line to
resolve_store_path("store/pending.jsonl"), so the queue is underdata.dir(default.data/store/pending.jsonl). On a connection or timeout failure, keep the local file, append one line, print a clear message, return statuspendingand exit 0. On a store answer with an error status, raiseStoreErrorand write no queue line.syncuploads each line and removes it after success; it checks the object'ssha256metadata with HeadObject and skips PutObject when the checksum is equal.store/stays outsidePRUNED_SUBDIRECTORIES, sodevops workspace cleankeeps pending files. (best practice) [sources: ARCHITECTURE.md:226, src/devops_cli/core/repo.py:465, src/devops_cli/core/cleanup.py:32, src/devops_cli/core/cleanup.py:217, src/devops_cli/commands/workspace.py:286]- Chosen: JSONL queue with exit 0 pending. The issue names the path, the one-line write, the
pendingstatus and the graceful exit, and the project's shared-capability rule requires a local fallback. - Rejected: Fail non-zero with no queue. Does not meet the owner requirement to fail gracefully.
- Rejected: SQLite queue. Adds a database and migration for a small append-only queue.
- Chosen: JSONL queue with exit 0 pending. The issue names the path, the one-line write, the
- How should the index pages avoid a lagging listing?: Merge the ListObjectsV2 result with the keys that the command just wrote. Write
index.htmlandindex.jsonat the kind root. (best practice) [sources: k8s/README.md:1191, k8s/README.md:1197, k8s/README.md:1198]- Chosen: Merge listing and just-written keys. The build test measures up to 10 seconds before ListObjectsV2 through the other gateway lists a key that one gateway just wrote, so a listing alone can miss the new key.
- Rejected: Listing only. A new key can be missing right after its publish.
- Rejected: Just-written keys only. The index would lose older keys.
- How should an immutable path change behave?: HeadObject the existing object and compare its
sha256metadata. If the checksum differs and--replaceis absent, raiseStoreImmutablePathErrorbefore any PutObject. With--replace, overwrite the path. If the checksum is equal, count the upload as sent and skip PutObject. (proposed)- Chosen: Refuse without
--replace. The issue requires the refusal and the explicit override, and the checksum check makes a repeat publish idempotent. - Rejected: Always overwrite. Breaks the immutable contract.
- Rejected: Always refuse. Leaves no recovery path for a corrected file.
- Chosen: Refuse without
- How should uploads set the part size, Content-Type and checksum?: Use 64 MiB multipart parts and a 64 MiB multipart threshold. Set Content-Type from
mimetypes.guess_type, and set asha256metadata value computed in one streaming pass over the file. (best practice) [sources: k8s/object-store/build-test/scripts.yaml:16, k8s/object-store/build-test/scripts.yaml:22, k8s/object-store/build-test/scripts.yaml:19, src/devops_cli/ai/analyze/scanner.py:189]- Chosen: 64 MiB, mimetypes and sha256. The issue sets these three upload rules, and the project already drives boto3's transfer manager through
TransferConfigin the object-store build test. - Rejected: boto3 default part size and no checksum. More requests for large files and no repeat-upload check.
- Rejected: Extension table. Duplicates the standard library
mimetypestable.
- Chosen: 64 MiB, mimetypes and sha256. The issue sets these three upload rules, and the project already drives boto3's transfer manager through
- What limits should
presignanddoctoruse?:presignrejects an expiry longer than 7 days and returns a URL for an expiry of at most 7 days.doctorputs, lists, gets, presigns and deletes a canary throughstore.s3_endpointand through each repeatable--endpointgiven, so the cluster endpoint andhttps://s3.<domain>are both covered. (best practice) [sources: k8s/README.md:1157, k8s/README.md:1195, k8s/README.md:1135]- Chosen: 7-day presign and full canary. The issue sets the 7-day limit and the five canary calls, and the store uses SigV4, whose presigned URLs have the 7-day limit.
- Rejected: No presign limit. The issue sets a limit.
- Rejected: HEAD-only doctor. Does not test write, list or presign.
- Rejected: Derive
s3.<domain>fromstore.web_base_url. Guesses a host from an unrelated setting; a repeatable--endpointis explicit and testable.
- How should
--dry-runanddevops workspace cleantreat the store?: Each store command declares@dry_run_class("request-plan")and implements the project's--dry-runrequest plan: no socket, no keyring read, no queue write, and a printed list of the requests a real run would send.devops workspace cleanprunes only the sixPRUNED_SUBDIRECTORIES;store/is not one, so it keeps pending files and the files they reference. No cleanup code change is needed; a test asserts it. (best practice) [sources: ARCHITECTURE.md:170, src/devops_cli/dry_run/decorator.py:18, docs/TESTING.md:267, src/devops_cli/core/cleanup.py:32, src/devops_cli/core/cleanup.py:217]- Chosen: No request and keep pending files. The issue requires 0 network calls in a socket guard test and a cleanup rule that keeps a pending file, and the project's dry-run standard forbids a read too.
- Rejected: Log-only dry run. Still sends requests.
- Rejected: Clean all
.data/storefiles. Removes queued files thatsyncstill needs.
- What should the pending-upload gauge be named?: Name it
devops_cli_store_pending_uploads. Every instrument in the project's telemetry module uses thedevops_cli_prefix, and a gauge reaches Prometheus through one path. (best practice) [sources: src/devops_cli/telemetry/instruments.py:39, src/devops_cli/telemetry/instruments.py:49]- Chosen:
devops_cli_store_pending_uploads. It follows thedevops_cli_namespace of every declared instrument. - Rejected:
devops_store_pending_uploads. It lacks the project's namespace and would be the only instrument without it. - Rejected: No gauge. The issue asks for the gauge so an operator can see the queue depth.
- Chosen:
- Which command runs the cleanup that must keep pending files?:
devops workspace clean, notdevops cleanup. It prunes onlyreviews,analysis,logs,traces,benchmarksandcache;store/is outside that list, so pending files stay. [sources: src/devops_cli/commands/workspace.py:286, src/devops_cli/core/cleanup.py:32, src/devops_cli/core/cleanup.py:217] - Where do the store command docs go?: Into the generated
docs/CLI_REFERENCE.mdanddocs/commands/store.md, written byuv run devops docs generate.README.mdlinks the reference and holds no generated command matrix. (best practice) [sources: docs/adr/0025-generated-documents-stay-in-git-and-the-project-brain-cites-them.md:95, README.md:42, README.md:165]- Chosen: Generated CLI reference and
docs/commands/store.md. ADR 0025 moved the command matrix out of the README into the generated reference. - Rejected: README rows. The README no longer holds a generated command matrix.
- Rejected: No docs. The project generates a page for each command group and checks it in CI.
- Chosen: Generated CLI reference and
- How should
urltreat a private kind?: Refuse a key in a private kind with a non-zero exit and no web URL.urlreturns a web URL only for a web kind;presignis the command for a private object. (best practice) [sources: k8s/README.md:1138, openspec/specs/object-store/spec.md:92]- Chosen: Refuse a private kind. A web URL for a private object would expose a key that the kind marks private; the store's anonymous GET on
reports-privateis an operator grant, not a promise that the CLI should hand out. - Rejected: Return a web URL for a private kind. Leaks a private key through the files host.
- Rejected: Return a presigned URL from
url. Duplicatespresignand hides the difference between a web URL and a temporary URL.
- Chosen: Refuse a private kind. A web URL for a private object would expose a key that the kind marks private; the store's anonymous GET on
- How should the tests fake S3?: Add one store seam: a
StoreClientprotocol with a boto3 implementation and an in-memory fake intests/support/fakes/store.py. Command tests install the fake; a contract suite runs against the fake and the real boto3 client, usingbotocore.stub.Stubberfor the exact requests of the real client. Do not add moto or reach the live store. (best practice) [sources: docs/adr/0007-tests-double-only-process-edges.md:10, docs/TESTING.md:73, docs/TESTING.md:288]- Chosen: Store seam with an in-memory fake, and Stubber in the contract suite. ADR 0007 requires one seam per edge and an in-memory fake, and the contract suite checks the real client's requests with the library's own Stubber.
- Rejected: botocore Stubber for every test. It bypasses the project's seam and in-memory fake, and command tests would assert botocore request shapes instead of the command's behavior.
- Rejected: moto. A new dev dependency that emulates the S3 server, more than the request assertions need.
- Rejected: Live store. The live checks wait on
dan-petty/homelab#98and dan-petty/homelab#341 and are deferred to their own issue.
- Which buckets and prefixes should the content kinds use?: Use the platform buckets that feat(k8s): apply store buckets, keys and rules from git #4756 made: the review-window kind uses
reports, the study kind usesreports-privatewith prefixstudies/, and a review session also usesreports-privatewith its own prefix. Add no bucket: the operator watches onlyobject-store, and each bucket is a CR with a quota and a lifecycle rule. (best practice) [sources: k8s/README.md:1135, k8s/README.md:1138, k8s/README.md:1144, openspec/specs/object-store/spec.md:260]- Chosen: Use the existing platform buckets.
reportsandreports-privatealready exist with quotas and lifecycle rules, and thestudies/prefix already expires after 90 days. - Rejected: Add a bucket per content kind. Each bucket needs a CR, quota and lifecycle rule, and the operator watches only
object-store. - Rejected: Put every kind in
cache. Its lifecycle expires objects after 7 days.
- Chosen: Use the existing platform buckets.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(cli)scope of the title gives the scope.A new command group with multiple subcommands, a queue, and index pages, but one part of a larger tracker.Gives users a single CLI path to publish, read, and inspect content-store files.Seven subcommands, a pending queue, index generation, keyring auth, and tests estimate about 5 hours.Both touch the content store, but the candidate builds the store CLI while dan-petty/devops-cli#4733 uses it to publish a roadmap review.dan-petty commentedon Nov 11, 2026
Owner direction of 2026-11-11:
New rule: no minimum release age for dependencies, images, charts or tools. Pin the newest release that fixes the known security and bug issues and that the surrounding tools support (the tests pass).
Body changes: the boto3 acceptance line now asks for the newest boto3 release that fixes the known issues and passes the tests, not a release that is 14 days old.
devops-cli-service commentedon Nov 14, 2026
Alternatives check: partly
Reason: Searches found no maintained tool that joins keyring credentials, a content-kind table, a local pending queue, index pages and graceful store-down messages; that whole need stays project-specific. boto3 (Apache-2.0, actively pushed) covers the S3 part of it, and the issue already names it as the dependency for the S3 calls, so it partly covers the need.
Tool: boto3 (https://pypi.org/project/boto3)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at e5dfddb while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
fix(roadmap): Keep blockers that a sentence opens with other words (#…
devops-cli-service commentedon Nov 20, 2026
The result in the alternatives block of the issue body changed. Before this check:
partly, tool https://pypi.org/project/boto3. A person decides what the new result means for the item.Searches (7)
Tools considered:
Searches run:
Sources:
dan-petty commentedon Nov 22, 2026
Dependency correction (2026-11-22): #4756 closed with PR #6724, which made only the buckets
reports,reports-private,cacheandargo-artifacts, with no S3Identity and no key. Its operator watches onlyobject-storeand cannot write a key Secret into another namespace. The tenant chart of dan-petty/infra#14 renders only for a services entry, not for a platform namespace. Live: 0 S3Identity and 0 S3Credentials objects, and no store key Secret ingitea. The backup buckets and writer keys of the platform namespaces now come with dan-petty/homelab#98 (External Secrets Operator copies each key fromobject-store). I changed the Dependencies section of this item to name it.devops-cli-service commentedon Nov 22, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
chore(main): release 0.219.0 (#7177)
devops-cli-service commentedon Nov 25, 2026
Released in v0.219.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.219.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 17:09 UTC