Skip to content

Added human review capabilities#128

Open
anonx3247 wants to merge 1 commit intomainfrom
human
Open

Added human review capabilities#128
anonx3247 wants to merge 1 commit intomainfrom
human

Conversation

@anonx3247
Copy link
Copy Markdown
Contributor

@anonx3247 anonx3247 commented Dec 2, 2025

This has a DB migration so that the author column in reviews becomes nullable.

#122

@anonx3247 anonx3247 force-pushed the human branch 2 times, most recently from 0b47708 to 79a89a6 Compare December 2, 2025 15:18
@anonx3247 anonx3247 requested a review from spolu December 2, 2025 15:22
@@ -0,0 +1,20 @@
PRAGMA foreign_keys=OFF;--> statement-breakpoint
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nuclear nuke but why not

Comment thread src/srchd.ts
);
}

const publicationRes = await publication.submitReview("human", {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if I submit a review after the publication was published?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it works. I wondered what would occur If I gave a strong reject on an already published one, and it stays published.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yet we would not want that right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theres a quick fix for that, simply by checking the status before adding the review and updating accrodingly

@spolu
Copy link
Copy Markdown
Contributor

spolu commented Dec 3, 2025

I think we want to have 2 modes of operations. One with human reviews one without it so that things are explicity.

So the run command should take a new argument -h to specify that a human review is expected. This should be fed to the RunConfig and the logic of reviews should be addapted 🙏

@spolu
Copy link
Copy Markdown
Contributor

spolu commented Jan 2, 2026

Is this ready for re-review?

@anonx3247
Copy link
Copy Markdown
Contributor Author

Is this ready for re-review?

Yes, should be ready

Copy link
Copy Markdown
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's tweak the config. It's cleaner and allows >1 human reviewer which makes sense.

Comment thread src/srchd.ts
.description("Add a human review to a publication")
.requiredOption("-e, --experiment <experiment>", "Experiment")
.requiredOption("-c, --content <content>", "Review Content")
.requiredOption("-g, --grade <grade>", "Review Content")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we should check the validity of he grade?

Comment thread src/runner/config.ts
@@ -1,3 +1,4 @@
export type RunConfig = {
reviewers: number;
humanReview?: boolean;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of completeness and more clarity:

reviewers: {
  agents: number,
  humans: number,
}

@spolu
Copy link
Copy Markdown
Contributor

spolu commented Jan 14, 2026

Last interaction here is my comment right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants