Skip to content

Instantly share code, notes, and snippets.

View panchicore's full-sized avatar
👽

Luis Pallares panchicore

👽
View GitHub Profile
@panchicore
panchicore / checklist_reunion_25abr.md
Last active April 24, 2026 15:25
Checklist reunión comité 25-abr — Edificio River Park

Reunión sábado 25 de abril

Agenda para alinearnos antes de la asamblea del 28.


1. La convocatoria del 28

  • Leer el orden del día juntos. ¿Incluye admin definitivo, comisión de recibo, peritaje?
  • Si faltan puntos: decidir si los proponemos en la asamblea o si activamos plan B (convocatoria propia con 45 firmas)
@panchicore
panchicore / field_set_node_ui_kit.md
Created April 14, 2026 21:48
Set Field Node — UI Starter Kit for UX designer

Set Field Node — UI Starter Kit

Panel for the field_set workflow node. One grouped dropdown for field selection, one dynamic value control based on field type. No conditions UI — node always runs.


Empty State

┌──────────────────────────────────────────┐
@panchicore
panchicore / workflow-finding-type-race-condition.md
Created April 6, 2026 19:55
Workflow finding type race condition — analysis and proposed fix

Workflow Finding Type Race Condition

Problem

When Workflow A calls Workflow B via a run_workflow node, both workflows must share the same entity_name_type (finding type). This is validated at save time and at every WorkflowManager instantiation. However, entity_name_type lives on the mutable Workflow record — not in the versioned snapshot — so it can be changed at any time via PUT /workflows/<cuid>, breaking running executions.

Root Cause

Two separate API paths update a workflow:

SA2 Final Verification — Authorization Request

Ticket: SC-14561 — 25 - Final SA2 verification: zero legacy patterns + docs update

Current State

77 SA1 legacy patterns remain across src/backend/ (76) and tests/ (1). The CI gate already blocks new patterns on every PR. We need to reach zero to close the SA2 migration epic.

Proposed: 9 PRs (one per logical group)

Missing Dependency Check on Artifact (Finding) Custom Field Deletion

Summary

Deleting an Artifact Field (finding custom field) skips dependency checking entirely. A user can delete a field that is actively referenced in workflow nodes, breaking running executions. Model Fields have full dependency protection; Artifact Fields have none.

Impact (prod data — vmprod_17feb)

Metric Count

ModelStageParams — add .name back + null-safe

Problem

  1. Demo and HLD show params.model_stage.name but pushed code removed .name (only .cuid)
  2. params.model_stage is None when no status → AttributeError on .name/.cuid access (Luis's null pointer concern)

Fix

@panchicore
panchicore / gist_content.md
Last active February 21, 2026 17:25
TLC Transport TMS - Test Quality & Optimization Audit

TLC Transport TMS - "Mental Peace" Testing Plan

📊 Projected Metrics (Production-Grade)

Category Current State Projected State Impact
Core Service Coverage 22.4% >95% Critical: Fixes blind spots in Cost/Price engine.
Isolation Coverage ~0% 100% Critical: Proves cross-tenant data leaks are impossible.
Soft-Delete Coverage <10% 100% High: Ensures deleted data is hidden from all UIs.
Action Redundancy High Low Medium: Leaner, faster, more maintainable test suite.
@panchicore
panchicore / memoized-tickling-map.md
Created February 21, 2026 16:54
TMS: Deploy to PROD plan — /setup bootstrapper + Vercel + Supabase

Plan: Production Deploy — /setup bootstrapper + Vercel + Supabase

Goal

Deploy TMS to Vercel prod with Supabase prod DB. Provide a one-time /setup UI to create the first admin user + organization on a blank database.

Files to modify/create

Action File Purpose
Create src/app/(auth)/setup/page.tsx Server component: checks if any org exists → redirect to /login if yes, else render form
@panchicore
panchicore / outline-editing-content-blocks-v2.md
Last active February 20, 2026 23:16
Plan v2: Wire Document Outline Editor to Existing Content Block APIs

Plan v2: Wire Document Outline Editor to Existing Content Block APIs

Discovery

The backend APIs for content block mutations already exist — no new backend code needed.

Existing Backend Endpoints (routes/ui_model_document_blocks.py)

Method Endpoint Action Handler
@panchicore
panchicore / gist:90cd337d9eb09accccc38a5ec941579c
Created February 6, 2026 19:55
ValidMind Email Usage Count by Pattern

ValidMind Email Usage Count by Pattern

Summary

Pattern Count % Description
1. Celery task .delay() 13 76% Async from routes/handlers
2. Direct from route 1 6% Sync, blocks request
3. Direct from Celery task 3 18% Already async context