Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .tmp/proof/dashboard-delete-api.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Local fixture data only. SQLite, local Chroma and fixed embeddings; Slack API calls and Socket Mode blocked.
Before dashboard deletion:
$ curl -sS -i http://127.0.0.1:18057/api/documents?limit=20&offset=0
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:22:10 GMT
server: uvicorn
content-length: 445
content-type: application/json

{"items":[{"id":2,"title":"Office hours","source":"fixture docs","created_at":"2026-11-16T10:21:52.115878","content_preview":"The service desk is available from 9am to 5pm, Monday to Friday."},{"id":1,"title":"VPN access guide","source":"fixture docs","created_at":"2026-11-16T10:21:52.045466","content_preview":"Reset VPN access through the IT portal. Contact the service desk if access is still unavailable."}],"total":2,"limit":20,"offset":0}
$ curl -sS -i http://127.0.0.1:18057/api/documents/1
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:22:10 GMT
server: uvicorn
content-length: 252
content-type: application/json

{"id":1,"title":"VPN access guide","content":"Reset VPN access through the IT portal. Contact the service desk if access is still unavailable.","source":"fixture docs","created_at":"2026-11-16T10:21:52.045466","updated_at":"2026-11-16T10:21:52.045472"}
$ ['curl', '-sS', '-i', 'http://127.0.0.1:18057/api/retrieval/preview', '-H', 'Content-Type: application/json', '-d', '{"question":"How do I reset VPN?"}']
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:22:34 GMT
server: uvicorn
content-length: 494
content-type: application/json

{"question":"How do I reset VPN?","channel_id":null,"top_k":5,"max_distance":null,"items":[{"content":"The service desk is available from 9am to 5pm, Monday to Friday.","metadata":{"chunk":0,"document_id":2,"source":"fixture docs","title":"Office hours"},"distance":1521.0},{"content":"Reset VPN access through the IT portal. Contact the service desk if access is still unavailable.","metadata":{"chunk":0,"document_id":1,"source":"fixture docs","title":"VPN access guide"},"distance":5041.0}]}
After dashboard confirmation with fixture fail-delete marker: DELETE returned 503 (see browser request log). Saved record remains readable.
$ curl -sS -i http://127.0.0.1:18057/api/documents/1
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:23:24 GMT
server: uvicorn
content-length: 252
content-type: application/json

{"id":1,"title":"VPN access guide","content":"Reset VPN access through the IT portal. Contact the service desk if access is still unavailable.","source":"fixture docs","created_at":"2026-11-16T10:21:52.045466","updated_at":"2026-11-16T10:21:52.045472"}
After retrying Confirm deletion in the dashboard (fixture outage removed):
$ curl -sS -i http://127.0.0.1:18057/api/documents?limit=20&offset=0
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:23:44 GMT
server: uvicorn
content-length: 226
content-type: application/json

{"items":[{"id":2,"title":"Office hours","source":"fixture docs","created_at":"2026-11-16T10:21:52.115878","content_preview":"The service desk is available from 9am to 5pm, Monday to Friday."}],"total":1,"limit":20,"offset":0}
$ curl -sS -i http://127.0.0.1:18057/api/documents/1
HTTP/1.1 404 Not Found
date: Mon, 16 Nov 2026 10:23:44 GMT
server: uvicorn
content-length: 31
content-type: application/json

{"detail":"Document not found"}
$ curl -sS -i http://127.0.0.1:18057/api/documents/2
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:23:44 GMT
server: uvicorn
content-length: 216
content-type: application/json

{"id":2,"title":"Office hours","content":"The service desk is available from 9am to 5pm, Monday to Friday.","source":"fixture docs","created_at":"2026-11-16T10:21:52.115878","updated_at":"2026-11-16T10:21:52.115881"}
$ ['curl', '-sS', '-i', 'http://127.0.0.1:18057/api/retrieval/preview', '-H', 'Content-Type: application/json', '-d', '{"question":"How do I reset VPN?"}']
HTTP/1.1 200 OK
date: Mon, 16 Nov 2026 10:23:44 GMT
server: uvicorn
content-length: 275
content-type: application/json

{"question":"How do I reset VPN?","channel_id":null,"top_k":5,"max_distance":null,"items":[{"content":"The service desk is available from 9am to 5pm, Monday to Friday.","metadata":{"chunk":0,"document_id":2,"source":"fixture docs","title":"Office hours"},"distance":1521.0}]}
Assertions passed: only document 2 remains saved and retrievable. Raw distances use fixed fixture vectors and do not measure production relevance.
59 changes: 59 additions & 0 deletions .tmp/proof/dashboard-delete-backend-start.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[dev-backend] $ uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 18…
/Users/johnny/.paseo/worktrees/0x03bguv/peaceful-whale/.tmp/offline-dashboard-delete/sitecustomize.py:39: LangChainDeprecationWarning: The class `Chroma` was deprecated in LangChain 0.2.9 and will be removed in 1.0. An updated version of the class exists in the `langchain-chroma package and should be used instead. To use it run `pip install -U `langchain-chroma` and import as `from `langchain_chroma import Chroma``.
vector_store.vector_store = Chroma(
INFO: Will watch for changes in these directories: ['/Users/johnny/.paseo/worktrees/0x03bguv/peaceful-whale/backend']
INFO: Uvicorn running on http://127.0.0.1:18057 (Press CTRL+C to quit)
INFO: Started reloader process [45710] using WatchFiles
/Users/johnny/.paseo/worktrees/0x03bguv/peaceful-whale/.tmp/offline-dashboard-delete/sitecustomize.py:39: LangChainDeprecationWarning: The class `Chroma` was deprecated in LangChain 0.2.9 and will be removed in 1.0. An updated version of the class exists in the `langchain-chroma package and should be used instead. To use it run `pip install -U `langchain-chroma` and import as `from `langchain_chroma import Chroma``.
vector_store.vector_store = Chroma(
/Users/johnny/.paseo/worktrees/0x03bguv/peaceful-whale/.tmp/offline-dashboard-delete/sitecustomize.py:39: LangChainDeprecationWarning: The class `Chroma` was deprecated in LangChain 0.2.9 and will be removed in 1.0. An updated version of the class exists in the `langchain-chroma package and should be used instead. To use it run `pip install -U `langchain-chroma` and import as `from `langchain_chroma import Chroma``.
vector_store.vector_store = Chroma(
INFO: Started server process [45729]
INFO: Waiting for application startup.
{"timestamp": "2026-11-16T10:21:32.220426+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "app.main", "message": "Starting Wingman backend...", "event_type": "log", "request_id": null, "trace_id": null}
{"timestamp": "2026-11-16T10:21:32.234534+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "app.main", "message": "Database initialized", "event_type": "log", "request_id": null, "trace_id": null}
INFO: Application startup complete.
INFO: 127.0.0.1:55662 - "GET /health HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:21:51.977355+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "8c9c32616c3e456096938959b574932a", "trace_id": "8c9c32616c3e456096938959b574932a", "request_method": "GET", "request_path": "/health", "route": "/health", "status_code": 200, "duration_ms": 3.16, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55667 - "POST /api/documents HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:21:52.102182+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "0ef1cb262eed4c29bcf2cdee05dcf589", "trace_id": "0ef1cb262eed4c29bcf2cdee05dcf589", "request_method": "POST", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 100.1, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55669 - "POST /api/documents HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:21:52.120299+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "ec6ac3c91f1c4ec381fc54a27fd02a1a", "trace_id": "ec6ac3c91f1c4ec381fc54a27fd02a1a", "request_method": "POST", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 4.94, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55735 - "GET /api/documents?limit=20&offset=0 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:11.180480+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "f80e6280bb404f18ab4cbf29ef5d92cd", "trace_id": "f80e6280bb404f18ab4cbf29ef5d92cd", "request_method": "GET", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 29.27, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55736 - "GET /api/documents?limit=20&offset=0 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:11.181765+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "9b3292b8e7744a5a8decd3a4147a2f00", "trace_id": "9b3292b8e7744a5a8decd3a4147a2f00", "request_method": "GET", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 1.55, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55740 - "GET /api/documents?limit=20&offset=0 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:11.621889+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "07c365dfb0204094b09fd731f0620d44", "trace_id": "07c365dfb0204094b09fd731f0620d44", "request_method": "GET", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 2.19, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55741 - "GET /api/documents/1 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:11.645831+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "332ef0a3877e475eb4779618b7380487", "trace_id": "332ef0a3877e475eb4779618b7380487", "request_method": "GET", "request_path": "/api/documents/1", "route": "/api/documents/1", "status_code": 200, "duration_ms": 2.89, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55824 - "GET /api/documents/1 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:21.947560+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "32ed5dfb52964b758167d2c84e343172", "trace_id": "32ed5dfb52964b758167d2c84e343172", "request_method": "GET", "request_path": "/api/documents/1", "route": "/api/documents/1", "status_code": 200, "duration_ms": 2.07, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
{"timestamp": "2026-11-16T10:22:34.681912+00:00", "level": "WARNING", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "chromadb.segment.impl.vector.local_persistent_hnsw", "message": "Number of requested results 5 is greater than number of elements in index 2, updating n_results = 2", "event_type": "log", "request_id": "156aac0401cf4418a5b850519dfe7f6f", "trace_id": "156aac0401cf4418a5b850519dfe7f6f"}
INFO: 127.0.0.1:55855 - "POST /api/retrieval/preview HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:34.685230+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "156aac0401cf4418a5b850519dfe7f6f", "trace_id": "156aac0401cf4418a5b850519dfe7f6f", "request_method": "POST", "request_path": "/api/retrieval/preview", "route": "/api/retrieval/preview", "status_code": 200, "duration_ms": 6.57, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:55974 - "OPTIONS /api/documents/1 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:22:57.910347+00:00", "level": "ERROR", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "app.main", "message": "Deleting saved document 1 failed", "event_type": "log", "request_id": "666ef22b403d4905aff9d7a211e39107", "trace_id": "666ef22b403d4905aff9d7a211e39107", "error_class": "RuntimeError", "error_message": "Fixture Chroma deletion outage", "error_stack_hash": "78e8be9781eb075d"}
INFO: 127.0.0.1:55974 - "DELETE /api/documents/1 HTTP/1.1" 503 Service Unavailable
{"timestamp": "2026-11-16T10:22:57.912094+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "666ef22b403d4905aff9d7a211e39107", "trace_id": "666ef22b403d4905aff9d7a211e39107", "request_method": "DELETE", "request_path": "/api/documents/1", "route": "/api/documents/1", "status_code": 503, "duration_ms": 6.77, "error_class": null, "error_message": null, "sample_reason": "ERROR"}
INFO: 127.0.0.1:56075 - "GET /api/documents/1 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:23:24.808294+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "eaec2398806241b89fdbe5907f57fb87", "trace_id": "eaec2398806241b89fdbe5907f57fb87", "request_method": "GET", "request_path": "/api/documents/1", "route": "/api/documents/1", "status_code": 200, "duration_ms": 2.08, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:56087 - "DELETE /api/documents/1 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:23:25.563519+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "a5c74eba8a7544cea3d9de591630a8ec", "trace_id": "a5c74eba8a7544cea3d9de591630a8ec", "request_method": "DELETE", "request_path": "/api/documents/1", "route": "/api/documents/1", "status_code": 200, "duration_ms": 10.45, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:56087 - "GET /api/documents?limit=20&offset=0 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:23:25.575573+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "cd701f742a364f3a9db6311f6db182c0", "trace_id": "cd701f742a364f3a9db6311f6db182c0", "request_method": "GET", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 5.2, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:56151 - "GET /api/documents?limit=20&offset=0 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:23:45.473032+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "baabca86fb684e5e850d6d54034e6595", "trace_id": "baabca86fb684e5e850d6d54034e6595", "request_method": "GET", "request_path": "/api/documents", "route": "/api/documents", "status_code": 200, "duration_ms": 2.28, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:56152 - "GET /api/documents/1 HTTP/1.1" 404 Not Found
{"timestamp": "2026-11-16T10:23:45.485340+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "f093d34b9b334c6f8bf7bec438cd2a5a", "trace_id": "f093d34b9b334c6f8bf7bec438cd2a5a", "request_method": "GET", "request_path": "/api/documents/1", "route": "/api/documents/1", "status_code": 404, "duration_ms": 1.1, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: 127.0.0.1:56153 - "GET /api/documents/2 HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:23:45.498522+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "550287a7ad3647a39dbe9c41efa19ee6", "trace_id": "550287a7ad3647a39dbe9c41efa19ee6", "request_method": "GET", "request_path": "/api/documents/2", "route": "/api/documents/2", "status_code": 200, "duration_ms": 1.03, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
{"timestamp": "2026-11-16T10:23:45.510444+00:00", "level": "WARNING", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "chromadb.segment.impl.vector.local_persistent_hnsw", "message": "Number of requested results 5 is greater than number of elements in index 1, updating n_results = 1", "event_type": "log", "request_id": "9c2211f72aec4463a40a063e02582e18", "trace_id": "9c2211f72aec4463a40a063e02582e18"}
INFO: 127.0.0.1:56154 - "POST /api/retrieval/preview HTTP/1.1" 200 OK
{"timestamp": "2026-11-16T10:23:45.511866+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "wingman.wide_event", "message": "http_request", "event_type": "http_request", "request_id": "9c2211f72aec4463a40a063e02582e18", "trace_id": "9c2211f72aec4463a40a063e02582e18", "request_method": "POST", "request_path": "/api/retrieval/preview", "route": "/api/retrieval/preview", "status_code": 200, "duration_ms": 2.7, "error_class": null, "error_message": null, "sample_reason": "RANDOM"}
INFO: Shutting down
INFO: Waiting for application shutdown.
{"timestamp": "2026-11-16T10:24:31.839773+00:00", "level": "INFO", "service_name": "wingman-backend", "environment": "development", "service_version": "0.1.0", "logger": "app.main", "message": "Shutting down Wingman backend...", "event_type": "log", "request_id": null, "trace_id": null}
INFO: Application shutdown complete.
INFO: Finished server process [45729]
INFO: Stopping reloader process [45710]
Loading
Loading