Skip to content

feat(feedback): log Feedback, find patterns and calibrate ratings - #19

Merged
codeotter0201 merged 1 commit into
mainfrom
feat/issue-7-feedback-log
Nov 8, 2026
Merged

codeotter0201 merged 1 commit into
mainfrom
feat/issue-7-feedback-log

Conversation

@codeotter0201

@codeotter0201 codeotter0201 commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements the Feedback log and Fix directions from #7: every piece of Feedback keeps its cause and a Fix direction, recurring causes become proposals, what Feedback says about a company becomes Company notes across Candidates, and closed outcomes are compared with Success ratings.

  • skills/headhunter/scripts/hh.py: feedback add, update, list, patterns, companies, calibrate; Feedback checks in validate; open Fix directions in candidate show; Feedback in the Index (feedback, feedback_tags)
  • skills/headhunter/SKILL.md: the feedback.md and Company notes formats, the Log Feedback workflow, and a rule that Feedback proposes and the user decides
  • CONTEXT.md: the fixed set of causes; a Fix direction that produces material ends with importing it as a Source
  • README.md / README.zh-TW.md: the Feedback loop feature

Related Issues

Closes #7

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Data layout change (existing data folders need migration)
  • Documentation update
  • Refactoring (no functional changes)

Decisions

Item Decision Rejected alternatives
Field for who gave the Feedback from: hr, interviewer, candidate, user A field named source: Source is a domain term for a raw input, and entries also cite Sources. headhunter as a value: CONTEXT.md says the user, which also covers individuals and coaches
Format feedback.md: a YAML block the script checks and indexes, then a readable body, as with evaluation.md Free Markdown: causes could not be counted or checked
One Fix direction per piece Each entry has one cause and one Fix direction, numbered fb-001 within the Application A separate list of Fix directions: the issue's table has one per entry
What "recurring" means The same cause in two or more of a Candidate's Applications with at least one Fix direction unfinished; shared topic Tags and Roles with two or more of those Applications are reported Counting entries: several comments on one Application are not a pattern. Keeping finished causes: proposals would never stop
Topics Optional tags from the Taxonomy, so "system design called weak in three interviews" is detectable Matching words in free text
Proposals The script detects patterns and gives what each cause suggests for the Strategy, the affected Role profiles and open Applications' resumes; the agent makes them specific; changes happen through existing commands only when the user agrees Applying changes automatically: the issue says proposals
Closing with new material An entry with material cannot be done without sources naming an existing Source received on or after the Feedback's date; new Facts then mark Role profiles stale through the existing check Trusting a free-text note
Company notes Only entries with a company_note, a sentence in general terms; each line carries Candidate and Job ids and no names; the script keeps a ## Feedback section and leaves the rest of the file alone Copying all Feedback: most of it is about the Candidate, and names would spread across Candidates
Grouping companies By the company name in the Job snapshot Merging similar names: guesses wrong
What counts in calibration Hired, or declined after an offer, is an offer; rejected is a rejection; withdrawn and declined without an offer are left out Treating declined as a success in every case: a Candidate can decline before any offer
Over- and under-estimates Rated high and rejected; rated low with an offer. Also offer rates per rating, dimension averages for offers against rejections, and hard requirements that failed yet got an offer A single accuracy number: it would not say what to change
Few outcomes Fewer than five counted outcomes are flagged as a hint; proposals are printed and nothing changes Hiding the report until there is more data: early users would see nothing

Migration

feedback.md and companies/*.md are new files, created by the first feedback add; no existing file changes. The Index schema version changes, so an existing index.sqlite is rebuilt on next use.

Validation

All runs used the fictional Candidates 王小明 c-001 and 林小華 c-002 and the Applications from #6, in a scratch HEADHUNTER_DATA_DIR outside any repository, on Python 3.9 unless noted. The Feedback is fictional and exists only in that scratch folder. I acted as the agent following SKILL.md, and as the user for answers.

Logging

  • A faulty feedback add → all 12 problems listed, nothing written: unknown field, future date, bad from, cause and state, empty content and fix, unknown Tag, sources without material, a Source received before the Feedback, and done with material but no Source
  • feedback add on a Job with no Application → refused
  • 9 pieces across 6 companies from real Job snapshots and one fictional company, covering hr, interviewer, candidate and user, and the causes skill-gap, experience, communication, salary, culture-fit
  • feedback list with no filter, and with --cause skill-gap --state open --company; candidate show c-2 lists its open Fix directions

Patterns

  • c-001: skill-gap in 3 Applications, all with skill/system-design, under the Role senior-backend-engineer → proposals for strategy.md, that Role profile and resumes; with a resume on an open Application, that Application is named
  • c-002: experience in 2 Applications under data-engineer
  • feedback add reports the recurring cause as soon as it recurs
  • In a copy, salary on two Applications with no Role → "no Role has this cause in 2 or more Applications"
  • A cause in one Application is not reported

Closing a Fix direction with material

  • {"state": "done"} on an entry with material → import that as a Source and list it in sources; an unknown Source → refused
  • source add c-2 - → s-006, fact add → f-014, role stale c-2 → data-engineer: new f-014 matches its requirements; {"state": "done", "sources": ["s-006"]} → done, and feedback.md shows the Source
  • Changing an entry's id, or updating an entry that does not exist → refused

Company notes

  • companies/ holds one file per company with a company_note; the Pinkoi file combines entries from both Candidates, each with Candidate, Job and Feedback ids and no names
  • Removing a company's only note → "No Feedback about this company yet."
  • A hand-added ## Interview tips section survives feedback companies

Calibration

  • 7 closed Applications with an Evaluation, 5 counted: a withdrawn Application and a decline without an offer are left out
  • A fictional Job evaluated high (92), then rejected → listed as over-estimated with its Feedback cause; c-002 × j-yourator-25039 rated low (52) with an offer → listed as under-estimated
  • Offer rates per rating and dimension averages; proposals named the dimensions that did not separate offers from rejections, the score bands, and communication, which the rubric does not score; Only N outcomes appeared with 2 and 4 outcomes
  • No rubric value changed; the command writes nothing

Checks

Not run

  • Calibration on real outcomes; the 5 counted outcomes are fictional
  • Loading the skill in a fresh session with claude --plugin-dir .
  • Windows

Checklist

  • No real candidate data in code, examples, fixtures, screenshots or this PR
  • skills/headhunter/SKILL.md, README.md and README.zh-TW.md updated when behavior or data layout changed
  • Migration for existing data folders described (data layout changes only)
  • Self-review completed
  • Documentation updated (if needed)

🤖 Generated with Claude Code

Keep every piece of Feedback with its cause and a Fix direction. Causes
that recur across a Candidate's Applications become proposals for the
Strategy, Role profiles and resumes. What Feedback says about a company
builds up into Company notes across Candidates. Closed outcomes are
compared with Success ratings to show where the rubric over- or
under-estimates; rubric changes stay proposals.

- hh.py: feedback add/update/list/patterns/companies/calibrate; a Fix
  direction with material needs an imported Source to be done; Feedback
  checks in validate; open Fix directions in candidate show; Feedback in
  the Index
- SKILL.md: feedback.md and Company notes formats, the Log Feedback
  workflow, and a rule that Feedback proposes and the user decides
- CONTEXT.md: the causes, and Fix directions that produce material
- README.md / README.zh-TW.md: the Feedback loop feature

Closes #7

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added area/agent-instructions AGENTS.md, CLAUDE.md, CONTEXT.md and skill instructions area/docs README and contributor documentation type/feature New functionality labels Nov 8, 2026
@codeotter0201
codeotter0201 merged commit 1e600d9 into main Nov 8, 2026
2 checks passed
@codeotter0201
codeotter0201 deleted the feat/issue-7-feedback-log branch November 8, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent-instructions AGENTS.md, CLAUDE.md, CONTEXT.md and skill instructions area/docs README and contributor documentation type/feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Feedback log and fix directions

1 participant