Commit Graph

466 Commits

Author SHA1 Message Date
Oleksandr Bezdieniezhnykh cfca9efb24 [no-ticket] Sync .cursor with suite root
ci/woodpecker/push/build-arm Pipeline was successful
Bring this repo's .cursor/ in line with the suite monorepo root .cursor/
so rules, skills, and autodev artifacts stay consistent across
submodules and sibling repos.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 13:11:00 +03:00
Oleksandr Bezdieniezhnykh cf632d9e2e [AZ-563] Decompose blackbox tests into AZ-564..574 task specs
Step 5 of autodev existing-code flow. Epic AZ-563 plus 11 atomic
tasks covering all 67 test scenarios from
_docs/02_document/tests/* exactly once:

- AZ-564 test infrastructure (xUnit + Docker + mock JWKS + dataseed)
- AZ-565..568 functional positive (FT-P-01..22)
- AZ-569..570 functional negative (FT-N-01..16)
- AZ-571 security (NFT-SEC-01..10)
- AZ-572 resilience (NFT-RES-01..06)
- AZ-573 resource limits (NFT-RES-LIM-01..06)
- AZ-574 performance (NFT-PERF-*)

_dependencies_table.md records the cross-check vs traceability
matrix (22 + 16 + 29 = 67 scenarios, no overlaps, no gaps; deferred
items remain deferred per matrix). All task headers carry their
Jira IDs (tracker: jira). Autodev state advanced to Step 6
(Implement Tests).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 21:13:53 +03:00
Oleksandr Bezdieniezhnykh 637f41c51c [AZ-560] [AZ-561] [AZ-562] Replay tracker leftovers for testability epic
Atlassian MCP came back online; per tracker.mdc Leftovers Mechanism
the deferred Jira writes for the testability refactor have been
replayed:

  - Epic AZ-560 created — 01-testability-refactoring (annotations)
  - Task AZ-561 created — JWKS HTTPS env gate (was C01, 1 pt)
  - Task AZ-562 created — RabbitMQ host DNS resolution (C02, 2 pt)

Both tasks linked to epic AZ-560 with status To Do and full
descriptions matching the in-tree task specs. The implementation
code (commit 90d48cf) and verification (commit d7d1c0e) predate
these tickets — the tickets are after-the-fact tracker hygiene.

File housekeeping:
  - Renamed _docs/02_tasks/done/01_*.md -> AZ-561_*.md and updated
    the Task / Tracker / Epic headers inside.
  - Renamed _docs/02_tasks/done/02_*.md -> AZ-562_*.md and updated
    the Task / Tracker / Epic headers inside.
  - _docs/02_tasks/_dependencies_table.md rewritten to reference
    the assigned Jira IDs and the completed-batch status.
  - _docs/_autodev_state.md: tracker mode flipped from `local` to
    `jira` now that all pending writes succeeded.
  - Deleted _docs/_process_leftovers/2026-05-14_testability-tracker.md
    (replay complete; nothing left to defer).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 20:42:30 +03:00
Oleksandr Bezdieniezhnykh d7d1c0ed6a [AZ-PENDING-1] [AZ-PENDING-2] Step 4 close-out: verification + docs
Phase 6 smoke (Docker, _docs/04_refactoring/01-testability-refactoring/
smoke-compose.yml):
  - Annotations app boots clean under ASPNETCORE_ENVIRONMENT=E2ETest.
  - /health 200 OK; /annotations with bearer returns 401 with the
    JWT library's own malformed-token rejection.
  - 0 IDX20108 occurrences in logs (C01 verified).
  - 0 IPAddress.Parse FormatException occurrences; FailsafeProducer
    reaches the broker via Docker DNS (C02 verified).
  - Full smoke report in verification.md.

Phase 7 docs:
  - architecture.md: retire Open Risks §6 (testability blocker
    resolved). Update the constraints block to describe the
    ASPNETCORE_ENVIRONMENT-gated RequireHttps behavior.
  - components/06_platform/description.md: one-liner on JwtExtensions
    JWKS gating.
  - components/02_annotations-realtime-sync/description.md: one-liner
    on FailsafeProducer host resolution accepting literal IP or DNS.
  - tests/test-data.md: refresh the JWKS URL configuration section to
    point at the resolved implementation instead of the open risk.

Task housekeeping:
  - _docs/02_tasks/todo/01_*.md -> done/
  - _docs/02_tasks/todo/02_*.md -> done/
  - _docs/_autodev_state.md: advance to Step 5 (Refactor Backlog Triage).

Tracker IDs remain placeholders pending Atlassian MCP availability —
real IDs to be assigned per
_docs/_process_leftovers/2026-05-14_testability-tracker.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 20:38:14 +03:00
Oleksandr Bezdieniezhnykh 90d48cf3c0 [AZ-PENDING-1] [AZ-PENDING-2] Testability fixes: JWKS gate + RMQ DNS
C01 (JWKS HTTPS env gate, src/Auth/JwtExtensions.cs)
  Gate HttpDocumentRetriever.RequireHttps on
  ASPNETCORE_ENVIRONMENT != "E2ETest" (case-insensitive). HTTPS is
  still enforced for Development, Staging, Production, and any
  unset value. Test harness can now serve JWKS over plain HTTP via
  the mock issuer documented in _docs/02_document/tests/environment.md.

C02 (RabbitMQ host DNS resolution, src/Services/FailsafeProducer.cs)
  Resolve RABBITMQ_HOST via DNS when the value is not a literal IP.
  Adds ResolveHostAddress(host, ct) helper that uses
  IPAddress.TryParse first, then Dns.GetHostAddressesAsync. Fixes
  a latent production bug (operators using a DNS hostname like
  "rabbitmq" or "broker.internal" got a FormatException at startup)
  and unblocks the e2e Docker test harness where the broker is
  reachable only via service-name DNS.

Review report: _docs/03_implementation/reviews/batch_01_review.md
  Verdict PASS_WITH_WARNINGS (1 Low/Maintainability finding,
  documented as deferred to Step 8 hardening).

Tracker IDs are placeholders — Jira MCP unavailable. Real IDs to be
assigned per _docs/_process_leftovers/2026-05-14_testability-tracker.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 20:24:30 +03:00
Oleksandr Bezdieniezhnykh 13e9731a8f docs: Step 4 testability refactor — list-of-changes + 2 task specs
autodev existing-code Step 4 (Code Testability Revision) — invoked
refactor skill in guided mode. Phase 0 (baseline) + Phase 1 (discovery
+ validation) + Phase 2 (analysis + task decomposition) artifacts.

list-of-changes.md identifies two surgical fixes required before the
67-scenario blackbox suite (already specified in _docs/02_document/
tests/) can run against the SUT:

  C01 — env-gate JWKS RequireHttps on ASPNETCORE_ENVIRONMENT=E2ETest
       (architecture.md Open Risks Section 6 prescribes this; the
       mock issuer in e2e/docker-compose.test.yml serves plain HTTP)

  C02 — DNS-resolve RABBITMQ_HOST in FailsafeProducer.ProcessQueue
       (IPAddress.Parse currently throws on every drain cycle when
       host is a service name; latent production-relevant bug, not
       just a test-env issue)

Two task specs in _docs/02_tasks/todo/ (3 story points total).
Independent — no inter-task dependency.

Tracker: local — Atlassian MCP reported errored at task-creation
time. Deferred Jira writes (epic + 2 tickets) recorded in
_docs/_process_leftovers/2026-05-14_testability-tracker.md for
replay when MCP is restored.

Items explicitly deferred to Step 8 Refactor are enumerated in
list-of-changes.md "Deferred to Step 8 Refactor" — including the
FailsafeProducer static helper (F3), the JWKS GetAwaiter().GetResult()
hot path, RB-05/06/08 backlog items, and the MediaService ffprobe
empty-catch.

State: Step 4 in_progress, sub_step 3 (phase-2-task-decomposition).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 20:19:27 +03:00
Oleksandr Bezdieniezhnykh 03f879206e docs+src: complete Steps 1-3 outcomes + auth re-sync baseline
This commit captures everything produced during autodev existing-code
Steps 1 (Document), 2 (Architecture Baseline Scan), and 3 (Test Spec),
together with the targeted auth + CORS re-sync triggered on 2026-05-14
when codebase drift was detected at Step 4 entry. None of this work was
previously committed.

Step 1 (Document) — 50+ _docs/02_document/ files: problem, solution,
architecture, system flows, glossary, module-layout, per-component
specs (01..06), modules, deployment, diagrams, data model, FINAL
report, verification log, discovery.

Step 2 (Architecture Baseline) — architecture_compliance_baseline.md.
Verdict PASS_WITH_WARNINGS (0 Critical, 0 High, 1 Medium, 2 Low). No
High/Critical findings; auto-chained to Step 3 per existing-code flow.

Step 3 (Test Spec) — _docs/02_document/tests/* (67 scenarios across
blackbox, security, resilience, resource-limit, performance), plus
e2e/docker-compose.test.yml, e2e/seed/run.sh, scripts/run-tests.sh,
scripts/run-performance-tests.sh. Coverage 88% over the active scope
(40 of 45 items covered, 6 RB-deferred, 5 documented-as-uncovered).

Targeted auth + CORS re-sync — replaces the deleted in-house token
issuer with a JWKS-verifier model. AuthController and TokenService
removed; JwtExtensions switched from HS256 symmetric to ES256 over
admin's JWKS. ConfigurationResolver and CorsConfigurationValidator
added under src/Infrastructure/. ADR-002 and ADR-006 retired; SEC-01,
SEC-02, SEC-03 marked Closed. One new testability risk recorded in
architecture.md Open Risks Section 6 (JWKS HTTPS gating).

Source changes:
- src/Auth/JwtExtensions.cs (modified) — ES256, JWKS, alg pinning
- src/Program.cs (modified) — DI wiring for ConfigurationResolver
  and CorsConfigurationValidator
- src/Controllers/AuthController.cs (deleted) — no in-service issuance
- src/Services/TokenService.cs (deleted) — same
- src/Infrastructure/ConfigurationResolver.cs (new)
- src/Infrastructure/CorsConfigurationValidator.cs (new)
- .env.example (new) — required env var documentation
- .gitignore (updated)

Cross-repo coordination: _docs/cross-repo/flights_h1_h2_h3_change_spec
captures the change-spec for downstream services that consumed the now
deleted /auth endpoints.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 20:19:05 +03:00
Oleksandr Bezdieniezhnykh 08eadc1158 chore: update autodev documentation for parent suite integration
Enhanced the protocols and state documentation to include references to parent suite documentation, specifying how to handle the existence of a parent `docs` directory. Updated the README to direct users to the unified suite documentation.
2026-05-14 05:28:44 +03:00
Oleksandr Bezdieniezhnykh 49fa340e9c chore: sync .cursor from suite
ci/woodpecker/push/build-arm Pipeline was successful
2026-05-09 05:18:08 +03:00
Oleksandr Bezdieniezhnykh 6ca4076aa3 chore: sync .cursor from suite
ci/woodpecker/push/build-arm Pipeline was successful
2026-05-05 01:08:45 +03:00
Oleksandr Bezdieniezhnykh 80a7e50003 chore: sync .cursor skills from suite
ci/woodpecker/push/build-arm Pipeline was successful
2026-05-03 17:43:23 +03:00
Oleksandr Bezdieniezhnykh f6c18b01da chore: sync .cursor skills from suite
ci/woodpecker/push/build-arm Pipeline was successful
2026-04-29 17:03:55 +03:00
Oleksandr Bezdieniezhnykh a246a7b676 chore: sync .cursor from suite
ci/woodpecker/push/build-arm Pipeline was successful
Made-with: Cursor
2026-04-25 19:44:32 +03:00
Oleksandr Bezdieniezhnykh 6de692991a Update Woodpecker CI configuration for Docker login and image tagging
ci/woodpecker/manual/build-arm Pipeline was successful
Replaced HARBOR_USER and HARBOR_TOKEN with REGISTRY_USER and REGISTRY_TOKEN for improved clarity. Adjusted Docker login command and updated image tagging to include the 'azaion' namespace in the registry path.
2026-04-21 20:32:33 +03:00
Oleksandr Bezdieniezhnykh 3c0dff07a8 [AZ-205] Authenticate to Harbor before pushing build images
Add HARBOR_USER/HARBOR_TOKEN from Woodpecker secrets and a docker login
step before the existing build/push, so pipelines can push to the new
TLS-authenticated Harbor registry.
2026-04-20 04:10:42 +03:00
Oleksandr Bezdieniezhnykh 8823bd7823 [AZ-204] OCI revision labels + AZAION_REVISION env
Made-with: Cursor
2026-04-20 03:58:46 +03:00
Oleksandr Bezdieniezhnykh 2cb2e61bb1 [AZ-203] Parameterize registry host via REGISTRY_HOST secret
Pipeline reads $REGISTRY_HOST from the Woodpecker global secret
'registry_host' instead of hardcoding 'localhost:5000'. The full
host:port lives in the secret, so Harbor migration (AZ-205) becomes
one secret edit rather than editing every submodule pipeline.

Made-with: Cursor
2026-04-20 03:49:20 +03:00
Oleksandr Bezdieniezhnykh e9c42e4888 Sync .cursor from suite (autodev orchestrator + monorepo skills) 2026-04-18 22:03:57 +03:00
Oleksandr Bezdieniezhnykh d530c45bf1 Refine coding standards and testing rules
- Updated coding standards to emphasize readability, meaningful comments, and maintainability.
- Adjusted test coverage thresholds to 75% for business logic and clarified requirements for test scenarios.
- Enhanced guidelines for handling skipped tests, emphasizing the need for investigation and resolution.
- Introduced a completeness audit for decomposition in research steps to ensure thoroughness in addressing problem dimensions.

Made-with: Cursor
2026-04-17 20:28:01 +03:00
Oleksandr Bezdieniezhnykh 8c20809a4c Allow manual CI builds
ci/woodpecker/manual/build-arm Pipeline failed
Made-with: Cursor
2026-04-12 05:41:32 +03:00
Oleksandr Bezdieniezhnykh bb72cbba65 Update Woodpecker CI configuration to trigger builds on push events 2026-04-12 05:11:00 +03:00
Oleksandr Bezdieniezhnykh d818daacd1 Sync .cursor from detections 2026-04-12 05:05:09 +03:00
Oleksandr Bezdieniezhnykh 587b0e3c2d CI: main tag without prefix
Made-with: Cursor
2026-04-12 04:12:02 +03:00
Oleksandr Bezdieniezhnykh ef3797e00e update woodpecker add dev branch
Made-with: Cursor
2026-04-11 20:40:27 +03:00
Oleksandr Bezdieniezhnykh 1144535616 Switch to Woodpecker CI
Made-with: Cursor
2026-04-10 01:28:44 +03:00
Oleksandr Bezdieniezhnykh 45d9fafdf9 Comment out amd64 matrix
Made-with: Cursor
2026-04-09 23:33:14 +03:00
Oleksandr Bezdieniezhnykh 09e2cb901f Remove Woodpecker CI configuration file as multi-architecture support is no longer needed. 2026-04-09 19:51:16 +03:00
Oleksandr Bezdieniezhnykh 9682295bd1 Add multi-architecture support in Woodpecker CI configuration
Introduce a matrix for building on both linux/arm64 and linux/amd64 platforms. Update image tags to include platform-specific identifiers for better versioning.
2026-04-09 13:27:54 +03:00
Oleksandr Bezdieniezhnykh f1e8ab1239 Enhance Dockerfile for multi-architecture compatibility by implementing BUILDPLATFORM and TARGETARCH arguments in the dotnet publish process. 2026-04-08 06:33:16 +03:00
Oleksandr Bezdieniezhnykh a80f90283d Update Dockerfile to support multi-architecture builds by using BUILDPLATFORM and TARGETARCH arguments for dotnet publish 2026-04-06 04:59:58 +03:00
Oleksandr Bezdieniezhnykh 9e7dc290db Refactor annotation tool from WPF desktop app to .NET API
Replace the WPF desktop application (Azaion.Suite, Azaion.Annotator,
Azaion.Common, Azaion.Inference, Azaion.Loader, Azaion.LoaderUI,
Azaion.Dataset, Azaion.Test) with a standalone .NET Web API in src/.

Made-with: Cursor
2026-03-25 04:40:03 +02:00
Oleksandr Bezdieniezhnykh e7ea5a8ded big refactoring. get rid of static properties and coupled architecture. prepare system for integration tests 2025-11-17 13:14:05 +02:00
Oleksandr Bezdieniezhnykh 22529c26ec Revert "add MediaFile"
This reverts commit 47de31307b.
2025-11-17 07:47:53 +02:00
Oleksandr Bezdieniezhnykh 47de31307b add MediaFile 2025-11-17 07:46:11 +02:00
Oleksandr Bezdieniezhnykh fd95d2ba2c add MediaHash. Step1 2025-11-17 07:46:05 +02:00
Oleksandr Bezdieniezhnykh d355f81c63 fix installer version check 2025-10-02 11:22:54 +03:00
Oleksandr Bezdieniezhnykh e090f2d093 bump ImageSharp version vulnerability fix
decouple Loader from Common dll
fix current user url in api
2025-10-02 10:06:45 +03:00
Oleksandr Bezdieniezhnykh 51248edbd3 restrict input for numeric controls
allow input dots
2025-10-01 20:12:30 +03:00
Oleksandr Bezdieniezhnykh 5e226d422d fix textbox keyboard global handling
add CameraConfig to prod json
add launch and tasks jsons to vscode folder
2025-10-01 20:04:45 +03:00
Oleksandr Bezdieniezhnykh 99b9058187 fix saving scale for datasetexplorer and annotation 2025-10-01 14:29:23 +03:00
Oleksandr Bezdieniezhnykh 9b80eaf435 fix get installer url 2025-09-29 18:38:49 +03:00
Oleksandr Bezdieniezhnykh 429b39ee32 show filename for dataset explorer view 2025-09-29 17:52:00 +03:00
Oleksandr Bezdieniezhnykh 3a6ed60ea0 fix dataset explorer view 2025-09-29 17:37:34 +03:00
Oleksandr Bezdieniezhnykh 5500bda6ce refine module exclusions in azaion-loader-safe.spec to reduce false positives 2025-09-24 14:40:08 +03:00
Oleksandr Bezdieniezhnykh 9e25110016 address false positive vulnerability detection #1.1 2025-09-24 14:16:48 +03:00
Oleksandr Bezdieniezhnykh 7311f08884 address false positive vulnerability detection #1 2025-09-24 14:08:36 +03:00
Oleksandr Bezdieniezhnykh 2ee85d2e64 check installer correctly 2025-09-23 17:35:03 +03:00
Oleksandr Bezdieniezhnykh e501279b91 fix pyinstaller version 2025-09-23 14:36:10 +03:00
Oleksandr Bezdieniezhnykh 0549c2de7e Revert "do not use Loader to check creds"
This reverts commit 1d32c224ba.
2025-09-23 14:34:02 +03:00
Oleksandr Bezdieniezhnykh 1d32c224ba do not use Loader to check creds 2025-09-23 14:03:05 +03:00