Skip to content

Instantly share code, notes, and snippets.

View bacalj's full-sized avatar
🤔

Joseph Bacal bacalj

🤔
View GitHub Profile
@bacalj
bacalj / DEV_JOURNAL.md
Last active March 3, 2026 03:39
ACCESS-CI Dev Journal

ACCESS-CI Dev Journal

Gist mirror: https://gist.github.com/bacalj/a6c6f9726844611df5a09c83884a0e83

2026-02-28 — A.1: Argilla → pgvector sync pipeline

Goal: Get Q&A pairs from Argilla into access-qa-service (pgvector) so they're searchable via semantic search.

Discovery: access-qa-service already had a /admin/sync endpoint and argilla_sync.py — but the code was scaffolded with placeholder logic that didn't match the actual Argilla v2 API or the record schema created by access-qa-extraction.

How Lifecycle Events Work in Squash Team One

The core idea: There is no "lifecycle event" entity. An "Initial Assessment" or "Vision Development Session" is just a session template that a coach creates, fills with whatever drills and metrics they want, and optionally tags (once #63 ships) as milestone, onboarding, etc. The system doesn't know what an "Initial Assessment" is. It knows what a session template is, what a tag is, and what a due date is. The coach defines the meaning.

The flow, using only what exists today

  1. Coach builds a session template in the library — specific drills, specific metrics (could be court drills with numeric metrics, reflection exercises with text prompts, or a mix)
  2. Coach instantiates it for a player → creates a real session with snapshotted drills, session_template_id recording lineage, a due_at for the deadline
  3. Player (or coach) does the work, records measures
  4. Coach clicks "Mark Complete" → completed_at is set once, permanently
@bacalj
bacalj / FEB_MARCH_PLAN.md
Last active March 3, 2026 02:29
ACCESS-CI Feb/March 2026 Work Plan

ACCESS-CI: Feb/March 2026 Work Plan

Owner: Joe Bacal Collaborator: Andrew Pasquale Last updated: 2026-02-28 Status: A.1–A.2 complete, ready for A.3 evaluation


Context

@bacalj
bacalj / gist:a8c0cc576b3125f26fde30f6ea8e4eed
Created February 26, 2026 19:44
ACCESS-CI Q&A extraction pipeline — full-run cost estimates (two-shot + judge, Feb 2026)

ACCESS-CI Q&A Extraction — Full-Run Cost Estimates

Date: 2026-02-26 Pipeline: Two-shot (battery + discovery + judge) — 3 LLM calls per entity Branch: feat/two-shot

How costs are calculated

Each entity gets 3 LLM calls:

  1. Battery — system prompt (~800 tokens) + entity JSON (~500-2000 tokens) → response (~500-1500 tokens)
@bacalj
bacalj / dataflowarduino.ino
Last active May 8, 2024 14:49
Dataflow + Arduino Firmware - supports BB Gripper and potentiometer/servo assembly
/*
* ----------------------------------------------------------------------------------------------------
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
* This code is up to date for use with the "Claw Pro R3"
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
* Adapted by Concord Consortium, 2023.
@bacalj
bacalj / -NowWZcEckAdagFe_CUl.json
Last active February 22, 2024 15:32
demoName=CLUE4Pip&fakeClass=1&fakeUser=student:7&problem=3.1&unit=moth
{
"rowMap": {
"B0rVs5_fa3cLYNH_": {
"id": "B0rVs5_fa3cLYNH_",
"isSectionHeader": true,
"sectionId": "start",
"tiles": []
},
"GTGXP-3bG7lQpFmt": {
"id": "GTGXP-3bG7lQpFmt",
@bacalj
bacalj / ccemgfsr.ino
Last active September 28, 2023 12:34
September, 2023 Dataflow + BackyardBrains
/*
* ----------------------------------------------------------------------------------------------------
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
* This code is up to date for use with the "Claw Pro R3"
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
* Adapted by Concord Consortium, 2023.
@bacalj
bacalj / ccemgfsr01.ino
Created August 7, 2023 18:12
Dataflow + BYB Bridge - v1
/*
* ----------------------------------------------------------------------------------------------------
* THIS IS FOR THE 2022 Version of the Gripper
*
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
@bacalj
bacalj / ccemgfsr2023.ino
Created August 7, 2023 18:10
Concord Consortium Dataflow + Backyard Brains Muscle Spiker Shield Bridge Scripts (v2)
/*
* ----------------------------------------------------------------------------------------------------
* THIS IS FOR THE 2023 Version of the Gripper
*
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
@bacalj
bacalj / ccemgfsr01.ino
Created August 7, 2023 15:14
Concord Consortium Dataflow + Backyard Brains Muscle Spiker Shield Bridge Scripts
/*
* ----------------------------------------------------------------------------------------------------
* THIS IS FOR THE 2022 Version of the Gripper
*
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic