Skip to content

Instantly share code, notes, and snippets.

View panchicore's full-sized avatar
πŸ‘½

Luis Pallares panchicore

πŸ‘½
View GitHub Profile
@panchicore
panchicore / starlark_migration_slides.html
Created May 12, 2026 18:58
Starlark Migration β€” Spencer/Infra Meeting Slides
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Starlark Migration</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #0a0a0a;
@panchicore
panchicore / profile_rename_validate.py
Created May 11, 2026 22:52
Profile rename-validate pipeline β€” find slow analyzer steps (used for PR #3103)
#!/usr/bin/env python3
"""
Profile the rename-validate pipeline to find which analyzer step is slow.
Usage:
cd src/backend && python ../../scripts/profile_rename_validate.py \
--org-cuid cmf7c8pup000o0faz59yxbc62 \
--resource-type model \
--field-key associatedcrid
@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