cookie-jar-finale
cookie-jar-finale
The final accusation - catch the thief!
config
_context:
accused: Tara
game_over: false
lyrics:
- Who stole the cookie from the cookie jar?
- George stole the cookie from the cookie jar!
- Who, me?
- Yes, you!
- Couldn't be!
- Then who?
- ''
- Who stole the cookie from the cookie jar?
- Charlie stole the cookie from the cookie jar!
- Who, me?
- Yes, you!
- Couldn't be!
- Then who?
- ''
- Who stole the cookie from the cookie jar?
- Marcus stole the cookie from the cookie jar!
- Who, me?
- Yes, you!
- Couldn't be!
- Then who?
- ''
- Who stole the cookie from the cookie jar?
- Tara stole the cookie from the cookie jar!
- Who, me?
- Yes, you!
- Couldn't be!
- Then who?
- ''
original_count: 5
players:
- Xavier
remaining: 1
round: 4
consumes: dict
produces: dictfetch
# Read directly from config - pipeline passes flat context
players = list(config.get('players', []))
lyrics = list(config.get('lyrics', []))
round_num = config.get('round', 0)
original_count = config.get('original_count', 5)
if not players:
thief = "Nobody"
else:
thief = players[0]
# Generate final accusation
final_verse = [
"Who stole the cookie from the cookie jar?",
f"{thief} stole the cookie from the cookie jar!",
"Who, me?",
"Yes, YOU!",
f"*{thief} is the cookie thief!*"
]
lyrics.extend(final_verse)
result = {
"players": [thief],
"thief": thief,
"lyrics": lyrics,
"total_rounds": round_num,
"original_count": original_count,
"game_over": True
}Tags
tags:
- fence:chain
- demo
- cookie-jar
- pattern:pipelineProvenance
Document
- Status: π΄ Unverified
Changelog
- 2026-01-26 00:14: Node created by mcp - Creating finale stage for staged cookie-jar pipeline