惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Latest news
Latest news
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
L
LINUX DO - 热门话题
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
Scott Helme
Scott Helme
V
Vulnerabilities – Threatpost
I
Intezer
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Simon Willison's Weblog
Simon Willison's Weblog
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
The Register - Security
The Register - Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
www.infosecurity-magazine.com
www.infosecurity-magazine.com
爱范儿
爱范儿
L
Lohrmann on Cybersecurity
M
MIT News - Artificial intelligence
H
Hacker News: Front Page
Last Week in AI
Last Week in AI
L
LINUX DO - 最新话题
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
Project Zero
Project Zero
A
About on SuperTechFans
Know Your Adversary
Know Your Adversary
Security Latest
Security Latest
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
H
Heimdal Security Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Forbes - Security
Forbes - Security
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
S3 Annotations: Three Practical Use Cases in Agent Scenarios
Maisie Ouyang · 2026-06-24 · via DEV Community

S3 objects have historically carried three types of native metadata: system-defined metadata, user-defined metadata (2 KB, immutable after upload), and object tags. With Amazon S3 Metadata — a separate bucket-level feature — you can aggregate all metadata types into managed Iceberg tables for SQL-based querying.

In June 2026, AWS introduced another metadata type: S3 Annotations — mutable, structured payloads (up to 1,000 per object, each up to 1 MB, totaling 1 GB) in JSON, XML, YAML, or plain text that can be added, updated, or deleted at any time without touching the underlying object.

Having worked closely with Agent infrastructure and being familiar with Agent architectures, I'd like to share three concrete use cases based on my experience.


Scenario 1: Meeting Summary — Keeping Processing Results Attached to the Source

📌 Core point: S3 Annotations let a file's context (transcripts, summaries, action items) live on the file itself — so deletion, replication, and migration don't require separate mapping or cleanup logic. The meeting summary example illustrates this, but the pattern applies to many scenarios where processing context needs to stay bound to its source object. 📌

Most Agent products today offer some form of meeting transcription and summarization. The Agent takes a recording — either captured live via a streaming model, or uploaded after the fact for batch processing — produces a full transcript, and then generates structured meeting minutes with action items.

In practice, companies building these Agents retain the recording alongside its transcript and minutes for future search, knowledge building, and audit purposes. That raises a straightforward question: how should these files live together, and how do you keep them linked?

The Usual Approach

Typically, the recording, transcript, and minutes end up as separate S3 objects grouped by a shared path prefix:

s3://agent-data/meetings/
├── 2026-06-15-standup/
│   ├── recording.mp4
│   ├── transcript.json
│   └── minutes.json
├── 2026-06-16-review/
│   ├── recording.mp4
│   ├── transcript.json
│   └── minutes.json
└── ...

Or their relationship is tracked in an external database (DynamoDB, RDS, etc.).

Either way, the context (transcript, minutes) lives separately from the data (recording), and their association depends on the application layer. At scale — thousands or tens of thousands of recordings — this starts to cost you:

  • Deletion requires coordination: removing a recording means you also need to clean up its associated files or database mappings. Miss one, and you've got orphaned data accruing storage charges.

  • Replication and migration need extra care: moving data across regions or buckets means ensuring every related file travels together, or updating path mappings in your external system.

  • The link isn't native to S3: S3 has no idea that recording.mp4 and transcript.json belong together. That relationship exists only in your path convention or external database — any gap in that layer, and the association breaks silently.

The underlying issue: context doesn't live with the data. They're separate objects, held together by convention.

How S3 Annotations Change This

With S3 Annotations, you attach the transcript and minutes directly to the recording object itself:

  • transcript: the full transcript document

  • meeting_minutes: the generated minutes

  • action_items: structured action items

Each is an independent, named annotation that can be written or updated separately. What this gives you:

  • Lifecycle is automatic — delete the recording, and its annotations go with it. No orphans.

  • Copy and replication just work — annotations follow the object by default. No extra rules to configure.

Why User-Defined Metadata Doesn't Work Here

Take the offline case: a user uploads a 1 GB recording, and only then does the Agent begin transcription. S3's user-defined metadata (x-amz-meta-*) can't help because:

  • It's write-once: you set it at upload time, and it's locked. The transcript and minutes don't exist yet at that point — there's nothing to write.

  • It's tiny: the 2 KB total limit can't hold a transcript that runs tens of KB.

  • Updating means copying the object: to change metadata, you'd have to copy the entire 1 GB file. That's not practical.

S3 Annotations solve all three: they're writable at any time, hold up to 1 MB each, and are mutable without touching the object.


Scenario 2: Process Once, Search Forever — Structured Retrieval Without Vectorization

📌 Core point: When Agents output structured JSON as annotations — whether as processing results (summaries, transcripts) or generation context (prompts, outlines) — those files become precisely searchable via annotation tables without any additional vectorization pipeline. This isn't a full replacement for semantic search, but it means vector-based retrieval is no longer the only option for multimodal file discovery.📌

Today's Agent products handle multimodal content across the board — generating images, building presentations, summarizing PDFs, transcribing recordings. In doing so, Agents naturally produce structured outputs: summaries, classifications, outlines, prompts. If you write these as structured JSON annotations at processing time, those files become searchable immediately — no separate vectorization pipeline needed, and no repeated analysis when the file comes up again later.

Examples Across Modalities

File Type What the Agent Does JSON Annotation How You Search Later
Recording Transcribes and generates structured minutes {"date": "...", "topics": [...], "action_items": [...]} "Meetings about EKS upgrade last week" — filter by topic, date, owner
PDF Extracts summary, entities, key insights {"summary": "...", "entities": [...], "keywords": [...]} "Reports mentioning customer X" — filter by entity, no re-analysis
Image/Video User generates via prompts with iterative refinement {"prompt": "...", "iterations": [...], "style": "..."} "That cyberpunk logo I made" — search prompt keywords directly
PPT Generates presentation from user requirements, producing an outline {"outline": [...], "topics": [...], "slide_count": 12} "My cost optimization deck" — search by outline topics

The Key Design Decision: Output JSON, Not Plain Text

These scenarios split into two types:

  • Processing results (recordings, PDFs): the Agent's job is to analyze the file and produce output. That output becomes the annotation.

  • Generation context (images, PPT): the Agent's job is to create something for the user. The intermediate context — prompts, iteration history, outlines — is a byproduct that's worth preserving.

In both cases, the architectural principle is the same: design the Agent workflow to emit structured JSON rather than plain text for anything that should be searchable later. Structured JSON enables precise field-level queries through annotation tables; plain text limits you to fuzzy LIKE matching.

For meeting minutes, this means having the Agent produce:

// annotation name: "meeting_minutes"
{
  "date": "2026-06-15",
  "topics": ["EKS upgrade", "cost optimization"],
  "action_items": [
    {"owner": "Alice", "task": "Complete EKS 1.30 upgrade plan"},
    {"owner": "Bob", "task": "Submit RI purchase request"}
  ],
  "summary": "Discussed EKS cluster upgrade timeline and Q3 cost optimization goals..."
}

With structured fields, you can run json_extract_scalar queries — filtering by date, grouping by topic, searching by assignee — things that are impossible against freeform text.

Cross-File Search via Annotation Tables

To query across objects, you need S3 Metadata — a bucket-level feature (not the object-level user-defined metadata discussed earlier; the naming is confusing, but they're completely different things). Once enabled, S3 automatically streams all annotations into a managed Apache Iceberg table (annotation tables).

From there, Agents can query with Athena SQL:

-- Find meetings with EKS-related action items from last week
SELECT bucket, object_key, text_value
FROM annotation_table
WHERE name = 'meeting_minutes'
AND text_value LIKE '%EKS%'
AND json_extract_scalar(text_value, '$.date') >= '2026-06-09'

Or via S3 Tables MCP Server, Agents can simply ask: "Find all meeting minutes that discussed EKS upgrade last week." The MCP Server handles the SQL translation.

How This Relates to Vector Search

Traditional multimodal search requires a vectorization pipeline — embedding model, vector store (like S3 Vectors), index maintenance. It's great for semantic similarity. But in the scenarios above, the Agent is already producing structured content as part of its job. Writing that content as a JSON annotation gives you queryability for free — no extra pipeline.

These aren't substitutes; they solve different problems. Vector search handles semantic queries (fuzzy, open-ended). Annotation tables handle structured queries (exact field matching, aggregation). Use them together or independently, depending on the scenario.


Scenario 3: Context Offloading and Long-Term Archival — Self-Contained Traces

📌 Core point: When Agents archive execution traces to S3, offloaded context can be attached as annotations rather than stored at separate paths — making each trace a self-contained unit that doesn't depend on external file references remaining valid over time.📌

In Agent context engineering, context offloading is standard practice. An Agent working on a document or code task pulls in content from many external files. Once that content is no longer needed in the active window, the Agent swaps it out — replacing the actual content with a file path or link. If it's needed again, the Agent reads from that path.

When the session ends, the full execution trace goes to S3 for long-term storage. At that point, the trace contains only path references; the offloaded content lives at a separate S3 location. This creates the same problem as Scenario 1: the trace and its referenced content are decoupled. Paths can go stale after bucket reorganization, and lifecycle management requires extra care.

How S3 Annotations Help

Attach the offloaded content directly as annotations on the trace object. The relationship goes from "two separate objects linked by a path string" to "one self-contained object." The trace carries everything needed to reconstruct the full execution context, independent of any external file paths.

This applies specifically to post-session archival — active sessions still manage context in memory or a database. S3 Annotations address the archival problem: how to make stored traces fully self-contained.

The payoff is simple: when you need to retrace a past execution — for debugging, auditing, or session restoration — you don't need to chase down external paths and verify they still resolve. Just read the annotations on the trace object. Self-contained archives are dramatically easier to maintain long-term.


How to Use S3 Annotations in Practice

S3 Annotations offer three levels of interaction, each suited to different needs:

Method Best For How It Works
Direct API Single-object read/write CRUD operations on individual annotations
Annotation Tables + Athena Cross-object batch queries Requires S3 Metadata enabled; annotations auto-flow into Iceberg tables
MCP Server Natural language retrieval Agent queries without writing SQL

Direct API

The foundation. Agents use these when they know exactly which object to work with. Amazon S3 supports the following API operations for annotations:

  • PutObjectAnnotation – Creates or overwrites an annotation on an object. You specify the annotation name and payload in the request.

  • GetObjectAnnotation – Returns the payload of a specific annotation by name.

  • ListObjectAnnotations – Returns the list of annotations on an object. The response includes each annotation's name, size, ETag, and last modified date.

  • DeleteObjectAnnotation – Removes a specific annotation by name.

Example — writing a transcript annotation:

PUT /meeting-001.mp4?annotation&name=transcript HTTP/1.1
Content-Type: application/json

{"date": "2026-06-15", "speakers": [...], "segments": [...]}

These suit the case where the Agent just finished processing a file and needs to persist results, or a user referenced a specific file and the Agent needs to pull its annotation.

Annotation Tables + Athena SQL

When you need to search across objects — "which recordings are missing minutes," "all meetings about EKS last week" — you can't call single-object APIs one by one.

Enable S3 Metadata (bucket-level) and annotations automatically flow into managed Iceberg tables:

  • Journal table: near-real-time, good for detecting fresh annotations quickly

  • Annotation table: ~1 hour refresh, good for batch analysis and auditing

Query with Athena:

-- Recordings that have a transcript but no minutes yet
SELECT bucket, object_key
FROM annotation_table a
WHERE a.name = 'transcript'
AND NOT EXISTS (
  SELECT 1 FROM annotation_table b
  WHERE b.object_key = a.object_key AND b.name = 'meeting_minutes'
)

-- Find all meetings about EKS from last week
SELECT bucket, object_key, text_value
FROM annotation_table
WHERE name = 'meeting_minutes'
AND text_value LIKE '%EKS%'
AND json_extract_scalar(text_value, '$.date') >= '2026-06-09'

This is ideal for batch scheduling, pipeline monitoring, and any query that needs precise conditions.

MCP Server + Natural Language

S3 Tables MCP Server puts a natural language interface on top of annotation tables. Agents describe what they want:

  • "Find all meeting minutes that discussed EKS upgrade last week"
  • "Which PDFs haven't been summarized yet?"
  • "List all open action items assigned to Alice"

The MCP Server generates the SQL, runs it, and returns results. This fits conversational Agent scenarios where users ask questions in natural language and the Agent needs to search across its historical outputs.


Conclusion

This article explored three distinct ways S3 Annotations can be applied in Agent scenarios, each with a different focus:

  • Scenario 1 — Lifecycle binding: processing results (transcripts, summaries) stay attached to the source file. No separate mapping, no orphaned files, no manual cleanup on deletion or migration.

  • Scenario 2 — Structured multimodal retrieval: by outputting structured JSON during processing or generation, Agents gain searchable metadata for free — enabling precise retrieval across recordings, PDFs, images, and presentations without a dedicated vectorization pipeline. Semantic vector search is no longer the only option for multimodal file discovery.

  • Scenario 3 — Self-contained archival: offloaded context lives on the trace object itself, making long-term archives independent of external file paths.

The three scenarios address different needs, but share one insight: Agents already produce structured context as part of their work — S3 Annotations give that context a place to live that's natively bound to the data, lifecycle-managed, and queryable. If you're building on S3 as your Agent's persistence layer, it's worth evaluating which outputs could benefit from this pattern.


Some Caveats

Two behaviors worth noting in specific configurations (source):

  • Multipart upload copies (objects > ~8 MB): when the AWS CLI or SDK uses Transfer Manager to copy large objects, annotations are not copied by default. Specify --copy-props all in the CLI or the equivalent SDK configuration to include them.

  • Versioned buckets: a simple DELETE (without specifying a version ID) creates a delete marker, but annotations on the underlying version remain intact. This doesn't break the lifecycle binding described in Scenario 1 — it simply means that in versioned buckets, you need to specify the version ID when deleting to fully remove both the object and its annotations.


References:

  1. Amazon S3 annotations: attach rich, queryable context directly to your objects — AWS Blog, 2026-06-16
  2. Annotating your objects - Amazon S3 User Guide
  3. S3 Metadata annotation table schema
  4. Building persistent memory for multi-agent AI systems with Amazon S3 Vectors — AWS Storage Blog, 2026-06-08
  5. Derive intelligent storage insights using S3 Metadata and MCP — AWS Storage Blog
  6. S3 Metadata Features - Data Discovery Accelerator

#AmazonS3 #AIAgents #ContextEngineering #CloudArchitecture #AWS