Commit Graph

125 Commits

Author SHA1 Message Date
Oleksandr Bezdieniezhnykh 0bf3894e03 Update .gitignore to include environment secrets and modify autopilot state documentation
- Added .env to .gitignore to prevent tracking of environment secrets.
- Updated autopilot state in _docs/_autopilot_state.md: changed step from 9 (Implement) to 13 (Deploy) and updated sub-step to 1 — Status & Env Check.

These changes enhance security by ignoring sensitive files and improve clarity in task management.
2026-03-28 21:46:12 +02:00
Oleksandr Bezdieniezhnykh 222f552a10 [AZ-171] Add TensorRT tests, AC coverage gate in implement skill, optimize test infrastructure
- Add TensorRT export tests with graceful skip when no GPU available
- Add AC test coverage verification step (Step 8) to implement skill
- Add test coverage gap analysis to new-task skill
- Move exported_models fixture to conftest.py as session-scoped (shared across modules)
- Reorder tests: e2e training runs first so images/labels are available for all tests
- Consolidate teardown into single session-level cleanup in conftest.py
- Fix infrastructure tests to count files dynamically instead of hardcoded 20

Made-with: Cursor
2026-03-28 21:32:28 +02:00
Oleksandr Bezdieniezhnykh 4121f56ce1 [AZ-171] Remove unused onnx_batch config, add macOS skip for CoreML tests
Made-with: Cursor
2026-03-28 17:39:53 +02:00
Oleksandr Bezdieniezhnykh 4be6c26de2 [AZ-171] Add CoreML inference test
Made-with: Cursor
2026-03-28 17:36:18 +02:00
Oleksandr Bezdieniezhnykh 593ab7bce7 [AZ-171] Update export tests: restore full coverage for ONNX and CoreML
Made-with: Cursor
2026-03-28 17:33:40 +02:00
Oleksandr Bezdieniezhnykh 1321c38b06 [AZ-171] Add export tests for dynamic batch ONNX and CoreML
Made-with: Cursor
2026-03-28 17:32:39 +02:00
Oleksandr Bezdieniezhnykh 433e080a07 [AZ-171] Enable dynamic batch size for ONNX, TensorRT, and CoreML exports
Made-with: Cursor
2026-03-28 17:25:15 +02:00
Oleksandr Bezdieniezhnykh c1d27c7a47 Update tracker.mdc and autopilot state in documentation
- Added `alwaysApply: true` to `tracker.mdc` to enforce consistent application of rules.
- Updated `_docs/_autopilot_state.md` to reflect the current task status as `in_progress` and adjusted the sub-step to `1 — Gather Feature Description`.

These changes enhance the clarity and consistency of task management and tracking within the project.
2026-03-28 17:02:55 +02:00
Oleksandr Bezdieniezhnykh fb5191a663 Enhance coding guidelines in .cursor/rules/coderule.mdc and .cursor/rules/meta-rule.mdc
- Added a guideline to delete unused files, classes, or functions to prevent dead code accumulation in `coderule.mdc`.
- Introduced a critical thinking guideline in `meta-rule.mdc` to encourage careful evaluation of user inputs and task specifications.

These updates aim to improve code quality and maintainability by promoting the removal of obsolete code and fostering critical assessment of instructions.
2026-03-28 16:58:23 +02:00
Oleksandr Bezdieniezhnykh 1e139d7533 [AZ-165] [AZ-166] [AZ-167] [AZ-168] [AZ-169] Complete refactoring: delete dead augmentation.py, move tasks to done
- Delete src/augmentation.py (dead code with broken processed_dir refs after AZ-168)
- Remove dead Augmentator import from manual_run.py
- Move all 5 refactoring tasks from todo/ to done/
- Update autopilot state: Step 7 Refactor complete, advance to Step 8 New Task
- Strengthen tracker.mdc: NEVER use ADO MCP

Made-with: Cursor
2026-03-28 16:51:14 +02:00
Oleksandr Bezdieniezhnykh cd04f282d0 Enhance coding guidelines in .cursor/rules/coderule.mdc and .cursor/rules/python.mdc
- Added a guideline to place all source code under the `src/` directory in `coderule.mdc`.
- Removed the outdated guideline regarding the `src/` layout in `python.mdc` to streamline project structure.

These updates improve project organization and maintainability by clarifying the structure for source code and project files.
2026-03-28 16:18:03 +02:00
Oleksandr Bezdieniezhnykh a6c6dddcf8 Update batch size in config.test.yaml from 64 to 32 for optimized training performance. 2026-03-28 16:15:06 +02:00
Oleksandr Bezdieniezhnykh 4729b3ad55 Remove outdated image and label test files to streamline test data management 2026-03-28 07:32:56 +02:00
Oleksandr Bezdieniezhnykh 18b88ba9bf Refactor configuration and update test structure for improved clarity
- Updated `.gitignore` to remove committed test fixture data exclusions.
- Increased batch size in `config.test.yaml` from 4 to 128 for training.
- Simplified directory structure in `config.yaml` by removing unnecessary data paths.
- Adjusted paths in `augmentation.py`, `dataset-visualiser.py`, and `exports.py` to align with the new configuration structure.
- Enhanced `annotation_queue_handler.py` to utilize the updated configuration for directory management.
- Added CSV logging of test results in `conftest.py` for better test reporting.

These changes streamline the configuration management and enhance the testing framework, ensuring better organization and clarity in the project.
2026-03-28 07:32:40 +02:00
Oleksandr Bezdieniezhnykh a47fa135de Update configuration and test structure for improved clarity and functionality
- Modified `.gitignore` to include test fixture data while excluding test results.
- Updated `config.yaml` to change the model from 'yolo11m.yaml' to 'yolo26m.pt'.
- Enhanced `.cursor/rules/coderule.mdc` with additional guidelines for test environment consistency and infrastructure handling.
- Revised autopilot state management in `_docs/_autopilot_state.md` to reflect current progress and tasks.
- Removed outdated augmentation tests and adjusted dataset formation tests to align with the new structure.

These changes streamline the configuration and testing processes, ensuring better organization and clarity in the project.
2026-03-28 06:11:55 +02:00
Oleksandr Bezdieniezhnykh cdcd1f6ea7 Fix .cursor skills consistency: flow resolution, tracker-agnostic refs, report naming, error recovery
- Rewrite autopilot flow resolution to 4 deterministic rules based on source code + docs + state file presence
- Replace all hard-coded Jira references with tracker-agnostic terminology across 30+ files
- Move project-management.mdc to _project.md (project-specific, not portable with .cursor)
- Rename FINAL_implementation_report.md to context-dependent names (implementation_report_tests/features/refactor)
- Remove "acknowledged tech debt" option from test-run — failing tests must be fixed or removed
- Add debug/error recovery protocol to protocols.md
- Align directory paths: metrics -> 06_metrics/, add 05_security/, reviews/, 02_task_plans/ to README
- Add missing skills (test-spec, test-run, new-task, ui-design) to README
- Use language-appropriate comment syntax for Arrange/Act/Assert in coderule + testing rules
- Copy updated coderule.mdc to parent suite/.cursor/rules/
- Raise max task complexity from 5 to 8 points in decompose
- Skip test-spec Phase 4 (script generation) during planning context
- Document per-batch vs post-implement test run as intentional
- Add skill-internal state cross-check rule to state.md
2026-03-28 02:34:00 +02:00
Oleksandr Bezdieniezhnykh cbf370c765 Refactor task management structure and update documentation
- Changed the directory structure for task specifications to include a dedicated `todo/` folder within `_docs/02_tasks/` for tasks ready for implementation.
- Updated references in various skills and documentation to reflect the new task lifecycle, including changes in the `implementer` and `decompose` skills.
- Enhanced the README and flow documentation to clarify the new task organization and its implications for the implementation process.

These updates improve task management clarity and streamline the implementation workflow.
2026-03-28 01:17:45 +02:00
Oleksandr Bezdieniezhnykh 8c665bd0a4 Enhance Docker suitability assessment and update test execution guidelines
- Updated SKILL.md for test-run to clarify the use of Docker and added a Docker Suitability Check to ensure proper execution environment.
- Revised SKILL.md for test-spec to include a detailed Docker Suitability Assessment, outlining disqualifying factors and decision-making steps for test execution.
- Adjusted the autopilot state to reflect the current status of test execution as in_progress.

These changes improve the clarity and reliability of the testing process, ensuring that users are informed of potential constraints when using Docker.
2026-03-28 01:04:11 +02:00
Oleksandr Bezdieniezhnykh 243b69656b Update test results directory structure and enhance Docker configurations
- Modified `.gitignore` to reflect the new path for test results.
- Updated `docker-compose.test.yml` to mount the correct test results directory.
- Adjusted `Dockerfile.test` to set the `PYTHONPATH` and ensure test results are saved in the updated location.
- Added `boto3` and `netron` to `requirements-test.txt` to support new functionalities.
- Updated `pytest.ini` to include the new `pythonpath` for test discovery.

These changes streamline the testing process and ensure compatibility with the updated directory structure.
2026-03-28 00:13:08 +02:00
Oleksandr Bezdieniezhnykh c20018745b Add core functionality for API client, CDN management, and data augmentation
- Introduced `ApiClient` for handling API interactions, including file uploads and downloads.
- Implemented `CDNManager` for managing CDN operations with AWS S3.
- Added `Augmentator` class for image augmentation, including bounding box corrections and transformations.
- Created utility functions for annotation conversion and dataset visualization.
- Established a new rules file for sound notifications during human input requests.

These additions enhance the system's capabilities for data handling and user interaction, laying the groundwork for future features.

Simplify autopilot state file to minimal current-step pointer; add execution safety rule to cursor-meta; remove Completed Steps/Key Decisions/Retry Log/Blockers from state template and all references.
2026-03-28 00:12:54 +02:00
Oleksandr Bezdieniezhnykh 142c6c4de8 Refactor constants management to use Pydantic BaseModel for configuration
- Replaced module-level path variables in constants.py with a structured Pydantic Config class.
- Updated all relevant modules (train.py, augmentation.py, exports.py, dataset-visualiser.py, manual_run.py) to access paths through the new config structure.
- Fixed bugs related to image processing and model saving.
- Enhanced test infrastructure to accommodate the new configuration approach.

This refactor improves code maintainability and clarity by centralizing configuration management.
2026-03-27 18:18:30 +02:00
Oleksandr Bezdieniezhnykh b68c07b540 [AZ-151] Complete test implementation: 12 tasks, 76 tests, final report
Made-with: Cursor
2026-03-26 23:24:42 +02:00
Oleksandr Bezdieniezhnykh 462a4826e8 [AZ-161] [AZ-162] [AZ-163] Add ONNX inference, NMS, annotation queue tests
Made-with: Cursor
2026-03-26 23:23:42 +02:00
Oleksandr Bezdieniezhnykh 0841e095c8 [AZ-154] [AZ-157] [AZ-159] [AZ-160] Add augmentation nonfunc, encryption, annotation class, hardware hash tests
Made-with: Cursor
2026-03-26 23:21:05 +02:00
Oleksandr Bezdieniezhnykh 41552c5699 [AZ-153] [AZ-155] [AZ-156] [AZ-158] Add augmentation, dataset formation, label validation, model split tests
Made-with: Cursor
2026-03-26 23:18:17 +02:00
Oleksandr Bezdieniezhnykh 66fe1cc918 [AZ-152] Add test infrastructure: pytest conftest, fixtures, constants patching
Made-with: Cursor
2026-03-26 23:09:42 +02:00
Oleksandr Bezdieniezhnykh 8db19cc60a Add .cursor AI autodevelopment harness (agents, skills, rules)
Made-with: Cursor
2026-03-26 01:06:54 +02:00
Oleksandr Bezdieniezhnykh 1522c83b76 fix offset.yaml in annotation-queue 2026-03-15 19:59:54 +02:00
Alex Bezdieniezhnykh b59392b78b safe model saving 2025-05-31 19:09:42 +03:00
Alex Bezdieniezhnykh c9f2c167e2 fix manual 2025-05-31 19:04:16 +03:00
Alex Bezdieniezhnykh 44c9e87bd4 remove unnecessary middle epochs 2025-05-31 19:02:57 +03:00
Alex Bezdieniezhnykh 80c2433141 manual_run polishing 2025-05-31 18:42:26 +03:00
Alex Bezdieniezhnykh 538dc8efa9 train is ready
manual_run reuses train's export
add current_model to constants
2025-05-31 18:41:10 +03:00
Alex Bezdieniezhnykh 0bd5bd6d27 uncommenting 2025-05-31 18:12:52 +03:00
Alex Bezdieniezhnykh 41d62ffc35 add onnx module to requirements 2025-05-31 18:10:54 +03:00
Alex Bezdieniezhnykh c0a671a60b fixes, hash fix 2025-05-31 18:06:14 +03:00
Alex Bezdieniezhnykh 8f3059be0c exist ok 2025-05-31 17:53:25 +03:00
Alex Bezdieniezhnykh 06878e7656 make hardware_service works on linux 2025-05-31 17:47:58 +03:00
zxsanny 93e081c93d put test folders to config.yaml for queue 2025-05-31 15:10:14 +03:00
Alex Bezdieniezhnykh 6e5153ffb7 prepare train.py to automated training
set cryptography lib to the certain version
add manual_run for manual operations, right now it is onnx conversion and upload
2025-05-31 14:50:58 +03:00
Alex Bezdieniezhnykh 6352cdcdda log to console as well 2025-05-22 17:17:55 +03:00
zxsanny 5992f3966c fix requirements and run.sh 2025-05-22 17:17:23 +03:00
Alex Bezdieniezhnykh da5b10a278 fix .gitignore 2025-05-22 17:07:18 +03:00
zxsanny 5b90320e27 train fixes merge 2025-05-22 17:02:24 +03:00
Alex Bezdieniezhnykh ce29d7fc58 move annotation_queue_handler to a separate repository 2025-05-22 16:50:59 +03:00
Alex Bezdieniezhnykh eecc11b1e5 queue handler done 2025-05-22 02:15:21 +03:00
zxsanny 8fb24384db add resume training possibility 2025-05-19 18:32:41 +03:00
zxsanny 96056f53ad remove fog and shadow augmentations
add install script
2025-05-19 08:30:25 +03:00
zxsanny 292809593c refactor augmentation to class, update classes.json, fix small bugs 2025-05-15 06:45:25 +03:00
Alex Bezdieniezhnykh fd4cd75265 conversion to model with batch 4 is DONE 2025-04-24 16:24:15 +03:00