docs: define project scope, requirements, and architecture overview

This commit is contained in:
kiskaadee committed 2026-05-30 13:15:24 -05:00
1 parent 657afe1404
commit 25b42a7bd2
5 files changed
+133 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2026 kiskaadee
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the Software), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+19 -1
View File
@@ -1 +1,19 @@
# gatos-tejada
# Novias del Gato: Digital Ecosystem for Cali's Public Art
"Novias del Gato" is an interactive digital platform designed to manage and explore the famous cat sculptures of Santiago de Cali, Colombia. By combining geographic precision with community-driven data, the project ensures that both tourists and locals can reliably find, "capture," and learn about these iconic urban landmarks.
## Key Features
* **Dynamic Mapping:** Real-time tracking of cat sculpture locations.
* **Visual Check-ins:** Unlock cultural content by photographing sculptures on-site.
* **Crowdsourced Accuracy:** A collaborative engine to report moved or missing sculptures.
* **API-First Design:** Built for scalability and integration with city services.
## Documentation
Explore the detailed project documentation:
1. [**Project Concept**](docs/01_concept.md): Vision, problem statement, and user stories.
2. [**Technical Architecture**](docs/02_architecture.md): Requirements, tech stack, and service breakdown.
3. [**Roadmap**](docs/03_roadmap.md): Implementation phases and milestones.
---
*This project is part of a digital revitalization effort for the public art of Cali, Colombia.*
+20
View File
@@ -0,0 +1,20 @@
# Project Concept: Novias del Gato
## Introduction & Problem Statement
Since 1996, Hernando Tejada's "El Gato del Río" (The River Cat) has been a symbolic landmark in Cali, Colombia. In 2006, the project expanded with the arrival of the first fifteen "Novias del Gato" (The Cat's Brides) – a series of cat sculptures designed to accompany the bronze feline. By early 2026, this collection has grown into an "urban feline empire" of 38 sculptures distributed across the city.
However, this expansion has created a technical challenge: **data fragmentation and obsolescence.** Unlike traditional static monuments, these Cat Sculptures are dynamic; they are frequently relocated for maintenance or urban planning, and new pieces are added periodically. Currently, their exact locations often depend on informal or outdated sources, leading to a frustrating experience for tourists and citizens alike.
## The Proposal: A Geographic Oracle
This project proposes a digital platform designed to manage a real-time ecosystem of geographic and cultural data. The application bridges the gap between static art and dynamic urban life through:
1. **API-First Architecture:** A decoupled backend ensuring data can be consumed by web, mobile, and smart-city services.
2. **Collaborative Consensus Engine:** A validation system where sculpture locations are updated via citizen reports, processed through a trust algorithm.
3. **Visual Check-ins:** Using geolocation and image recognition to "unlock" historical and multimedia content, encouraging physical exploration.
4. **Collective Memory Repository:** A space for historical context, urban sounds, and curated narratives.
## User Stories (MVP)
* **As an Explorer:** I want to see a map with validated locations of the cats so I can plan my route without finding empty pedestals.
* **As a Contributor:** I want to report that a cat has been moved or is under maintenance by sending a photo and my location to keep the catalog updated.
* **As a Collector:** I want to "capture" a cat using my mobile camera (Visual Check-in) to unlock its technical details and track my progress.
* **As a Moderator:** I want to review disputed reports to confirm location changes when the consensus algorithm is inconclusive.
+49
View File
@@ -0,0 +1,49 @@
# Technical Architecture: Novias del Gato
## Requirements
### Functional Requirements
* **Dynamic Geolocation:** Interactive map showing Points of Interest (POI) with availability states: *On-Site*, *Moved*, or *Missing*.
* **Hybrid Reporting System:** Interface to capture GPS coordinates and image metadata when reporting a sighting.
* **Visual Validation Engine:** Comparison of image embeddings to ensure the photographed object is indeed the selected sculpture.
* **Personal Catalog:** Persistence layer tracking which sculptures each unique user has visited, unlocking cultural content.
### Non-Functional Requirements
* **Geographic Integrity (PostGIS):** Precision within 10 meters for proximity queries.
* **API-First Methodology:** All business logic must reside in endpoints documented via OpenAPI.
* **Recognition Latency:** Validation of image and location must not exceed 3 seconds.
* **Basic Offline Availability:** Allow users to record sightings in low-signal areas and sync when connectivity returns.
## Tech Stack
* **API / Contract:** OpenAPI (Swagger).
* **Database:** PostgreSQL + PostGIS (Spatial data).
* **Vector Search Engine:** `pgvector` (PostgreSQL extension) for storing and comparing image embeddings.
* **Backend:** Python (FastAPI) for high-performance concurrency and vision model integration.
* **Identity (Auth):** Google OAuth + JWT.
* **Frontend:** Next.js (PWA) using WebXR/Camera APIs for the Visual Check-in experience.
* **Infrastructure:** Docker / Modular Monolith.
## Logical Services
### 1. Identity & Profile Service
Manages user lifecycle, SSO, and the `trust_score` used by the reputation engine.
### 2. Integrity & Reputation Engine
Filters malicious traffic and spoofing. Performs **Velocity Checks** (time/distance deltas) and calculates user voting weight.
### 3. Hybrid Recognition Service
Validates "Check-ins" by comparing image vectors and GPS proximity using a `similarity_threshold`.
### 4. Interaction & Collection Service
Manages the many-to-many relationship between users and sculptures (unlocked achievements).
### 5. Crowdsourcing & Ticket Service
Manages asynchronous reports (Tickets) for moved or missing sculptures.
### 6. Location Tracker Service (The Oracle)
The final consumer of corroborated reports. Updates the "Single Source of Truth" (SSOT) for sculpture locations using a **Weighted Voting Algorithm**.
## Architecture Decision Records (ADR)
* **Separation of Check-in vs. Ticket:** Allows the system to be usable even with incorrect location data, fostering community correction without blocking the fun.
* **Single Database (pgvector + PostGIS):** Reduces network latency and synchronization complexity between spatial and vector data.
* **PWA Priority:** Chosen for immediate access (QR/URL) over the friction of app store downloads, especially for tourists.
+23
View File
@@ -0,0 +1,23 @@
# Project Roadmap: Novias del Gato
The project lifecycle is divided into five critical phases, prioritizing backend stability and cultural content quality.
## Phase 1: Strategic Definition & Impact
* **Goal:** Establish technical success criteria and engagement metrics.
* **Deliverables:** Final requirements document, "Non-Goals" definition, and initial selection of the 15 original sculptures for the visual recognition dataset.
## Phase 2: API Design & OpenAPI Contracts
* **Goal:** Create the "Single Source of Truth" (SSOT) via API contracts.
* **Deliverables:** Complete OpenAPI documentation, Mock servers for frontend/UI parallel work, and relational/spatial database schemas.
## Phase 3: Core Infrastructure & Consensus Engine
* **Goal:** Build the system's brain.
* **Deliverables:** PostgreSQL implementation (PostGIS + `pgvector`), Weighted Voting Algorithm logic for mobile location tracking, and report processing services.
## Phase 4: Interaction Layer & Visual Check-ins
* **Goal:** Implement the user experience and cultural content.
* **Deliverables:** PWA user interface, Visual Check-in logic (image matching), and "unlockable" cultural assets.
## Phase 5: Audit & Launch
* **Goal:** Ensure resilience against spoofing and traffic loads.
* **Deliverables:** Load testing (simulating concurrent users at Cali's "Bulevar del Río"), data accuracy audit, and a controlled Beta launch for a 50-user focus group.