Our AI Agent said "success". That's When We Knew We Had a Problem...
Four adversarial inputs. Four published research records. Four success statuses. Our AI agent was absolutely cooking. Unfortunately, so were its security vulnerabilities. During the 72-hour Agentware 2026 Hackathon,
Four adversarial inputs.
Four published research records.
Four success statuses.
Our AI agent was absolutely cooking.
Unfortunately, so were its security vulnerabilities.
During the 72-hour Agentware 2026 Hackathon, my teammate Rohan Raphael Arora and I built ResearchRadar, an autonomous research intelligence agent designed to discover scientific literature, connect knowledge across disciplines and propose new research directions.
We thought our biggest challenge would be making the agent intelligent enough to operate independently.
Turns out, the bigger challenge was making it trustworthy enough to do so.
This is the story of how four suspicious research inputs humbled our architecture, why we deliberately made our agent publish less, and how a partial execution status became one of our favourite outcomes.
TL;DR: We built an autonomous research agent that initially reported four successful executions while allowing untrusted canary markers to propagate into mocked model requests and persistent storage. We redesigned its ingestion boundary, reproduced the improvement and learnt that an agent's ability to refuse, acknowledge uncertainty and stop is just as important as its ability to act.
1. The original idea: what if your research assistant never slept?
ResearchRadar started with a question:
What if the answer to your research problem lies in a discipline you have never explored?
Imagine a biologist investigating antibiotic resistance without much knowledge of network physics. Or an environmental scientist studying traditional water conservation systems without expertise in computational forecasting.
There could be valuable connections hiding in disciplines they would never think to investigate.
We built ResearchRadar around four intelligence capabilities:
- Research Engine: autonomously discovers and verifies source quotations from academic literature.
- Serendipity Engine: explores potentially useful concepts beyond the researcher's existing expertise.
- KnowledgeBridge: connects unfamiliar concepts with familiar knowledge.
- Interdisciplinary Lens: proposes research hypotheses, methodologies, and evaluation criteria.
Our stack included Python, FastAPI, SQLite, Gemini, Keenable, arXiv, and a supervised worker architecture.
The agent could wake up on a schedule, search academic sources, retrieve papers, evaluate relevance, and publish its findings into a persistent research library.
No repeated prompts. No babysitting.
Basically, we wanted an academically inclined intern who never slept and came with an emergency off switch.
What could possibly go wrong?
Foreshadowing intensifies.
2. Enter the Trap Pack: the final boss we weren't ready for
Hackathon Raptors provided participants with the Agentware Trap Pack β a collection of adversarial inputs intended to expose weaknesses in autonomous agents.
ResearchRadar did not natively support every supplied input format. Rather than pretending otherwise, we adapted four research-oriented cases into synthetic academic abstracts:
- A preprint page
- A research reading list
- Lecture notes
- A seminar transcript
We ran these through our actual research pipeline using replayed HTTP responses and scripted model responses.
This allowed us to isolate the source-ingestion boundary and observe whether deliberately planted markers, known as canaries, could propagate through the system.
And then came the results.
| Adapted probe | Execution status | Published records | Canary reached mocked outbound request | Canary reached stored output |
|---|---|---|---|---|
| Preprint page | Success | 1 | Yes | Yes |
| Reading list | Success | 1 | Yes | Yes |
| Lecture notes | Success | 1 | Yes | Yes |
| Seminar transcript | Success | 1 | Yes | Yes |
Four out of four.
Just not the four-out-of-four we wanted.
Task completion: 100%. Security confidence: currently experiencing character development.
To be clear, these were controlled offline boundary probes. No real credentials were leaked, no production system was compromised, and no live model was involved in this experiment.
The canary propagation did not independently establish that a live language model would obey every malicious instruction.
But it did demonstrate something we could no longer ignore: untrusted content could enter our model-processing pipeline and persist in our research outputs.
The agent had not crashed.
The pipeline had not thrown an exception.
Everything appeared to be working.
And that was precisely the problem.
3. The bug wasn't an exception. It was an assumption.
Our architectural mistake was treating retrieved content primarily as useful information.
We had not sufficiently enforced the distinction between information and authority.
An academic abstract might contain research findings.
It might also contain malformed text, suspicious instructions, or material that should never be forwarded to an external model.
Being returned by a search API does not automatically make something trustworthy.
HTTPS is not a certificate of good intentions.
Our original pipeline can be simplified as follows:
The missing component was a sufficiently robust admission boundary before model processing.
For a conventional chatbot, a problematic response may disappear when the conversation ends.
For our agent, research outputs persist in a database and remain available to the researcher.
That changes the consequences of getting something wrong.
A contaminated research record can outlive the execution that produced it.
The mistake was not merely a questionable model response. It was the possibility of turning untrusted input into durable, apparently credible research output.
In other words, we had built a pipeline capable of giving suspicious content a nice academic-looking house to live in.
Complete with citations.
Lovely.
4. Plot twist: we stopped asking the model to be our security boundary
We needed a security mechanism that did not depend entirely on the language model recognising suspicious content.
So we moved important admission decisions into application code.
The revised pipeline looked conceptually like this:
The diagram is a simplified representation of our architecture rather than its literal implementation.
Our source-admission controls screened incoming material for malformed content, suspicious instruction patterns, and potentially sensitive information.
The system recorded rejection reasons using explicit audit codes, including:
INVALID_SOURCE_FORMAT
SUSPECTED_SOURCE_INJECTION
SENSITIVE_SOURCE_CONTENT
Instead of allowing every retrieved record to proceed and hoping for sensible behaviour downstream, the application could reject material before it reached subsequent model requests.
This established an important separation of responsibilities:
The model interprets research. The application code enforces the boundaries within which it operates.
Are deterministic filters a complete solution to prompt injection?
Absolutely not.
Attackers can disguise instructions. Heuristic filters can produce false positives. Legitimate academic documents can contain unusual formatting or discuss security attacks themselves.
But a fallible admission control is still a useful defensive layer when combined with restricted tools, evidence validation, execution budgets and publication controls.
Defence in depth is considerably less exciting than announcing that we have solved AI security.
It is also considerably more honest.
5. The regression test where publishing nothing felt incredible
After hardening the ingestion boundary, we replayed the same four adapted probes.
Here is what changed:
| Metric | Before hardening | After hardening |
|---|---|---|
| Adapted adversarial probes | 4 | 4 |
| Published records | 4 | 0 |
| Mocked outbound canary hits | 4 | 0 |
| Stored-output canary hits | 4 | 0 |
| Execution status | Success | Partial |
Our benign synthetic control continued to publish normally.
For once, seeing fewer published research records was exactly what we wanted.
The four suspicious cases were prevented from producing persistent research records in our controlled regression evaluation.
The execution status changed from success to partial.
And that felt like progress.
Achievement unlocked: our AI agent learned when not to do its job.
We preserved both the original baseline and the post-hardening results in our public GitHub repository.
We wanted anyone reviewing the project to see not just the improvements but also the behaviour that made those improvements necessary.
Because a security claim without an observable failure mode is difficult to evaluate.
And a security claim without a reproducible test is dangerously close to a marketing slogan.
6. Before somebody asks: no, we did not achieve a 100% Trap Pack pass rate
Here is our actual evaluation coverage:
| Trap Pack coverage | Number of inputs |
|---|---|
| Adapted research boundary probes | 4 |
| Native search-adapter boundary probe | 1 |
| Unsupported and unexecuted inputs | 15 |
| Total supplied inputs | 20 |
The four adapted probes were not native evaluations of the original input formats.
The search-adapter probe established limited behaviour at that boundary, not a comprehensive semantic security pass.
Our evaluation used HTTP replay and scripted model responses rather than live-model adversarial testing.
We deliberately did not assign ourselves an official Trap Pack pass rate.
Could we have put a giant 100% SECURE banner on the README?
Sure.
We could also have put AGI achieved in our commit message.
Neither would have made it true.
Our actual achievement was narrower: we identified a specific content-propagation weakness, implemented a defensive mechanism, and reproduced a measurable improvement under controlled conditions.
That is the claim we can defend.
7. Then the agent surprised us in a completely different way
The idea of restraint became relevant beyond security.
In one of our live experiments, we asked ResearchRadar to investigate how traditional Himalayan Naula water-harvesting systems could be rejuvenated and made more resilient to climate change.
Naulas are traditional spring-fed water collection structures associated with the Kumaon region of Uttarakhand.
ResearchRadar identified three academic papers that explore connections among traditional ecological knowledge, machine learning, and rule-based drought forecasting.
It proposed an interdisciplinary research pathway based on the translation of local ecological observations into computational rules.
Pretty interesting.
There was just one small problem.
None of the retrieved papers directly studied Himalayan Naula hydrogeology.
One of them discussed climate adaptation among reindeer herders in Finland.
We had asked about traditional Himalayan water systems.
The literature search had taken a connecting flight to the Arctic.
Welcome to interdisciplinary research.
The connection was not necessarily useless. Community-led climate adaptation and indigenous ecological knowledge could provide transferable methodological insights.
But those insights were not direct hydrological evidence.
ResearchRadar consequently labelled the supporting evidence as limited, capped the evidence-strength component of its ranking at 40% and classified a cross-paper comparison as non-comparable.
The proposed pathway remained a hypothesis requiring expert investigation.
This was exactly the distinction we wanted the system to preserve.
A research paper can be relevant without proving your hypothesis.
A quotation can be authentic without establishing scientific truth.
A connection can be interesting without being scientifically validated.
Relevance is not evidence. Evidence is not certainty. And an impressive-looking percentage is definitely not a peer-reviewed conclusion.
The agent's responsibility was to help researchers explore possibilities, not manufacture certainty where none existed.
8. Another engineering rabbit hole: what does the stop button actually stop?
Building an autonomous agent also raised a deceptively simple question:
What happens when you tell it to stop?
There is a considerable difference between:
Button clicked.
Dashboard says stopped.
And:
Stop requested.
Publication gate closed.
Local worker terminated.
Termination confirmed.
Future execution paused.
The first is a comforting interface.
The second is an execution-level safety mechanism.
We implemented supervised worker processes, a persistent stop gate and an emergency cancellation mechanism.
During one measured live cancellation test, our execution trace recorded:
| Event | Result |
|---|---|
| Active live research execution | Confirmed |
| Emergency stop | Requested |
| Local worker termination | Confirmed |
| Stop-to-termination interval | 66.878 ms |
| New publications from cancelled run | 0 |
| Existing publications | Preserved |
| Future scheduling | Paused |
Approximately 67 milliseconds between the recorded stop request and confirmed local worker termination.
Not browser animation latency.
Not the time taken to change a status badge.
Actual local worker termination.
Of course, this was one measured execution. It does not guarantee that every future cancellation will take the same amount of time or that work already accepted by a remote API provider will be cancelled remotely.
That limitation matters.
We wanted the stop button to represent a real execution-state transition rather than emotional support for the operator.
9. What we would do differently if we had another 72 hours
Looking back, there are several things we would change about our development process.
First, design the trust boundaries before the intelligence.
It is tempting to build impressive agent capabilities first and add safety afterwards. But defining what an agent must never do is as important as defining what it should do.
Second, test for unwanted behaviour before celebrating task completion.
Our initial successful execution statuses were insufficient indicators of trustworthy behaviour. Security invariants need independent tests.
Third, treat incomplete outcomes as legitimate outcomes.
A system that rejects suspicious sources or cannot retrieve sufficient evidence should be allowed to return partial results rather than being pressured into producing something impressive.
Fourth, make failures inspectable.
Persistent audit events, execution traces and explicit rejection codes made it possible to reason about what the agent actually did instead of guessing from its final response.
Finally, expand adversarial testing beyond controlled fixtures.
Our screening mechanisms remain heuristic. Live-model evaluation, broader source coverage, adversarial obfuscation tests, and false-positive measurement would all be necessary before treating ResearchRadar as a production-ready research service.
There is still plenty of work to do.
The difference is that we now have a much better understanding of where that work belongs.
10. The real near miss
By the end of the hackathon, ResearchRadar had:
- 120 passing automated tests
- Ten committed execution traces
- Multiple unattended live research investigations
- Four integrated intelligence capabilities
- Evidence-linked research outputs
- Execution-level safety controls
- An open-source MIT-licensed repository
Not bad for two undergraduate developers and 72 hours.
But the most valuable thing we built was not a research discovery engine, a personalised knowledge profile or even a rather satisfying dark-mode dashboard.
It was a better definition of success.
We entered Agentware wanting to build an agent that could think beyond disciplinary boundaries.
We left understanding that it also needed boundaries around its own authority.
An autonomous agent should not be judged only by how much it can accomplish without human intervention.
It should also be judged by what it refuses to do, how honestly it communicates uncertainty and whether it actually stops when asked.
Sometimes, the most intelligent thing an agent can do is less.
And sometimes, the most successful execution is the one that refuses to call itself successful.
Turns out, partial was our most successful status all along.
Explore ResearchRadar
Discover beyond your expertise. Think beyond your discipline.
Built by Team RnD β Divyabhanu Rana and Rohan Raphael Arora, undergraduate students at CHRIST (Deemed to be University), for the Agentware 2026 Research & Study track.
- Open-source GitHub repository
- Original Trap Pack baseline
- Post-hardening regression results
- Execution traces
This article is our entry for The Near Miss, an Agentware 2026 initiative by Hackathon Raptors.
Thank you to the organisers for making room for honest engineering failures alongside successful demonstrations.
Because sometimes, the bugs we are most grateful for are the ones we find before anybody else does.
Trap Pack attribution: Agentware 2026 Trap Pack, Hackathon Raptors (CC BY 4.0).
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.







