fix: Face processor now saves status and total_faces to face.json
This commit is contained in:
@@ -0,0 +1,112 @@
|
||||
---
|
||||
title: Document Path Conventions
|
||||
version: 1.0
|
||||
date: 2026-09-22
|
||||
author: Core Team
|
||||
status: Active
|
||||
---
|
||||
|
||||
# Document Path Conventions
|
||||
|
||||
## Rule: Always Use Absolute Paths
|
||||
|
||||
**All document references to files MUST use absolute paths.**
|
||||
|
||||
### Examples
|
||||
|
||||
**Correct** ✅:
|
||||
```markdown
|
||||
File: `/Users/accusys/momentry_core/src/api/scan.rs`
|
||||
Location: `/Users/accusys/momentry_core/src/core/processor/vlm_summary.rs`
|
||||
Script: `/Users/accusys/momentry_core/test_timestamp_api.sh`
|
||||
```
|
||||
|
||||
**Incorrect** ❌:
|
||||
```markdown
|
||||
File: `src/api/scan.rs`
|
||||
Location: `src/core/processor/vlm_summary.rs`
|
||||
Script: `test_timestamp_api.sh`
|
||||
```
|
||||
|
||||
## Why Absolute Paths?
|
||||
|
||||
1. **Clarity**: No ambiguity about file location
|
||||
2. **Copy-paste friendly**: Works immediately in terminal
|
||||
3. **Cross-reference**: Other docs can reference without context
|
||||
4. **Tool support**: IDEs and tools can resolve correctly
|
||||
|
||||
## When to Use Absolute Paths
|
||||
|
||||
| Context | Requirement |
|
||||
|---------|-------------|
|
||||
| Source code files | ✅ Always absolute |
|
||||
| Script files | ✅ Always absolute |
|
||||
| Config files | ✅ Always absolute |
|
||||
| Output files | ✅ Always absolute |
|
||||
| Delivery documents | ✅ Always absolute |
|
||||
| M4 workspace documents | ✅ Always absolute |
|
||||
| Database tables | ⚠️ Use `schema::table_name()` convention |
|
||||
| API endpoints | ✅ Use full URL with base |
|
||||
|
||||
## Format
|
||||
|
||||
### Source Code
|
||||
```markdown
|
||||
**File**: `/Users/accusys/momentry_core/src/module/file.rs`
|
||||
```
|
||||
|
||||
### Scripts
|
||||
```markdown
|
||||
**Script**: `/Users/accusys/momentry_core/scripts/process.sh`
|
||||
```
|
||||
|
||||
### Config Files
|
||||
```markdown
|
||||
**Config**: `/Users/accusys/momentry_core/.env`
|
||||
```
|
||||
|
||||
### Output Files
|
||||
```markdown
|
||||
**Output**: `/Users/accusys/momentry/output/{uuid}.scenes.json`
|
||||
```
|
||||
|
||||
### API Endpoints
|
||||
```markdown
|
||||
**Endpoint**: `GET http://localhost:3002/api/v1/stats/file/{file_uuid}`
|
||||
```
|
||||
|
||||
## Document Types
|
||||
|
||||
| Directory | Purpose |
|
||||
|-----------|---------|
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/API_WORKSPACE/` | API design modules |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/GUIDES/` | User guides (generated) |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/REFERENCE/` | Data models, references |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/DESIGN/` | Architecture, design docs |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/OPERATIONS/` | Deployment, operations |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/INTEGRATIONS/` | External integrations |
|
||||
| `/Users/accusys/momentry_core/docs_v1.0/M4_workspace/` | M4 communications (free-format) |
|
||||
|
||||
## Checklist
|
||||
|
||||
Before committing documentation:
|
||||
|
||||
- [ ] All source code paths are absolute
|
||||
- [ ] All script paths are absolute
|
||||
- [ ] All config file paths are absolute
|
||||
- [ ] No relative paths like `src/...` or `./...`
|
||||
- [ ] Cross-references between docs use full paths
|
||||
|
||||
## Enforcement
|
||||
|
||||
This convention applies to:
|
||||
- All documents in `docs_v1.0/`
|
||||
- Comments in source code
|
||||
- Commit messages
|
||||
- API documentation
|
||||
|
||||
## Version History
|
||||
|
||||
| Version | Date | Changes |
|
||||
|---------|------|---------|
|
||||
| 1.0 | 2026-09-22 | Initial convention established |
|
||||
Reference in New Issue
Block a user