Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
e9f1a82
feat(ocr): switch to neural-digit-only decoding
AndreaPi Mar 4, 2026
8683b46
docs(ocr): update docs for neural-digit-only pipeline
AndreaPi Mar 4, 2026
45b5aa2
Refine winning decode debug flow and refresh OCR docs
AndreaPi Mar 4, 2026
bcaf1b3
Add jarvis meter-to-roi sync skill
AndreaPi Mar 11, 2026
6a31436
Migrate meter image naming to yyyymmdd
AndreaPi Mar 12, 2026
c2c7f46
Track artifacts with DVC and recover ROI model
AndreaPi Mar 12, 2026
aeb2b83
Simplify neural ROI OCR candidate selection
AndreaPi Mar 14, 2026
3768ca7
Simplify digit classifier training defaults
AndreaPi Mar 14, 2026
a5ec148
Add docs sync skill and refresh OCR docs
AndreaPi Mar 14, 2026
6ae1d7c
Train digit classifier on runtime failure crops
AndreaPi Mar 15, 2026
c7078fa
Document cloud DVC workflow
AndreaPi Mar 23, 2026
2660eff
Sync DVC docs and ingestion skill
AndreaPi Mar 23, 2026
52142cf
Record OCR next steps and B2 remote
AndreaPi Mar 23, 2026
a7cfcaf
Improve OCR fallback selection and sync docs
AndreaPi Mar 25, 2026
22c8d2e
Fix review regressions in OCR fallback and artifacts workflow
AndreaPi Mar 25, 2026
163f6b6
Fix P1 review regressions
AndreaPi Mar 25, 2026
76d83fe
Restore ROI strip aspect salvage
AndreaPi Mar 25, 2026
3514f4c
Handle classifier cooldown recovery
AndreaPi Mar 25, 2026
a3885ed
Fix base fallback reopen condition
AndreaPi Mar 25, 2026
b7e6435
Split project guidance and document backend startup caveat
AndreaPi Mar 25, 2026
8dfc5d3
Evaluate base candidates in primary OCR pass
AndreaPi Mar 26, 2026
7f727da
Export both base ROI rotations in failure set
AndreaPi Mar 26, 2026
f291709
Sync OCR docs after candidate selection fixes
AndreaPi Mar 26, 2026
f1017f2
Update meter-to-ROI sync skill for current OCR flow
AndreaPi Mar 26, 2026
c6c2706
Clean stale outputs before ROI dataset rebuild
AndreaPi Mar 26, 2026
fac19a4
Ingest meter_20260323 into ROI dataset
AndreaPi Mar 26, 2026
8bc33ae
Require digit readiness for ROI comparisons
AndreaPi Mar 26, 2026
b080d51
Validate ROI rebuild inputs before cleanup
AndreaPi Mar 26, 2026
4d17380
Honor OCR classifier cooldown on backend failures
AndreaPi Mar 26, 2026
8196e4d
Preserve label order for reversed runtime strips
AndreaPi Mar 27, 2026
4fab748
Bypass OCR classifier cooldown on primary path
AndreaPi Mar 27, 2026
c8b4388
Match runtime strip width in failure export
AndreaPi Mar 27, 2026
6c556bd
Stop OCR candidate replay after classifier outage
AndreaPi Mar 27, 2026
35a0e72
Limit ROI preview cleanup to dataset tree
AndreaPi Mar 27, 2026
c7f7649
Restrict runtime failure export to train split
AndreaPi Mar 27, 2026
e03d77c
Preflight digit checkpoint for ROI benchmark
AndreaPi Mar 27, 2026
6477efb
Document ROI benchmark model prerequisites
AndreaPi Mar 27, 2026
9eea72f
Ingest meter_20260327 into ROI dataset
AndreaPi Mar 30, 2026
a27dbd3
Correct ROI labels for October and March captures
AndreaPi Mar 30, 2026
d08ea77
Tighten test ROI label
AndreaPi Mar 30, 2026
8a52432
Align digit dataset with ROI labels
AndreaPi Mar 30, 2026
ec55e31
Move digit dataset images to DVC
AndreaPi Mar 30, 2026
89a4b3a
Persist ROI dataset split assignments
AndreaPi Mar 31, 2026
a0b7231
Avoid unnecessary ROI dataset rewrites
AndreaPi Mar 31, 2026
9dd032c
Ingest meter_20260401 with ROI review gate
AndreaPi Apr 1, 2026
d6954fd
Clean ROI sidecars after label approval
AndreaPi Apr 1, 2026
4b16337
Remove stale ROI QA preview snapshots
AndreaPi Apr 4, 2026
f4cfebd
Fix digit strip normalization and direction flips
AndreaPi Apr 4, 2026
be4e3d6
Rebuild digit dataset artifacts
AndreaPi Apr 4, 2026
af48c4c
Tune digit section boundaries
AndreaPi Apr 12, 2026
8e48726
Update DVC metadata for digit section assets
AndreaPi Apr 12, 2026
c235340
Document HEIC meter import workflow
AndreaPi Apr 30, 2026
4a1dc0c
Add April meter readings and ROI labels
AndreaPi Apr 30, 2026
2fc028f
Track April meter assets in DVC
AndreaPi Apr 30, 2026
acc2cc2
Document repo SSH push setup
AndreaPi Apr 30, 2026
bd7096c
Add strip digit reader backend
AndreaPi May 1, 2026
96c7115
Refresh strip digit training data
AndreaPi May 1, 2026
18df4c0
Add strip reader shadow tracing
AndreaPi May 1, 2026
7040951
Document strip reader workflow
AndreaPi May 1, 2026
e428e25
Ignore macOS Finder metadata
AndreaPi May 2, 2026
798d523
Drop ambiguous meter sample from datasets
AndreaPi May 3, 2026
d9a5fef
Modernize digit dataset validation workflow
AndreaPi May 3, 2026
6680654
Drop ambiguous January meter samples
AndreaPi May 4, 2026
03bb8b7
Preserve full canonical digit strips
AndreaPi May 4, 2026
60247ef
Refresh strip reader checkpoint metadata
AndreaPi May 5, 2026
0aa7603
Add guarded 23xx strip reader backend
AndreaPi May 5, 2026
3e58866
Log 23xx strip reader shadow results
AndreaPi May 5, 2026
72171e8
Document strip reader shadow status
AndreaPi May 5, 2026
3d38769
Add OCR candidate oracle benchmark
AndreaPi May 5, 2026
6d0a75d
Add diagnostic register crop variants
AndreaPi May 16, 2026
1aee838
Add cell crop failure QA report
AndreaPi May 16, 2026
4289406
Ingest May 2026 meter captures
AndreaPi May 17, 2026
09c8688
Clarify meter import scanning workflow
AndreaPi May 17, 2026
24faba3
Sync docs with current OCR workflow
AndreaPi May 17, 2026
c2deaba
Relax multi-candidate OCR test expectation
AndreaPi May 17, 2026
c107f33
Add canonical strip dataset QA exporter
AndreaPi May 17, 2026
1da4070
Refresh digit datasets with May captures
AndreaPi May 17, 2026
83c49bc
Add canonical strip QA overrides
AndreaPi May 18, 2026
d22f0e4
Add May 18 meter ROI sample
AndreaPi May 21, 2026
fff0219
Require manual ROI labels in meter ingestion skill
AndreaPi May 21, 2026
6a740e3
Add May 21 meter ROI sample
AndreaPi May 21, 2026
2e6a3aa
Refresh digit dataset after May captures
AndreaPi May 23, 2026
c17af46
Add meter 20260524 ROI ingestion
AndreaPi May 28, 2026
5fa12e3
Refresh approved digit dataset
AndreaPi May 28, 2026
87b0021
Add runtime failure QA and CV tooling
AndreaPi May 29, 2026
007d34a
Add conservative OCR geometry ranker
AndreaPi May 29, 2026
d9f6af3
Ingest meter 20260603 ROI
AndreaPi Jun 5, 2026
2a4aa2b
Test ROI dataset append-only rebuilds
AndreaPi Jun 5, 2026
11dd140
Document DVC cache workaround in meter ingestion
AndreaPi Jun 5, 2026
09d7401
Add ROI dataset builder regression tests
AndreaPi Jun 7, 2026
68870b7
Improve OCR candidate coverage
AndreaPi Jun 8, 2026
40ccc03
Improve OCR candidate coverage diagnostics
AndreaPi Jun 8, 2026
544caef
Add OCR ROI geometry audit
AndreaPi Jun 9, 2026
b6c6f62
Promote retrained ROI checkpoint
AndreaPi Jun 9, 2026
79e7e4c
Add diagnostic cell split probe
AndreaPi Jun 12, 2026
9b4cf74
Ingest June 10 meter reading
AndreaPi Jun 12, 2026
a105a68
Fix OCR fallback gate return
AndreaPi Jun 12, 2026
e3eade9
Include Tier 1 metadata in artifact package
AndreaPi Jun 12, 2026
3ad7415
Clarify diagnostic geometry adjustment
AndreaPi Jun 12, 2026
8579f74
Ingest June 12 meter reading
AndreaPi Jun 12, 2026
493f5cf
Make e2e fixture independent of DVC assets
AndreaPi Jun 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
88 changes: 88 additions & 0 deletions .agents/skills/jarvis-docs-sync/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
name: jarvis-docs-sync
description: "Audit and update Jarvis project documentation so it matches the current repository state. Use when root or nested AGENTS.md files, README.md, backend/README.md, or files under docs/ may be stale after code, config, workflow, model, or dataset-process changes."
---

# Jarvis Docs Sync

Run this workflow from the Jarvis repository root.

Use this skill whenever the repo has changed and documentation may now be inaccurate.

## Scope

Check these documentation targets:

- `AGENTS.md`
- nested `**/AGENTS.md` files that carry active project guidance (currently `backend/AGENTS.md` and `src/ocr/AGENTS.md`)
- `README.md`
- `backend/README.md`
- `docs/**/*.md`

Also check local skill docs only if they are directly affected by the change being documented.

## Workflow

1. Build the current repo facts from source, not memory.
- Inspect the code, scripts, config, package scripts, workflow files, and model/data paths that define current behavior.
- Prefer primary sources such as:
- `package.json`
- `playwright.config.*`
- `src/**/*.js`
- `backend/app.py`
- `backend/*.py`
- `.github/workflows/*.yml`
- `.dvc/config*`
- `backend/models/*.dvc`

2. Compare the docs against those facts.
- Look for stale commands, ports, file paths, model names, dataset counts, workflow steps, artifact-retention rules, and benchmark expectations.
- Use `rg` to find repeated claims across docs before editing.

3. Update only what is actually stale.
- Do not rewrite docs for style alone.
- Preserve existing structure and tone unless the current structure is actively misleading.
- Keep documentation concise and operational.

4. Keep cross-file consistency.
- If a command, path, or rule changes in one doc, update all other docs that state the same fact.
- Pay special attention to duplicated operational guidance in root and nested `AGENTS.md` files, `README.md`, and `backend/README.md`.

5. Validate after editing.
- Re-run `rg` for the old value to make sure stale references are gone where appropriate.
- Confirm every referenced command, path, and filename exists.
- If documentation mentions tests or benchmarks, verify the names and entry points still match the repo.

## Audit Checklist

Always verify these categories when relevant:

- Dev/test commands and required environments
- Frontend and backend ports/endpoints
- OCR pipeline behavior and guardrails
- Model filenames and default checkpoint paths
- Dataset rebuild commands and artifact-retention process
- DVC usage and backup expectations
- CI workflows and local validation steps
- Skill-specific workflows under `.agents/skills/`

## Useful Commands

- Package scripts:
- `cat package.json`
- Workflow inventory:
- `find .github/workflows -maxdepth 1 -type f | sort`
- Markdown inventory:
- `find docs -type f -name '*.md' | sort`
- AGENTS inventory:
- `find . -type f -name 'AGENTS.md' | sort`
- Search stale values:
- `rg -n "<old-term>|<old-path>|<old-command>" AGENTS.md backend/AGENTS.md src/ocr/AGENTS.md README.md backend/README.md docs .agents/skills`
- Search current values:
- `rg -n "<new-term>|<new-path>|<new-command>" AGENTS.md backend/AGENTS.md src/ocr/AGENTS.md README.md backend/README.md docs .agents/skills`

## Notes

- Prefer fixing the docs in the same change set as the code change that made them stale.
- If the code is ambiguous, resolve the ambiguity from the implementation before editing docs.
- If a statement cannot be verified from the repo, remove or soften it instead of leaving a hard claim.
140 changes: 140 additions & 0 deletions .agents/skills/jarvis-meter-to-roi-sync/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
---
name: jarvis-meter-to-roi-sync
description: "Run a full Jarvis meter-image ingestion flow: clean assets sidecars, normalize JPEG/PNG/HEIC photos from capture metadata, read and confirm meter values, prompt for manual ROI labels, update assets/meter_readings.csv, then rebuild backend/data/roi_dataset from the ROI manifest with QA previews. Use when new water-meter photos are added to assets/ and should immediately be reflected in both CSV readings and ROI training data."
---

# Jarvis Meter To ROI Sync

Execute this workflow from the Jarvis repository root.

Use `backend/.venv` for any Python step in this workflow. Do not rely on the system Python for CV or image dependencies such as `ultralytics` or `Pillow`.

## Workflow

1. Remove Windows sidecars every run.
- `find assets -type f -name '*:Zone.Identifier' -delete`

2. Ingest new photos in `assets/`.
- Always start by scanning `assets/` for import candidates instead of waiting for the user to name files.
- Suggested scan: `find assets -maxdepth 1 -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' -o -iname '*.heic' -o -iname '*.heif' \) -print`
- Treat `jpg|jpeg|png|heic|heif` (any case) files not already named `meter_*` as candidates.
- Exclude names already listed in `assets/meter_readings.csv`.
- Report detected candidates before normalization so the user can catch accidental imports early.
- HEIC/HEIF is a Mac/iCloud import format only for this repo; do not keep HEIC/HEIF as canonical assets.

3. Normalize each candidate from capture metadata.
- For JPEG/PNG, read EXIF when available: `identify -format '%[EXIF:DateTimeOriginal]\n' assets/<file>`.
- If `identify` is unavailable on macOS, use `sips -g creation assets/<file>` as a fallback capture timestamp.
- Rename JPEG/PNG to `meter_yyyymmdd` while preserving extension/case.
- Convert HEIC/HEIF to a canonical JPEG named `meter_yyyymmdd.JPEG`. Use `backend/.venv` plus `pillow-heif` for conversion if macOS tooling cannot produce a normal JPEG that Pillow can reopen.
- If target exists, append `_1`, `_2`, `_3`, ...
- After HEIC/HEIF conversion, verify the target JPEG exists and can be opened by `backend/.venv` Pillow, then immediately delete the original HEIC/HEIF file from `assets/`.
- Treat HEIC/HEIF deletion as required cleanup, not a review gate. If the execution environment requires explicit approval for `rm`, request that approval immediately and continue deletion as soon as it is granted.
- Never write HEIC/HEIF filenames to `assets/meter_readings.csv`, `backend/data/roi_boxes_manifest.json`, or DVC metadata; use the converted JPEG filename everywhere downstream.

4. Read and record the meter value.
- Read the 4-digit black register only.
- Ignore red fractional dials.
- If needed, create temporary enhanced views (rotate/crop/contrast/resize) before reading.
- For transition wheels, choose the conservative pre-roll digit unless rollover is clearly complete.
- If you use the live app as an OCR assist, remember the current pipeline is neural-ROI + digit-classifier only and requires a healthy backend on `127.0.0.1:8001`. Treat OCR as a first pass only and confirm the reading manually before writing CSV rows.

5. Upsert `assets/meter_readings.csv`.
- Keep header `filename,value`.
- Add/update one row per renamed file.
- Do not duplicate existing filenames.

6. Collect manual ROI labels for the new images.
- Do not auto-estimate ROI boxes as the default path. After canonical photo normalization and meter-value confirmation, ask the user to label the 4-digit black register in a suitable annotation app such as Make Sense.
- Build and report the complete batch of newly ingested canonical image filenames that need labels.
- Tell the user to label every image in that batch, and wait until they upload one exported label file per new image into `assets/`.
- Expected label format is YOLO TXT with one row per image:
- `0 x_center y_center width height`
- all coordinates normalized to the full image
- class id `0`
- Expected label filename is the canonical image stem plus `.txt`, for example `assets/meter_20260521.txt` for `assets/meter_20260521.JPEG`.
- Before continuing, verify the uploaded TXT filenames exactly match the renamed canonical image stems for the whole batch.
- If labels are missing, extra, or named for the pre-normalized import files, stop and report the expected filenames.
- If the user uploads differently named TXT files, inspect them only to help diagnose the mismatch; do not guess silently. Ask the user to confirm the intended mapping, then rename/move only after the mapping is clear.

7. Sync uploaded ROI labels into the repo workflow.
- Parse each uploaded YOLO TXT label in the batch and convert it to manifest rect format:
- `x = x_center - width / 2`
- `y = y_center - height / 2`
- `width = width`
- `height = height`
- Upsert the converted entry in `backend/data/roi_boxes_manifest.json`:
- `{"filename": "meter_YYYYMMDD.JPEG", "rectNorm": {"x": ..., "y": ..., "width": ..., "height": ...}}`
- Move each consumed TXT label from `assets/` to `backend/data/roi_dataset/labels/train/<stem>.txt`.
- Do not rebuild the ROI dataset until every image in the new batch has a matching manifest entry.
- Keep `backend/data/roi_boxes_manifest.json` as the source of truth; generated label files must stay aligned with it after rebuild.
- Do not use the old external `jarvis-roi-dataset-sync` helper path; the repo now expects `backend/build_roi_dataset.py` with a manifest input.

8. Rebuild the ROI dataset from the current CSV + ROI manifest.
- `cd /Users/andrea/GitHubRepositories/Jarvis/backend` or `cd backend` from the repo root.
- `source .venv/bin/activate`
- `python build_roi_dataset.py --roi-json <path-to-roi-json>`
- The builder persists split assignments in `backend/data/roi_dataset/splits.json`.
- Existing images keep their assigned split; new images default to `train` unless you edit `splits.json`.
- The builder updates the ROI dataset to match the CSV + manifest without recomputing old splits from CSV order.
- Treat newly imported manual ROI boxes as pending review until the user checks the generated previews.

9. Review generated ROI previews.
- Check `backend/data/roi_dataset/previews/*_bbox.jpg` for quick bounding-box QA.
- Re-render full QA overlays with `cd backend && source .venv/bin/activate && python visualize_roi_labels.py`.
- Review outputs under `backend/data/roi_dataset/qa_previews/`.
- Explicitly prompt the user to inspect the new image overlays before treating the labels as training-ready.
- Do not continue to DVC push, final summary, commit, or promotion language until the user either approves the labels or asks for corrections.

10. Correct labels when needed.
- Edit the source-of-truth entry in `backend/data/roi_boxes_manifest.json`, not the generated label file.
- Keep rect format: `{"x": ..., "y": ..., "width": ..., "height": ...}` normalized to the full image.
- Target only the 4-digit black register window.
- Preferred correction path: use Make Sense (or another manual labeling tool), export the corrected box to `assets/`, then repeat the label sync step and rebuild.
- Re-run `build_roi_dataset.py` after any manifest correction so the generated labels stay aligned.
- Re-run `visualize_roi_labels.py` after any correction and ask the user to confirm the updated overlay.
- After the user approves the corrected overlay, scan for stray `:Zone.Identifier` files under `backend/data/roi_dataset/` and delete them before continuing.

11. Refresh DVC-tracked artifacts.
- Run `dvc add backend/data/roi_dataset/images`
- Run `dvc add assets/<new-meter-file>` for each newly ingested canonical photo.
- For Mac/iCloud imports, DVC-track the converted `meter_YYYYMMDD.JPEG`, not the original `IMG_*.HEIC`/`IMG_*.HEIF`.
- If DVC tries to use an unwritable system cache such as `/Library/Caches/dvc`, rerun with `DVC_SITE_CACHE_DIR=/tmp/dvc-site-cache`.
- Run `scripts/dvc-push-safe.sh` if a DVC remote is configured
- Only do this after the user has approved the ROI overlays for the new image(s).

12. Validate and summarize.
- Confirm no sidecars remain.
- Confirm no HEIC/HEIF files remain in `assets/` after conversion.
- Confirm every CSV filename exists in `assets/`.
- Confirm every newly ingested filename has a moved manual TXT label and an ROI manifest entry before rebuilding.
- Report:
- renamed files
- CSV rows added/updated
- ROI dataset rows/images rebuilt
- preview images regenerated
- final label files updated
- whether the user explicitly approved the new ROI labels or whether further Make Sense correction is still pending

## Command Snippets

- Sidecars left:
- `find assets -type f -name '*:Zone.Identifier' -print`
- HEIC/HEIF imports left after conversion:
- `find assets -type f \( -iname '*.heic' -o -iname '*.heif' \) -print`
- ROI sidecars left:
- `find backend/data/roi_dataset -type f -name '*:Zone.Identifier' -print`
- CSV to file consistency:
- `awk -F, 'NR>1 {print $1}' assets/meter_readings.csv | while read -r f; do [ -f "assets/$f" ] || echo "missing: $f"; done`
- Rebuild ROI dataset:
- `cd backend && source .venv/bin/activate && python build_roi_dataset.py --roi-json /absolute/path/to/roi_boxes.json`
- Re-render ROI QA overlays:
- `cd backend && source .venv/bin/activate && python visualize_roi_labels.py`

## Notes

- The old external sync helper path is obsolete for this repo; use manual YOLO TXT labels, sync them into `backend/data/roi_boxes_manifest.json`, then rebuild with `backend/build_roi_dataset.py`.
- Mac/iCloud HEIC/HEIF images are temporary import sources only. Convert them to canonical JPEG assets, verify the JPEGs, then delete the HEIC/HEIF originals before any CSV, ROI, DVC, commit, or final-summary step.
- The browser-assisted OCR path is not authoritative for CSV updates. Always confirm readings manually before writing `assets/meter_readings.csv`.
- New ROI labels are not training-ready until the user has provided manual labels and reviewed the generated overlays.
- Canonical meter photos and ROI image binaries are retained with DVC; do not leave new ingested JPEG/PNG files outside DVC tracking.
4 changes: 4 additions & 0 deletions .agents/skills/jarvis-meter-to-roi-sync/agents/openai.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface:
display_name: "Jarvis Meter To ROI Sync"
short_description: "Ingest meter photos and sync ROI labels in one run."
default_prompt: "Process new meter photos end-to-end: remove sidecars, rename from EXIF, read and confirm register values, upsert meter_readings.csv, then rebuild backend/data/roi_dataset from a browser-extracted ROI manifest. Treat any new ROI labels as tentative, render QA overlays, and explicitly stop for user review before DVC push or any claim that the labels are training-ready."
3 changes: 3 additions & 0 deletions .dvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/config.local
/tmp
/cache
6 changes: 6 additions & 0 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[core]
analytics = false
remote = b2
['remote "b2"']
url = s3://my-jarvis-artifacts/jarvis-dvc
endpointurl = https://s3.eu-central-003.backblazeb2.com
3 changes: 3 additions & 0 deletions .dvcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add patterns of files dvc should ignore, which could improve
# the performance. Learn more at
# https://dvc.org/doc/user-guide/dvcignore
69 changes: 69 additions & 0 deletions .github/workflows/publish-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Publish Artifacts

on:
workflow_dispatch:
inputs:
tag_name:
description: Release tag to create or update
required: true
release_name:
description: Human-readable release name
required: true
archive_name:
description: Archive base name without extension
required: true

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install DVC
run: python -m pip install "dvc[s3]"

- name: Configure DVC remote
env:
DVC_REMOTE_URL: ${{ secrets.DVC_REMOTE_URL }}
run: |
if [ -z "$DVC_REMOTE_URL" ]; then
echo "DVC_REMOTE_URL secret is required for Publish Artifacts." >&2
exit 1
fi
REMOTE_NAME="$(dvc config core.remote || true)"
if [ -z "$REMOTE_NAME" ]; then
REMOTE_NAME="storage"
dvc remote add -f -d "$REMOTE_NAME" "$DVC_REMOTE_URL"
else
dvc remote modify "$REMOTE_NAME" url "$DVC_REMOTE_URL"
fi

- name: Pull DVC data
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DVC_REMOTE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DVC_REMOTE_SECRET_ACCESS_KEY }}
AWS_SESSION_TOKEN: ${{ secrets.DVC_REMOTE_SESSION_TOKEN }}
run: dvc pull

- name: Package Tier 1 artifacts
run: |
chmod +x scripts/package-tier1-artifacts.sh
scripts/package-tier1-artifacts.sh \
--output-dir output/artifacts/release \
--archive-name "${{ inputs.archive_name }}"

- name: Publish release assets
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag_name }}
name: ${{ inputs.release_name }}
files: |
output/artifacts/release/*
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
*:Zone.Identifier
.DS_Store
**/.DS_Store
node_modules/
output/
assets/*.jpg
assets/*.jpeg
assets/*.png
assets/*.JPG
assets/*.JPEG
assets/*.PNG
.venv/
backend/.venv/
__pycache__/
*.pyc
backend/__pycache__/
backend/runs/
backend/models/*.pt
backend/models/*.onnx
backend/yolov8*.pt
/yolov8*.pt
backend/data/roi_dataset/labels/*.cache
backend/data/roi_dataset/previews/
backend/data/roi_dataset/qa_previews/
backend/data/roi_dataset/roi_boxes.json
backend/data/runtime_failure_dataset/
.env

# Playwright CLI generated artifacts
Expand Down
Loading
Loading