Skip to content

feat: add LostFound Match Agent template#158

Open
Rewant05 wants to merge 23 commits into
Lamatic:mainfrom
Rewant05:lostfound-match-agent
Open

feat: add LostFound Match Agent template#158
Rewant05 wants to merge 23 commits into
Lamatic:mainfrom
Rewant05:lostfound-match-agent

Conversation

@Rewant05
Copy link
Copy Markdown

@Rewant05 Rewant05 commented May 14, 2026

PR Checklist

1. Select Contribution Type

  • Kit (kits/<category>/<kit-name>/)
  • Bundle (bundles/<bundle-name>/)
  • Template (templates/<template-name>/)

2. General Requirements

  • PR is for one project only (no unrelated changes)
  • No secrets, API keys, or real credentials are committed
  • Folder name uses kebab-case and matches the flow ID
  • All changes are documented in README.md (purpose, setup, usage)

3. File Structure (Check what applies)

  • config.json present with valid metadata (name, description, tags, steps, author, env keys)
  • All flows in flows/<flow-name>/ (where applicable) include:
    • config.json (Lamatic flow export)
    • inputs.json
    • meta.json
    • README.md
  • .env.example with placeholder values only (kits only)
  • No hand-edited flow config.json node graphs (changes via Lamatic Studio export)

4. Validation

  • npm install && npm run dev works locally (kits: UI runs; bundles/templates: flows are valid)
  • PR title is clear
  • GitHub Actions workflows pass
  • All CodeRabbit or other PR review comments are addressed and resolved
  • No unrelated files or projects are modified

Files Added

  • README.md – Comprehensive documentation describing the LostFound Match Agent's purpose, problem, solution, input/output examples, use cases, and assumptions
  • config.json – Template metadata (name, slug, description, category, tags, author, version)
  • inputs.json – Input schema defining required fields (lost_item_description, found_item_description) and optional fields (lost_location, found_location, lost_date, found_date)
  • meta.json – Template metadata with illustrative input/output examples and author details

Workflow Overview

The LostFound Match Agent is a lost-and-found item matching template that:

  • Accepts: Lost item description + found item description, with optional location and date fields
  • Compares: Item type, color, brand/material, unique identifiers, location similarity, date proximity, and semantic similarity
  • Returns: Structured JSON output including:
    • Match score (0-100)
    • Decision (Likely Match/Unlikely/Possible)
    • Reasoning explanation
    • Matching signals (aligned attributes)
    • Conflicting signals (misaligned attributes)
    • Verification questions for manual review
    • Recommended next action

Target use cases: Campuses, airports, metro stations, malls, hotels, and other public institutions with lost-and-found operations.

Note: The actual workflow implementation (flow.json with node types and execution logic) is not included in the visible repository files—it exists in Lamatic Studio as indicated in the PR objectives.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 14, 2026

Walkthrough

This mission introduces the LostFound Match Agent template to the AgentKit repository. The PR adds four files that collectively define a new template for matching lost versus found item reports using comparison signals including type, color, brand, identifiers, location proximity, date proximity, and semantic similarity.

Changes

LostFound Match Agent Template

Layer / File(s) Summary
Template Definition and Schema
templates/lostfound-match-agent/config.json, templates/lostfound-match-agent/inputs.json, templates/lostfound-match-agent/meta.json, templates/lostfound-match-agent/README.md
Template configuration establishes the lostfound-match-agent identity with category and author metadata. Input schema defines required lost_item_description and found_item_description fields plus optional location and date fields. Meta file provides structured example input and output (including match score, decision, reasoning, conflicting/matching signals, verification questions, and next action). README documents the complete workflow, comparison criteria, JSON schemas, use cases, and explicit assumptions that the score is a recommendation requiring manual verification for sensitive items.

Suggested reviewers

  • d-pamneja
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'feat: add LostFound Match Agent template' clearly and concisely describes the main change: adding a new template for a lost-and-found matching agent.
Description check ✅ Passed The PR description addresses most required checklist items for a template contribution, marking 11 of 13 applicable checks. However, it does not verify that 'npm install && npm run dev' works locally for template validation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

PR Validation Results

New Contributions Detected

  • Template: templates/lostfound-match-agent

Check Results

Check Status
No edits to existing projects ✅ Pass
Required root files present ✅ Pass
Flow folder structure valid ✅ Pass
No changes outside contribution dirs ✅ Pass

🎉 All checks passed! This contribution follows the AgentKit structure.

@Rewant05
Copy link
Copy Markdown
Author

Hi Lamatic team, the validation checks have passed and this PR has received the passing-checks label.
Could you please add the agentkit-challenge label if required from the maintainer side?
PR link: #158

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@templates/lostfound-match-agent/meta.json`:
- Around line 15-34: Add a formal output schema file describing the agent's
response contract to validate the fields shown in output_example: create an
outputs.json that defines each top-level property (match_score, decision,
reason, matching_signals, conflicting_signals, verification_questions,
next_action) with types, required=true where appropriate, descriptions, and
constraints (e.g., match_score numeric 0–100, arrays of strings for
signals/questions). Ensure the schema keys exactly match the example in
meta.json so integrators can validate agent responses and catch breaking
changes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Pro

Run ID: ff8ecfab-c3ed-4cf2-a1b6-1753d77bdc6b

📥 Commits

Reviewing files that changed from the base of the PR and between 6e60d64 and bd3c263.

📒 Files selected for processing (4)
  • templates/lostfound-match-agent/README.md
  • templates/lostfound-match-agent/config.json
  • templates/lostfound-match-agent/inputs.json
  • templates/lostfound-match-agent/meta.json

Comment on lines +15 to +34
"output_example": {
"match_score": 85,
"decision": "Likely Match",
"reason": "Both reports describe a dark wallet found near similar academic locations and mention an ID card.",
"matching_signals": [
"Both reports mention a wallet",
"Both reports mention a dark or black color",
"Both reports mention an ID card",
"The locations are similar"
],
"conflicting_signals": [
"The found report does not mention cash"
],
"verification_questions": [
"What name is written on the ID card?",
"How much cash was inside?",
"Does the wallet have any brand or unique mark?"
],
"next_action": "Send this case to an admin for manual verification before returning the item."
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Agent, consider documenting the output contract.

The output example demonstrates a well-structured match result with match_score, decision, reason, matching_signals, conflicting_signals, verification_questions, and next_action. However, there's no formal output schema (like an outputs.json file) defining types, constraints, or required fields for this structure.

While not critical for a template, a formal output schema would help integrators validate agent responses and catch breaking changes.

📋 Proposed addition: outputs.json schema

Consider adding templates/lostfound-match-agent/outputs.json:

{
  "match_score": {
    "type": "number",
    "required": true,
    "description": "Match confidence score between 0-100"
  },
  "decision": {
    "type": "string",
    "required": true,
    "description": "Match decision category (e.g., Likely Match, Possible Match, No Match)"
  },
  "reason": {
    "type": "string",
    "required": true,
    "description": "Human-readable explanation of the decision"
  },
  "matching_signals": {
    "type": "array",
    "required": true,
    "description": "List of signals supporting the match"
  },
  "conflicting_signals": {
    "type": "array",
    "required": true,
    "description": "List of signals contradicting the match"
  },
  "verification_questions": {
    "type": "array",
    "required": true,
    "description": "Questions to verify ownership"
  },
  "next_action": {
    "type": "string",
    "required": true,
    "description": "Recommended next step for the administrator"
  }
}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@templates/lostfound-match-agent/meta.json` around lines 15 - 34, Add a formal
output schema file describing the agent's response contract to validate the
fields shown in output_example: create an outputs.json that defines each
top-level property (match_score, decision, reason, matching_signals,
conflicting_signals, verification_questions, next_action) with types,
required=true where appropriate, descriptions, and constraints (e.g.,
match_score numeric 0–100, arrays of strings for signals/questions). Ensure the
schema keys exactly match the example in meta.json so integrators can validate
agent responses and catch breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants