<?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: Hasitha Suragani</title>
    <description>The latest articles on DEV Community by Hasitha Suragani (@hasitha_suragani).</description>
    <link>https://dev.to/hasitha_suragani</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%2F4147495%2F8c33d11f-427a-49c6-9502-8bfd56fb025c.jpg</url>
      <title>DEV Community: Hasitha Suragani</title>
      <link>https://dev.to/hasitha_suragani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hasitha_suragani"/>
    <language>en</language>
    <item>
      <title>What Happens When a Negotiation Becomes a Memory?</title>
      <dc:creator>Hasitha Suragani</dc:creator>
      <pubDate>Mon, 28 Sep 2026 15:50:32 +0000</pubDate>
      <link>https://dev.to/hasitha_suragani/what-happens-when-a-negotiation-becomes-a-memory-2m4b</link>
      <guid>https://dev.to/hasitha_suragani/what-happens-when-a-negotiation-becomes-a-memory-2m4b</guid>
      <description>&lt;p&gt;The most interesting part of DealMind does not happen when the system gives a recommendation.&lt;br&gt;
It happens after the negotiation ends.&lt;br&gt;
A recommendation is useful once.&lt;br&gt;
An experience that can improve future recommendations is much more valuable.&lt;br&gt;
That idea became the foundation of DealMind's learning loop.&lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;The first negotiation&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A salesperson enters a negotiation into DealMind.&lt;br&gt;
The application receives information such as:&lt;br&gt;
• Customer &lt;br&gt;
• Industry &lt;br&gt;
• Segment &lt;br&gt;
• Deal value &lt;br&gt;
• Objection &lt;br&gt;
• Offer &lt;br&gt;
• Counteroffer &lt;br&gt;
• Requested discount &lt;br&gt;
• Competitor pressure &lt;br&gt;
• Contract length &lt;br&gt;
Hindsight then recalls relevant historical experiences.&lt;br&gt;
DealMind uses those experiences to support the current analysis.&lt;br&gt;
The salesperson reviews the recommendation and decides how to proceed.&lt;br&gt;
But at that point, the system has not learned anything new yet.&lt;br&gt;
The important step comes after the outcome.&lt;/p&gt;
&lt;h2&gt;
  
  
  Recording what actually happened
&lt;/h2&gt;

&lt;p&gt;Once the negotiation is complete, the salesperson records the result.&lt;br&gt;
The outcome can then be retained in Hindsight together with its context.&lt;br&gt;
For example:&lt;br&gt;
Customer&lt;br&gt;
Segment&lt;br&gt;
Objection&lt;br&gt;
Initial offer&lt;br&gt;
Counteroffer&lt;br&gt;
Strategy&lt;br&gt;
Concession&lt;br&gt;
Competitor pressure&lt;br&gt;
Contract length&lt;br&gt;
Outcome&lt;br&gt;
Outcome reason&lt;/p&gt;

&lt;p&gt;This creates a much richer memory than simply storing:&lt;br&gt;
Deal = Won&lt;br&gt;
The context explains why that outcome is relevant.&lt;/p&gt;
&lt;h2&gt;
  
  
  The memory loop
&lt;/h2&gt;

&lt;p&gt;The complete workflow becomes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Analyze
   ↓
Negotiate
   ↓
Record Outcome
   ↓
Retain in Hindsight
   ↓
Future Recall
   ↓
Better Context for New Negotiation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the behaviour we wanted from the product.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why failures matter
&lt;/h2&gt;

&lt;p&gt;One thing I wanted to avoid was building a memory system that only remembers successful deals.&lt;br&gt;
Failures can be just as informative.&lt;br&gt;
Imagine a negotiation where the salesperson gave a large discount but still lost the deal.&lt;br&gt;
That experience may become useful when a similar customer later asks for the same concession.&lt;br&gt;
Likewise, a negotiation that succeeded after a smaller concession and an additional value commitment may become useful evidence later.&lt;/p&gt;

&lt;p&gt;The goal is not:&lt;br&gt;
&lt;strong&gt;Remember everything that worked.&lt;/strong&gt;&lt;br&gt;
It is:&lt;br&gt;
&lt;strong&gt;Remember what actually happened.&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Before and after memory
&lt;/h2&gt;

&lt;p&gt;This also creates a useful before/after distinction.&lt;br&gt;
Without accumulated memory, a new negotiation has limited organizational context.&lt;br&gt;
After multiple negotiations have been retained, future negotiations can retrieve comparable experiences.&lt;br&gt;
That changes the information available to the system.&lt;br&gt;
The system is no longer reasoning only from the current deal.&lt;br&gt;
It is reasoning from:&lt;br&gt;
&lt;strong&gt;Current deal + organizational experience&lt;/strong&gt;&lt;br&gt;
That is the behavior we wanted Hindsight to enable.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Hindsight matters here
&lt;/h2&gt;

&lt;p&gt;A normal application database can store the completed deal.&lt;br&gt;
But DealMind needs more than a historical archive.&lt;br&gt;
It needs a long-term memory layer that can bring relevant experiences back into future interactions.&lt;br&gt;
That is why Hindsight is central to the learning loop.&lt;br&gt;
The memory is not just where old records sit.&lt;br&gt;
It is part of how future negotiations are analyzed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Preventing false learning
&lt;/h2&gt;

&lt;p&gt;A learning system needs boundaries.&lt;br&gt;
DealMind should only retain actual recorded outcomes.&lt;br&gt;
It should not invent an outcome.&lt;br&gt;
Similarly, if Hindsight is unavailable, the application should communicate that historical memory is temporarily unavailable rather than pretending it retrieved something.&lt;br&gt;
The language model also should not invent historical evidence.&lt;br&gt;
These constraints are important because a memory system is only useful if the memories can be trusted.&lt;/p&gt;
&lt;h2&gt;
  
  
  Reflection and higher-level patterns
&lt;/h2&gt;

&lt;p&gt;As the memory grows, higher-level patterns can also become useful.&lt;br&gt;
Hindsight's reflection capabilities can help surface broader patterns from accumulated experiences.&lt;br&gt;
This creates another layer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Individual Negotiations
        ↓
Accumulated Memory
        ↓
Higher-Level Patterns
        ↓
Future Negotiations
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The application still keeps its deterministic confidence and economic calculations separate, but memory can become increasingly useful as more experience accumulates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bigger lesson
&lt;/h2&gt;

&lt;p&gt;Building DealMind changed how I think about AI memory.&lt;br&gt;
Memory is not simply a feature that says:&lt;br&gt;
“I remember your previous message.”&lt;br&gt;
For a business system, useful memory should change what the system can do later.&lt;br&gt;
A previous negotiation matters because it can become evidence in a future negotiation.&lt;/p&gt;

&lt;p&gt;That is the learning loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;DealMind is designed around a simple sequence:&lt;br&gt;
&lt;strong&gt;Experience → Memory → Recall → Decision → New Experience&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every completed negotiation has the potential to contribute to the organization's knowledge.&lt;br&gt;
That is what makes the system different from a stateless assistant.&lt;br&gt;
The goal is not for AI to magically become smarter.&lt;br&gt;
The goal is for the application to make the organization's own experience increasingly useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built with Hindsight
&lt;/h2&gt;

&lt;p&gt;DealMind's memory layer is powered by Hindsight, an open-source agent memory system.&lt;/p&gt;

&lt;p&gt;Hindsight on GitHub: &lt;a href="//github.com/vectorize-io/hindsight"&gt;Check it out&lt;/a&gt;&lt;br&gt;
Hindsight docs: &lt;a href="//hindsight.vectorize.io"&gt;Check it out&lt;/a&gt;&lt;br&gt;
Team&lt;br&gt;
Built for the Hack With Hyderabad 3.0 by Zyra.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>webdev</category>
      <category>legaltech</category>
    </item>
  </channel>
</rss>
