Repository navigation
feat(agent): label sessions with the refined list of 45 activities - #275
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
IgorMGitHub
left a comment
There was a problem hiding this comment.
The list and the eval set check out exactly: 10 groups, 45 activities, all names distinct, and the set of expect values in eval/activities.json is the same set as the activities — every one covered, none expecting a name the model cannot produce. "57 cases, one for each activity" is loose wording for something better than it claims. The old names survive outside agent/ only as free text in fixtures, and both the TypeScript and the Kotlin side hold activity as a plain string, so nothing there expects the old shape.
Three findings below, and one that has no line in the diff to sit on:
PRECISION_FLOOR and RECALL_FLOOR in agent/tests/activity_eval.rs are unchanged, and their comments still say "about two labels under the lowest of three runs (0.878 to 0.917)" and "(0.935 to 0.957)". Those runs were over 27 list names plus 6 TYPES, against the old instruction. This diff replaces both with 45 much finer names — Status reporting against Delivery follow-up against Stakeholder alignment and decisions — so the comments describe measurements that no longer exist. The test is #[ignore]d, so nothing will catch the drift. Re-measure, or say in the comment that the floors are carried over and not re-measured.
| state.tasks.retain(|key, _| !recent.contains(key)); | ||
| state.answered.retain(|key, _| !recent.contains(key)); | ||
| self.answered.retain(|key| !recent.contains(key)); | ||
| state.list = LIST_VERSION; |
There was a problem hiding this comment.
This runs on every path that reaches it, including when recent is empty, and pass then never relabels again. Five reachable ways to spend the one shot and drop nothing:
:423skips a source wherecollectsis false, andcollectsrequirescollection_on()—answered && collection.enabled. So while collection is paused, or the first-start question is unanswered, every source is skipped.runcallspassevery 5 minutes with no collection guard, the first at once, so the first tick after the update spends it.:426a transientlist_sessionserror skips that source and the flag is still set — unlike a write failure at:436/:446, which correctly returnsNoneand retries.read_stateanswerslist: LIST_VERSIONfor any read error, so a workspace with v1 setup labels infindings.jsonand nolabels.jsonyet skips the migration. Its doc comment says "nothing is made under an earlier list then", which is false wheneverfindings.jsonexists.- a clock ahead of real time puts
cutoffin the future and emptiesrecent. dashboard_setup::Before::restorewritesfindings.jsonback verbatim at agent start, "whatever the state says". A setup run interrupted before the relabel leaves that snapshot behind; after the relabel the next start restores the v1 tasks whilelabels.jsonalready sayslist=2, and the two files disagree for ever.restore_runhas the "only if the file is still as the run left it" guard;restoredoes not.
What survives is not inert: Planning, Documentation and Communication no longer resolve through activity_of, so those sessions read as Not classified for ever.
A flag in one file is the wrong mechanism for a migration that spans two files with two owners. Either stamp both files and bump only when every collected source was listed, or drop the one-shot for the stale-name half — the labeller can already tell a dead label from the data it holds, an activity that activity_of no longer resolves, and re-ask on any pass.
Two smaller things in the same place. When relabel answers None the pass aborts with no log line, unlike record's eprintln!, so a workspace that cannot write findings.json leaves the labeller silently idle. And both new tests run with collection fully on and a non-empty recent, so deleting the collects guard leaves the suite green.
There was a problem hiding this comment.
Fixed in bc81cc4. The one-time switch is gone, and so is the editing of findings.json. Each answer in labels.json now records the LIST_VERSION it was made under, and on every pass a session of the last 30 days is asked again when the labeller's answer is from an earlier list, or when the setup's label holds an activity activity_of no longer resolves (tasks::is_stale). Findings::with_labels lets the labeller's answer replace only such a dead setup label. Nothing is spent once, so paused collection, a failed list_sessions, a missing labels.json, the clock and Before::restore can no longer cost the migration. An answer under the current list that still has no activity of the list is not asked again, so there is no loop. New tests: earlier answers and dead setup labels asked again (with and without labels.json), collection paused then on again, and an answer under this list kept; a findings test covers the merge.
| }, | ||
| { | ||
| "name": "Meetings", | ||
| "definition": "A meeting with no more specific activity above. For example: attend or run a meeting; write meeting notes; follow up on actions." |
There was a problem hiding this comment.
"A meeting with no more specific activity above." Meetings is in group 8 of 10, so Team management, Hiring, Learning and development, Development and Workflow automation all sit below it, and by this wording a 1:1 or an interview is Meetings. chat/setup.rs says the opposite: "Meetings only when no more specific activity fits the meeting." The eval case team-management ("Prepared the 1:1 with a junior PM") sits exactly on the collision.
Say "in the list", not "above" — a positional word does not survive a data file the model is told to read whole. (Other's "above" is harmless only because it is last.)
There was a problem hiding this comment.
Fixed in bc81cc4: "in the list" instead of "above", for Meetings and for Other too.
| Self::Transcript => "Meetings", | ||
| Self::Chat | Self::Email => "Communication", | ||
| Self::Transcript => super::tasks::MEETINGS, | ||
| Self::Chat | Self::Email => super::tasks::NO_ACTIVITY, |
There was a problem hiding this comment.
NO_ACTIVITY is "Not classified", documented as what a report calls the time of a session with no activity given, and activity_key() already produces it when the field is empty. Storing it as the activity makes Forgotten::can_forget refuse the entry — it rejects exactly this name — so a person who uploaded an e-mail can no longer forget that time, where Communication could be forgotten before.
Leave the field empty and let activity_key() word it, or pick a real name: the new list has Customer and partner communication and Other.
There was a problem hiding this comment.
Fixed in bc81cc4: a chat or an e-mail upload now has an empty activity, and activity_key() words it as Not classified; the upload message says "Not classified" when the activity is empty.
|
On the eval floors: kept as they are. The comments on |
Signed-off-by: Tobias <tobias.mayer@constructor.tech>
…ks share an activity, and keep side material in its task Signed-off-by: Tobias <tobias.mayer@constructor.tech>
Signed-off-by: Tobias <tobias.mayer@constructor.tech>
…leave an upload's activity empty Signed-off-by: Tobias <tobias.mayer@constructor.tech>
…the Time tracker Signed-off-by: Tobias <tobias.mayer@constructor.tech>
bc81cc4 to
3b63444
Compare
What
The labeller now uses a refined list of 45 product-management activities instead of 27 research activities plus 6 general types.
common.jsonholds 45 activities in 10 groups, each with a definition and example tasks for the model. The 6 research groups keep the frequency "Once"; the 4 new groups (Product delivery, Communication and alignment, People and self, Outside PM work) are "Recurring". The page still gets only name, group and frequency.TYPESis gone. Meetings, Hiring and Development are now in the list. Planning, Documentation and Communication are no longer activities, so they read as Not classified. Uploaded chats and e-mails now have no activity and count as Not classified; transcripts stay Meetings.labels.jsonnow records the list version it was made under. A session of the last 30 days is asked again when the labeller's answer is from an earlier list, or when the setup's label has an activity the list no longer holds; the new answer replaces the old label. This is checked on every pass, so nothing is spent once, andfindings.jsonis never edited. Older labels stay.<command-args>) is now kept as their own words; only the command's name and message are left out. Before, a session started from a skill could lose its whole request and was skipped.Tests
labels.json), a paused collection that asks later, an answer under this list that is kept, and several tasks of one activity; a findings test covers a label replacing only a dead setup label.cargo test,cargo clippy --all-targets -D warnings,cargo fmt --check,tsc --noEmit, eslint and the vitest unit tests pass. The Electron specs were not run locally.