Recued
Menu
← Back to recipes

Assemble Evidence Packet

by recued-core v2 35 views

Use “Assemble Evidence Packet” in Recued. Assembles everything Recued holds about one person over a window into a single markdown file on your disk: their mail, files whose names carry your terms, and their memory timeline. Needs contactemail and packetslug (a file collection with the write capability).

How it works 59 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (59 steps)
■ window date_period
Apply date_period
■ since date_parse
Parse window start as a date
■ until date_parse
Parse window end as a date
■ run_day date_period
Apply date_period
■ generated_on date_format
Format as a date
■ email_ready compare
Check if setting contact email has data
■ entity_ref template
Generate text from a template
■ email_parts split
Split setting contact email into parts
■ local_slice slice
Take a subset of
■ local_part join
Join items with ""
■ file_terms flatten
Flatten nested lists in
◆ timeline_raw core.memory.timeline.read
Read memory timeline
skip: step.email_ready equal false
■ timeline default
Apply default
■ timeline_count count
Count items in timeline
■ timeline_dated map
Extract ts from each item
■ timeline_rows map
Extract from each item
■ timeline_body join
Join items with " "
■ mailbox_set compare
Check if setting mail slug has data
■ mailbox_note ternary
Apply ternary
■ mail_readable all
Check if all conditions are true
◆ messages_raw core.mail.email.list
List mail email
skip: step.mail_readable equal false
■ messages default
Apply default
■ scanned_count count
Count items in messages
■ from_tagged map
Extract hot_fields.from from each item
■ party_tagged map
Extract hot_fields.to from each item
■ party_mails filter
Filter by condition
■ party_mail_count count
Count items in party mails
■ mails_safe map
Extract hot_fields.subject from each item
■ mails_dated map
Extract received_at from each item
■ mail_rows map
Extract from each item
■ mail_body join
Join items with " "
◆ files_raw core.storage.file.list
List storage file
skip: step.email_ready equal false
■ files default
Apply default
■ files_scanned_count count
Count items in files
■ files_tagged map
Extract hot_fields.filename from each item
■ party_files filter
Filter by condition
■ party_file_count count
Count items in party files
■ files_safe map
Extract hot_fields.filename from each item
■ file_rows map
Extract from each item
■ file_body join
Join items with " "
■ file_cards map
Extract from each item
■ terms_text join
Join items with ", "
■ has_mails compare
Check if party mails has data
■ has_files compare
Check if party files has data
■ has_timeline compare
Check if timeline has data
■ has_evidence any
Check if any of the conditions are true
■ slug_ready compare
Check if setting packet slug has data
■ can_write all
Check if all conditions are true
■ mail_section_text ternary
Apply ternary
■ packet_md template
Generate text from a template
■ packet_b64 encode_base64
Apply encode_base64
skip: step.can_write equal false
■ packet_path template
Generate text from a template
◆ write_packet core.storage.file.write
Write storage file
skip: step.packet_b64 is_null
◆ written core.storage.file.stat
Stat storage file
skip: step.write_packet is_null
■ written_bytes default
Apply default
■ packet_state ternary
Apply ternary
■ mail_table_rows slice
Take a subset of
■ mail_table to_table
Format results as a data table
■ card to_summary
Format results as a summary card
▼
Output
summary card
file_artifact file_cards
table mail_table
json timeline
json party_mails
json written
Settings 11 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

period setting = last_90_days
file slug setting = received
mail slug setting = [object Object]
row limit setting = 50
file limit setting = 500
packet dir setting = recued-packets
scan limit setting = 1000
extra terms setting =
packet slug setting =
contact email setting =
timeline limit setting = 100

Uses (5 operations)

Memory Read memory timeline core.memory.timeline.read
Mail List mail email core.mail.email.list
Files List storage file core.storage.file.list
Files Write storage file core.storage.file.write
Files Stat storage file core.storage.file.stat

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Permissions it requires

Read your memory
Declared by the recipe — Recued grants these at install, where you review them before approving.

What it's allowed to do

Read Memory core.memory.timeline.read read-only
Read Mail core.mail.email.list read-only
Read Files core.storage.file.list read-only
Write Files core.storage.file.write external change
Read Files core.storage.file.stat read-only

Data it touches

SurfacesMemoryMailFiles

About

Tags

filepacketevidencetimelinememorymailwarehousedossierpack:file-toolkit

Details

59 steps 11 configurable settings recipe_id: assemble-evidence-packet