<?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: Gilnex</title>
    <description>The latest articles on DEV Community by Gilnex (@gilnex).</description>
    <link>https://dev.to/gilnex</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%2F4261570%2F2374f005-c9be-46b3-a789-3fc953a3120a.png</url>
      <title>DEV Community: Gilnex</title>
      <link>https://dev.to/gilnex</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gilnex"/>
    <language>en</language>
    <item>
      <title>Technology With Purpose: Designing Explicit Human Escalation in AI Workflows</title>
      <dc:creator>Gilnex</dc:creator>
      <pubDate>Fri, 27 Nov 2026 18:47:12 +0000</pubDate>
      <link>https://dev.to/gilnex/technology-with-purpose-designing-explicit-human-escalation-in-ai-workflows-2376</link>
      <guid>https://dev.to/gilnex/technology-with-purpose-designing-explicit-human-escalation-in-ai-workflows-2376</guid>
      <description>&lt;p&gt;&lt;em&gt;November 27, 2026. AI-assisted editorial draft. Cover: AI-generated conceptual illustration, not a product screenshot or actual GILNEX office.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A polished AI demonstration can show a successful path through an ordinary request. The more consequential engineering question is what happens when the system cannot safely complete the task. A useful human escalation mechanism must be designed into the workflow, not added as an afterthought.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate intent from authority
&lt;/h2&gt;

&lt;p&gt;Understanding a user's request is different from being authorized to perform it. An assistant might classify an inquiry about a booking, payment or account, but the action still requires its own authentication, authorization and business constraints. Treat these checks as server-enforced rules rather than relying on a conversational response to enforce them.&lt;/p&gt;

&lt;p&gt;Define an explicit set of permitted actions. Reject or escalate requests outside that set. A model's confidence score is not proof of authority or a substitute for validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make escalation a first-class state
&lt;/h2&gt;

&lt;p&gt;For an illustrative workflow, define states such as received, validated, awaiting authorized human review, completed and failed. Each transition has an actor, timestamp, reason and permitted next step. Do not expose confidential details to the customer or require a reviewer to reconstruct the request from a series of unrelated chat messages.&lt;/p&gt;

&lt;p&gt;An escalation record should preserve the minimum necessary context, the reason automation stopped and the relevant evidence. Access should follow role boundaries and retention rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design for a real recipient
&lt;/h2&gt;

&lt;p&gt;A handoff needs a responsible recipient and an operational response path. If no person is available, communicate that limitation rather than suggesting immediate assistance. Avoid promises about response times that the business cannot substantiate.&lt;/p&gt;

&lt;p&gt;An automated acknowledgement should distinguish a request being received from a human actually reviewing or completing it. These states are important for both customer clarity and measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the boundary
&lt;/h2&gt;

&lt;p&gt;Build synthetic tests for missing consent, unavailable resources, ambiguous identity, unauthorized actions, unexpected tool responses and a dependency timeout. Verify that the system stops where necessary, preserves an appropriate record and avoids duplicate side effects.&lt;/p&gt;

&lt;p&gt;Test the reverse path too: an authorized reviewer can resolve a case without bypassing normal validation. Confirm that the outcome becomes visible in the expected system and that sensitive data is not unnecessarily duplicated.&lt;/p&gt;

&lt;p&gt;The value of an intelligent system is not merely how often it can proceed. It is also how predictably it can stop, explain the limitation and transfer responsibility. That is a practical foundation for trustworthy technology.&lt;/p&gt;

&lt;p&gt;Reference: &lt;a href="https://www.nist.gov/itl/ai-risk-management-framework" rel="noopener noreferrer"&gt;NIST AI Risk Management Framework&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>architecture</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Black Friday Reliability: Design a Load Test Around the Customer Journey</title>
      <dc:creator>Gilnex</dc:creator>
      <pubDate>Fri, 27 Nov 2026 18:47:10 +0000</pubDate>
      <link>https://dev.to/gilnex/black-friday-reliability-design-a-load-test-around-the-customer-journey-1411</link>
      <guid>https://dev.to/gilnex/black-friday-reliability-design-a-load-test-around-the-customer-journey-1411</guid>
      <description>&lt;p&gt;&lt;em&gt;November 27, 2026. AI-assisted editorial draft. Cover: AI-generated conceptual illustration, not a real GILNEX client or deployed dashboard.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Black Friday invites a useful engineering question: can a customer complete the operation they came to perform when the system is under pressure? A dashboard showing healthy servers is not enough if a customer cannot submit an inquiry or find out what happened next.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a journey, not an arbitrary request count
&lt;/h2&gt;

&lt;p&gt;Define one representative flow: find a service, submit an inquiry, receive a durable acknowledgement and assign the next action. Model the expected mix of reads, writes and failed requests. Use synthetic records and an isolated environment; never send test messages to real customers.&lt;/p&gt;

&lt;p&gt;Choose load levels from measured traffic and an explicitly documented scenario, not an invented industry benchmark. Record the environment, data volume and assumptions so results can be reproduced.&lt;/p&gt;

&lt;h2&gt;
  
  
  Protect the bottleneck
&lt;/h2&gt;

&lt;p&gt;A hypothetical scheduling system has two separate limits: computational throughput and available appointment capacity. Increasing the web server's request rate cannot create more available appointments. Enforce resource constraints in the authoritative transactional store and treat unavailable capacity as a normal business result.&lt;/p&gt;

&lt;p&gt;Rate limits should protect shared resources without making a slow customer guess why an operation was refused. Bound queue depth and downstream concurrency. A retry policy should distinguish a transient failure from an invalid request or an ambiguous external side effect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Exercise degraded modes
&lt;/h2&gt;

&lt;p&gt;Simulate a slow dependency, a lost response after commit, a full queue and a worker restart. Check whether the system returns meaningful information, preserves valid requests and makes failures visible. If the notification provider is unavailable, the customer should not receive a false confirmation.&lt;/p&gt;

&lt;p&gt;A successful test might reveal that the product must reduce the rate of acceptance rather than silently lose work. This is a design decision, not a failure to reach a marketing target.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define acceptance before the test
&lt;/h2&gt;

&lt;p&gt;Record end-to-end latency distributions, error categories, completed operations, duplicates and queue age. Select thresholds appropriate to the actual business and verify the customer-facing result independently. Include authorization and cross-tenant isolation checks alongside throughput tests.&lt;/p&gt;

&lt;p&gt;A hypothetical acceptance rule: each valid synthetic operation has exactly one durable outcome; rejected operations have a clear reason; unknown external effects are reconciled; resource capacity is never exceeded. This rule is a design goal, not a reported test result.&lt;/p&gt;

&lt;p&gt;After testing, compare the observed bottleneck with the expected one. Fix the weakest handoff, repeat the same experiment and retain evidence. Demand is not a test of advertising alone. It is a test of how accurately the system represents and delivers the business.&lt;/p&gt;

&lt;p&gt;References: &lt;a href="https://sre.google/sre-book/addressing-cascading-failures/" rel="noopener noreferrer"&gt;Google SRE book — Addressing Cascading Failures&lt;/a&gt;, &lt;a href="https://www.postgresql.org/docs/current/transaction-iso.html" rel="noopener noreferrer"&gt;PostgreSQL transaction isolation&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>performance</category>
      <category>systemdesign</category>
      <category>testing</category>
    </item>
    <item>
      <title>Gratitude as an Engineering Practice: Designing for the People Behind the System</title>
      <dc:creator>Gilnex</dc:creator>
      <pubDate>Fri, 27 Nov 2026 18:47:09 +0000</pubDate>
      <link>https://dev.to/gilnex/gratitude-as-an-engineering-practice-designing-for-the-people-behind-the-system-27i2</link>
      <guid>https://dev.to/gilnex/gratitude-as-an-engineering-practice-designing-for-the-people-behind-the-system-27i2</guid>
      <description>&lt;p&gt;&lt;em&gt;Thanksgiving weekend, November 27, 2026. AI-assisted editorial draft for GILNEX; cover is an AI-generated conceptual illustration, not a photograph of our team or customers.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This Thanksgiving, it is worth asking what engineering teams are actually grateful for. Not merely the tools that make development faster, but the people who notice a failure, explain a confusing interaction, maintain a system after its launch and help a customer recover when something goes wrong.&lt;/p&gt;

&lt;p&gt;Gratitude becomes an engineering practice when it influences design choices.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design for the person who needs help
&lt;/h2&gt;

&lt;p&gt;Consider a hypothetical customer who submits an appointment request from a phone. A good interface does not assume uninterrupted connectivity, perfect eyesight, flawless typing or unlimited time. It gives each control a meaningful label, communicates validation errors clearly, and confirms the result without forcing the customer to guess whether anything happened.&lt;/p&gt;

&lt;p&gt;The W3C forms tutorial provides a useful starting point for labels and error notifications. Meeting these examples alone does not establish conformance with an accessibility standard; accessibility must be evaluated across the complete interaction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat operational handoffs as real work
&lt;/h2&gt;

&lt;p&gt;An automated request that cannot finish should not disappear into a generic exception log. A recoverable workflow needs a durable state, an accountable owner and a safe next action. In a hypothetical service system, that might mean preserving an incomplete request, notifying an authorized operator and showing the customer a truthful message about the next step.&lt;/p&gt;

&lt;p&gt;Avoid recording unnecessary personal information or exposing internal error details in the public response. A meaningful error message explains what the customer can do without revealing credentials or confidential infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Respect the people maintaining the system
&lt;/h2&gt;

&lt;p&gt;A runbook is a form of respect. Describe what failed, where evidence can be found, who can authorize a correction, and how to determine whether recovery succeeded. A clear rollback path helps the next engineer make a safe decision under pressure.&lt;/p&gt;

&lt;p&gt;A useful test is to hand a simulated failure to a colleague who did not implement the feature. Can they identify the affected request, reproduce the failure safely, find the responsible component and verify the correction without seeing private customer data?&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure the right outcome
&lt;/h2&gt;

&lt;p&gt;Completion of an automated step is not necessarily completion of a customer's task. Define success in terms that reflect the intended outcome. A booking request received, a booking confirmed and a completed service are different states. A dashboard that merges them can hide friction rather than explain it.&lt;/p&gt;

&lt;p&gt;This weekend, choose one small workflow and examine it from the perspective of the people relying on it. Improve the labels, clarify the handoff or test the recovery path. Then document what actually changed.&lt;/p&gt;

&lt;p&gt;Technology moves progress forward. People give progress its purpose.&lt;/p&gt;

&lt;p&gt;References: &lt;a href="https://www.w3.org/WAI/tutorials/forms/labels/" rel="noopener noreferrer"&gt;W3C form labels&lt;/a&gt;, &lt;a href="https://www.w3.org/WAI/tutorials/forms/notifications/" rel="noopener noreferrer"&gt;W3C form notifications&lt;/a&gt;, &lt;a href="https://www.nist.gov/itl/ai-risk-management-framework" rel="noopener noreferrer"&gt;NIST AI Risk Management Framework&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>design</category>
      <category>softwareengineering</category>
      <category>ux</category>
    </item>
    <item>
      <title>Designing Retry-Safe Customer Intake with PostgreSQL</title>
      <dc:creator>Gilnex</dc:creator>
      <pubDate>Fri, 27 Nov 2026 18:22:44 +0000</pubDate>
      <link>https://dev.to/gilnex/designing-retry-safe-customer-intake-with-postgresql-39ap</link>
      <guid>https://dev.to/gilnex/designing-retry-safe-customer-intake-with-postgresql-39ap</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: This draft was generated with AI assistance for GILNEX editorial review. The SQL is an illustrative example, not a verified production implementation. References checked November 27, 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A customer taps Submit, the network times out, and the browser retries. Did the first request fail, or did the response disappear after the server committed? A reliable intake system must handle both possibilities without producing two appointments, two notifications, or two CRM records.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the operation, not just the request
&lt;/h2&gt;

&lt;p&gt;A retry key identifies one intended operation. Generate it once for the submission and reuse it after a timeout. Scope it to the authenticated tenant and operation type. Derive the tenant on the server; never trust a tenant identifier supplied by a browser.&lt;/p&gt;

&lt;p&gt;Persist a normalized request fingerprint. If the same key arrives with a different payload, reject it as a conflict rather than silently accepting the changed request. A different key does not automatically mean the same customer; business-level duplicate detection is a separate concern.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the database enforce uniqueness
&lt;/h2&gt;

&lt;p&gt;For a hypothetical PostgreSQL intake service, consider this minimal table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;intake_requests&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;tenant_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;request_key&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;payload_hash&lt;/span&gt; &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;response_id&lt;/span&gt; &lt;span class="kt"&gt;uuid&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tenant_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;request_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Within one transaction, attempt an insert using &lt;code&gt;ON CONFLICT (tenant_id, request_key) DO NOTHING RETURNING response_id&lt;/code&gt;. If a row is returned, this transaction owns the initial operation. Create the corresponding lead and an outbox record in the same transaction. If no row is returned, retrieve the committed record in a subsequent statement at READ COMMITTED, compare its fingerprint, and return the existing response identifier if the payload matches.&lt;/p&gt;

&lt;p&gt;At higher isolation levels, handle serialization failures with bounded transaction retries. Do not assume that an empty RETURNING result means the other transaction failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate database commit from delivery
&lt;/h2&gt;

&lt;p&gt;Sending a notification before the transaction commits creates a failure window: a customer could receive confirmation for a record that never persisted. A transactional outbox makes the intent durable alongside the lead. A separate dispatcher claims outbox records, delivers them, and records the result.&lt;/p&gt;

&lt;p&gt;Delivery is still not magically exactly once. If the worker crashes after an external provider accepts a message but before the receipt is stored, the result is ambiguous. Use provider-supported idempotency where available, reconcile against provider receipts, and avoid blind retries when the effect is uncertain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Protect the booking invariant
&lt;/h2&gt;

&lt;p&gt;A request key cannot prevent two different customers from trying to reserve the same appointment. Enforce capacity separately, for example with a unique constraint for a single-capacity resource and time slot, or an atomic capacity reservation for a multi-capacity resource. Validate timezone, cancellation, rescheduling, and authorization rules independently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the failures you expect to see
&lt;/h2&gt;

&lt;p&gt;Run concurrent requests with the same key and payload; then repeat with different payloads. Simulate a lost HTTP response after commit, a crash before commit, a crash after external delivery, and two distinct keys competing for one slot. Test cross-tenant access and verify that logs omit sensitive customer payloads.&lt;/p&gt;

&lt;p&gt;Acceptance is observable: one durable lead for the repeated operation, no cross-tenant disclosure, a conflict for mismatched payload, no capacity violation, and a documented reconciliation path for uncertain delivery.&lt;/p&gt;

&lt;p&gt;The goal is not to claim perfect delivery. It is to make every ambiguous state visible, bounded and recoverable.&lt;/p&gt;

&lt;p&gt;References: &lt;a href="https://www.postgresql.org/docs/18/sql-insert.html" rel="noopener noreferrer"&gt;PostgreSQL INSERT&lt;/a&gt;, &lt;a href="https://www.postgresql.org/docs/18/transaction-iso.html" rel="noopener noreferrer"&gt;Transaction isolation&lt;/a&gt;, &lt;a href="https://dev.to/guidelines-for-ai-assisted-articles-on-dev/"&gt;DEV AI guidelines&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>database</category>
      <category>postgres</category>
      <category>systemdesign</category>
    </item>
  </channel>
</rss>
