<?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: Rana Ahmed</title>
    <description>The latest articles on DEV Community by Rana Ahmed (@ranaahmedhamdy).</description>
    <link>https://dev.to/ranaahmedhamdy</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%2F4095141%2F2cc8900c-8a7e-4a72-b694-8cfc59e1e769.jpg</url>
      <title>DEV Community: Rana Ahmed</title>
      <link>https://dev.to/ranaahmedhamdy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ranaahmedhamdy"/>
    <language>en</language>
    <item>
      <title>I built a routing CLI so AI agents don't skip Room migrations, coroutine ownership, and lifecycle boundaries</title>
      <dc:creator>Rana Ahmed</dc:creator>
      <pubDate>Wed, 26 Aug 2026 06:21:17 +0000</pubDate>
      <link>https://dev.to/ranaahmedhamdy/i-built-a-routing-cli-so-ai-agents-dont-skip-room-migrations-coroutine-ownership-and-lifecycle-1oh6</link>
      <guid>https://dev.to/ranaahmedhamdy/i-built-a-routing-cli-so-ai-agents-dont-skip-room-migrations-coroutine-ownership-and-lifecycle-1oh6</guid>
      <description>&lt;p&gt;Coding agents handle "add a field, show it on screen" fine. They&lt;/p&gt;

&lt;p&gt;consistently miss the Android boundary around it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Room/SQLite migrations that silently corrupt existing rows&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A refresh coroutine owned by a view callback instead of the ViewModel&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;UI collection that keeps running after the Activity stops&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lifecycle/process-death paths nobody retested&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of it shows up as a compile error.&lt;/p&gt;

&lt;p&gt;I built AI-Workflow to make those checks deterministic. You state&lt;/p&gt;

&lt;p&gt;observable facts about a change and a checked-in registry maps them&lt;/p&gt;

&lt;p&gt;to required specialist procedures:&lt;/p&gt;

&lt;p&gt;Task classification: brownfield / android / safety&lt;/p&gt;

&lt;p&gt;Detected concerns: concurrency, lifecycle, persistence, schema_migration&lt;/p&gt;

&lt;p&gt;Recommended tier: COMPLEX&lt;/p&gt;

&lt;p&gt;Required checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;android-persistence-migration-readiness: because detected persistence, schema_migration&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;kotlin-coroutines-readiness: because detected concurrency&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;protected-lifecycle-transaction-review: because detected lifecycle&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;android-runtime-evidence-readiness: because detected lifecycle&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No LLM judgment in that mapping — it's a registry lookup, same output&lt;/p&gt;

&lt;p&gt;every run, every agent.&lt;/p&gt;

&lt;p&gt;Install takes one command, no clone needed:&lt;/p&gt;

&lt;p&gt;uvx --from git+&lt;a href="https://github.com/RanaAhmedHamdy/AI-Workflow.git" rel="noopener noreferrer"&gt;https://github.com/RanaAhmedHamdy/AI-Workflow.git&lt;/a&gt; \&lt;/p&gt;

&lt;p&gt;ai-workflow brownfield --platform android --profile safety \&lt;/p&gt;

&lt;p&gt;--target /path/to/your-android-app --dry-run&lt;/p&gt;

&lt;p&gt;There's also a lightweight Safety profile that gives you just the&lt;/p&gt;

&lt;p&gt;routing + protected-boundary checks without requiring a full feature&lt;/p&gt;

&lt;p&gt;lifecycle. And a full Android fixture (SQLite migration fallback,&lt;/p&gt;

&lt;p&gt;ViewModel coroutine ownership, lifecycle-aware Flow collection) with&lt;/p&gt;

&lt;p&gt;unit tests and debug build verified locally.&lt;/p&gt;

&lt;p&gt;Pre-v1, Apache-2.0, honest about what's claimed vs unclaimed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/RanaAhmedHamdy/AI-Workflow" rel="noopener noreferrer"&gt;&lt;/a&gt; &lt;/p&gt;

</description>
      <category>productivity</category>
      <category>android</category>
      <category>ios</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
