{"id":49157720,"url":"https://github.com/tsouza/petstory","last_synced_at":"2026-04-22T10:06:57.657Z","repository":{"id":351954181,"uuid":"1213208019","full_name":"tsouza/petstory","owner":"tsouza","description":"Intelligent pet-health app — chat-first diary, auto-extracted events, proactive nudges. Brand-neutral agent kernel with pet-health as the first Domain Pack.","archived":false,"fork":false,"pushed_at":"2026-04-17T07:20:58.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-17T08:35:05.273Z","etag":null,"topics":["ai-agents","bun","convex","domain-driven-design","expo","mastra","monorepo","pet-health","react-native","turborepo","typescript"],"latest_commit_sha":null,"homepage":"https://petstory.co","language":"Just","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsouza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-17T06:34:06.000Z","updated_at":"2026-04-17T07:21:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tsouza/petstory","commit_stats":null,"previous_names":["tsouza/petstory"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tsouza/petstory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fpetstory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fpetstory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fpetstory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fpetstory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsouza","download_url":"https://codeload.github.com/tsouza/petstory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsouza%2Fpetstory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32130852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","bun","convex","domain-driven-design","expo","mastra","monorepo","pet-health","react-native","turborepo","typescript"],"created_at":"2026-04-22T10:06:57.585Z","updated_at":"2026-04-22T10:06:57.647Z","avatar_url":"https://github.com/tsouza.png","language":"Just","funding_links":[],"categories":[],"sub_categories":[],"readme":"# petstory.co\n\n\u003e Intelligent pet-health app. Chat-first diary, auto-extracted events, proactive nudges, longitudinal correlation. Built on a brand-neutral agent kernel — pet-health is the first vertical on top of reusable layers.\n\n## Status\n\nPre-code scaffold. Monorepo seeded, docs canonical, CI wired, no feature code yet. Flow Catalog v1 sketched in [`docs/architecture/flow-catalog.md`](docs/architecture/flow-catalog.md); pet-health pack exists as an empty shell with its Ubiquitous Language glossary.\n\n## Stack\n\nExpo (React Native New Arch) + Expo Router SSR · NativeWind + React Native Reusables · React Hook Form + Zustand · Clerk · Convex · Claude Agent SDK · Mastra (flow runtime) · Haiku/Sonnet/Opus tiered · Claude Managed Agents · Stripe/RevenueCat · Braintrust/Sentry/PostHog · Bun (local dev) · Turborepo · Changesets.\n\nFull rationale in [`docs/stack.md`](docs/stack.md) and [`docs/decisions/`](docs/decisions/).\n\n## Architecture\n\nFour layers with strict inward dependencies (`L3 → L2 → L1 → L0`):\n\n- **L0 — Agent Kernel** (domain-agnostic): ports, flow runtime, critic harness, pack loader.\n- **L1 — Conversation \u0026 Narrative Primitives** (domain-agnostic): chat-first loop, event extractor, diary, nudges, shared-access.\n- **L2 — Domain Pack** (vertical-specific): pet-health today; human-health, tripstory, etc. tomorrow.\n- **L3 — Product Shell**: Expo mobile + RN Web apps.\n\nSee [`docs/architecture/layers.md`](docs/architecture/layers.md) and [`ADR-002`](docs/decisions/ADR-002-layered-architecture.md).\n\nAgent loop: three-level framework (Execution Spine + Flow Catalog + Situation Classifier) per [`ADR-003`](docs/decisions/ADR-003-three-level-agent-framework.md). Mastra is the Flow runtime, our Flow DSL is a thin typed wrapper that enforces pack-level invariants per [`ADR-007`](docs/decisions/ADR-007-bun-for-local-development.md).\n\n## Engineering rules\n\n23 non-negotiable rules in [`docs/engineering-rules.md`](docs/engineering-rules.md), phased by project stage. R0 (no over-engineering) is the veto rule above the others. Security (R8) and observability (R6) are cross-cutting concerns threaded through every decision.\n\n## Quick start\n\n**Prerequisites:** Bun 1.3+, Node 22 LTS (fallback for Metro + Convex CLI), [just](https://just.systems/).\n\n```bash\njust install         # bun install\njust install-hooks   # lefthook install\njust ci              # full local CI (lint + typecheck + test + knip + depcruise)\n```\n\nEvery canonical task is a `just` target per R23 — `just --list` for the full menu.\n\n## Layout\n\n```\napps/                   L3 shells (petstory-mobile, petstory-web)\npackages/\n  kernel/               L0 — agent kernel\n  conversation/         L1 — chat-first turn loop\n  diary/                L1 — auto-generated diary\n  nudges/               L1 — proactive nudges\n  shared-access/        L1 — invites + scope + duration\n  packs/pet-health/     L2 — first Domain Pack (+ glossary.md)\n  ui/                   L3 primitives\n  config/               shared base configs\n  testing/              @petstory/testing — shared test helpers\nconvex/                 shared backend (Convex cloud)\ndocs/                   canonical docs + ADRs (includes user-stories/ JTBD files)\n.claude/                sub-agents, skills, commands, conventions\n```\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md) for the branch → commit → PR flow, Conventional Commits + branch naming (R10 + R21), testing expectations (R4), and the canonical `just` interface (R23).\n\n## License\n\nNo license granted. All rights reserved. This repository is public for transparency and collaboration with invited contributors; contact the owner for usage permissions beyond that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsouza%2Fpetstory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsouza%2Fpetstory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsouza%2Fpetstory/lists"}