<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hippo</title>
    <description>The latest articles on DEV Community by hippo (@hippoley).</description>
    <link>https://dev.to/hippoley</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1261439%2F36612909-efba-4847-a758-e239ef80950d.png</url>
      <title>DEV Community: hippo</title>
      <link>https://dev.to/hippoley</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hippoley"/>
    <language>en</language>
    <item>
      <title>GhostQueue: The AI Tasks That Refuse to Die</title>
      <dc:creator>hippo</dc:creator>
      <pubDate>Fri, 30 Oct 2026 07:49:22 +0000</pubDate>
      <link>https://dev.to/hippoley/this-is-a-submission-for-the-hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine-4h5n</link>
      <guid>https://dev.to/hippoley/this-is-a-submission-for-the-hacktoberfest-open-source-ai-challenge-week-4-ghost-in-the-machine-4h5n</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What happens when an AI task disappears from the interface, but the work underneath refuses to die?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A user clicks Cancel. The screen goes quiet. But somewhere inside the system, a worker may still be running, an acknowledgment may be delayed, or a retry may be waiting to resurrect a task that everyone believes is finished.&lt;/p&gt;

&lt;p&gt;That is the ghost I wanted to explore.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;GhostQueue&lt;/strong&gt;, an open-source, local-first AI experiment that examines descriptions of interrupted or ambiguous tasks and recommends one of four states:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Retry:&lt;/strong&gt; The event appears recoverable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review:&lt;/strong&gt; A human decision or additional verification is needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quarantine:&lt;/strong&gt; The input is untrusted and should be isolated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complete:&lt;/strong&gt; The event indicates successful completion.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But there is an important distinction: &lt;strong&gt;GhostQueue recommends actions. It never executes them.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The project explores a simple question: can we use a small, transparent AI model to interpret task failures without allowing probabilistic predictions to become uncontrolled execution decisions?&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;GhostQueue includes a reproducible command-line demonstration and a publicly verified GitHub Actions workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/hippoley/ghostqueue-week4/blob/main/DEMO.md" rel="noopener noreferrer"&gt;View the Demo and reproduction guide&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/hippoley/ghostqueue-week4/actions/runs/41021522073" rel="noopener noreferrer"&gt;View the successful GitHub Actions run&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The example scenarios include a temporary network timeout, a task involving external side effects, an untrusted instruction, and a completed job.&lt;/p&gt;

&lt;p&gt;The automated workflow regenerates the model, runs unit tests, evaluates synthetic holdout examples, and exercises the command-line interface.&lt;/p&gt;

&lt;p&gt;This is a CLI demonstration, not a hosted web application or a recorded video.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/hippoley/ghostqueue-week4" rel="noopener noreferrer"&gt;https://github.com/hippoley/ghostqueue-week4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The project is MIT-licensed and designed to run locally without a proprietary inference API.&lt;/p&gt;

&lt;p&gt;To reproduce it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/hippoley/ghostqueue-week4.git
&lt;span class="nb"&gt;cd &lt;/span&gt;ghostqueue-week4

python &lt;span class="nt"&gt;-m&lt;/span&gt; pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements-train.txt
python train.py
python &lt;span class="nt"&gt;-m&lt;/span&gt; unittest discover &lt;span class="nt"&gt;-s&lt;/span&gt; tests &lt;span class="nt"&gt;-v&lt;/span&gt;
python evaluate.py
python &lt;span class="nt"&gt;-m&lt;/span&gt; ghostqueue examples/events.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The training step generates the model weights locally. Inference subsequently runs using the Python standard library.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I used an open-source machine-learning stack based on &lt;strong&gt;scikit-learn, TF-IDF, and logistic regression&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The initial training set contains 32 synthetic event descriptions representing four categories: retry, review, quarantine, and complete.&lt;/p&gt;

&lt;p&gt;Rather than calling a remote model endpoint, the training process exports the learned parameters into JSON. The inference component reads those parameters and performs classification locally.&lt;/p&gt;

&lt;p&gt;The architecture separates three responsibilities:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Input validation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Incoming events must satisfy explicit structural and type requirements. Malformed messages, invalid boolean fields, oversized inputs, and invalid event identifiers are rejected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Local AI inference&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The classifier estimates which state best describes an event and returns a confidence score.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Deterministic policy enforcement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Safety-sensitive rules override the classifier. Untrusted input is quarantined, and events involving external side effects or required approval are routed to review.&lt;/p&gt;

&lt;p&gt;No actual retry, deletion, payment, or other external action is performed.&lt;/p&gt;

&lt;h3&gt;
  
  
  The unexpected result
&lt;/h3&gt;

&lt;p&gt;I also built a simple keyword-based baseline.&lt;/p&gt;

&lt;p&gt;The project evaluates both approaches against 24 separate, author-created synthetic holdout cases.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measurement&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Local AI classifier&lt;/td&gt;
&lt;td&gt;21/24 — 87.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keyword baseline&lt;/td&gt;
&lt;td&gt;23/24 — 95.83%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deterministic policy checks&lt;/td&gt;
&lt;td&gt;5/5 passed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;The simpler keyword baseline outperformed the AI model.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That is not the result I originally hoped to see, but it is one of the most useful findings of the experiment.&lt;/p&gt;

&lt;p&gt;These numbers come from a small synthetic dataset. They do not demonstrate production reliability, statistical significance, or real-world security performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Open innovation makes it possible to investigate not only whether an AI system works, but &lt;strong&gt;why it fails and whether something simpler works better&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;With GhostQueue, the training examples, training code, inference logic, evaluation cases, and deterministic safeguards are available for inspection.&lt;/p&gt;

&lt;p&gt;Anyone can regenerate the model, challenge the examples, improve the evaluation, or replace the classifier without depending on a proprietary inference service.&lt;/p&gt;

&lt;p&gt;This openness made the baseline comparison especially meaningful.&lt;/p&gt;

&lt;p&gt;If I had reported only the AI model's 87.5% accuracy, the result might have sounded impressive. Publishing the keyword baseline reveals a different picture: on this limited dataset, additional machine learning complexity did not produce better classification.&lt;/p&gt;

&lt;p&gt;That insight changes the engineering direction.&lt;/p&gt;

&lt;p&gt;The next challenge is not simply to build a larger model. It is to identify the kinds of ambiguity where learned inference provides measurable value, while preserving deterministic boundaries around actions that could affect real systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Ghost stories usually begin with something that should be gone.&lt;/p&gt;

&lt;p&gt;In software, the haunting can be almost invisible.&lt;/p&gt;

&lt;p&gt;A task is cancelled. The interface reports success. Everyone moves on.&lt;/p&gt;

&lt;p&gt;Then a delayed acknowledgment arrives. A retry awakens. An operation thought to be finished appears again.&lt;/p&gt;

&lt;p&gt;GhostQueue does not claim to solve that entire distributed-systems problem. Instead, it makes a small part of the uncertainty observable and testable.&lt;/p&gt;

&lt;p&gt;The moment that stayed with me was discovering that the AI classifier lost to a simple baseline.&lt;/p&gt;

&lt;p&gt;It was a reminder that the goal of building with AI is not to put AI everywhere.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The goal is to make systems more understandable, verifiable, and trustworthy—even when the evidence tells us that the simpler solution wins.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
