Repository navigation
Work on N-69 - #30
Merged
Merged
Work on N-69#30
Conversation
… document the endpoint
…opened no pull request; test Fix it
Keep both stuck task fixes. Main's start check now also waits while a goal is paused at its spending limit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handover: Work on N-69 (G-31)
What you asked for
You asked us to work on N-69, the list of 13 features that came from comparing Canopy with Coral.
I asked whether to build all 13 in this goal or only some of them. The question expired after 30 minutes with no answer, so we built all 13, in N-69's order. Tommy and Trevor each took half. At the end, each of them reviewed one half (T-205, T-206) and fixed what they found.
Since the last handover: main had moved on with PR #29 ("start stuck task") and clashed with this branch. I merged main in (T-215) and kept both pieces of stuck-task work. The branch is now level with main, so it can merge without conflicts.
What we built
All of it is on the branch
canopy/work-on-n-69:1. Stuck tasks are noticed and restarted (T-187)
2. Low disk warning (T-188)
3. Cost and activity analytics (T-191, T-192)
4. Compare output versions and comment inline (T-197, T-198)
5. Search and team knowledge (T-199, T-200)
searchtool.## Team editsis kept on every rebuild.6. Changed files beside the chat (T-190)
7. Model and effort from the chat box (T-189)
8. Agents message and wait for each other (T-193, T-194)
message_teammate, andwait_forto wait for a reply, a task finishing, or a task's commits being merged.9. Sleep and wake teams (T-195)
10. Spending limits per goal (T-196)
11. Checks before handover (T-201)
make test.12. Pull requests and CI on the board (T-202, T-204)
ghon the goal's computer. The workspace setting "auto PR" controls this and is on by default.13. Goal templates and Run again (T-203)
Where the code is
hub/internal/store/migrations/00032to00045, queries inhub/internal/store/queries/hub/internal/orch/(new files:stuck.go,resources.go,toolruns.go,waits.go,goal_limits.go,reviewcomments.go,searchtool.go,teamknowledge.go,checks.go,prci.go,changes.go)hub/internal/api/(new files:analytics.go,output_comments.go,search.go,goal_checks.go,goal_templates.go), plusshared/openapi.yamlclient/internal/resources/,client/internal/gitwork/(changes.go,checks.go,pr.go),client/internal/session/(toolruns.go,worktrees.go)shared/protocol/protocol.go,client/internal/tools/tools.go,hub/internal/orch/tools.gofrontend/src/app/(app)/(settings)/org/analytics/, and infrontend/src/components/board/:SearchBox.tsx,outputs/CompareView.tsx,outputs/Comments.tsx,panels/ChangesView.tsx,panels/TimelineTab.tsx,panels/GoalChecks.tsx,panels/GoalLimit.tsxdocs/DECISIONS.md, new sections: teammate messages and waiting, sleeping and waking, goal templates, stuck sessions, search, "Done when" checkse2e/system/:stuck_test.go,model_test.go,waits_test.go,sleep_test.go,checks_test.go,analytics_test.goHow to check it
make infra, thenmake test,make systemandmake lint.frontend, runpnpm testandpnpm build. Plainpnpmcouldn't read the lockfile on this machine, so the staff usednpx pnpm@12.15.0.TestGoalChecksRunOnTheRunner, which then passed 5 times on its own and in both later full runs. It looks like a timing problem, but I didn't keep its error output.TestMirrorOfflineReadsAndOwnerApprovalwas skipped because it needs bubblewrap.make hubandmake web, then open http://localhost:8000. Don't runmake genfirst; see the risks below.make lint. Watch the goal pause at the limit, then raise the limit. Save the goal as a template and start a new goal from it.ghinstalled: approve a handover. A pull request should open, and a CI pill should appear on the goal card.git diff main...canopy/work-on-n-69.What isn't done, and the risks
Before merging
gh.make gencan break the board. Its type generator rewrote fields that had been added by hand tofrontend/src/lib/core-types.ts. So the staff added the new types to that file by hand, and main does the same. Runningmake genmay remove them.hub/internal/orch/schedule.go(startBlocker).TestGoalChecksRunOnTheRunnerfailed once under a full run and then passed 7 times.Rough edges
What you need to decide
Merge. The clash with main is fixed. Can this go to main now, or after someone has clicked through the app (step 2 of "How to check it")?
Auto PR default. With the setting on, approving a handover pushes the branch to GitHub and opens a pull request with no further click. Keep it on by default, or turn it off by default?
Stuck limit. Is 15 minutes right, or should the default be longer, such as 30 minutes, to allow for long thinking?
Pausing at a spending limit. Should it cut off the running turn (as now), or let the turn finish and then pause, at the cost of a small overspend?
Who fixes failed CI. Should the "Fix failing CI" task go to the manager (as now) or to the staff member who did the last work, like the failing-checks fix?
Follow-up goal. Should we open a goal for the rough edges above? Main items:
I can't hand out tasks from a handover (N-65), so any follow-up work needs a new goal on the board.