Skip to content

Give a refused spec a second try with in2lambda's refusal in the prompt - #30

Open
peterbjohnson wants to merge 2 commits into
mainfrom
wb/t34
Open

peterbjohnson wants to merge 2 commits into
mainfrom
wb/t34

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Three documents in the sweep ended with spec rejected because in2lambda refused the spec the model wrote (a comma inside a quoted pattern; Header, Table on one line). iterate_spec raises SpecRejected and the run ends, though the loop has tries left and the refusal names the line and the fault.
Treat a refused spec as a failed try: record it as a SpecTry with rejected: <message> and the worst score, show the refusal to the next call in the revision prompt under in2lambda refused the spec: with the spec text, and go on to the next try. Where every try is refused, the run ends as today with the last refusal. The spec prompt also says, in the list of things about selectors: several selectors for one role go under the role as a YAML list, never on one line with commas, and a comma inside a pattern must be inside its quotes. Tests in tests/test_spec.py: a fake backend whose first reply is a spec in2lambda refuses and whose second is good - the run builds, the second prompt holds the refusal, the record holds both tries. Done when the three shapes from the sweep get a second try.


Workbench ticket t34.

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.

1 participant