Keep all prompt records private and remove repository-published prompt ledgers
Hop-State: A_06FN8RB08RV0PTBDNTH4738 Hop-Proposal: R_06FN8R7MN60MJK1X7ZRDG5G Hop-Task: T_06FN8PDXR44H4NMQ41P9P10 Hop-Attempt: AT_06FN8PDXR7HFSVKEKH6BQV8
This commit is contained in:
@@ -34,9 +34,7 @@ func InitProject(ctx context.Context, path string) (*Service, State, error) {
|
||||
return nil, State{}, err
|
||||
}
|
||||
for _, trackedPath := range trackedHopPaths {
|
||||
if !strings.HasPrefix(filepath.ToSlash(trackedPath), ".hop/records/") {
|
||||
return nil, State{}, fmt.Errorf("cannot initialize Hop: local .hop runtime path is already tracked (for example %s)", trackedPath)
|
||||
}
|
||||
return nil, State{}, fmt.Errorf("cannot initialize Hop: private .hop path is already tracked (for example %s)", trackedPath)
|
||||
}
|
||||
hopDir := filepath.Join(root, ".hop")
|
||||
if err := os.MkdirAll(filepath.Join(hopDir, "workspaces"), 0o755); err != nil {
|
||||
@@ -600,11 +598,6 @@ func (s *Service) Propose(ctx context.Context, stateID, summary string) (Proposa
|
||||
return ProposalResult{}, fmt.Errorf("reconciliation must pass hop check on the resolved tree before proposing")
|
||||
}
|
||||
}
|
||||
if _, err := s.exportPromptLedger(ctx, attempt.Workspace, promptExportOptions{
|
||||
AttemptIDs: []string{attempt.ID}, Status: "proposed", ResponseSummary: summary,
|
||||
}); err != nil {
|
||||
return ProposalResult{}, err
|
||||
}
|
||||
commit, tree, err := workspaceRepo.Snapshot(ctx, "hop: proposal\n")
|
||||
if err != nil {
|
||||
return ProposalResult{}, err
|
||||
|
||||
Reference in New Issue
Block a user