Skip to content

Commit b4a1648

Browse files
authored
Merge pull request #101 from ImperialBower/EPIC-25
feat(hand_history): EPIC-40 Phase 4 — AgentFidelity action metadata
2 parents 1025d6f + a25183f commit b4a1648

4 files changed

Lines changed: 691 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Changelog
2+
3+
All notable changes to this project are documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.3] - 2026-05-31
9+
10+
### Added
11+
12+
- `hand_history::AgentFidelity`: per-action provenance describing what an agent
13+
*produced* versus what the table *applied* — raw response text, a
14+
`was_coerced` flag, the originally intended action/amount, LLM token counts,
15+
and the model id. Analysis-only and ignored by `HandHistory::replay`.
16+
- `hand_history::Action::agent`: optional `AgentFidelity` field. Skipped during
17+
serialization when absent, so existing YAML/JSON hand histories round-trip
18+
unchanged and legacy files deserialize with `agent: None`.
19+
- `HandHistory::attach_agent_fidelity`: attaches agent metadata to a hand's
20+
voluntary (non-`Post`) actions in canonical order via a seat-checked
21+
positional zip; mismatched entries are skipped rather than misattributed.
22+
- `HandHistory::voluntary_actions_mut`: low-level accessor returning mutable
23+
references to every voluntary action across all streets, for bespoke matching.
24+
25+
These additions are backward compatible: no existing public item changed shape
26+
on the wire, and `replay` behavior is unaffected by the new metadata. Driven by
27+
`ImperialBower/pkdealer` EPIC-40 Phase 4 (arena recorder agent-fidelity
28+
annotations).
29+
30+
[0.1.3]: https://github.com/ImperialBower/pkcore/releases/tag/v0.1.3

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pkcore"
33
description = "Prototype core poker library."
4-
version = "0.1.2"
4+
version = "0.1.3"
55
rust-version = "1.94.1"
66
edition = "2024"
77
authors = ["electronicpanopticon <gaoler@electronicpanopticon.com>"]

src/analysis/player_stats.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ mod tests {
745745
action: kind,
746746
amount,
747747
all_in: None,
748+
agent: None,
748749
}
749750
}
750751

0 commit comments

Comments
 (0)