{
  "person": {
    "name": "Allston Fojas",
    "headline": "Systems Software Engineer, Core OS Power and Performance at Apple",
    "tagline": "I build decision systems that measure their own outcomes.",
    "location": "San Francisco Bay Area",
    "email": "allstonfojas@gmail.com",
    "current_role": {
      "title": "Systems Software Engineer, Core OS Power and Performance",
      "employer": "Apple",
      "employer_url": "https://www.apple.com",
      "start": "2022-07",
      "location": "Cupertino, CA"
    },
    "education": {
      "institution": "University of California San Diego",
      "institution_url": "https://ucsd.edu",
      "credential": "B.S. Data Science",
      "detail": "Inaugural cohort, Halicioglu Data Science Institute"
    },
    "knows_about": [
      "Systems Software Engineering",
      "On-device Telemetry",
      "Performance Engineering",
      "Objective-C",
      "C++",
      "Python",
      "Large-scale Data Analysis",
      "Agent Orchestration",
      "Retrieval-Augmented Generation",
      "LLM Evaluation",
      "Model Context Protocol",
      "Local-first AI"
    ],
    "profiles": [
      {
        "label": "GitHub",
        "url": "https://github.com/allstoncodes",
        "handle": "allstoncodes"
      },
      {
        "label": "LinkedIn",
        "url": "https://www.linkedin.com/in/allston-fojas",
        "handle": "allston-fojas"
      }
    ],
    "resume": {
      "url": "https://allstonf.github.io/Allston_Fojas_Resume.pdf",
      "label": "Resume"
    }
  },
  "about": [
    "I am a systems software engineer at Apple on the Core OS Power and Performance team. I led the end-to-end design and implementation of on-device telemetry for a next-generation WiFi and Bluetooth chipset, which made it possible to compare battery performance against prior chipsets quantitatively across large device fleets. The telemetry shipped with the chipset, and it turned battery questions that had been argued from intuition into questions answered with fleet data. The implementation is Objective-C and C++ across iOS, macOS, and watchOS. The analysis side is Python, Jupyter, and Spark.",
    "Getting that built meant driving alignment across the WiFi, Bluetooth, Privacy, logging infrastructure, and analytics teams.",
    "Outside of work I build decision systems, and the architecture is the same in every domain. A versioned scoring rubric is the single mutable surface, read at call time. Every heuristic change lands in an append-only log. A two-layer model compares what the system predicted against what actually happened, re-scoring is a deterministic tested function rather than a judgment call, and every rubric mutation stops at a hard human-approval gate. I have run it against a housing search and a content production pipeline.",
    "I run a local inference lane on 24 GB of Apple silicon so that agentic coding keeps working with no network and no third party holding the data. It serves open-weight Qwen and Gemma models over OpenAI-compatible and Anthropic-compatible routes, so the same harnesses I use online, Claude Code and pi, drive it unchanged offline. Getting tool calling to work there meant root-causing a failure to a model dropping its sentinel tags, proving it a model fault rather than a harness fault by A/B against a second model, and shipping a parity gate so it cannot regress.",
    "The housing system is the one with an outcome attached. It scored 531 candidate listings across 26 discovery runs against a deterministic, versioned admission gate, ranked them with a dual-anchor commute engine built on open routing data, and shipped a public board. I signed a lease on a property the system surfaced and vetted."
  ],
  "projects": [
    {
      "slug": "waypoint",
      "name": "Waypoint - agentic trip planner",
      "featured": true,
      "period": "Apr 2026 - Jun 2026",
      "summary": "An orchestrator that dispatches four parallel Claude research agents to produce a costed, sequenced trip itinerary.",
      "outcome": "248 tests. Built across a five-hackathon cascade and presented at the Andreessen Horowitz office in San Francisco.",
      "bullets": [
        "Four parallel Sonnet research agents - points of interest, hotels and flights and restaurants, photography, transit - each a multi-turn web-search loop terminating in a structured submit tool call.",
        "A provider-abstraction layer that allows swapping the generative-media model without touching the pipeline.",
        "A prompt-injection input sanitizer, per-session cost telemetry, and graceful partial failure when one agent returns nothing.",
        "A second documented research path builds a prompt for Perplexity Computer and parses its output back - copy-paste through the UI, not an API integration.",
        "Presented at the a16z, Overshoot, Fal and Mux Video hackathon, May 2026."
      ],
      "stack": [
        "Python 3.12",
        "Anthropic SDK",
        "FastAPI",
        "Jinja2",
        "fal",
        "Mux",
        "FFmpeg",
        "SQLite",
        "pytest",
        "Playwright"
      ],
      "links": [
        {
          "label": "Product page",
          "url": "https://waypoint-manifest.butterbase.dev/"
        }
      ]
    },
    {
      "slug": "south-bay-housing",
      "name": "Automated housing-search decision system",
      "featured": true,
      "period": "2026",
      "summary": "Scored 531 candidate listings across 26 discovery runs against a deterministic, versioned admission gate. Signed a lease on a property from the board.",
      "outcome": "Signed a lease on a property the system surfaced.",
      "bullets": [
        "Deterministic, versioned admission gate: hard constraints reject before any scoring runs, so a rejection is always explainable.",
        "Dual-anchor commute engine on Nominatim and OSRM, with no paid routing API.",
        "Shipped two surfaces: a static GitHub Pages board and a Next.js, TypeScript, and Convex application.",
        "131 tests across the Python pipeline and the TypeScript app."
      ],
      "stack": [
        "Python",
        "TypeScript",
        "Next.js",
        "Convex",
        "Leaflet",
        "OSRM",
        "Nominatim"
      ],
      "links": [
        {
          "label": "Live board",
          "url": "https://allstoncodes.github.io/south-bay-housing-board/"
        },
        {
          "label": "Source",
          "url": "https://github.com/allstoncodes/south-bay-housing-board"
        }
      ]
    },
    {
      "slug": "rsi-loop",
      "name": "Execute-and-learn decision loop",
      "featured": true,
      "period": "2026",
      "summary": "A reusable execute-then-learn loop applied across two unrelated domains: housing search and content production.",
      "outcome": null,
      "bullets": [
        "The scoring rubric is the single mutable surface and is read at call time, so behaviour changes are data changes rather than code changes.",
        "An append-only heuristic change log makes every past scoring decision reconstructible.",
        "A two-layer prediction-versus-outcome model separates what was predicted from what was observed.",
        "Re-scoring is a deterministic tested function; every rubric mutation requires human approval.",
        "Four consecutive retrospectives declined to change a weight because the outcome sample was too thin to learn from."
      ],
      "stack": [
        "Python",
        "Markdown-as-data",
        "LanceDB"
      ],
      "links": []
    },
    {
      "slug": "vault-commit",
      "name": "Concurrency-safe git layer for multi-agent workspaces",
      "featured": false,
      "period": "2026",
      "summary": "704 lines of Python that let many agents commit to one repository without clobbering each other.",
      "outcome": null,
      "bullets": [
        "Advisory flock with explicit handling for deleted-lockfile and split-inode races.",
        "An index-health gate that blocks commits during a filesystem-eviction state which would otherwise commit mass phantom deletions.",
        "Manifest-scoped staging, so parallel agents cannot stage each other's in-flight work.",
        "Bounded rebase-retry that aborts loudly instead of force-pushing."
      ],
      "stack": [
        "Python",
        "Git"
      ],
      "links": []
    },
    {
      "slug": "cpos",
      "name": "Headless content-production pipeline",
      "featured": false,
      "period": "2026",
      "summary": "Three Python packages, roughly 2,900 lines and 211 tests, that turn a semantic search over raw footage into a rendered cut.",
      "outcome": "Search-driven edit-decision lists reached 9 of 9 top-1 retrieval accuracy on the evaluation set.",
      "bullets": [
        "Semantic footage retrieval over TwelveLabs Marengo 3.0 and Pegasus 1.2, across both visual and audio signal.",
        "An FFmpeg render engine driven by a typed beat contract rather than imperative edit steps.",
        "A Remotion transparent ProRes 4444 alpha overlay track composited over the base render."
      ],
      "stack": [
        "Python",
        "FFmpeg",
        "Remotion",
        "React",
        "TypeScript",
        "TwelveLabs"
      ],
      "links": []
    },
    {
      "slug": "local-ai",
      "name": "Local-first inference lane with a fail-closed privacy guard",
      "featured": false,
      "period": "2026",
      "summary": "An on-device model lane on 24 GB Apple silicon, with a three-layer guard that fails closed so private corpora do not leave the machine.",
      "outcome": null,
      "bullets": [
        "Ollama and MLX serving both OpenAI-compatible and Anthropic-compatible routes behind one interface.",
        "A three-layer allowlist guard, not a denylist, that fails closed before reading any user-supplied parameter, which makes it injection-resistant.",
        "The huggingface route is deliberately excluded from the allowlist because the router silently forwards it to cloud.",
        "Root-caused a tool-calling failure to a model dropping sentinel tags, proven a model fault rather than a harness fault by A/B against a second model, then shipped a parity regression gate."
      ],
      "stack": [
        "Python",
        "Ollama",
        "MLX",
        "Apple silicon",
        "Qwen3.5",
        "Gemma 3",
        "Claude Code",
        "pi"
      ],
      "links": []
    },
    {
      "slug": "agent-skills",
      "name": "Agent skills library (private)",
      "featured": false,
      "period": "2026",
      "summary": "A private library of composable agent skills: the operating manual for the systems above.",
      "outcome": null,
      "bullets": [
        "Each skill encodes one workflow as an explicit procedure with its own verification steps, rather than relying on a prompt.",
        "Skills compose: planning, test-first implementation, and independent review are separate skills chained by a controller."
      ],
      "stack": [
        "Markdown",
        "Python",
        "Bash"
      ],
      "links": []
    },
    {
      "slug": "research-vault-showcase",
      "name": "Research vault showcase",
      "featured": false,
      "period": "April 2026",
      "summary": "A public walkthrough of the retrieval architecture behind a personal research corpus.",
      "outcome": null,
      "bullets": [
        "Hybrid retrieval: vector search with HNSW cosine, BM25 lexical search, and reciprocal-rank fusion over the merged result set."
      ],
      "stack": [
        "Python",
        "LanceDB",
        "Tantivy"
      ],
      "links": [
        {
          "label": "Live",
          "url": "https://allstoncodes.github.io/research-vault-showcase/"
        }
      ]
    },
    {
      "slug": "predicting-disease-risk",
      "name": "Predicting Disease Risk",
      "featured": false,
      "period": "Apr 2020 - Jun 2020",
      "summary": "Supervised prediction of individual risk for three diseases: coronary artery disease, Alzheimer's and diabetes.",
      "outcome": "Accuracies of 0.91, 0.89 and 0.88 across the three disease models.",
      "bullets": [
        "Predicted risk for three diseases from one body of modelling work: coronary artery disease, Alzheimer's and diabetes.",
        "Built as the UC San Diego Data Science capstone in the genetics domain.",
        "Delivered as reproducible notebooks."
      ],
      "stack": [
        "Python",
        "pandas",
        "NumPy",
        "scikit-learn",
        "Matplotlib",
        "Seaborn"
      ],
      "links": [
        {
          "label": "Source",
          "url": "https://github.com/allstonf/predicting_disease_ml"
        }
      ]
    },
    {
      "slug": "weather-forecast-iot",
      "name": "Weather Forecast IoT Device Map",
      "featured": false,
      "period": "Apr 2020 - Jun 2020",
      "summary": "A web app mapping IoT weather sensors and testing whether forecast accuracy varies by city.",
      "outcome": "Determined that forecasts for Sacramento are about 7% more accurate than for San Diego.",
      "bullets": [
        "A web app spanning an ESP32 sensor device, a MySQL store and a browser front end.",
        "Compared forecast accuracy between two cities and quantified the gap."
      ],
      "stack": [
        "HTML",
        "CSS",
        "JavaScript",
        "Python",
        "MySQL",
        "C",
        "Arduino",
        "ESP32"
      ],
      "links": [
        {
          "label": "Source",
          "url": "https://github.com/allstonf/weather_forecast"
        }
      ]
    },
    {
      "slug": "music-master",
      "name": "Music Master",
      "featured": false,
      "period": "Apr 2019 - Jun 2019",
      "summary": "A playlist tool for DJs that recommends the next song by BPM or by title.",
      "outcome": null,
      "bullets": [
        "Recommends the next track by BPM or by song title.",
        "A web app on Node.js and Firebase, integrating the Spotify API."
      ],
      "stack": [
        "HTML",
        "CSS",
        "JavaScript",
        "Node.js",
        "Firebase",
        "Spotify API"
      ],
      "links": [
        {
          "label": "Source",
          "url": "https://github.com/allstonf/musicmaster.github.io"
        }
      ]
    },
    {
      "slug": "facebook-data-challenge",
      "name": "Facebook Data Challenge 2019",
      "featured": false,
      "period": "May 2019",
      "summary": "A geospatial analysis recommending where in San Francisco a retail business should open.",
      "outcome": "Identified Hayes Valley and Haight-Ashbury as the best-suited areas.",
      "bullets": [
        "Heat maps of San Francisco population density, income and business demographics, built with Folium.",
        "Entered as a competition submission."
      ],
      "stack": [
        "Python",
        "Folium"
      ],
      "links": [
        {
          "label": "Source",
          "url": "https://github.com/allstonf/facebook_data"
        }
      ]
    }
  ],
  "experience": [
    {
      "employer": "Apple",
      "title": "Systems Software Engineer, Core OS Power and Performance",
      "start": "2022-07",
      "end": null,
      "location": "Cupertino, CA",
      "bullets": [
        "Led end-to-end design and implementation of telemetry for a next-generation WiFi and Bluetooth chipset, enabling quantitative battery performance comparisons against prior chipsets across large device fleets.",
        "Drove cross-functional alignment with the WiFi, Bluetooth, Privacy, logging infrastructure, and analytics teams.",
        "Implemented on-device telemetry pipelines in Objective-C and C++ for iOS, macOS, and watchOS.",
        "Designed and executed large-scale data analysis workflows using Python, Jupyter, and Spark.",
        "Built agentic AI workflows to make investigations of key metrics more efficient."
      ]
    },
    {
      "employer": "Cisco",
      "title": "Software Engineer",
      "start": "2020-08",
      "end": "2022-06",
      "location": "San Jose, CA",
      "bullets": [
        "Developed performance test scripts in Python and ran them against the team's Kubernetes cluster.",
        "Implemented unit tests for the team's services in Go, with CI/CD through Jenkins.",
        "Built data visualization dashboards in Grafana and analyzed test logs in Kibana."
      ]
    },
    {
      "employer": "VIZIO",
      "title": "Data Engineer Intern",
      "start": "2020-06",
      "end": "2020-08",
      "location": "San Jose, CA",
      "bullets": [
        "Created a location weather API driving product recommendations surfaced on VIZIO TVs.",
        "Built the API and recommender with Python, Pandas, scikit-learn, and Scrapy."
      ]
    },
    {
      "employer": "American Express",
      "title": "Software Engineer Intern",
      "start": "2019-06",
      "end": "2019-08",
      "location": "New York, NY",
      "bullets": [
        "Replaced a $1M vendor relationship with an Excel file normalizer that standardized incoming formatting.",
        "Worked with Product Managers and the Business team to meet the business use case."
      ]
    }
  ]
}
